head	1.3;
access;
symbols
	RELENG_8_4:1.3.0.2
	RELENG_9_1_0_RELEASE:1.1.1.14
	RELENG_9_1:1.1.1.14.0.16
	RELENG_9_1_BP:1.1.1.14
	RELENG_8_3_0_RELEASE:1.1.1.14
	RELENG_8_3:1.1.1.14.0.14
	RELENG_8_3_BP:1.1.1.14
	RELENG_9_0_0_RELEASE:1.1.1.14
	RELENG_9_0:1.1.1.14.0.12
	RELENG_9_0_BP:1.1.1.14
	RELENG_9:1.1.1.14.0.10
	RELENG_9_BP:1.1.1.14
	RELENG_7_4_0_RELEASE:1.1.1.13
	RELENG_8_2_0_RELEASE:1.1.1.14
	RELENG_7_4:1.1.1.13.0.24
	RELENG_7_4_BP:1.1.1.13
	RELENG_8_2:1.1.1.14.0.8
	RELENG_8_2_BP:1.1.1.14
	RELENG_8_1_0_RELEASE:1.1.1.14
	RELENG_8_1:1.1.1.14.0.6
	RELENG_8_1_BP:1.1.1.14
	RELENG_7_3_0_RELEASE:1.1.1.13
	RELENG_7_3:1.1.1.13.0.22
	RELENG_7_3_BP:1.1.1.13
	RELENG_8_0_0_RELEASE:1.1.1.14
	RELENG_8_0:1.1.1.14.0.4
	RELENG_8_0_BP:1.1.1.14
	RELENG_8:1.1.1.14.0.2
	RELENG_8_BP:1.1.1.14
	RELENG_7_2_0_RELEASE:1.1.1.13
	RELENG_7_2:1.1.1.13.0.20
	RELENG_7_2_BP:1.1.1.13
	RELENG_7_1_0_RELEASE:1.1.1.13
	RELENG_6_4_0_RELEASE:1.1.1.13
	RELENG_7_1:1.1.1.13.0.18
	RELENG_7_1_BP:1.1.1.13
	RELENG_6_4:1.1.1.13.0.16
	RELENG_6_4_BP:1.1.1.13
	v_1_1_0:1.1.1.14
	RELENG_7_0_0_RELEASE:1.1.1.13
	RELENG_6_3_0_RELEASE:1.1.1.13
	RELENG_7_0:1.1.1.13.0.14
	RELENG_7_0_BP:1.1.1.13
	RELENG_6_3:1.1.1.13.0.12
	RELENG_6_3_BP:1.1.1.13
	RELENG_7:1.1.1.13.0.10
	RELENG_7_BP:1.1.1.13
	RELENG_6_2_0_RELEASE:1.1.1.13
	RELENG_6_2:1.1.1.13.0.8
	RELENG_6_2_BP:1.1.1.13
	RELENG_5_5_0_RELEASE:1.1.1.12.2.1
	RELENG_5_5:1.1.1.12.2.1.0.4
	RELENG_5_5_BP:1.1.1.12.2.1
	RELENG_6_1_0_RELEASE:1.1.1.13
	RELENG_6_1:1.1.1.13.0.6
	RELENG_6_1_BP:1.1.1.13
	RELENG_6_0_0_RELEASE:1.1.1.13
	RELENG_6_0:1.1.1.13.0.4
	RELENG_6_0_BP:1.1.1.13
	RELENG_6:1.1.1.13.0.2
	RELENG_6_BP:1.1.1.13
	RELENG_5_4_0_RELEASE:1.1.1.12.2.1
	RELENG_5_4:1.1.1.12.2.1.0.2
	RELENG_5_4_BP:1.1.1.12.2.1
	v_0_6_3:1.1.1.13
	RELENG_4_11_0_RELEASE:1.1.1.4.2.5
	RELENG_4_11:1.1.1.4.2.5.0.8
	RELENG_4_11_BP:1.1.1.4.2.5
	RELENG_5_3_0_RELEASE:1.1.1.12
	RELENG_5_3:1.1.1.12.0.4
	RELENG_5_3_BP:1.1.1.12
	RELENG_5:1.1.1.12.0.2
	RELENG_5_BP:1.1.1.12
	RELENG_4_10_0_RELEASE:1.1.1.4.2.5
	RELENG_4_10:1.1.1.4.2.5.0.6
	RELENG_4_10_BP:1.1.1.4.2.5
	v_0_6_1:1.1.1.12
	RELENG_5_2_1_RELEASE:1.1.1.11
	RELENG_5_2_0_RELEASE:1.1.1.11
	RELENG_5_2:1.1.1.11.0.2
	RELENG_5_2_BP:1.1.1.11
	RELENG_4_9_0_RELEASE:1.1.1.4.2.5
	RELENG_4_9:1.1.1.4.2.5.0.4
	RELENG_4_9_BP:1.1.1.4.2.5
	v_0_6:1.1.1.11
	RELENG_5_1_0_RELEASE:1.1.1.10
	RELENG_5_1:1.1.1.10.0.4
	RELENG_5_1_BP:1.1.1.10
	RELENG_4_8_0_RELEASE:1.1.1.4.2.5
	RELENG_4_8:1.1.1.4.2.5.0.2
	RELENG_4_8_BP:1.1.1.4.2.5
	RELENG_5_0_0_RELEASE:1.1.1.10
	RELENG_5_0:1.1.1.10.0.2
	RELENG_5_0_BP:1.1.1.10
	v_0_5_1:1.1.1.10
	RELENG_4_7_0_RELEASE:1.1.1.4.2.4
	RELENG_4_7:1.1.1.4.2.4.0.2
	RELENG_4_7_BP:1.1.1.4.2.4
	cvs_20020916:1.1.1.9
	cvs_20020829:1.1.1.8
	RELENG_4_6_2_RELEASE:1.1.1.4.2.2
	RELENG_4_6_1_RELEASE:1.1.1.4.2.2
	RELENG_4_6_0_RELEASE:1.1.1.4.2.2
	RELENG_4_6:1.1.1.4.2.2.0.2
	RELENG_4_6_BP:1.1.1.4.2.2
	cvs_20020217:1.1.1.7
	RELENG_4_5_0_RELEASE:1.1.1.4.2.1
	RELENG_4_5:1.1.1.4.2.1.0.6
	RELENG_4_5_BP:1.1.1.4.2.1
	RELENG_4_4_0_RELEASE:1.1.1.4.2.1
	RELENG_4_4:1.1.1.4.2.1.0.4
	RELENG_4_4_BP:1.1.1.4.2.1
	v_0_3_f:1.1.1.6
	RELENG_4_3_0_RELEASE:1.1.1.4.2.1
	RELENG_4_3:1.1.1.4.2.1.0.2
	RELENG_4_3_BP:1.1.1.4.2.1
	v_0_3_e:1.1.1.5
	RELENG_4_2_0_RELEASE:1.1.1.4
	RELENG_4_1_1_RELEASE:1.1.1.4
	PRE_SMPNG:1.1.1.4
	RELENG_4_1_0_RELEASE:1.1.1.4
	RELENG_4_0_0_RELEASE:1.1.1.4
	RELENG_4:1.1.1.4.0.2
	RELENG_4_BP:1.1.1.4
	v_0_2_p:1.1.1.4
	v_0_2_o:1.1.1.3
	v_0_2_n:1.1.1.2
	v_0_2_m:1.1.1.1
	KTH:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2012.04.08.08.19.17;	author stas;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2012.03.22.08.48.42;	author stas;	state Exp;
branches;
next	1.1;

1.1
date	2000.01.09.20.57.25;	author markm;	state Exp;
branches
	1.1.1.1;
next	;

1.3.2.1
date	2012.04.08.08.19.17;	author svnexp;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2013.03.28.13.02.14;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	2000.01.09.20.57.25;	author markm;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2000.02.24.11.00.23;	author markm;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2000.02.24.11.12.35;	author markm;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2000.02.24.11.22.13;	author markm;	state Exp;
branches
	1.1.1.4.2.1;
next	1.1.1.5;

1.1.1.5
date	2001.02.13.16.44.13;	author assar;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2001.06.21.02.09.33;	author assar;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2002.02.19.15.45.50;	author nectar;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2002.08.30.21.22.43;	author nectar;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2002.09.16.21.04.19;	author nectar;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2002.11.24.20.55.56;	author nectar;	state Exp;
branches;
next	1.1.1.11;

1.1.1.11
date	2003.10.09.19.36.19;	author nectar;	state Exp;
branches;
next	1.1.1.12;

1.1.1.12
date	2004.04.03.21.19.20;	author nectar;	state Exp;
branches
	1.1.1.12.2.1;
next	1.1.1.13;

1.1.1.13
date	2005.02.24.22.19.18;	author nectar;	state Exp;
branches;
next	1.1.1.14;

1.1.1.14
date	2008.05.07.13.39.08;	author dfr;	state Exp;
branches;
next	;

1.1.1.4.2.1
date	2001.03.04.13.28.57;	author markm;	state Exp;
branches;
next	1.1.1.4.2.2;

1.1.1.4.2.2
date	2002.04.30.14.48.03;	author nectar;	state Exp;
branches;
next	1.1.1.4.2.3;

1.1.1.4.2.3
date	2002.09.01.04.20.44;	author nectar;	state Exp;
branches;
next	1.1.1.4.2.4;

1.1.1.4.2.4
date	2002.09.20.10.49.57;	author nectar;	state Exp;
branches;
next	1.1.1.4.2.5;

1.1.1.4.2.5
date	2002.12.01.17.44.43;	author nectar;	state Exp;
branches;
next	;

1.1.1.12.2.1
date	2005.03.01.16.42.01;	author nectar;	state Exp;
branches;
next	;


desc
@@


1.3
log
@SVN rev 234027 on 2012-04-08 08:19:17Z by stas

- Update FreeBSD's Heimdal distribution to 1.5.2.  This is a bugfix
  release, which fixes a DoS issue in libkrb5.
@
text
@#! /bin/sh
# From configure.ac Revision.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for Heimdal 1.5.2.
#
# Report bugs to <heimdal-bugs@@h5l.org>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@@\"}'='\"\$@@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1

  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    PATH=/empty FPATH=/empty; export PATH FPATH
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: heimdal-bugs@@h5l.org about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"

SHELL=${CONFIG_SHELL-/bin/sh}


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='Heimdal'
PACKAGE_TARNAME='heimdal'
PACKAGE_VERSION='1.5.2'
PACKAGE_STRING='Heimdal 1.5.2'
PACKAGE_BUGREPORT='heimdal-bugs@@h5l.org'
PACKAGE_URL=''

ac_unique_file="kuser/kinit.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_default_prefix=/usr/heimdal
ac_header_list=
enable_option_checking=no
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
HEIMDAL_DOCUMENTATION_FALSE
HEIMDAL_DOCUMENTATION_TRUE
LIB_AUTH_SUBDIRS
LIB_com_err_so
LIB_com_err_a
LIB_com_err
DIR_com_err
COM_ERR_FALSE
COM_ERR_TRUE
COMPILE_ET
LIBEDIT_FALSE
LIBEDIT_TRUE
FRAMEWORK_SECURITY_FALSE
FRAMEWORK_SECURITY_TRUE
KCM_FALSE
KCM_TRUE
LIB_door_create
LIB_getpwnam_r
LIB_tgetent
LIB_openpty
LIB_logout
LIB_logwtmp
NEED_WRITEAUTH_FALSE
NEED_WRITEAUTH_TRUE
LIB_XauFileName
LIB_XauReadAuth
LIB_XauWriteAuth
HAVE_X_FALSE
HAVE_X_TRUE
X_EXTRA_LIBS
X_LIBS
X_PRE_LIBS
X_CFLAGS
XMKMF
LIB_hesiod
INCLUDE_hesiod
subdirs
LIB_libedit
INCLUDE_libedit
LIB_readline
INCLUDE_readline
CATMANEXT
CATMAN_FALSE
CATMAN_TRUE
CATMAN
GROFF
NROFF
LIB_security
have_gcd_FALSE
have_gcd_TRUE
LIB_dispatch_async_f
OTP_FALSE
OTP_TRUE
LIB_otp
LIBADD_roken
INCLUDES_roken
LIB_roken
DIR_roken
have_socket_wrapper_FALSE
have_socket_wrapper_TRUE
LIB_crypt
have_fnmatch_h_FALSE
have_fnmatch_h_TRUE
LIB_gai_strerror
LIB_freeaddrinfo
LIB_getnameinfo
LIB_getaddrinfo
LIB_pidfile
LIB_bswap32
LIB_bswap16
LIB_hstrerror
LIB_setsockopt
LIB_getsockopt
have_cgetent_FALSE
have_cgetent_TRUE
have_glob_h_FALSE
have_glob_h_TRUE
LIBOBJS
LIB_dn_expand
LIB_dns_search
LIB_res_ndestroy
LIB_res_nsearch
LIB_res_search
LIB_gethostbyname2
LIB_syslog
LIB_gethostbyname
LIB_socket
have_vis_h_FALSE
have_vis_h_TRUE
have_search_h_FALSE
have_search_h_TRUE
have_ifaddrs_h_FALSE
have_ifaddrs_h_TRUE
have_err_h_FALSE
have_err_h_TRUE
WFLAGS_NOIMPLICITINT
WFLAGS_NOUNUSED
WFLAGS
LIB_NDBM
DBLIB
HAVE_DBHEADER_FALSE
HAVE_DBHEADER_TRUE
HAVE_NDBM_FALSE
HAVE_NDBM_TRUE
HAVE_DB3_FALSE
HAVE_DB3_TRUE
HAVE_DB1_FALSE
HAVE_DB1_TRUE
LIB_dbm_firstkey
LIB_dbopen
LIB_db_create
DBHEADER
NO_AFS
dpagaix_ldflags
dpagaix_ldadd
dpagaix_cflags
DCE_FALSE
DCE_TRUE
PTHREAD_LIBADD
PTHREAD_LDADD
PTHREAD_CFLAGS
LIB_hcrypto_appl
LIB_hcrypto_so
LIB_hcrypto_a
LIB_hcrypto
INCLUDE_hcrypto
DIR_hcrypto
HAVE_OPENSSL_FALSE
HAVE_OPENSSL_TRUE
LIB_kdb
do_roken_rename_FALSE
do_roken_rename_TRUE
KRB5_FALSE
KRB5_TRUE
KRB4_FALSE
KRB4_TRUE
LIB_krb4
INCLUDE_krb4
DIR_hdbdir
LIB_libintl
INCLUDE_libintl
have_scc_FALSE
have_scc_TRUE
SQLITE3_FALSE
SQLITE3_TRUE
LIB_sqlite3
INCLUDE_sqlite3
HAVE_CAPNG_FALSE
HAVE_CAPNG_TRUE
CAPNG_LIBS
CAPNG_CFLAGS
PKG_CONFIG
PKINIT_FALSE
PKINIT_TRUE
OPENLDAP_MODULE_FALSE
OPENLDAP_MODULE_TRUE
LIB_openldap
INCLUDE_openldap
SLC_DEP
SLC
ASN1_COMPILE_DEP
ASN1_COMPILE
CROSS_COMPILE_FALSE
CROSS_COMPILE_TRUE
LDFLAGS_VERSION_SCRIPT
versionscript_FALSE
versionscript_TRUE
VERSIONING
ENABLE_SHARED_FALSE
ENABLE_SHARED_TRUE
LEXLIB
LEX_OUTPUT_ROOT
LEX
YFLAGS
YACC
IRIX_FALSE
IRIX_TRUE
AIX_EXTRA_KAFS
AIX_DYNAMIC_AFS_FALSE
AIX_DYNAMIC_AFS_TRUE
LIB_loadquery
HAVE_DLOPEN_FALSE
HAVE_DLOPEN_TRUE
LIB_dlopen
AIX4_FALSE
AIX4_TRUE
AIX_FALSE
AIX_TRUE
CANONICAL_HOST
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
MANIFEST_TOOL
RANLIB
ac_ct_AR
AR
DLLTOOL
OBJDUMP
LN_S
NM
ac_ct_DUMPBIN
DUMPBIN
LD
FGREP
EGREP
GREP
SED
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
LIBTOOL
CPP
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_maintainer_mode
enable_dependency_tracking
enable_shared
enable_static
with_pic
enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
enable_largefile
enable_dynamic_afs
with_mips_abi
with_cross_tools
with_openldap
with_openldap_lib
with_openldap_include
with_openldap_config
enable_hdb_openldap_module
enable_pk_init
enable_digest
enable_kx509
with_capng
with_sqlite3
with_sqlite3_lib
with_sqlite3_include
with_sqlite3_config
enable_sqlite_cache
with_libintl
with_libintl_lib
with_libintl_include
with_libintl_config
with_hdbdir
with_openssl
with_openssl_lib
with_openssl_include
enable_pthread_support
enable_dce
enable_afs_support
with_berkeley_db
with_berkeley_db_include
enable_ndbm_db
enable_developer
with_ipv6
enable_socket_wrapper
enable_otp
enable_osfc2
enable_mmap
enable_afs_string_to_key
with_readline
with_readline_lib
with_readline_include
with_readline_config
with_libedit
with_libedit_lib
with_libedit_include
with_libedit_config
with_hesiod
with_hesiod_lib
with_hesiod_include
with_hesiod_config
enable_bigendian
enable_littleendian
with_x
enable_kcm
enable_heimdal_documentation
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
YACC
YFLAGS
PKG_CONFIG
CAPNG_CFLAGS
CAPNG_LIBS
XMKMF'
ac_subdirs_all='lib/libedit'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information."
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures Heimdal 1.5.2 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/heimdal]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of Heimdal 1.5.2:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-maintainer-mode  enable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-largefile     omit support for large files
  --disable-dynamic-afs   do not use loaded AFS library with AIX
  --enable-hdb-openldap-module
                          if you want support to build openldap hdb as shared
                          object
  --disable-pk-init       if you want disable to PK-INIT support
  --disable-digest        if you want disable to DIGEST support
  --disable-kx509         if you want disable to kx509 support
  --disable-sqlite-cache  if you want support for cache in sqlite
  --enable-pthread-support
                          if you want thread safe libraries
  --enable-dce            if you want support for DCE/DFS PAG's
  --disable-afs-support   if you don't want support for AFS
  --disable-ndbm-db       if you don't want ndbm db
  --enable-developer      enable developer warnings
  --enable-socket-wrapper use sambas socket-wrapper for testing
  --disable-otp           if you don't want OTP support
  --enable-osfc2          enable some OSF C2 support
  --disable-mmap          disable use of mmap
  --disable-afs-string-to-key
                          disable use of weak AFS string-to-key functions
  --enable-bigendian      the target is big endian
  --enable-littleendian   the target is little endian
  --enable-kcm            enable Kerberos Credentials Manager
  --disable-heimdal-documentation
                          if you want disable to heimdal documentation

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
  --with-cross-tools=dir  use cross tools in dir
  --with-openldap=dir     use openldap in dir
  --with-openldap-lib=dir use openldap libraries in dir
  --with-openldap-include=dir
                          use openldap headers in dir
  --with-openldap-config=path
                          config program for openldap
  --with-capng            use libcap-ng to drop KDC privileges [default=check]
  --with-sqlite3=dir      use sqlite3 in dir
  --with-sqlite3-lib=dir  use sqlite3 libraries in dir
  --with-sqlite3-include=dir
                          use sqlite3 headers in dir
  --with-sqlite3-config=path
                          config program for sqlite3
  --with-libintl=dir      use libintl in dir
  --with-libintl-lib=dir  use libintl libraries in dir
  --with-libintl-include=dir
                          use libintl headers in dir
  --with-libintl-config=path
                          config program for libintl
  --with-hdbdir           Default location for KDC database
                          [default=/var/heimdal]
  --with-openssl=dir      use openssl in dir
  --with-openssl-lib=dir  use openssl libraries in dir
  --with-openssl-include=dir
                          use openssl headers in dir
  --with-berkeley-db      enable support for berkeley db [default=check]
  --with-berkeley-db-include=dir
                          use berkeley-db headers in dir
  --without-ipv6          do not enable IPv6 support
  --with-readline=dir     use readline in dir
  --with-readline-lib=dir use readline libraries in dir
  --with-readline-include=dir
                          use readline headers in dir
  --with-readline-config=path
                          config program for readline
  --with-libedit=dir      use libedit in dir
  --with-libedit-lib=dir  use libedit libraries in dir
  --with-libedit-include=dir
                          use libedit headers in dir
  --with-libedit-config=path
                          config program for libedit
  --with-hesiod=dir       use hesiod in dir
  --with-hesiod-lib=dir   use hesiod libraries in dir
  --with-hesiod-include=dir
                          use hesiod headers in dir
  --with-hesiod-config=path
                          config program for hesiod
  --with-x                use the X Window System

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
              the first program found out of: `bison -y', `byacc', `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.
  PKG_CONFIG  path to pkg-config utility
  CAPNG_CFLAGS
              C compiler flags for CAPNG, overriding pkg-config
  CAPNG_LIBS  linker flags for CAPNG, overriding pkg-config
  XMKMF       Path to xmkmf, Makefile generator for X Window System

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <heimdal-bugs@@h5l.org>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
Heimdal configure 1.5.2
generated by GNU Autoconf 2.65

Copyright (C) 2009 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_compile

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_func

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_mongrel

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_type

# ac_fn_c_check_header_preproc LINENO HEADER VAR
# ----------------------------------------------
# Tests whether HEADER is present, setting the cache variable VAR accordingly.
ac_fn_c_check_header_preproc ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_preproc
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Heimdal $as_me 1.5.2, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ $0 $@@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

as_fn_append ac_header_list " stdlib.h"
as_fn_append ac_header_list " unistd.h"
as_fn_append ac_header_list " sys/param.h"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_config_headers="$ac_config_headers include/config.h"



am__api_version='1.11'

ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  for ac_t in install-sh install.sh shtool; do
    if test -f "$ac_dir/$ac_t"; then
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/$ac_t -c"
      break 2
    fi
  done
done
if test -z "$ac_aux_dir"; then
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t "$srcdir/configure" conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  test -d ./--version && rmdir ./--version
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='heimdal'
 VERSION='1.5.2'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
    # Check whether --enable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then :
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
else
  USE_MAINTAINER_MODE=no
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
$as_echo "$USE_MAINTAINER_MODE" >&6; }
   if test $USE_MAINTAINER_MODE = yes; then
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
fi

  MAINT=$MAINTAINER_MODE_TRUE



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of object files: cannot compile
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi



depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if test "${ac_cv_build+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if test "${ac_cv_host+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if test "${ac_cv_path_FGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"


test -z "$GREP" && GREP=grep



















# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if test "${lt_cv_path_NM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi

    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi

  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if test "${lt_cv_nm_interface+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if test "${lt_cv_to_host_file_cmd+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac

fi

to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
esac

fi

to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if test "${lt_cv_ld_reload_flag+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if test "${lt_cv_deplibs_check_method+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown






















if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

test -z "$DLLTOOL" && DLLTOOL=dlltool










{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sharedlib_from_linklib_cmd='unknown'

case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
  ;;
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO








if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}
: ${AR_FLAGS=cru}











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if test "${lt_cv_ar_at_file+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }

if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
else
  archiver_list_spec=$lt_cv_ar_at_file
fi







if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac







































# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF

  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif

#ifdef __cplusplus
extern "C" {
#endif

_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'

	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
fi



























{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }

# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
else
  with_sysroot=no
fi


lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
   ;;
esac

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }





# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if test "${lt_cv_cc_needs_belf+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac

need_locks="$enable_libtool_lock"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  fi
else
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
fi

test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if test "${lt_cv_path_mainfest_tool+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
fi






  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LIPO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
else
  lt_cv_ld_exported_symbols_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if test "${lt_cv_ld_force_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done





# Set options



        enable_dlopen=no


  enable_win32_dll=no


            # Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=yes
fi









  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=yes
fi










# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi











# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'


























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if test "${lt_cv_objdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF




case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

# Use C for the default configuration in the libtool script

lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'







# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  case $cc_basename in
  nvcc*)
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  *)
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  esac

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi






  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=


  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static=
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac

    case $cc_basename in
    nvcc*) # Cuda Compiler Driver 2.2
      lt_prog_compiler_wl='-Xlinker '
      lt_prog_compiler_pic='-Xcompiler -fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      nagfor*)
	# NAG Fortran compiler
	lt_prog_compiler_wl='-Wl,-Wl,,'
	lt_prog_compiler_pic='-PIC'
	lt_prog_compiler_static='-Bstatic'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl* | bgxl* | bgf* | mpixl*)
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if test "${lt_cv_prog_compiler_pic+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi











#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes

  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac
  fi

  if test "$lt_use_gnu_ld_interface" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *GNU\ gold*) supports_anon_versioning=yes ;;
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.19, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to install binutils
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      export_dynamic_flag_spec='${wl}--export-all-symbols'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    haiku*)
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      link_all_deplibs=yes
      ;;

    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=' $pic_flag'
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)
					# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	nvcc*)	# Cuda Compiler Driver 2.2
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf* | bgf* | bgxlf* | mpixlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if test "${lt_cv_aix_libpath_+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if test "${lt_cv_aix_libpath_+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  if test "$with_gnu_ld" = yes; then
	    # We only use this code for GNU lds that support --whole-archive.
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	  else
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec='$convenience'
	  fi
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      case $cc_basename in
      cl*)
	# Native MSVC
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	always_export_symbols=yes
	file_list_spec='@@'
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	  else
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	  fi~
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	  linknames='
	# The linker will not automatically build a static lib if we build a DLL.
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
	enable_shared_with_static_runtimes=yes
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
	# Don't use ranlib
	old_postinstall_cmds='chmod 644 $oldlib'
	postlink_cmds='lt_outputfile="@@OUTPUT@@"~
	  lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	  case $lt_outputfile in
	    *.exe|*.EXE) ;;
	    *)
	      lt_outputfile="$lt_outputfile.exe"
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
	      ;;
	  esac~
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	    $RM "$lt_outputfile.manifest";
	  fi'
	;;
      *)
	# Assume MSVC wrapper
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
	# The linker will automatically build a .lib file if we build a DLL.
	old_archive_from_new_cmds='true'
	# FIXME: Should let the user specify the lib program.
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
	enable_shared_with_static_runtimes=yes
	;;
      esac
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec=''
  fi
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  fi

      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)

	  # Older versions of the 11.00 compiler do not understand -b yet
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
$as_echo_n "checking if $CC understands -b... " >&6; }
if test "${lt_cv_prog_compiler__b+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler__b=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -b"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler__b=yes
       fi
     else
       lt_cv_prog_compiler__b=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
$as_echo "$lt_cv_prog_compiler__b" >&6; }

if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
else
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
fi

	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
	# This should be the same for all languages, so no per-tag cache variable.
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if test "${lt_cv_irix_exported_symbol+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  save_LDFLAGS="$LDFLAGS"
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (void) { return 0; }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_irix_exported_symbol=yes
else
  lt_cv_irix_exported_symbol=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
           LDFLAGS="$save_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
	if test "$lt_cv_irix_exported_symbol" = yes; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
	fi
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl
	  pic_flag=$lt_prog_compiler_pic
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag
	  allow_undefined_flag=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc=no
	  else
	    lt_cv_archive_cmds_need_lc=yes
	  fi
	  allow_undefined_flag=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  case $host_os in
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  case $lt_search_path_spec in
  *\;*)
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    ;;
  *)
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    ;;
  esac
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  # AWK program above erroneously prepends '/' to C:/dos/paths
  # for these hosts.
  case $host_os in
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  esac
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:





test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'


CANONICAL_HOST=$host


# Check whether --enable-largefile was given.
if test "${enable_largefile+set}" = set; then :
  enableval=$enable_largefile;
fi

if test "$enable_largefile" != no; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
	 # IRIX 6.2 and later do not support large files by default,
	 # so use the C compiler's -n32 option if that helps.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
	 if ac_fn_c_try_compile "$LINENO"; then :
  break
fi
rm -f core conftest.err conftest.$ac_objext
	 CC="$CC -n32"
	 if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_largefile_CC=' -n32'; break
fi
rm -f core conftest.err conftest.$ac_objext
	 break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  while :; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_file_offset_bits=no; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_file_offset_bits=64; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_file_offset_bits=unknown
  break
done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
case $ac_cv_sys_file_offset_bits in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
_ACEOF
;;
esac
rm -rf conftest*
  if test $ac_cv_sys_file_offset_bits = unknown; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
if test "${ac_cv_sys_large_files+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  while :; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_large_files=no; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_large_files=1; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_large_files=unknown
  break
done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
$as_echo "$ac_cv_sys_large_files" >&6; }
case $ac_cv_sys_large_files in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF
;;
esac
rm -rf conftest*
  fi
fi


if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
fi
if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
	CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
$as_echo_n "checking for dlopen... " >&6; }
if test "${ac_cv_funclib_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" dl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
int
main ()
{
dlopen(0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dlopen"

if false; then
	for ac_func in dlopen
do :
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLOPEN 1
_ACEOF

fi
done

fi
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dlopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dlopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


	 if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
fi




aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix[4-9]*)
	aix=4
	;;
esac

 if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
else
  AIX_TRUE='#'
  AIX_FALSE=
fi
 if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
else
  AIX4_TRUE='#'
  AIX4_FALSE=
fi

# Check whether --enable-dynamic-afs was given.
if test "${enable_dynamic_afs+set}" = set; then :
  enableval=$enable_dynamic_afs;
fi


if test "$aix" != no; then


$as_echo "#define NEED_QSORT 1" >>confdefs.h


	if test "$enable_dynamic_afs" != no; then

		if test "$ac_cv_func_dlopen" = no; then



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for loadquery" >&5
$as_echo_n "checking for loadquery... " >&6; }
if test "${ac_cv_funclib_loadquery+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ld; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
loadquery()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_loadquery"

if false; then
	for ac_func in loadquery
do :
  ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
if test "x$ac_cv_func_loadquery" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOADQUERY 1
_ACEOF

fi
done

fi
# loadquery
eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_loadquery=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_loadquery=yes"
	eval "LIB_loadquery="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_loadquery=no"
	eval "LIB_loadquery="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_loadquery=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


		fi
		if test "$ac_cv_func_dlopen" != no; then
			AIX_EXTRA_KAFS='$(LIB_dlopen)'
		elif test "$ac_cv_func_loadquery" != no; then
			AIX_EXTRA_KAFS='$(LIB_loadquery)'
		else
			{ $as_echo "$as_me:${as_lineno-$LINENO}: not using dynloaded AFS library" >&5
$as_echo "$as_me: not using dynloaded AFS library" >&6;}
			AIX_EXTRA_KAFS=
			enable_dynamic_afs=no
		fi
	else
		AIX_EXTRA_KAFS=
	fi
fi

 if test "$enable_dynamic_afs" != no; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi

if test "$aix" != no; then

$as_echo "#define _ALL_SOURCE 1" >>confdefs.h

fi





irix=no
case "$host" in
*-*-irix*)
	irix=yes
	;;
esac
 if test "$irix" != no; then
  IRIX_TRUE=
  IRIX_FALSE='#'
else
  IRIX_TRUE='#'
  IRIX_FALSE=
fi



sunos=no
case "$host" in
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2.[89] | *-*-solaris2.1[0-9])
	sunos=58
	;;
*-*-solaris2*)
	sunos=50
	;;
esac
if test "$sunos" != no; then

cat >>confdefs.h <<_ACEOF
#define SunOS $sunos
_ACEOF

fi



$as_echo "#define _GNU_SOURCE 1" >>confdefs.h





for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_YACC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"

for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LEX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
$as_echo "$LEX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"

if test "x$LEX" != "x:"; then
  cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
c { yymore (); }
d { yyless (1); }
e { yyless (input () != 0); }
f { unput (yytext[0]); }
. { BEGIN INITIAL; }
%%
#ifdef YYTEXT_POINTER
extern char *yytext;
#endif
int
main (void)
{
  return ! yylex () + ! yywrap ();
}
_ACEOF
{ { ac_try="$LEX conftest.l"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$LEX conftest.l") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
$as_echo_n "checking lex output file root... " >&6; }
if test "${ac_cv_prog_lex_root+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
$as_echo "$ac_cv_prog_lex_root" >&6; }
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

if test -z "${LEXLIB+set}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
$as_echo_n "checking lex library... " >&6; }
if test "${ac_cv_lib_lex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    ac_save_LIBS=$LIBS
    ac_cv_lib_lex='none needed'
    for ac_lib in '' -lfl -ll; do
      LIBS="$ac_lib $ac_save_LIBS"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lex=$ac_lib
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      test "$ac_cv_lib_lex" != 'none needed' && break
    done
    LIBS=$ac_save_LIBS

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
$as_echo "$ac_cv_lib_lex" >&6; }
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
$as_echo_n "checking whether yytext is a pointer... " >&6; }
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent.  Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
ac_save_LIBS=$LIBS
LIBS="$LEXLIB $ac_save_LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define YYTEXT_POINTER 1
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_prog_lex_yytext_pointer=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
if test $ac_cv_prog_lex_yytext_pointer = yes; then

$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h

fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c

fi
if test "$LEX" = :; then
  LEX=${am_missing_run}flex
fi
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln -s or something else" >&5
$as_echo_n "checking for ln -s or something else... " >&6; }
if test "${ac_cv_prog_LN_S+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  touch conftestdata1
  if ln conftestdata1 conftestdata2; then
    rm -f conftestdata*
    ac_cv_prog_LN_S=ln
  else
    ac_cv_prog_LN_S=cp
  fi
fi
fi
LN_S="$ac_cv_prog_LN_S"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_LN_S" >&5
$as_echo "$ac_cv_prog_LN_S" >&6; }




# Check whether --with-mips_abi was given.
if test "${with_mips_abi+set}" = set; then :
  withval=$with_mips_abi;
fi


case "$host_os" in
irix*)
with_mips_abi="${with_mips_abi:-yes}"
if test -n "$GCC"; then

# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
#
# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
# GCC and revert back to O32. The same goes if O32 is asked for - old
# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
#
# Don't you just love *all* the different SGI ABIs?

case "${with_mips_abi}" in
        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
        64) abi='-mabi=64';  abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
esac
if test -n "$abi" ; then
ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the $abi option" >&5
$as_echo_n "checking if $CC supports the $abi option... " >&6; }
if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $abi"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval $ac_foo=yes
else
  eval $ac_foo=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"

fi

ac_res=`eval echo \\\$$ac_foo`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if test $ac_res = no; then
# Try to figure out why that failed...
case $abi in
	-mabi=32)
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS -mabi=n32"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_res=yes
else
  ac_res=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext	CLAGS="$save_CFLAGS"
	if test $ac_res = yes; then
		# New GCC
		as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
	fi
	# Old GCC
	abi=''
	abilibdirext=''
	;;
	-mabi=n32|-mabi=64)
		if test $with_mips_abi = yes; then
			# Old GCC, default to O32
			abi=''
			abilibdirext=''
		else
			# Some broken GCC
			as_fn_error "$CC does not support the $with_mips_abi ABI" "$LINENO" 5
		fi
	;;
esac
fi #if test $ac_res = no; then
fi #if test -n "$abi" ; then
else
case "${with_mips_abi}" in
        32|o32) abi='-32'; abilibdirext=''     ;;
       n32|yes) abi='-n32'; abilibdirext='32'  ;;
        64) abi='-64'; abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) as_fn_error "\"Invalid ABI specified\"" "$LINENO" 5 ;;
esac
fi #if test -n "$GCC"; then
;;
esac

CC="$CC $abi"
libdir="$libdir$abilibdirext"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
$as_echo_n "checking for __attribute__... " >&6; }
if test "${ac_cv___attribute__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
static void foo(void) __attribute__ ((noreturn));

static void
foo(void)
{
  exit(1);
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv___attribute__=yes
else
  ac_cv___attribute__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

if test "$ac_cv___attribute__" = "yes"; then

$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
$as_echo "$ac_cv___attribute__" >&6; }





 if test "$enable_shared" = "yes"; then
  ENABLE_SHARED_TRUE=
  ENABLE_SHARED_FALSE='#'
else
  ENABLE_SHARED_TRUE='#'
  ENABLE_SHARED_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
$as_echo_n "checking for ld --version-script... " >&6; }
if test "${rk_cv_version_script+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  rk_cv_version_script=no

  cat > conftest.map <<EOF
HEIM_GSS_V1 {
        global: gss*;
};
HEIM_GSS_V1_1 {
        global: gss_init_creds;
} HEIM_GSS_V1;
EOF
cat > conftest.c <<EOF
int gss_init_creds(int foo) { return 0; }
EOF

  if { ac_try='${CC-cc} -c $CFLAGS -fPIC conftest.c'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }  &&
     { ac_try='${CC-cc} -shared -Wl,--version-script,conftest.map $CFLAGS $LDFLAGS -o libconftestlib.so conftest.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; };
  then
    rk_cv_version_script=yes
  fi
rm -rf conftest* libconftest* .libs

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_version_script" >&5
$as_echo "$rk_cv_version_script" >&6; }

if test $rk_cv_version_script = yes ; then
  doversioning=yes
  LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
else
  doversioning=no
  LDFLAGS_VERSION_SCRIPT=
fi


 if test $doversioning = yes; then
  versionscript_TRUE=
  versionscript_FALSE='#'
else
  versionscript_TRUE='#'
  versionscript_FALSE=
fi








 if test "${cross_compiling}" = yes; then
  CROSS_COMPILE_TRUE=
  CROSS_COMPILE_FALSE='#'
else
  CROSS_COMPILE_TRUE='#'
  CROSS_COMPILE_FALSE=
fi



# Check whether --with-cross-tools was given.
if test "${with_cross_tools+set}" = set; then :
  withval=$with_cross_tools; if test "$withval" = "yes"; then
		as_fn_error "Need path to cross tools" "$LINENO" 5
	fi
	with_cross_tools="${with_cross_tools}/"

fi


if test "${cross_compiling}" != yes ; then

   ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)"
   SLC="\$(top_builddir)/lib/sl/slc"

   ASN1_COMPILE_DEP="\$(ASN1_COMPILE)"
   SLC_DEP="\$(SLC)"
else
   ASN1_COMPILE="${with_cross_tools}asn1_compile"
   SLC="${with_cross_tools}slc"

   ASN1_COMPILE_DEP=
   SLC_DEP=

   ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et

fi









$as_echo "#define HEIM_WEAK_CRYPTO 1" >>confdefs.h




# Check whether --with-openldap was given.
if test "${with_openldap+set}" = set; then :
  withval=$with_openldap;
fi


# Check whether --with-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then :
  withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-openldap-lib" "$LINENO" 5
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi


# Check whether --with-openldap-include was given.
if test "${with_openldap_include+set}" = set; then :
  withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-openldap-include" "$LINENO" 5
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi


# Check whether --with-openldap-config was given.
if test "${with_openldap_config+set}" = set; then :
  withval=$with_openldap_config;
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openldap" >&5
$as_echo_n "checking for openldap... " >&6; }

case "$with_openldap" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_openldap" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_openldap_include" = ""; then
		if test -d "$i/include/openldap"; then
			header_dirs="$header_dirs $i/include/openldap"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_openldap_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_openldap_include"; then
	header_dirs="$with_openldap_include $header_dirs"
fi
if test "$with_openldap_lib"; then
	lib_dirs="$with_openldap_lib $lib_dirs"
fi

if test "$with_openldap_config" = ""; then
	with_openldap_config=''
fi

openldap_cflags=
openldap_libs=

case "$with_openldap_config" in
yes|no|""|"")
	if test -f $with_openldap/bin/ ; then
		with_openldap_config=$with_openldap/bin/
	fi
	;;
esac

case "$with_openldap_config" in
yes|no|"")
	;;
*)
	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
	openldap_libs="`$with_openldap_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_openldap" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$openldap_cflags" -a "$openldap_libs"; then
		CFLAGS="$openldap_cflags $save_CFLAGS"
		LIBS="$openldap_libs $save_LIBS"

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

			INCLUDE_openldap="$openldap_cflags"
			LIB_openldap="$openldap_libs"
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_openldap_config" >&5
$as_echo "from $with_openldap_config" >&6; }
			found=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"

			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ires=$i;break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lldap -llber  $save_LIBS"
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lres=$i;break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
			INCLUDE_openldap="-I$ires"
			LIB_openldap="-L$lres -lldap -llber "
			found=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
$as_echo "headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define OPENLDAP 1
_ACEOF

	with_openldap=yes
else
	with_openldap=no
	INCLUDE_openldap=
	LIB_openldap=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





# Check whether --enable-hdb-openldap-module was given.
if test "${enable_hdb_openldap_module+set}" = set; then :
  enableval=$enable_hdb_openldap_module;
fi

if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then

$as_echo "#define OPENLDAP_MODULE 1" >>confdefs.h

fi
 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
  OPENLDAP_MODULE_TRUE=
  OPENLDAP_MODULE_FALSE='#'
else
  OPENLDAP_MODULE_TRUE='#'
  OPENLDAP_MODULE_FALSE=
fi



# Check whether --enable-pk-init was given.
if test "${enable_pk_init+set}" = set; then :
  enableval=$enable_pk_init;
fi

if test "$enable_pk_init" != no ;then

$as_echo "#define PKINIT 1" >>confdefs.h

fi
 if test "$enable_pk_init" != no; then
  PKINIT_TRUE=
  PKINIT_FALSE='#'
else
  PKINIT_TRUE='#'
  PKINIT_FALSE=
fi


# Check whether --enable-digest was given.
if test "${enable_digest+set}" = set; then :
  enableval=$enable_digest;
fi

if test "$enable_digest" != no ;then

$as_echo "#define DIGEST 1" >>confdefs.h

fi

# Check whether --enable-kx509 was given.
if test "${enable_kx509+set}" = set; then :
  enableval=$enable_kx509;
fi

if test "$enable_kx509" != no ;then

$as_echo "#define KX509 1" >>confdefs.h

fi



if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

fi
if test -n "$PKG_CONFIG"; then
	_pkg_min_version=0.9.0
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		PKG_CONFIG=""
	fi

fi


# Check whether --with-capng was given.
if test "${with_capng+set}" = set; then :
  withval=$with_capng;
else
  with_capng=check
fi

if test "$with_capng" != "no"; then

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5
$as_echo_n "checking for CAPNG... " >&6; }

if test -n "$PKG_CONFIG"; then
    if test -n "$CAPNG_CFLAGS"; then
        pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng >= 0.4.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
    if test -n "$CAPNG_LIBS"; then
        pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng >= 0.4.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libcap-ng >= 0.4.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng >= 0.4.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
        else
	        CAPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcap-ng >= 0.4.0"`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$CAPNG_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                with_capng=no
elif test $pkg_failed = untried; then
	with_capng=no
else
	CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
	CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	with_capng=yes
fi
fi
if test "$with_capng" = "yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_CAPNG 1
_ACEOF

fi
 if test "$with_capng" != "no"; then
  HAVE_CAPNG_TRUE=
  HAVE_CAPNG_FALSE='#'
else
  HAVE_CAPNG_TRUE='#'
  HAVE_CAPNG_FALSE=
fi






# Check whether --with-sqlite3 was given.
if test "${with_sqlite3+set}" = set; then :
  withval=$with_sqlite3;
fi


# Check whether --with-sqlite3-lib was given.
if test "${with_sqlite3_lib+set}" = set; then :
  withval=$with_sqlite3_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-sqlite3-lib" "$LINENO" 5
elif test "X$with_sqlite3" = "X"; then
  with_sqlite3=yes
fi
fi


# Check whether --with-sqlite3-include was given.
if test "${with_sqlite3_include+set}" = set; then :
  withval=$with_sqlite3_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-sqlite3-include" "$LINENO" 5
elif test "X$with_sqlite3" = "X"; then
  with_sqlite3=yes
fi
fi


# Check whether --with-sqlite3-config was given.
if test "${with_sqlite3_config+set}" = set; then :
  withval=$with_sqlite3_config;
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
$as_echo_n "checking for sqlite3... " >&6; }

case "$with_sqlite3" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_sqlite3" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_sqlite3_include" = ""; then
		if test -d "$i/include/sqlite3"; then
			header_dirs="$header_dirs $i/include/sqlite3"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_sqlite3_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_sqlite3_include"; then
	header_dirs="$with_sqlite3_include $header_dirs"
fi
if test "$with_sqlite3_lib"; then
	lib_dirs="$with_sqlite3_lib $lib_dirs"
fi

if test "$with_sqlite3_config" = ""; then
	with_sqlite3_config=''
fi

sqlite3_cflags=
sqlite3_libs=

case "$with_sqlite3_config" in
yes|no|""|"")
	if test -f $with_sqlite3/bin/ ; then
		with_sqlite3_config=$with_sqlite3/bin/
	fi
	;;
esac

case "$with_sqlite3_config" in
yes|no|"")
	;;
*)
	sqlite3_cflags="`$with_sqlite3_config --cflags 2>&1`"
	sqlite3_libs="`$with_sqlite3_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_sqlite3" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$sqlite3_cflags" -a "$sqlite3_libs"; then
		CFLAGS="$sqlite3_cflags $save_CFLAGS"
		LIBS="$sqlite3_libs $save_LIBS"

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sqlite3.h>
#ifndef SQLITE_OPEN_CREATE
#error "old version"
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

			INCLUDE_sqlite3="$sqlite3_cflags"
			LIB_sqlite3="$sqlite3_libs"
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_sqlite3_config" >&5
$as_echo "from $with_sqlite3_config" >&6; }
			found=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"

			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sqlite3.h>
#ifndef SQLITE_OPEN_CREATE
#error "old version"
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ires=$i;break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lsqlite3  $save_LIBS"
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sqlite3.h>
#ifndef SQLITE_OPEN_CREATE
#error "old version"
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lres=$i;break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_sqlite3" != "no"; then
			INCLUDE_sqlite3="-I$ires"
			LIB_sqlite3="-L$lres -lsqlite3 "
			found=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
$as_echo "headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define SQLITE3 1
_ACEOF

	with_sqlite3=yes
else
	with_sqlite3=no
	INCLUDE_sqlite3=
	LIB_sqlite3=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





if test "X$with_sqlite3" != Xyes ; then
   INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite"
   LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la"
fi
 if test "X$with_sqlite3" = Xyes; then
  SQLITE3_TRUE=
  SQLITE3_FALSE='#'
else
  SQLITE3_TRUE='#'
  SQLITE3_FALSE=
fi



$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h


# Check whether --enable-sqlite-cache was given.
if test "${enable_sqlite_cache+set}" = set; then :
  enableval=$enable_sqlite_cache;
fi

if test "$enable_sqlite_cache" != no; then

$as_echo "#define HAVE_SCC 1" >>confdefs.h

fi
 if test "$enable_sqlite_cache" != no; then
  have_scc_TRUE=
  have_scc_FALSE='#'
else
  have_scc_TRUE='#'
  have_scc_FALSE=
fi





# Check whether --with-libintl was given.
if test "${with_libintl+set}" = set; then :
  withval=$with_libintl;
fi


# Check whether --with-libintl-lib was given.
if test "${with_libintl_lib+set}" = set; then :
  withval=$with_libintl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-libintl-lib" "$LINENO" 5
elif test "X$with_libintl" = "X"; then
  with_libintl=yes
fi
fi


# Check whether --with-libintl-include was given.
if test "${with_libintl_include+set}" = set; then :
  withval=$with_libintl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-libintl-include" "$LINENO" 5
elif test "X$with_libintl" = "X"; then
  with_libintl=yes
fi
fi


# Check whether --with-libintl-config was given.
if test "${with_libintl_config+set}" = set; then :
  withval=$with_libintl_config;
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl" >&5
$as_echo_n "checking for libintl... " >&6; }

case "$with_libintl" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_libintl" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_libintl_include" = ""; then
		if test -d "$i/include/libintl"; then
			header_dirs="$header_dirs $i/include/libintl"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_libintl_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_libintl_include"; then
	header_dirs="$with_libintl_include $header_dirs"
fi
if test "$with_libintl_lib"; then
	lib_dirs="$with_libintl_lib $lib_dirs"
fi

if test "$with_libintl_config" = ""; then
	with_libintl_config=''
fi

libintl_cflags=
libintl_libs=

case "$with_libintl_config" in
yes|no|""|"")
	if test -f $with_libintl/bin/ ; then
		with_libintl_config=$with_libintl/bin/
	fi
	;;
esac

case "$with_libintl_config" in
yes|no|"")
	;;
*)
	libintl_cflags="`$with_libintl_config --cflags 2>&1`"
	libintl_libs="`$with_libintl_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_libintl" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$libintl_cflags" -a "$libintl_libs"; then
		CFLAGS="$libintl_cflags $save_CFLAGS"
		LIBS="$libintl_libs $save_LIBS"

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <libintl.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

			INCLUDE_libintl="$libintl_cflags"
			LIB_libintl="$libintl_libs"
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libintl_config" >&5
$as_echo "from $with_libintl_config" >&6; }
			found=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"

			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <libintl.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ires=$i;break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lintl  $save_LIBS"
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <libintl.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lres=$i;break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_libintl" != "no"; then
			INCLUDE_libintl="-I$ires"
			LIB_libintl="-L$lres -lintl "
			found=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
$as_echo "headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define LIBINTL 1
_ACEOF

	with_libintl=yes
else
	with_libintl=no
	INCLUDE_libintl=
	LIB_libintl=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi






# Check whether --with-hdbdir was given.
if test "${with_hdbdir+set}" = set; then :
  withval=$with_hdbdir;
else
  with_hdbdir=/var/heimdal
fi

DIR_hdbdir="$with_hdbdir"



with_krb4=no


 if false; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi


 if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
fi

 if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
else
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi



$as_echo "#define SUPPORT_INETD 1" >>confdefs.h



$as_echo "#define KRB5 1" >>confdefs.h


crypto_lib=unknown


# Check whether --with-openssl was given.
if test "${with_openssl+set}" = set; then :
  withval=$with_openssl;
fi



# Check whether --with-openssl-lib was given.
if test "${with_openssl_lib+set}" = set; then :
  withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-openssl-lib" "$LINENO" 5
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi



# Check whether --with-openssl-include was given.
if test "${with_openssl_include+set}" = set; then :
  withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-openssl-include" "$LINENO" 5
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi


case "$with_openssl" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openssl_include" = ""; then
		with_openssl_include="$with_openssl/include"
	fi
	if test "$with_openssl_lib" = ""; then
		with_openssl_lib="$with_openssl/lib$abilibdirext"
	fi
	;;
esac


DIR_hcrypto=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5
$as_echo_n "checking for crypto library... " >&6; }

openssl=no

if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
	save_CPPFLAGS="$CPPFLAGS"
	save_LIBS="$LIBS"

	cdirs= clibs=
	for i in $LIB_krb4; do
		case "$i" in
		-L*) cdirs="$cdirs $i";;
		-l*) clibs="$clibs $i";;
		esac
	done

	ires=
	for i in $INCLUDE_krb4; do
		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
		for j in $cdirs; do
			for k in $clibs; do
				LIBS="$j $k $save_LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#include <openssl/aes.h>
		#include <openssl/ec.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
		#include <openssl/rand.h>
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
		#else
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
		#endif

int
main ()
{

		void *schedule = 0;
		EVP_MD_CTX mdctx;

		EVP_md4();
		EVP_md5();
		EVP_sha1();
		EVP_sha256();

		EVP_MD_CTX_init(&mdctx);
		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
		UI_UTIL_read_pw_string(0,0,0,0);
		RAND_status();
		#ifdef HAVE_OPENSSL
		EC_KEY_new();
		#endif

		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  openssl=yes ires="$i" lres="$j $k"; break 3
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
			done
		done
		CFLAGS="$i $save_CFLAGS"
		for j in $cdirs; do
			for k in $clibs; do
				LIBS="$j $k $save_LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#include <openssl/aes.h>
		#include <openssl/ec.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
		#include <openssl/rand.h>
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
		#else
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
		#endif

int
main ()
{

		void *schedule = 0;
		EVP_MD_CTX mdctx;

		EVP_md4();
		EVP_md5();
		EVP_sha1();
		EVP_sha256();

		EVP_MD_CTX_init(&mdctx);
		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
		UI_UTIL_read_pw_string(0,0,0,0);
		RAND_status();
		#ifdef HAVE_OPENSSL
		EC_KEY_new();
		#endif

		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  openssl=no ires="$i" lres="$j $k"; break 3
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
			done
		done
	done

	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
	if test "$ires" -a "$lres"; then
		INCLUDE_hcrypto="$ires"
		LIB_hcrypto="$lres"
		crypto_lib=krb4
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: same as krb4" >&5
$as_echo "same as krb4" >&6; }
		LIB_hcrypto_a='$(LIB_hcrypto)'
		LIB_hcrypto_so='$(LIB_hcrypto)'
		LIB_hcrypto_appl='$(LIB_hcrypto)'
	fi
fi

if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	INCLUDE_hcrypto=
	LIB_hcrypto=
	if test "$with_openssl_include" != ""; then
		INCLUDE_hcrypto="-I${with_openssl_include}"
	fi
	if test "$with_openssl_lib" != ""; then
		LIB_hcrypto="-L${with_openssl_lib}"
	fi
	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
	saved_LIB_hcrypto="$LIB_hcrypto"
	for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
		LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
		LIB_hcrypto_a="$LIB_hcrypto"
		LIB_hcrypto_so="$LIB_hcrypto"
		LIB_hcrypto_appl="$LIB_hcrypto"
		LIBS="${LIBS} ${LIB_hcrypto}"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#include <openssl/aes.h>
		#include <openssl/ec.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
		#include <openssl/rand.h>
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
		#else
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
		#endif

int
main ()
{

		void *schedule = 0;
		EVP_MD_CTX mdctx;

		EVP_md4();
		EVP_md5();
		EVP_sha1();
		EVP_sha256();

		EVP_MD_CTX_init(&mdctx);
		EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
		UI_UTIL_read_pw_string(0,0,0,0);
		RAND_status();
		#ifdef HAVE_OPENSSL
		EC_KEY_new();
		#endif

		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

			crypto_lib=libcrypto openssl=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libcrypto" >&5
$as_echo "libcrypto" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		if test "$crypto_lib" = libcrypto ; then
			break;
		fi
	done
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$crypto_lib" = "unknown"; then

  DIR_hcrypto='hcrypto'
  LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
  LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
  LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
  LIB_hcrypto_appl="-lhcrypto"

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: included libhcrypto" >&5
$as_echo "included libhcrypto" >&6; }

fi

if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
	as_fn_error "the crypto library used by krb4 lacks features
required by Kerberos 5; to continue, you need to install a newer
Kerberos 4 or configure --without-krb4" "$LINENO" 5
fi

if test "$openssl" = "yes"; then

$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h

fi
 if test "$openssl" = yes; then
  HAVE_OPENSSL_TRUE=
  HAVE_OPENSSL_FALSE='#'
else
  HAVE_OPENSSL_TRUE='#'
  HAVE_OPENSSL_FALSE=
fi










{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling threadsafe libraries" >&5
$as_echo_n "checking if compiling threadsafe libraries... " >&6; }

# Check whether --enable-pthread-support was given.
if test "${enable_pthread_support+set}" = set; then :
  enableval=$enable_pthread_support;
else
  enable_pthread_support=maybe
fi


case "$host" in
*-*-solaris2*)
	native_pthread_support=yes
	if test "$GCC" = yes; then
		PTHREAD_CFLAGS=-pthreads
		PTHREAD_LIBADD=-pthreads
	else
		PTHREAD_CFLAGS=-mt
		PTHREAD_LDADD=-mt
		PTHREAD_LIBADD=-mt
	fi
	;;
*-*-netbsd[12]*)
	native_pthread_support="if running netbsd 1.6T or newer"
		PTHREAD_LIBADD="-lpthread"
	;;
*-*-netbsd[3456789]*)
	native_pthread_support="netbsd 3 uses explict pthread"
		PTHREAD_LIBADD="-lpthread"
	;;
*-*-freebsd[56789]*)
	native_pthread_support=yes
	PTHREAD_LIBADD="-pthread"
	;;
*-*-openbsd*)
	native_pthread_support=yes
	PTHREAD_CFLAGS=-pthread
	PTHREAD_LIBADD=-pthread
	;;
*-*-linux* | *-*-linux-gnu)
	case `uname -r` in
	2.*|3.*)
		native_pthread_support=yes
		PTHREAD_CFLAGS=-pthread
		PTHREAD_LIBADD=-pthread
		;;
	esac
	;;
*-*-kfreebsd*-gnu*)
	native_pthread_support=yes
	PTHREAD_CFLAGS=-pthread
	PTHREAD_LIBADD=-pthread
	;;
*-*-aix*)
	        	native_pthread_support=no
	;;
mips-sgi-irix6.[5-9])  # maybe works for earlier versions too
	native_pthread_support=yes
	PTHREAD_LIBADD="-lpthread"
	;;
*-*-darwin*)
	native_pthread_support=yes
	;;
*)
	native_pthread_support=no
	;;
esac

if test "$enable_pthread_support" = maybe ; then
	enable_pthread_support="$native_pthread_support"
fi

if test "$enable_pthread_support" != no; then

$as_echo "#define ENABLE_PTHREAD_SUPPORT 1" >>confdefs.h

            LIBS="$PTHREAD_LIBADD $LIBS"
else
  PTHREAD_CFLAGS=""
  PTHREAD_LIBADD=""
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pthread_support" >&5
$as_echo "$enable_pthread_support" >&6; }


# Check whether --enable-dce was given.
if test "${enable_dce+set}" = set; then :
  enableval=$enable_dce;
fi

if test "$enable_dce" = yes; then

$as_echo "#define DCE 1" >>confdefs.h

fi
 if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
else
  DCE_TRUE='#'
  DCE_FALSE=
fi


## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
	dpagaix_ldflags=
else
	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
fi




# Check whether --enable-afs-support was given.
if test "${enable_afs_support+set}" = set; then :
  enableval=$enable_afs_support;
fi

if test "$enable_afs_support" = no; then

$as_echo "#define NO_AFS 1" >>confdefs.h

	NO_AFS="1"
fi



# Check whether --with-berkeley-db was given.
if test "${with_berkeley_db+set}" = set; then :
  withval=$with_berkeley_db;
else
  with_berkeley_db=check
fi


dbheader=""

# Check whether --with-berkeley-db-include was given.
if test "${with_berkeley_db_include+set}" = set; then :
  withval=$with_berkeley_db_include; dbheader=$withval
else
  with_berkeley_db_include=check
fi


# Check whether --enable-ndbm-db was given.
if test "${enable_ndbm_db+set}" = set; then :
  enableval=$enable_ndbm_db;

fi


have_ndbm=no
db_type=unknown

if test "x$with_berkeley_db" != xno; then :
  if test "x$with_berkeley_db_include" != xcheck; then :
  for ac_header in "$dbheader/db.h"
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 DBHEADER=$dbheader


$as_echo "#define HAVE_DBHEADER 1" >>confdefs.h


else
  if test "x$with_berkeley_db_include" != xcheck; then
		     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "--with-berkeley-db-include was given but include test failed
See \`config.log' for more details." "$LINENO" 5; }
		    fi

fi

done

else
  for ac_header in 					\
	           db5/db.h				\
	           db4/db.h				\
	           db3/db.h				\
	           db.h					\

do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create" >&5
$as_echo_n "checking for db_create... " >&6; }
if test "${ac_cv_funclib_db_create+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" $dbheader db5 db4 db3 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <stdio.h>
  #ifdef HAVE_DBHEADER
  #include <$dbheader/db.h>
  #elif HAVE_DB5_DB_H
  #include <db5/db.h>
  #elif HAVE_DB4_DB_H
  #include <db4/db.h>
  #elif defined(HAVE_DB3_DB_H)
  #include <db3/db.h>
  #else
  #include <db.h>
  #endif

int
main ()
{
db_create(NULL, NULL, 0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_db_create"

if false; then
	for ac_func in db_create
do :
  ac_fn_c_check_func "$LINENO" "db_create" "ac_cv_func_db_create"
if test "x$ac_cv_func_db_create" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DB_CREATE 1
_ACEOF

fi
done

fi
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac



  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi

$as_echo "#define HAVE_DB3 1" >>confdefs.h

  fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen" >&5
$as_echo_n "checking for dbopen... " >&6; }
if test "${ac_cv_funclib_dbopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db2 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <stdio.h>
  #if defined(HAVE_DB2_DB_H)
  #include <db2/db.h>
  #elif defined(HAVE_DB_H)
  #include <db.h>
  #else
  #error no db.h
  #endif

int
main ()
{
dbopen(NULL, 0, 0, 0, NULL)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbopen"

if false; then
	for ac_func in dbopen
do :
  ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
if test "x$ac_cv_func_dbopen" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DBOPEN 1
_ACEOF

fi
done

fi
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac



  if test "$ac_cv_func_dbopen" = "yes"; then
    db_type=db1
    if test "$ac_cv_funclib_dbopen" != "yes"; then
      DBLIB="$ac_cv_funclib_dbopen"
    else
      DBLIB=""
    fi

$as_echo "#define HAVE_DB1 1" >>confdefs.h

  fi


  if test "$ac_cv_func_dbm_firstkey" != yes; then


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
$as_echo_n "checking for dbm_firstkey... " >&6; }
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <stdio.h>
    #define DB_DBM_HSEARCH 1
    #include <db.h>
    DBM *dbm;

int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then
	for ac_func in dbm_firstkey
do :
  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DBM_FIRSTKEY 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi

$as_echo "#define HAVE_DB_NDBM 1" >>confdefs.h


$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h

    else
      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey
    fi
  fi


fi # fi berkeley db

if test "$enable_ndbm_db" != "no"; then

  if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then

    for ac_header in 				\
  	dbm.h					\
  	ndbm.h					\

do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
$as_echo_n "checking for dbm_firstkey... " >&6; }
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ndbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <stdio.h>
    #if defined(HAVE_NDBM_H)
    #include <ndbm.h>
    #elif defined(HAVE_DBM_H)
    #include <dbm.h>
    #endif
    DBM *dbm;

int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then
	for ac_func in dbm_firstkey
do :
  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DBM_FIRSTKEY 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi

$as_echo "#define HAVE_NDBM 1" >>confdefs.h
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
        db_type=ndbm
        DBLIB="$LIB_NDBM"
      fi
    else

      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey

      for ac_header in 				\
  	  gdbm/ndbm.h				\

do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_firstkey" >&5
$as_echo_n "checking for dbm_firstkey... " >&6; }
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" gdbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

      #include <stdio.h>
      #include <gdbm/ndbm.h>
      DBM *dbm;

int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then
	for ac_func in dbm_firstkey
do :
  ac_fn_c_check_func "$LINENO" "dbm_firstkey" "ac_cv_func_dbm_firstkey"
if test "x$ac_cv_func_dbm_firstkey" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DBM_FIRSTKEY 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac



      if test "$ac_cv_func_dbm_firstkey" = "yes"; then
        if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
  	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
        else
  	LIB_NDBM=""
        fi

$as_echo "#define HAVE_NDBM 1" >>confdefs.h
        have_ndbm=yes
        if test "$db_type" = "unknown"; then
  	db_type=ndbm
  	DBLIB="$LIB_NDBM"
        fi
      fi
    fi
  fi #enable_ndbm_db
fi # unknown

if test "$have_ndbm" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ndbm is implemented with db" >&5
$as_echo_n "checking if ndbm is implemented with db... " >&6; }
  if test "$cross_compiling" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no-cross" >&5
$as_echo "no-cross" >&6; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#endif
int main(int argc, char **argv)
{
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

    if test -f conftest.db; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAVE_NEW_DB 1" >>confdefs.h

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi

 if test "$db_type" = db1; then
  HAVE_DB1_TRUE=
  HAVE_DB1_FALSE='#'
else
  HAVE_DB1_TRUE='#'
  HAVE_DB1_FALSE=
fi
 if test "$db_type" = db3; then
  HAVE_DB3_TRUE=
  HAVE_DB3_FALSE='#'
else
  HAVE_DB3_TRUE='#'
  HAVE_DB3_FALSE=
fi
 if test "$db_type" = ndbm; then
  HAVE_NDBM_TRUE=
  HAVE_NDBM_FALSE='#'
else
  HAVE_NDBM_TRUE='#'
  HAVE_NDBM_FALSE=
fi
 if test "$dbheader" != ""; then
  HAVE_DBHEADER_TRUE=
  HAVE_DBHEADER_FALSE='#'
else
  HAVE_DBHEADER_TRUE='#'
  HAVE_DBHEADER_FALSE=
fi

## it's probably not correct to include LDFLAGS here, but we might
## need it, for now just add any possible -L
z=""
for i in $LDFLAGS; do
	case "$i" in
	-L*) z="$z $i";;
	esac
done
DBLIB="$z $DBLIB"




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if test "${ac_cv_c_inline+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if test "${ac_cv_c_const+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi

ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if test "${ac_cv_type_uid_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if test "${ac_cv_type_signal+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


if test "$ac_cv_type_signal" = "void" ; then

$as_echo "#define VOID_RETSIGTYPE 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if test "${ac_cv_header_time+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi


for ac_header in standards.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "standards.h" "ac_cv_header_standards_h" "$ac_includes_default"
if test "x$ac_cv_header_standards_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STANDARDS_H 1
_ACEOF

fi

done

for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $i" >&5
$as_echo_n "checking for $i... " >&6; }
if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  eval "ac_cv_header_$cv=yes"
else
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
eval ac_res=\$ac_cv_header_$cv
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
done
if false;then
	for ac_header in netinet/ip.h netinet/tcp.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi


for ac_func in getlogin setlogin
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "$ac_cv_func_getlogin" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getlogin is posix" >&5
$as_echo_n "checking if getlogin is posix... " >&6; }
if test "${ac_cv_func_getlogin_posix+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getlogin_posix" >&5
$as_echo "$ac_cv_func_getlogin_posix" >&6; }
if test "$ac_cv_func_getlogin_posix" = yes; then

$as_echo "#define POSIX_GETLOGIN 1" >>confdefs.h

fi
fi




  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done








for ac_func in getpagesize
do :
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
if test "x$ac_cv_func_getpagesize" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPAGESIZE 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
$as_echo_n "checking for working mmap... " >&6; }
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_mmap_fixed_mapped=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd, fd2;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    return 1;
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    return 2;
  if (write (fd, data, pagesize) != pagesize)
    return 3;
  close (fd);

  /* Next, check that the tail of a page is zero-filled.  File must have
     non-zero length, otherwise we risk SIGBUS for entire page.  */
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  if (fd2 < 0)
    return 4;
  data2 = "";
  if (write (fd2, data2, 1) != 1)
    return 5;
  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  if (data2 == MAP_FAILED)
    return 6;
  for (i = 0; i < pagesize; ++i)
    if (*(data2 + i))
      return 7;
  close (fd2);
  if (munmap (data2, pagesize))
    return 8;

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    return 9;
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    return 10;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      return 11;

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    return 12;
  if (read (fd, data3, pagesize) != pagesize)
    return 13;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      return 14;
  close (fd);
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_mmap_fixed_mapped=yes
else
  ac_cv_func_mmap_fixed_mapped=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_mmap_fixed_mapped = yes; then

$as_echo "#define HAVE_MMAP 1" >>confdefs.h

fi
rm -f conftest.mmap conftest.txt


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc if broken" >&5
$as_echo_n "checking if realloc if broken... " >&6; }
if test "${ac_cv_func_realloc_broken+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stddef.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  :
else
  ac_cv_func_realloc_broken=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_broken" >&5
$as_echo "$ac_cv_func_realloc_broken" >&6; }
if test "$ac_cv_func_realloc_broken" = yes ; then

$as_echo "#define BROKEN_REALLOC 1" >>confdefs.h

fi






DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'










$as_echo "#define rk_PATH_DELIM '/'" >>confdefs.h








# Check whether --enable-developer was given.
if test "${enable_developer+set}" = set; then :
  enableval=$enable_developer;
fi

if test "X$enable_developer" = Xyes; then
    dwflags="-Werror"
fi

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  #   -Wstrict-overflow=5
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi








cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
$as_echo_n "checking for ssize_t... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
int
main ()
{
ssize_t foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
if test "x$ac_cv_type_ssize_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi





cv=`echo "long long" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
$as_echo_n "checking for long long... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi







for ac_header in \
	arpa/inet.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	fnmatch.h				\
	grp.h					\
	ifaddrs.h				\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	paths.h					\
	poll.h					\
	pwd.h					\
	rpcsvc/ypclnt.h				\
	search.h				\
	shadow.h				\
	stdint.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/mman.h				\
	sys/param.h				\
	sys/resource.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	winsock2.h				\
	ws2tcpip.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\

do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5
$as_echo_n "checking for uintptr_t... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
int
main ()
{
uintptr_t foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi


for ac_header in vis.h
do :
  ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" "
#include <vis.h>
#ifndef VIS_SP
#error invis
#endif
"
if test "x$ac_cv_header_vis_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VIS_H 1
_ACEOF

fi

done


for ac_header in netdb.h
do :
  ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

"
if test "x$ac_cv_header_netdb_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETDB_H 1
_ACEOF

fi

done


for ac_header in sys/socket.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

"
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SOCKET_H 1
_ACEOF

fi

done


for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
"
if test "x$ac_cv_header_net_if_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done


for ac_header in netinet6/in6_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET6_IN6_H
#include <netinet6/in6.h>
#endif

"
if test "x$ac_cv_header_netinet6_in6_var_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINET6_IN6_VAR_H 1
_ACEOF

fi

done


for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif

"
if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done


for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "$ac_includes_default
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif

"
if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
_ACEOF

fi

done




 if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi

 if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi

 if test "$ac_cv_header_search_h" = yes; then
  have_search_h_TRUE=
  have_search_h_FALSE='#'
else
  have_search_h_TRUE='#'
  have_search_h_FALSE=
fi

 if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi







{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
$as_echo_n "checking for socket... " >&6; }
if test "${ac_cv_funclib_socket+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_socket"

if false; then
	for ac_func in socket
do :
  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
if test "x$ac_cv_func_socket" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKET 1
_ACEOF

fi
done

fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
$as_echo_n "checking for gethostbyname... " >&6; }
if test "${ac_cv_funclib_gethostbyname+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

if false; then
	for ac_func in gethostbyname
do :
  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETHOSTBYNAME 1
_ACEOF

fi
done

fi
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog" >&5
$as_echo_n "checking for syslog... " >&6; }
if test "${ac_cv_funclib_syslog+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_syslog"

if false; then
	for ac_func in syslog
do :
  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
if test "x$ac_cv_func_syslog" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYSLOG 1
_ACEOF

fi
done

fi
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi




# Check whether --with-ipv6 was given.
if test "${with_ipv6+set}" = set; then :
  withval=$with_ipv6;
        ac_cv_lib_ipv6="$withval"

fi

save_CFLAGS="${CFLAGS}"

if test "X$ac_cv_lib_ipv6" != "Xno"; then

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 stack type" >&5
$as_echo_n "checking for IPv6 stack type... " >&6; }
if test "${rk_cv_v6type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	v6type=unknown
	v6lib=none

	for i in v6d toshiba kame inria zeta linux; do
		case $i in
		v6d)
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  v6type=$i; v6lib=v6;
				v6libdir=/usr/local/v6/lib;
				CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

			;;
		toshiba)
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  v6type=$i; v6lib=inet6;
				v6libdir=/usr/local/v6/lib;
				CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

			;;
		kame)
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  v6type=$i; v6lib=inet6;
				v6libdir=/usr/local/v6/lib;
				CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

			;;
		inria)
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

			;;
		zeta)
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  v6type=$i; v6lib=inet6;
				v6libdir=/usr/local/v6/lib;
				CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

			;;
		linux)
			if test -d /usr/inet6; then
				v6type=$i
				v6lib=inet6
				v6libdir=/usr/inet6
				CFLAGS="-DINET6 $CFLAGS"
			fi
			;;
		esac
		if test "$v6type" != "unknown"; then
			break
		fi
	done

	if test "$v6lib" != "none"; then
		for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
			if test -d $dir -a -f $dir/lib$v6lib.a; then
				LIBS="-L$dir -l$v6lib $LIBS"
				break
			fi
		done
	fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_v6type" >&5
$as_echo "$rk_cv_v6type" >&6; }

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
$as_echo_n "checking for IPv6... " >&6; }
if test "${rk_cv_lib_ipv6+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ipv6=yes
else
  ac_cv_lib_ipv6=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_lib_ipv6" >&5
$as_echo "$rk_cv_lib_ipv6" >&6; }
fi

if test "$ac_cv_lib_ipv6" = yes; then

$as_echo "#define HAVE_IPV6 1" >>confdefs.h

else
  CFLAGS="${save_CFLAGS}"
fi

## test for AIX missing in6addr_loopback
if test "$ac_cv_lib_ipv6" = yes; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
$as_echo_n "checking for in6addr_loopback... " >&6; }
if test "${rk_cv_var_in6addr_loopback+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
int
main ()
{

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_in6addr_loopback=yes
else
  ac_cv_var_in6addr_loopback=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rk_cv_var_in6addr_loopback" >&5
$as_echo "$rk_cv_var_in6addr_loopback" >&6; }
	if test "$ac_cv_var_in6addr_loopback" = yes; then

$as_echo "#define HAVE_IN6ADDR_LOOPBACK 1" >>confdefs.h

	fi
fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2" >&5
$as_echo_n "checking for gethostbyname2... " >&6; }
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
gethostbyname2()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname2"

if false; then
	for ac_func in gethostbyname2
do :
  ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETHOSTBYNAME2 1
_ACEOF

fi
done

fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
fi




for ac_header in arpa/nameser.h dns.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif

"
if test "x$ac_cv_header_resolv_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search" >&5
$as_echo_n "checking for res_search... " >&6; }
if test "${ac_cv_funclib_res_search+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_search"

if false; then
	for ac_func in res_search
do :
  ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
if test "x$ac_cv_func_res_search" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_SEARCH 1
_ACEOF

fi
done

fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch" >&5
$as_echo_n "checking for res_nsearch... " >&6; }
if test "${ac_cv_funclib_res_nsearch+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_nsearch(0,0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_nsearch"

if false; then
	for ac_func in res_nsearch
do :
  ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
if test "x$ac_cv_func_res_nsearch" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_NSEARCH 1
_ACEOF

fi
done

fi
# res_nsearch
eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_nsearch=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_nsearch=yes"
	eval "LIB_res_nsearch="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_res_nsearch=no"
	eval "LIB_res_nsearch="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_res_nsearch=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_res_nsearch"; then
	LIBS="$LIB_res_nsearch $LIBS"
fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
$as_echo_n "checking for res_ndestroy... " >&6; }
if test "${ac_cv_funclib_res_ndestroy+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_ndestroy(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_ndestroy"

if false; then
	for ac_func in res_ndestroy
do :
  ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy"
if test "x$ac_cv_func_res_ndestroy" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_NDESTROY 1
_ACEOF

fi
done

fi
# res_ndestroy
eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_ndestroy=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_ndestroy=yes"
	eval "LIB_res_ndestroy="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_res_ndestroy=no"
	eval "LIB_res_ndestroy="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_res_ndestroy=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_res_ndestroy"; then
	LIBS="$LIB_res_ndestroy $LIBS"
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search" >&5
$as_echo_n "checking for dns_search... " >&6; }
if test "${ac_cv_funclib_dns_search+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_DNS_H
#include <dns.h>
#endif

int
main ()
{
dns_search(0,0,0,0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dns_search"

if false; then
	for ac_func in dns_search
do :
  ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
if test "x$ac_cv_func_dns_search" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DNS_SEARCH 1
_ACEOF

fi
done

fi
# dns_search
eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dns_search=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dns_search=yes"
	eval "LIB_dns_search="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dns_search=no"
	eval "LIB_dns_search="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dns_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac








{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand" >&5
$as_echo_n "checking for dn_expand... " >&6; }
if test "${ac_cv_funclib_dn_expand+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dn_expand"

if false; then
	for ac_func in dn_expand
do :
  ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
if test "x$ac_cv_func_dn_expand" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DN_EXPAND 1
_ACEOF

fi
done

fi
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _res" >&5
$as_echo_n "checking for _res... " >&6; }
if test "${ac_cv_var__res+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
	void * foo(void) { return &_res; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var__res=yes
else
  ac_cv_var__res=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var__res" != yes ; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
extern int _res;
int foo(void) { return _res; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var__res=yes
else
  ac_cv_var__res=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var__res`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE__RES 1
_ACEOF


# ac_fn_c_check_decl LINENO SYMBOL VAR
# ------------------------------------
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
ac_fn_c_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
$as_echo_n "checking whether $2 is declared... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
#ifndef $2
  (void) $2;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_decl
ac_fn_c_check_decl "$LINENO" "_res" "ac_cv_have_decl__res" "#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
"
if test "x$ac_cv_have_decl__res" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__RES $ac_have_decl
_ACEOF

fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
$as_echo_n "checking for working snprintf... " >&6; }
if test "${ac_cv_func_snprintf_working+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  :
else
  ac_cv_func_snprintf_working=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_working" >&5
$as_echo "$ac_cv_func_snprintf_working" >&6; }

if test "$ac_cv_func_snprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_snprintf_working" = yes; then

if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf needs a prototype" >&5
$as_echo_n "checking if snprintf needs a prototype... " >&6; }
if test "${ac_cv_func_snprintf_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
int
main ()
{
snprintf(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_snprintf_noproto=yes"
else
  eval "ac_cv_func_snprintf_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_noproto" >&5
$as_echo "$ac_cv_func_snprintf_noproto" >&6; }
if test "$ac_cv_func_snprintf_noproto" = yes; then

$as_echo "#define NEED_SNPRINTF_PROTO 1" >>confdefs.h

fi
fi

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
$as_echo_n "checking for working vsnprintf... " >&6; }
if test "${ac_cv_func_vsnprintf_working+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>
#include <stdarg.h>

int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}

int bar(int num, int len, ...)
{
	int r;
	va_list arg;
	va_start(arg, len);
	r = vsnprintf(NULL, 0, "%s", arg);
	va_end(arg);
	return r != len;
}

int main(int argc, char **argv)
{
	return foo(0, "12") || bar(0, 2, "12");
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  :
else
  ac_cv_func_vsnprintf_working=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_working" >&5
$as_echo "$ac_cv_func_vsnprintf_working" >&6; }

if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VSNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf needs a prototype" >&5
$as_echo_n "checking if vsnprintf needs a prototype... " >&6; }
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
int
main ()
{
vsnprintf(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_vsnprintf_noproto=yes"
else
  eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_noproto" >&5
$as_echo "$ac_cv_func_vsnprintf_noproto" >&6; }
if test "$ac_cv_func_vsnprintf_noproto" = yes; then

$as_echo "#define NEED_VSNPRINTF_PROTO 1" >>confdefs.h

fi
fi

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working glob" >&5
$as_echo_n "checking for working glob... " >&6; }
if test "${ac_cv_func_glob_working+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_func_glob_working=yes
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <glob.h>
int
main ()
{

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  :
else
  ac_cv_func_glob_working=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_working" >&5
$as_echo "$ac_cv_func_glob_working" >&6; }

if test "$ac_cv_func_glob_working" = yes; then

$as_echo "#define HAVE_GLOB 1" >>confdefs.h

fi
if test "$ac_cv_func_glob_working" = yes; then

if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if glob needs a prototype" >&5
$as_echo_n "checking if glob needs a prototype... " >&6; }
if test "${ac_cv_func_glob_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#include <glob.h>
struct foo { int foo; } xx;
extern int glob (struct foo*);
int
main ()
{
glob(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_glob_noproto=yes"
else
  eval "ac_cv_func_glob_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_glob_noproto" >&5
$as_echo "$ac_cv_func_glob_noproto" >&6; }
if test "$ac_cv_func_glob_noproto" = yes; then

$as_echo "#define NEED_GLOB_PROTO 1" >>confdefs.h

fi
fi

fi

if test "$ac_cv_func_glob_working" != yes; then
	case " $LIBOBJS " in
  *" glob.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS glob.$ac_objext"
 ;;
esac

fi
 if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi



for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	issetugid				\
	on_exit					\
	poll					\
	random					\
	setprogname				\
	strsvis					\
	strsvisx				\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	tdelete					\
	tfind					\
	twalk					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


if test "$ac_cv_func_cgetent" = no; then
	case " $LIBOBJS " in
  *" getcap.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
 ;;
esac

fi
 if test "$ac_cv_func_cgetent" = yes; then
  have_cgetent_TRUE=
  have_cgetent_FALSE='#'
else
  have_cgetent_TRUE='#'
  have_cgetent_FALSE=
fi









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt" >&5
$as_echo_n "checking for getsockopt... " >&6; }
if test "${ac_cv_funclib_getsockopt+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getsockopt"

if false; then
	for ac_func in getsockopt
do :
  ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
if test "x$ac_cv_func_getsockopt" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETSOCKOPT 1
_ACEOF

fi
done

fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
$as_echo_n "checking for setsockopt... " >&6; }
if test "${ac_cv_funclib_setsockopt+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setsockopt"

if false; then
	for ac_func in setsockopt
do :
  ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
if test "x$ac_cv_func_setsockopt" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETSOCKOPT 1
_ACEOF

fi
done

fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac







{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
$as_echo_n "checking for hstrerror... " >&6; }
if test "${ac_cv_funclib_hstrerror+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
hstrerror(17)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then
	for ac_func in hstrerror
do :
  ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
if test "x$ac_cv_func_hstrerror" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_HSTRERROR 1
_ACEOF

fi
done

fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
fi

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
	case " $LIBOBJS " in
  *" hstrerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
 ;;
esac

fi


if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if hstrerror needs a prototype" >&5
$as_echo_n "checking if hstrerror needs a prototype... " >&6; }
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
int
main ()
{
hstrerror(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_hstrerror_noproto=yes"
else
  eval "ac_cv_func_hstrerror_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror_noproto" >&5
$as_echo "$ac_cv_func_hstrerror_noproto" >&6; }
if test "$ac_cv_func_hstrerror_noproto" = yes; then

$as_echo "#define NEED_HSTRERROR_PROTO 1" >>confdefs.h

fi
fi



if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asprintf needs a prototype" >&5
$as_echo_n "checking if asprintf needs a prototype... " >&6; }
if test "${ac_cv_func_asprintf_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
int
main ()
{
asprintf(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_asprintf_noproto=yes"
else
  eval "ac_cv_func_asprintf_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asprintf_noproto" >&5
$as_echo "$ac_cv_func_asprintf_noproto" >&6; }
if test "$ac_cv_func_asprintf_noproto" = yes; then

$as_echo "#define NEED_ASPRINTF_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype" >&5
$as_echo_n "checking if vasprintf needs a prototype... " >&6; }
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
int
main ()
{
vasprintf(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_vasprintf_noproto=yes"
else
  eval "ac_cv_func_vasprintf_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasprintf_noproto" >&5
$as_echo "$ac_cv_func_vasprintf_noproto" >&6; }
if test "$ac_cv_func_vasprintf_noproto" = yes; then

$as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asnprintf needs a prototype" >&5
$as_echo_n "checking if asnprintf needs a prototype... " >&6; }
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
int
main ()
{
asnprintf(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_asnprintf_noproto=yes"
else
  eval "ac_cv_func_asnprintf_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_asnprintf_noproto" >&5
$as_echo "$ac_cv_func_asnprintf_noproto" >&6; }
if test "$ac_cv_func_asnprintf_noproto" = yes; then

$as_echo "#define NEED_ASNPRINTF_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasnprintf needs a prototype" >&5
$as_echo_n "checking if vasnprintf needs a prototype... " >&6; }
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
int
main ()
{
vasnprintf(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_vasnprintf_noproto=yes"
else
  eval "ac_cv_func_vasnprintf_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vasnprintf_noproto" >&5
$as_echo "$ac_cv_func_vasnprintf_noproto" >&6; }
if test "$ac_cv_func_vasnprintf_noproto" = yes; then

$as_echo "#define NEED_VASNPRINTF_PROTO 1" >>confdefs.h

fi
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5
$as_echo_n "checking for bswap16... " >&6; }
if test "${ac_cv_funclib_bswap16+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
int
main ()
{
bswap16(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then
	for ac_func in bswap16
do :
  ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16"
if test "x$ac_cv_func_bswap16" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSWAP16 1
_ACEOF

fi
done

fi
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5
$as_echo_n "checking for bswap32... " >&6; }
if test "${ac_cv_funclib_bswap32+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
int
main ()
{
bswap32(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_bswap32"

if false; then
	for ac_func in bswap32
do :
  ac_fn_c_check_func "$LINENO" "bswap32" "ac_cv_func_bswap32"
if test "x$ac_cv_func_bswap32" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSWAP32 1
_ACEOF

fi
done

fi
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pidfile" >&5
$as_echo_n "checking for pidfile... " >&6; }
if test "${ac_cv_funclib_pidfile+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
int
main ()
{
pidfile(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_pidfile"

if false; then
	for ac_func in pidfile
do :
  ac_fn_c_check_func "$LINENO" "pidfile" "ac_cv_func_pidfile"
if test "x$ac_cv_func_pidfile" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PIDFILE 1
_ACEOF

fi
done

fi
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac







{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
$as_echo_n "checking for getaddrinfo... " >&6; }
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
getaddrinfo(0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getaddrinfo"

if false; then
	for ac_func in getaddrinfo
do :
  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETADDRINFO 1
_ACEOF

fi
done

fi
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
fi

if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
	case " $LIBOBJS " in
  *" getaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
 ;;
esac

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
$as_echo_n "checking for getnameinfo... " >&6; }
if test "${ac_cv_funclib_getnameinfo+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
getnameinfo(0,0,0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getnameinfo"

if false; then
	for ac_func in getnameinfo
do :
  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
if test "x$ac_cv_func_getnameinfo" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETNAMEINFO 1
_ACEOF

fi
done

fi
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getnameinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_getnameinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
fi

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
	case " $LIBOBJS " in
  *" getnameinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
 ;;
esac

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freeaddrinfo" >&5
$as_echo_n "checking for freeaddrinfo... " >&6; }
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
freeaddrinfo(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_freeaddrinfo"

if false; then
	for ac_func in freeaddrinfo
do :
  ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo"
if test "x$ac_cv_func_freeaddrinfo" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FREEADDRINFO 1
_ACEOF

fi
done

fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
fi

if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
	case " $LIBOBJS " in
  *" freeaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
 ;;
esac

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror" >&5
$as_echo_n "checking for gai_strerror... " >&6; }
if test "${ac_cv_funclib_gai_strerror+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
gai_strerror(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gai_strerror"

if false; then
	for ac_func in gai_strerror
do :
  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GAI_STRERROR 1
_ACEOF

fi
done

fi
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
fi

if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
	case " $LIBOBJS " in
  *" gai_strerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
 ;;
esac

fi


case "$host_os" in
	darwin*)
		;;
	*)

$as_echo "#define SUPPORT_DETACH 1" >>confdefs.h

		ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

else
  case " $LIBOBJS " in
  *" daemon.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
 ;;
esac

fi
 ;;
esac

ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
if test "x$ac_cv_func_chown" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_CHOWN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" chown.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS chown.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "copyhostent" "ac_cv_func_copyhostent"
if test "x$ac_cv_func_copyhostent" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_COPYHOSTENT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" copyhostent.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
if test "x$ac_cv_func_closefrom" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_CLOSEFROM 1
_ACEOF

else
  case " $LIBOBJS " in
  *" closefrom.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "ecalloc" "ac_cv_func_ecalloc"
if test "x$ac_cv_func_ecalloc" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_ECALLOC 1
_ACEOF

else
  case " $LIBOBJS " in
  *" ecalloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "emalloc" "ac_cv_func_emalloc"
if test "x$ac_cv_func_emalloc" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_EMALLOC 1
_ACEOF

else
  case " $LIBOBJS " in
  *" emalloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "erealloc" "ac_cv_func_erealloc"
if test "x$ac_cv_func_erealloc" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_EREALLOC 1
_ACEOF

else
  case " $LIBOBJS " in
  *" erealloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "estrdup" "ac_cv_func_estrdup"
if test "x$ac_cv_func_estrdup" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_ESTRDUP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" estrdup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
if test "x$ac_cv_func_err" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_ERR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" err.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS err.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
if test "x$ac_cv_func_errx" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_ERRX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" errx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS errx.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
if test "x$ac_cv_func_fchown" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_FCHOWN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" fchown.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
if test "x$ac_cv_func_flock" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_FLOCK 1
_ACEOF

else
  case " $LIBOBJS " in
  *" flock.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS flock.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
if test "x$ac_cv_func_fnmatch" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_FNMATCH 1
_ACEOF

else
  case " $LIBOBJS " in
  *" fnmatch.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "freehostent" "ac_cv_func_freehostent"
if test "x$ac_cv_func_freehostent" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_FREEHOSTENT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" freehostent.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
if test "x$ac_cv_func_getcwd" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETCWD 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getcwd.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
if test "x$ac_cv_func_getdtablesize" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETDTABLESIZE 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getdtablesize.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
if test "x$ac_cv_func_getegid" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETEGID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getegid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
if test "x$ac_cv_func_geteuid" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETEUID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" geteuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
if test "x$ac_cv_func_getgid" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETGID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getgid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
if test "x$ac_cv_func_gethostname" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETHOSTNAME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" gethostname.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getifaddrs.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr"
if test "x$ac_cv_func_getipnodebyaddr" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYADDR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getipnodebyaddr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
if test "x$ac_cv_func_getipnodebyname" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYNAME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getipnodebyname.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
if test "x$ac_cv_func_getopt" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETOPT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getopt.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETTIMEOFDAY 1
_ACEOF

else
  case " $LIBOBJS " in
  *" gettimeofday.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
if test "x$ac_cv_func_getuid" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETUID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
if test "x$ac_cv_func_getusershell" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_GETUSERSHELL 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getusershell.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
if test "x$ac_cv_func_initgroups" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INITGROUPS 1
_ACEOF

else
  case " $LIBOBJS " in
  *" initgroups.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr"
if test "x$ac_cv_func_innetgr" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INNETGR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" innetgr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "iruserok" "ac_cv_func_iruserok"
if test "x$ac_cv_func_iruserok" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_IRUSEROK 1
_ACEOF

else
  case " $LIBOBJS " in
  *" iruserok.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
if test "x$ac_cv_func_localtime_r" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALTIME_R 1
_ACEOF

else
  case " $LIBOBJS " in
  *" localtime_r.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
if test "x$ac_cv_func_lstat" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LSTAT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" lstat.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
if test "x$ac_cv_func_memmove" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_MEMMOVE 1
_ACEOF

else
  case " $LIBOBJS " in
  *" memmove.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" mkstemp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
if test "x$ac_cv_func_putenv" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PUTENV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" putenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "rcmd" "ac_cv_func_rcmd"
if test "x$ac_cv_func_rcmd" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_RCMD 1
_ACEOF

else
  case " $LIBOBJS " in
  *" rcmd.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
if test "x$ac_cv_func_readv" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_READV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" readv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS readv.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

else
  case " $LIBOBJS " in
  *" recvmsg.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
if test "x$ac_cv_func_sendmsg" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SENDMSG 1
_ACEOF

else
  case " $LIBOBJS " in
  *" sendmsg.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
if test "x$ac_cv_func_setegid" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SETEGID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" setegid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
if test "x$ac_cv_func_setenv" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SETENV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" setenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
if test "x$ac_cv_func_seteuid" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SETEUID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" seteuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
if test "x$ac_cv_func_strcasecmp" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRCASECMP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strcasecmp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
if test "x$ac_cv_func_strdup" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRDUP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strdup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
if test "x$ac_cv_func_strerror" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
if test "x$ac_cv_func_strftime" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRFTIME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strftime.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
if test "x$ac_cv_func_strlcat" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCAT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strlcat.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
if test "x$ac_cv_func_strlcpy" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCPY 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strlcpy.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr"
if test "x$ac_cv_func_strlwr" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRLWR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strlwr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
if test "x$ac_cv_func_strncasecmp" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRNCASECMP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strncasecmp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
if test "x$ac_cv_func_strndup" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRNDUP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strndup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
if test "x$ac_cv_func_strnlen" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRNLEN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strnlen.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
if test "x$ac_cv_func_strptime" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRPTIME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strptime.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
if test "x$ac_cv_func_strsep" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strsep.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strsep_copy" "ac_cv_func_strsep_copy"
if test "x$ac_cv_func_strsep_copy" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP_COPY 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strsep_copy.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
if test "x$ac_cv_func_strtok_r" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOK_R 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strtok_r.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr"
if test "x$ac_cv_func_strupr" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUPR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strupr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "swab" "ac_cv_func_swab"
if test "x$ac_cv_func_swab" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SWAB 1
_ACEOF

else
  case " $LIBOBJS " in
  *" swab.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS swab.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
if test "x$ac_cv_func_tsearch" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_TSEARCH 1
_ACEOF

else
  case " $LIBOBJS " in
  *" tsearch.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS tsearch.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
if test "x$ac_cv_func_timegm" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEGM 1
_ACEOF

else
  case " $LIBOBJS " in
  *" timegm.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
if test "x$ac_cv_func_unsetenv" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UNSETENV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" unsetenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr"
if test "x$ac_cv_func_verr" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_VERR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" verr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS verr.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx"
if test "x$ac_cv_func_verrx" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_VERRX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" verrx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
if test "x$ac_cv_func_vsyslog" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_VSYSLOG 1
_ACEOF

else
  case " $LIBOBJS " in
  *" vsyslog.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn"
if test "x$ac_cv_func_vwarn" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_VWARN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" vwarn.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx"
if test "x$ac_cv_func_vwarnx" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_VWARNX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" vwarnx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
if test "x$ac_cv_func_warn" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WARN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" warn.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS warn.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
if test "x$ac_cv_func_warnx" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WARNX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" warnx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
 ;;
esac

fi
ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
if test "x$ac_cv_func_writev" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WRITEV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" writev.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS writev.$ac_objext"
 ;;
esac

fi


 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi



if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strndup needs a prototype" >&5
$as_echo_n "checking if strndup needs a prototype... " >&6; }
if test "${ac_cv_func_strndup_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>
struct foo { int foo; } xx;
extern int strndup (struct foo*);
int
main ()
{
strndup(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strndup_noproto=yes"
else
  eval "ac_cv_func_strndup_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strndup_noproto" >&5
$as_echo "$ac_cv_func_strndup_noproto" >&6; }
if test "$ac_cv_func_strndup_noproto" = yes; then

$as_echo "#define NEED_STRNDUP_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsep needs a prototype" >&5
$as_echo_n "checking if strsep needs a prototype... " >&6; }
if test "${ac_cv_func_strsep_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>
struct foo { int foo; } xx;
extern int strsep (struct foo*);
int
main ()
{
strsep(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strsep_noproto=yes"
else
  eval "ac_cv_func_strsep_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsep_noproto" >&5
$as_echo "$ac_cv_func_strsep_noproto" >&6; }
if test "$ac_cv_func_strsep_noproto" = yes; then

$as_echo "#define NEED_STRSEP_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs a prototype" >&5
$as_echo_n "checking if strtok_r needs a prototype... " >&6; }
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
int
main ()
{
strtok_r(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strtok_r_noproto=yes"
else
  eval "ac_cv_func_strtok_r_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtok_r_noproto" >&5
$as_echo "$ac_cv_func_strtok_r_noproto" >&6; }
if test "$ac_cv_func_strtok_r_noproto" = yes; then

$as_echo "#define NEED_STRTOK_R_PROTO 1" >>confdefs.h

fi
fi



if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvis needs a prototype" >&5
$as_echo_n "checking if strsvis needs a prototype... " >&6; }
if test "${ac_cv_func_strsvis_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strsvis (struct foo*);
int
main ()
{
strsvis(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strsvis_noproto=yes"
else
  eval "ac_cv_func_strsvis_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvis_noproto" >&5
$as_echo "$ac_cv_func_strsvis_noproto" >&6; }
if test "$ac_cv_func_strsvis_noproto" = yes; then

$as_echo "#define NEED_STRSVIS_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_strsvisx+set" != set -o "$ac_cv_func_strsvisx" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strsvisx needs a prototype" >&5
$as_echo_n "checking if strsvisx needs a prototype... " >&6; }
if test "${ac_cv_func_strsvisx_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strsvisx (struct foo*);
int
main ()
{
strsvisx(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strsvisx_noproto=yes"
else
  eval "ac_cv_func_strsvisx_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strsvisx_noproto" >&5
$as_echo "$ac_cv_func_strsvisx_noproto" >&6; }
if test "$ac_cv_func_strsvisx_noproto" = yes; then

$as_echo "#define NEED_STRSVISX_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strunvis needs a prototype" >&5
$as_echo_n "checking if strunvis needs a prototype... " >&6; }
if test "${ac_cv_func_strunvis_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strunvis (struct foo*);
int
main ()
{
strunvis(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strunvis_noproto=yes"
else
  eval "ac_cv_func_strunvis_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strunvis_noproto" >&5
$as_echo "$ac_cv_func_strunvis_noproto" >&6; }
if test "$ac_cv_func_strunvis_noproto" = yes; then

$as_echo "#define NEED_STRUNVIS_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvis needs a prototype" >&5
$as_echo_n "checking if strvis needs a prototype... " >&6; }
if test "${ac_cv_func_strvis_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strvis (struct foo*);
int
main ()
{
strvis(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strvis_noproto=yes"
else
  eval "ac_cv_func_strvis_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvis_noproto" >&5
$as_echo "$ac_cv_func_strvis_noproto" >&6; }
if test "$ac_cv_func_strvis_noproto" = yes; then

$as_echo "#define NEED_STRVIS_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strvisx needs a prototype" >&5
$as_echo_n "checking if strvisx needs a prototype... " >&6; }
if test "${ac_cv_func_strvisx_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strvisx (struct foo*);
int
main ()
{
strvisx(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strvisx_noproto=yes"
else
  eval "ac_cv_func_strvisx_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strvisx_noproto" >&5
$as_echo "$ac_cv_func_strvisx_noproto" >&6; }
if test "$ac_cv_func_strvisx_noproto" = yes; then

$as_echo "#define NEED_STRVISX_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if svis needs a prototype" >&5
$as_echo_n "checking if svis needs a prototype... " >&6; }
if test "${ac_cv_func_svis_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int svis (struct foo*);
int
main ()
{
svis(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_svis_noproto=yes"
else
  eval "ac_cv_func_svis_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_svis_noproto" >&5
$as_echo "$ac_cv_func_svis_noproto" >&6; }
if test "$ac_cv_func_svis_noproto" = yes; then

$as_echo "#define NEED_SVIS_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unvis needs a prototype" >&5
$as_echo_n "checking if unvis needs a prototype... " >&6; }
if test "${ac_cv_func_unvis_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int unvis (struct foo*);
int
main ()
{
unvis(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_unvis_noproto=yes"
else
  eval "ac_cv_func_unvis_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unvis_noproto" >&5
$as_echo "$ac_cv_func_unvis_noproto" >&6; }
if test "$ac_cv_func_unvis_noproto" = yes; then

$as_echo "#define NEED_UNVIS_PROTO 1" >>confdefs.h

fi
fi

if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vis needs a prototype" >&5
$as_echo_n "checking if vis needs a prototype... " >&6; }
if test "${ac_cv_func_vis_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int vis (struct foo*);
int
main ()
{
vis(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_vis_noproto=yes"
else
  eval "ac_cv_func_vis_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vis_noproto" >&5
$as_echo "$ac_cv_func_vis_noproto" >&6; }
if test "$ac_cv_func_vis_noproto" = yes; then

$as_echo "#define NEED_VIS_PROTO 1" >>confdefs.h

fi
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for dirfd" >&5
$as_echo_n "checking checking for dirfd... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif

int
main ()
{
DIR *d = 0; dirfd(d);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_rk_have_dirfd=yes
else
  ac_rk_have_dirfd=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_rk_have_dirfd" = "yes" ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DIRFD 1
_ACEOF

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have_dirfd" >&5
$as_echo "$ac_rk_have_dirfd" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dd_fd in DIR" >&5
$as_echo_n "checking for dd_fd in DIR... " >&6; }
if test "${ac_cv_type_dir_dd_fd+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
int
main ()
{
DIR x; memset(&x, 0, sizeof(x)); x.dd_fd
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_dir_dd_fd=yes
else
  ac_cv_type_dir_dd_fd=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_dir_dd_fd" >&5
$as_echo "$ac_cv_type_dir_dd_fd" >&6; }
if test "$ac_cv_type_dir_dd_fd" = yes; then


$as_echo "#define HAVE_DIR_DD_FD 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
$as_echo_n "checking for inet_aton... " >&6; }
if test "${ac_cv_func_inet_aton+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton(0,0);
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_inet_aton=yes"
else
  eval "ac_cv_func_inet_aton=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_ATON 1
_ACEOF

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  case " $LIBOBJS " in
  *" inet_aton.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
 ;;
esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
$as_echo_n "checking for inet_ntop... " >&6; }
if test "${ac_cv_func_inet_ntop+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop(0, 0, 0, 0);
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_inet_ntop=yes"
else
  eval "ac_cv_func_inet_ntop=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_NTOP 1
_ACEOF

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  case " $LIBOBJS " in
  *" inet_ntop.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
 ;;
esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
$as_echo_n "checking for inet_pton... " >&6; }
if test "${ac_cv_func_inet_pton+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton(0,0,0);
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_inet_pton=yes"
else
  eval "ac_cv_func_inet_pton=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_PTON 1
_ACEOF

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  case " $LIBOBJS " in
  *" inet_pton.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
 ;;
esac

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
$as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_sockaddr_sa_len=yes
else
  ac_cv_type_struct_sockaddr_sa_len=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
$as_echo "$ac_cv_type_struct_sockaddr_sa_len" >&6; }
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then


$as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h


fi



if test "$ac_cv_func_getaddrinfo" = "yes"; then

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo handles numeric services" >&5
$as_echo_n "checking if getaddrinfo handles numeric services... " >&6; }
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_getaddrinfo_numserv=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

int
main(int argc, char **argv)
{
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
		return 1;
	if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
		return 1;
	return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_getaddrinfo_numserv=yes
else
  ac_cv_func_getaddrinfo_numserv=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo_numserv" >&5
$as_echo "$ac_cv_func_getaddrinfo_numserv" >&6; }
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
	case " $LIBOBJS " in
  *" getaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
 ;;
esac

	case " $LIBOBJS " in
  *" freeaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
 ;;
esac

  fi
fi


if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setenv needs a prototype" >&5
$as_echo_n "checking if setenv needs a prototype... " >&6; }
if test "${ac_cv_func_setenv_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
struct foo { int foo; } xx;
extern int setenv (struct foo*);
int
main ()
{
setenv(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_setenv_noproto=yes"
else
  eval "ac_cv_func_setenv_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setenv_noproto" >&5
$as_echo "$ac_cv_func_setenv_noproto" >&6; }
if test "$ac_cv_func_setenv_noproto" = yes; then

$as_echo "#define NEED_SETENV_PROTO 1" >>confdefs.h

fi
fi


if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unsetenv needs a prototype" >&5
$as_echo_n "checking if unsetenv needs a prototype... " >&6; }
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
int
main ()
{
unsetenv(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_unsetenv_noproto=yes"
else
  eval "ac_cv_func_unsetenv_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_unsetenv_noproto" >&5
$as_echo "$ac_cv_func_unsetenv_noproto" >&6; }
if test "$ac_cv_func_unsetenv_noproto" = yes; then

$as_echo "#define NEED_UNSETENV_PROTO 1" >>confdefs.h

fi
fi


if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname needs a prototype" >&5
$as_echo_n "checking if gethostname needs a prototype... " >&6; }
if test "${ac_cv_func_gethostname_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
int
main ()
{
gethostname(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_gethostname_noproto=yes"
else
  eval "ac_cv_func_gethostname_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostname_noproto" >&5
$as_echo "$ac_cv_func_gethostname_noproto" >&6; }
if test "$ac_cv_func_gethostname_noproto" = yes; then

$as_echo "#define NEED_GETHOSTNAME_PROTO 1" >>confdefs.h

fi
fi


if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp needs a prototype" >&5
$as_echo_n "checking if mkstemp needs a prototype... " >&6; }
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
int
main ()
{
mkstemp(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_mkstemp_noproto=yes"
else
  eval "ac_cv_func_mkstemp_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mkstemp_noproto" >&5
$as_echo "$ac_cv_func_mkstemp_noproto" >&6; }
if test "$ac_cv_func_mkstemp_noproto" = yes; then

$as_echo "#define NEED_MKSTEMP_PROTO 1" >>confdefs.h

fi
fi


if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getusershell needs a prototype" >&5
$as_echo_n "checking if getusershell needs a prototype... " >&6; }
if test "${ac_cv_func_getusershell_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
int
main ()
{
getusershell(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_getusershell_noproto=yes"
else
  eval "ac_cv_func_getusershell_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getusershell_noproto" >&5
$as_echo "$ac_cv_func_getusershell_noproto" >&6; }
if test "$ac_cv_func_getusershell_noproto" = yes; then

$as_echo "#define NEED_GETUSERSHELL_PROTO 1" >>confdefs.h

fi
fi


if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype" >&5
$as_echo_n "checking if daemon needs a prototype... " >&6; }
if test "${ac_cv_func_daemon_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int daemon (struct foo*);
int
main ()
{
daemon(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_daemon_noproto=yes"
else
  eval "ac_cv_func_daemon_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_daemon_noproto" >&5
$as_echo "$ac_cv_func_daemon_noproto" >&6; }
if test "$ac_cv_func_daemon_noproto" = yes; then

$as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h

fi
fi


if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if iruserok needs a prototype" >&5
$as_echo_n "checking if iruserok needs a prototype... " >&6; }
if test "${ac_cv_func_iruserok_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
struct foo { int foo; } xx;
extern int iruserok (struct foo*);
int
main ()
{
iruserok(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_iruserok_noproto=yes"
else
  eval "ac_cv_func_iruserok_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iruserok_noproto" >&5
$as_echo "$ac_cv_func_iruserok_noproto" >&6; }
if test "$ac_cv_func_iruserok_noproto" = yes; then

$as_echo "#define NEED_IRUSEROK_PROTO 1" >>confdefs.h

fi
fi



if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton needs a prototype" >&5
$as_echo_n "checking if inet_aton needs a prototype... " >&6; }
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
int
main ()
{
inet_aton(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_inet_aton_noproto=yes"
else
  eval "ac_cv_func_inet_aton_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton_noproto" >&5
$as_echo "$ac_cv_func_inet_aton_noproto" >&6; }
if test "$ac_cv_func_inet_aton_noproto" = yes; then

$as_echo "#define NEED_INET_ATON_PROTO 1" >>confdefs.h

fi
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5
$as_echo_n "checking for crypt... " >&6; }
if test "${ac_cv_funclib_crypt+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
crypt()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_crypt"

if false; then
	for ac_func in crypt
do :
  ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
if test "x$ac_cv_func_crypt" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CRYPT 1
_ACEOF

fi
done

fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compatible with system prototype" >&5
$as_echo_n "checking if strerror_r is compatible with system prototype... " >&6; }
if test "${ac_cv_func_strerror_r_proto_compat+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>

int
main ()
{
int strerror_r(int, char *, size_t)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_strerror_r_proto_compat=yes"
else
  eval "ac_cv_func_strerror_r_proto_compat=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_proto_compat" >&5
$as_echo "$ac_cv_func_strerror_r_proto_compat" >&6; }

if test "$ac_cv_func_strerror_r_proto_compat" = yes; then

$as_echo "#define STRERROR_R_PROTO_COMPATIBLE 1" >>confdefs.h

fi



ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compatible with system prototype" >&5
$as_echo_n "checking if gethostbyname is compatible with system prototype... " >&6; }
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct hostent *gethostbyname(const char *)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
else
  eval "ac_cv_func_gethostbyname_proto_compat=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_proto_compat" >&5
$as_echo "$ac_cv_func_gethostbyname_proto_compat" >&6; }

if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then

$as_echo "#define GETHOSTBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h

fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compatible with system prototype" >&5
$as_echo_n "checking if gethostbyaddr is compatible with system prototype... " >&6; }
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct hostent *gethostbyaddr(const void *, size_t, int)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
else
  eval "ac_cv_func_gethostbyaddr_proto_compat=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
$as_echo "$ac_cv_func_gethostbyaddr_proto_compat" >&6; }

if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then

$as_echo "#define GETHOSTBYADDR_PROTO_COMPATIBLE 1" >>confdefs.h

fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname is compatible with system prototype" >&5
$as_echo_n "checking if getservbyname is compatible with system prototype... " >&6; }
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct servent *getservbyname(const char *, const char *)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_getservbyname_proto_compat=yes"
else
  eval "ac_cv_func_getservbyname_proto_compat=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_proto_compat" >&5
$as_echo "$ac_cv_func_getservbyname_proto_compat" >&6; }

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then

$as_echo "#define GETSERVBYNAME_PROTO_COMPATIBLE 1" >>confdefs.h

fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compatible with system prototype" >&5
$as_echo_n "checking if getsockname is compatible with system prototype... " >&6; }
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{
int getsockname(int, struct sockaddr*, socklen_t*)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_getsockname_proto_compat=yes"
else
  eval "ac_cv_func_getsockname_proto_compat=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_proto_compat" >&5
$as_echo "$ac_cv_func_getsockname_proto_compat" >&6; }

if test "$ac_cv_func_getsockname_proto_compat" = yes; then

$as_echo "#define GETSOCKNAME_PROTO_COMPATIBLE 1" >>confdefs.h

fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if openlog is compatible with system prototype" >&5
$as_echo_n "checking if openlog is compatible with system prototype... " >&6; }
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

int
main ()
{
void openlog(const char *, int, int)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_openlog_proto_compat=yes"
else
  eval "ac_cv_func_openlog_proto_compat=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_openlog_proto_compat" >&5
$as_echo "$ac_cv_func_openlog_proto_compat" >&6; }

if test "$ac_cv_func_openlog_proto_compat" = yes; then

$as_echo "#define OPENLOG_PROTO_COMPATIBLE 1" >>confdefs.h

fi




if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if crypt needs a prototype" >&5
$as_echo_n "checking if crypt needs a prototype... " >&6; }
if test "${ac_cv_func_crypt_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

struct foo { int foo; } xx;
extern int crypt (struct foo*);
int
main ()
{
crypt(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_crypt_noproto=yes"
else
  eval "ac_cv_func_crypt_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_crypt_noproto" >&5
$as_echo "$ac_cv_func_crypt_noproto" >&6; }
if test "$ac_cv_func_crypt_noproto" = yes; then

$as_echo "#define NEED_CRYPT_PROTO 1" >>confdefs.h

fi
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5
$as_echo_n "checking for h_errno... " >&6; }
if test "${ac_cv_var_h_errno+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif

	void * foo(void) { return &h_errno; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_h_errno=yes
else
  ac_cv_var_h_errno=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_errno" != yes ; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif

extern int h_errno;
int foo(void) { return h_errno; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_h_errno=yes
else
  ac_cv_var_h_errno=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_h_errno`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRNO 1
_ACEOF

	ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRNO $ac_have_decl
_ACEOF

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errlist" >&5
$as_echo_n "checking for h_errlist... " >&6; }
if test "${ac_cv_var_h_errlist+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
	void * foo(void) { return &h_errlist; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_h_errlist=yes
else
  ac_cv_var_h_errlist=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_errlist" != yes ; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
extern int h_errlist;
int foo(void) { return h_errlist; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_h_errlist=yes
else
  ac_cv_var_h_errlist=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRLIST 1
_ACEOF

	ac_fn_c_check_decl "$LINENO" "h_errlist" "ac_cv_have_decl_h_errlist" "#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
"
if test "x$ac_cv_have_decl_h_errlist" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRLIST $ac_have_decl
_ACEOF

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_nerr" >&5
$as_echo_n "checking for h_nerr... " >&6; }
if test "${ac_cv_var_h_nerr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
	void * foo(void) { return &h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_h_nerr=yes
else
  ac_cv_var_h_nerr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_nerr" != yes ; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
extern int h_nerr;
int foo(void) { return h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_h_nerr=yes
else
  ac_cv_var_h_nerr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_h_nerr`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_H_NERR 1
_ACEOF

	ac_fn_c_check_decl "$LINENO" "h_nerr" "ac_cv_have_decl_h_nerr" "#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
"
if test "x$ac_cv_have_decl_h_nerr" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_NERR $ac_have_decl
_ACEOF

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
$as_echo_n "checking for __progname... " >&6; }
if test "${ac_cv_var___progname+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_ERR_H
#include <err.h>
#endif
	void * foo(void) { return &__progname; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var___progname=yes
else
  ac_cv_var___progname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var___progname" != yes ; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern int __progname;
int foo(void) { return __progname; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var___progname=yes
else
  ac_cv_var___progname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var___progname`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE___PROGNAME 1
_ACEOF

	ac_fn_c_check_decl "$LINENO" "__progname" "ac_cv_have_decl___progname" "#ifdef HAVE_ERR_H
#include <err.h>
#endif
"
if test "x$ac_cv_have_decl___progname" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___PROGNAME $ac_have_decl
_ACEOF

fi


ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
"
if test "x$ac_cv_have_decl_optarg" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTARG $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
"
if test "x$ac_cv_have_decl_optind" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTIND $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" "
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
"
if test "x$ac_cv_have_decl_opterr" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTERR $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" "
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
"
if test "x$ac_cv_have_decl_optopt" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTOPT $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
"
if test "x$ac_cv_have_decl_environ" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ENVIRON $ac_have_decl
_ACEOF





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
int
main ()
{
struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_tm_tm_gmtoff=yes
else
  ac_cv_type_struct_tm_tm_gmtoff=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
$as_echo "$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then


$as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
$as_echo_n "checking for tm_zone in struct tm... " >&6; }
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
int
main ()
{
struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_tm_tm_zone=yes
else
  ac_cv_type_struct_tm_tm_zone=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_tm_tm_zone" >&5
$as_echo "$ac_cv_type_struct_tm_tm_zone" >&6; }
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then


$as_echo "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h


fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
$as_echo_n "checking for timezone... " >&6; }
if test "${ac_cv_var_timezone+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
	void * foo(void) { return &timezone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_timezone=yes
else
  ac_cv_var_timezone=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_timezone" != yes ; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
extern int timezone;
int foo(void) { return timezone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_timezone=yes
else
  ac_cv_var_timezone=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_timezone`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEZONE 1
_ACEOF

	ac_fn_c_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "#include <time.h>
"
if test "x$ac_cv_have_decl_timezone" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TIMEZONE $ac_have_decl
_ACEOF

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone" >&5
$as_echo_n "checking for altzone... " >&6; }
if test "${ac_cv_var_altzone+set}" = set; then :
  $as_echo_n "(cached) " >&6
else


	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
	void * foo(void) { return &altzone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_altzone=yes
else
  ac_cv_var_altzone=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_altzone" != yes ; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
extern int altzone;
int foo(void) { return altzone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_var_altzone=yes
else
  ac_cv_var_altzone=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_altzone`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ALTZONE 1
_ACEOF

	ac_fn_c_check_decl "$LINENO" "altzone" "ac_cv_have_decl_altzone" "#include <time.h>
"
if test "x$ac_cv_have_decl_altzone" = x""yes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ALTZONE $ac_have_decl
_ACEOF

fi




cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
$as_echo_n "checking for sa_family_t... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
sa_family_t foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "$ac_includes_default"
if test "x$ac_cv_type_sa_family_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SA_FAMILY_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
$as_echo_n "checking for socklen_t... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
socklen_t foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
if test "x$ac_cv_type_socklen_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr" >&5
$as_echo_n "checking for struct sockaddr... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
struct sockaddr foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "$ac_includes_default"
if test "x$ac_cv_type_struct_sockaddr" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
$as_echo_n "checking for struct addrinfo... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_ADDRINFO 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifaddrs" >&5
$as_echo_n "checking for struct ifaddrs... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
int
main ()
{
struct ifaddrs foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "struct ifaddrs" "ac_cv_type_struct_ifaddrs" "$ac_includes_default"
if test "x$ac_cv_type_struct_ifaddrs" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFADDRS 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5
$as_echo_n "checking for struct iovec... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/uio.h>

int
main ()
{
struct iovec foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "$ac_includes_default"
if test "x$ac_cv_type_struct_iovec" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IOVEC 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr" >&5
$as_echo_n "checking for struct msghdr... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
int
main ()
{
struct msghdr foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "$ac_includes_default"
if test "x$ac_cv_type_struct_msghdr" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_MSGHDR 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize" >&5
$as_echo_n "checking for struct winsize... " >&6; }
if test "${ac_cv_struct_winsize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$i>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then :
  ac_cv_struct_winsize=yes; break
fi
rm -f conftest*
done

fi

if test "$ac_cv_struct_winsize" = "yes"; then

$as_echo "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_winsize" >&5
$as_echo "$ac_cv_struct_winsize" >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ws_xpixel" >/dev/null 2>&1; then :

$as_echo "#define HAVE_WS_XPIXEL 1" >>confdefs.h

fi
rm -f conftest*

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ws_ypixel" >/dev/null 2>&1; then :

$as_echo "#define HAVE_WS_YPIXEL 1" >>confdefs.h

fi
rm -f conftest*





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct spwd" >&5
$as_echo_n "checking for struct spwd... " >&6; }
if test "${ac_cv_struct_spwd+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_spwd=yes
else
  ac_cv_struct_spwd=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_spwd" >&5
$as_echo "$ac_cv_struct_spwd" >&6; }

if test "$ac_cv_struct_spwd" = "yes"; then

$as_echo "#define HAVE_STRUCT_SPWD 1" >>confdefs.h

fi


#
# Check if we want samba's socket wrapper
#



# Check whether --enable-socket-wrapper was given.
if test "${enable_socket_wrapper+set}" = set; then :
  enableval=$enable_socket_wrapper;
fi


 if test "x$enable_socket_wrapper" = xyes; then
  have_socket_wrapper_TRUE=
  have_socket_wrapper_FALSE='#'
else
  have_socket_wrapper_TRUE='#'
  have_socket_wrapper_FALSE=
fi

if test "x$enable_socket_wrapper" = xyes ; then

$as_echo "#define SOCKET_WRAPPER_REPLACE 1" >>confdefs.h

fi




LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"


LIBADD_roken="$LIB_roken"
LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"


# Check whether --enable-otp was given.
if test "${enable_otp+set}" = set; then :
  enableval=$enable_otp;
fi

if test "$enable_otp" = yes -a "$db_type" = unknown; then
	as_fn_error "OTP requires a NDBM/DB compatible library" "$LINENO" 5
fi
if test "$enable_otp" != no; then
	if test "$db_type" != unknown; then
		enable_otp=yes
	else
		enable_otp=no
	fi
fi
if test "$enable_otp" = yes; then

$as_echo "#define OTP 1" >>confdefs.h

	LIB_otp='$(top_builddir)/lib/otp/libotp.la'

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OTP library" >&5
$as_echo_n "checking whether to enable OTP library... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_otp" >&5
$as_echo "$enable_otp" >&6; }
 if test "$enable_otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi




for ac_header in dispatch/dispatch.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default"
if test "x$ac_cv_header_dispatch_dispatch_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DISPATCH_DISPATCH_H 1
_ACEOF

fi

done





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dispatch_async_f" >&5
$as_echo_n "checking for dispatch_async_f... " >&6; }
if test "${ac_cv_funclib_dispatch_async_f+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_dispatch_async_f\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" dispatch; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_DISPATCH_DISPATCH_H
#include <dispatch/dispatch.h>
#endif
int
main ()
{
dispatch_async_f(0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dispatch_async_f=$ac_lib; else ac_cv_funclib_dispatch_async_f=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dispatch_async_f=\${ac_cv_funclib_dispatch_async_f-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dispatch_async_f"

if false; then
	for ac_func in dispatch_async_f
do :
  ac_fn_c_check_func "$LINENO" "dispatch_async_f" "ac_cv_func_dispatch_async_f"
if test "x$ac_cv_func_dispatch_async_f" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DISPATCH_ASYNC_F 1
_ACEOF

fi
done

fi
# dispatch_async_f
eval "ac_tr_func=HAVE_`echo dispatch_async_f | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dispatch_async_f=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dispatch_async_f=yes"
	eval "LIB_dispatch_async_f="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dispatch_async_f=no"
	eval "LIB_dispatch_async_f="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_dispatch_async_f=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac



if test "$ac_cv_func_dispatch_async_f" = yes ; then

$as_echo "#define HAVE_GCD 1" >>confdefs.h

    libdispatch=yes
else
    libdispatch=no
fi

 if test "$libdispatch" = yes; then
  have_gcd_TRUE=
  have_gcd_FALSE='#'
else
  have_gcd_TRUE='#'
  have_gcd_FALSE=
fi





# Check whether --enable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then :
  enableval=$enable_osfc2;
fi

LIB_security=
if test "$enable_osfc2" = yes; then

$as_echo "#define HAVE_OSFC2 1" >>confdefs.h

	LIB_security=-lsecurity
fi



# Check whether --enable-mmap was given.
if test "${enable_mmap+set}" = set; then :
  enableval=$enable_mmap;
fi

if test "$enable_mmap" = "no"; then

$as_echo "#define NO_MMAP 1" >>confdefs.h

fi

# Check whether --enable-afs-string-to-key was given.
if test "${enable_afs_string_to_key+set}" = set; then :
  enableval=$enable_afs_string_to_key;
else
  enable_afs_string_to_key=yes
fi


if test "$enable_afs_string_to_key" = "yes"; then

$as_echo "#define ENABLE_AFS_STRING_TO_KEY 1" >>confdefs.h

fi


# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_NROFF+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $NROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
NROFF=$ac_cv_path_NROFF
if test -n "$NROFF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
$as_echo "$NROFF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GROFF+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $GROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GROFF=$ac_cv_path_GROFF
if test -n "$GROFF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
$as_echo "$GROFF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to format man pages" >&5
$as_echo_n "checking how to format man pages... " >&6; }
if test "${ac_cv_sys_man_format+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd foobar
END

if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_man_format" >&5
$as_echo "$ac_cv_sys_man_format" >&6; }
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"

fi
 if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
else
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extension of pre-formatted manual pages" >&5
$as_echo_n "checking extension of pre-formatted manual pages... " >&6; }
if test "${ac_cv_sys_catman_ext+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_catman_ext" >&5
$as_echo "$ac_cv_sys_catman_ext" >&6; }
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$section'
else
	CATMANEXT=0
fi





# Check whether --with-readline was given.
if test "${with_readline+set}" = set; then :
  withval=$with_readline;
fi


# Check whether --with-readline-lib was given.
if test "${with_readline_lib+set}" = set; then :
  withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-readline-lib" "$LINENO" 5
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi


# Check whether --with-readline-include was given.
if test "${with_readline_include+set}" = set; then :
  withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-readline-include" "$LINENO" 5
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi


# Check whether --with-readline-config was given.
if test "${with_readline_config+set}" = set; then :
  withval=$with_readline_config;
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
$as_echo_n "checking for readline... " >&6; }

case "$with_readline" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_readline" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_readline_include" = ""; then
		if test -d "$i/include/readline"; then
			header_dirs="$header_dirs $i/include/readline"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_readline_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_readline_include"; then
	header_dirs="$with_readline_include $header_dirs"
fi
if test "$with_readline_lib"; then
	lib_dirs="$with_readline_lib $lib_dirs"
fi

if test "$with_readline_config" = ""; then
	with_readline_config=''
fi

readline_cflags=
readline_libs=

case "$with_readline_config" in
yes|no|""|"")
	if test -f $with_readline/bin/ ; then
		with_readline_config=$with_readline/bin/
	fi
	;;
esac

case "$with_readline_config" in
yes|no|"")
	;;
*)
	readline_cflags="`$with_readline_config --cflags 2>&1`"
	readline_libs="`$with_readline_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_readline" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$readline_cflags" -a "$readline_libs"; then
		CFLAGS="$readline_cflags $save_CFLAGS"
		LIBS="$readline_libs $save_LIBS"
		for ac_header in readline.h readline/readline.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#if defined(HAVE_READLINE_READLINE_H)
#include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
#include <readline.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

			INCLUDE_readline="$readline_cflags"
			LIB_readline="$readline_libs"
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_readline_config" >&5
$as_echo "from $with_readline_config" >&6; }
			found=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			for ac_header in readline.h readline/readline.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#if defined(HAVE_READLINE_READLINE_H)
#include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
#include <readline.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ires=$i;break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lreadline  $save_LIBS"
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#if defined(HAVE_READLINE_READLINE_H)
#include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
#include <readline.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lres=$i;break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
			INCLUDE_readline="-I$ires"
			LIB_readline="-L$lres -lreadline "
			found=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
$as_echo "headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define READLINE 1
_ACEOF

	with_readline=yes
else
	with_readline=no
	INCLUDE_readline=
	LIB_readline=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi







# Check whether --with-libedit was given.
if test "${with_libedit+set}" = set; then :
  withval=$with_libedit;
fi


# Check whether --with-libedit-lib was given.
if test "${with_libedit_lib+set}" = set; then :
  withval=$with_libedit_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-libedit-lib" "$LINENO" 5
elif test "X$with_libedit" = "X"; then
  with_libedit=yes
fi
fi


# Check whether --with-libedit-include was given.
if test "${with_libedit_include+set}" = set; then :
  withval=$with_libedit_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-libedit-include" "$LINENO" 5
elif test "X$with_libedit" = "X"; then
  with_libedit=yes
fi
fi


# Check whether --with-libedit-config was given.
if test "${with_libedit_config+set}" = set; then :
  withval=$with_libedit_config;
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
$as_echo_n "checking for libedit... " >&6; }

case "$with_libedit" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_libedit" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_libedit_include" = ""; then
		if test -d "$i/include/libedit"; then
			header_dirs="$header_dirs $i/include/libedit"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_libedit_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_libedit_include"; then
	header_dirs="$with_libedit_include $header_dirs"
fi
if test "$with_libedit_lib"; then
	lib_dirs="$with_libedit_lib $lib_dirs"
fi

if test "$with_libedit_config" = ""; then
	with_libedit_config=''
fi

libedit_cflags=
libedit_libs=

case "$with_libedit_config" in
yes|no|""|"")
	if test -f $with_libedit/bin/ ; then
		with_libedit_config=$with_libedit/bin/
	fi
	;;
esac

case "$with_libedit_config" in
yes|no|"")
	;;
*)
	libedit_cflags="`$with_libedit_config --cflags 2>&1`"
	libedit_libs="`$with_libedit_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_libedit" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$libedit_cflags" -a "$libedit_libs"; then
		CFLAGS="$libedit_cflags $save_CFLAGS"
		LIBS="$libedit_libs $save_LIBS"
		for ac_header in readline.h readline/readline.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#if defined(HAVE_READLINE_READLINE_H)
#include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
#include <readline.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

			INCLUDE_libedit="$libedit_cflags"
			LIB_libedit="$libedit_libs"
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_libedit_config" >&5
$as_echo "from $with_libedit_config" >&6; }
			found=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			for ac_header in readline.h readline/readline.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#if defined(HAVE_READLINE_READLINE_H)
#include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
#include <readline.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ires=$i;break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -ledit  $save_LIBS"
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#if defined(HAVE_READLINE_READLINE_H)
#include <readline/readline.h>
#elif defined(HAVE_READLINE_H)
#include <readline.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lres=$i;break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_libedit" != "no"; then
			INCLUDE_libedit="-I$ires"
			LIB_libedit="-L$lres -ledit "
			found=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
$as_echo "headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define LIBEDIT 1
_ACEOF

	with_libedit=yes
else
	with_libedit=no
	INCLUDE_libedit=
	LIB_libedit=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi







subdirs="$subdirs lib/libedit"




# Check whether --with-hesiod was given.
if test "${with_hesiod+set}" = set; then :
  withval=$with_hesiod;
fi


# Check whether --with-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then :
  withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-hesiod-lib" "$LINENO" 5
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi


# Check whether --with-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then :
  withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  as_fn_error "No argument for --with-hesiod-include" "$LINENO" 5
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi


# Check whether --with-hesiod-config was given.
if test "${with_hesiod_config+set}" = set; then :
  withval=$with_hesiod_config;
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hesiod" >&5
$as_echo_n "checking for hesiod... " >&6; }

case "$with_hesiod" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_hesiod" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_hesiod_include" = ""; then
		if test -d "$i/include/hesiod"; then
			header_dirs="$header_dirs $i/include/hesiod"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_hesiod_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_hesiod_include"; then
	header_dirs="$with_hesiod_include $header_dirs"
fi
if test "$with_hesiod_lib"; then
	lib_dirs="$with_hesiod_lib $lib_dirs"
fi

if test "$with_hesiod_config" = ""; then
	with_hesiod_config=''
fi

hesiod_cflags=
hesiod_libs=

case "$with_hesiod_config" in
yes|no|""|"")
	if test -f $with_hesiod/bin/ ; then
		with_hesiod_config=$with_hesiod/bin/
	fi
	;;
esac

case "$with_hesiod_config" in
yes|no|"")
	;;
*)
	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_hesiod" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$hesiod_cflags" -a "$hesiod_libs"; then
		CFLAGS="$hesiod_cflags $save_CFLAGS"
		LIBS="$hesiod_libs $save_LIBS"

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

			INCLUDE_hesiod="$hesiod_cflags"
			LIB_hesiod="$hesiod_libs"
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from $with_hesiod_config" >&5
$as_echo "from $with_hesiod_config" >&6; }
			found=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"

			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ires=$i;break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lhesiod  $save_LIBS"
			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lres=$i;break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
			INCLUDE_hesiod="-I$ires"
			LIB_hesiod="-L$lres -lhesiod "
			found=yes
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $ires, libraries $lres" >&5
$as_echo "headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define HESIOD 1
_ACEOF

	with_hesiod=yes
else
	with_hesiod=no
	INCLUDE_hesiod=
	LIB_hesiod=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi






# Check whether --enable-bigendian was given.
if test "${enable_bigendian+set}" = set; then :
  enableval=$enable_bigendian; krb_cv_c_bigendian=yes
fi

# Check whether --enable-littleendian was given.
if test "${enable_littleendian+set}" = set; then :
  enableval=$enable_littleendian; krb_cv_c_bigendian=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte order is known at compile time" >&5
$as_echo_n "checking whether byte order is known at compile time... " >&6; }
if test "${krb_cv_c_bigendian_compile+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/param.h>
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  krb_cv_c_bigendian_compile=yes
else
  krb_cv_c_bigendian_compile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian_compile" >&5
$as_echo "$krb_cv_c_bigendian_compile" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if test "${krb_cv_c_bigendian+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test "$krb_cv_c_bigendian_compile" = "yes"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/param.h>
#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  krb_cv_c_bigendian=yes
else
  krb_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  else
    if test "$cross_compiling" = yes; then :
  as_fn_error "specify either --enable-bigendian or --enable-littleendian" "$LINENO" 5
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
main (int argc, char **argv) {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
    } u;
    u.l = 1;
    exit (u.c[sizeof (long) - 1] == 1);
  }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  krb_cv_c_bigendian=no
else
  krb_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

  fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_c_bigendian" >&5
$as_echo "$krb_cv_c_bigendian" >&6; }
if test "$krb_cv_c_bigendian" = "yes"; then

$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
fi
if test "$krb_cv_c_bigendian_compile" = "yes"; then

$as_echo "#define ENDIANESS_IN_SYS_PARAM_H 1" >>confdefs.h
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if test "${ac_cv_c_inline+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
$as_echo_n "checking for X... " >&6; }


# Check whether --with-x was given.
if test "${with_x+set}" = set; then :
  withval=$with_x;
fi

# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  case $x_includes,$x_libraries in #(
    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -f -r conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  cat >Imakefile <<'_ACEOF'
incroot:
	@@echo incroot='${INCROOT}'
usrlibdir:
	@@echo usrlibdir='${USRLIBDIR}'
libdir:
	@@echo libdir='${LIBDIR}'
_ACEOF
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    for ac_var in incroot usrlibdir libdir; do
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
    done
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl dylib la dll; do
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
	ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ac_x_includes= ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -f -r conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R7/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R7
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R7/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R7
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include

/usr/openwin/include
/usr/openwin/share/include'

if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Xlib.h.
  # First, try using that file with no special directory specified.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xlib.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Xlib.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
fi
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no

if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lX11 $LIBS"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xlib.h>
int
main ()
{
XrmInitialize ()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
  LIBS=$ac_save_LIBS
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl dylib la dll; do
    if test -r "$ac_dir/libX11.$ac_extension"; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no

case $ac_x_includes,$ac_x_libraries in #(
  no,* | *,no | *\'*)
    # Didn't find X, or a directory has "'" in its name.
    ac_cv_have_x="have_x=no";; #(
  *)
    # Record where we found X for the cache.
    ac_cv_have_x="have_x=yes\
	ac_x_includes='$ac_x_includes'\
	ac_x_libraries='$ac_x_libraries'"
esac
fi
;; #(
    *) have_x=yes;;
  esac
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
$as_echo "$have_x" >&6; }
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes\
	ac_x_includes='$x_includes'\
	ac_x_libraries='$x_libraries'"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
fi


if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.

$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
    ac_xsave_c_werror_flag=$ac_c_werror_flag
    ac_c_werror_flag=yes
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
       X_LIBS="$X_LIBS -R$x_libraries"
else
  LIBS="$ac_xsave_LIBS -R $x_libraries"
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	  X_LIBS="$X_LIBS -R $x_libraries"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
$as_echo "neither works" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    ac_c_werror_flag=$ac_xsave_c_werror_flag
    LIBS=$ac_xsave_LIBS
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XOpenDisplay ();
int
main ()
{
return XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dnet_dnet_ntoa=yes
else
  ac_cv_lib_dnet_dnet_ntoa=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi

    fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"

    # msh@@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
if test "x$ac_cv_func_gethostbyname" = x""yes; then :

fi

    if test $ac_cv_func_gethostbyname = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_nsl_gethostbyname=yes
else
  ac_cv_lib_nsl_gethostbyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi

      if test $ac_cv_lib_nsl_gethostbyname = no; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bsd_gethostbyname=yes
else
  ac_cv_lib_bsd_gethostbyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the name server (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
if test "x$ac_cv_func_connect" = x""yes; then :

fi

    if test $ac_cv_func_connect = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
$as_echo_n "checking for connect in -lsocket... " >&6; }
if test "${ac_cv_lib_socket_connect+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char connect ();
int
main ()
{
return connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_connect=yes
else
  ac_cv_lib_socket_connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
$as_echo "$ac_cv_lib_socket_connect" >&6; }
if test "x$ac_cv_lib_socket_connect" = x""yes; then :
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi

    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
if test "x$ac_cv_func_remove" = x""yes; then :

fi

    if test $ac_cv_func_remove = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
$as_echo_n "checking for remove in -lposix... " >&6; }
if test "${ac_cv_lib_posix_remove+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char remove ();
int
main ()
{
return remove ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_posix_remove=yes
else
  ac_cv_lib_posix_remove=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
$as_echo "$ac_cv_lib_posix_remove" >&6; }
if test "x$ac_cv_lib_posix_remove" = x""yes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
if test "x$ac_cv_func_shmat" = x""yes; then :

fi

    if test $ac_cv_func_shmat = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
$as_echo_n "checking for shmat in -lipc... " >&6; }
if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shmat ();
int
main ()
{
return shmat ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ipc_shmat=yes
else
  ac_cv_lib_ipc_shmat=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char IceConnectionNumber ();
int
main ()
{
return IceConnectionNumber ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ICE_IceConnectionNumber=yes
else
  ac_cv_lib_ICE_IceConnectionNumber=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS

fi


# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special X linker flags" >&5
$as_echo_n "checking for special X linker flags... " >&6; }
if test "${krb_cv_sys_x_libs_rpath+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	ac_save_libs="$LIBS"
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS $X_CFLAGS"
	krb_cv_sys_x_libs_rpath=""
	krb_cv_sys_x_libs=""
	for rflag in "" "-R" "-R " "-rpath "; do
		if test "$rflag" = ""; then
			foo="$X_LIBS"
		else
			foo=""
			for flag in $X_LIBS; do
			case $flag in
			-L*)
				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
				;;
			*)
				foo="$foo $flag"
				;;
			esac
			done
		fi
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
		if test "$cross_compiling" = yes; then :
  krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <X11/Xlib.h>
		foo(void)
		{
		XOpenDisplay(NULL);
		}
		main(int argc, char **argv)
		{
		return 0;
		}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
else
  :
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_sys_x_libs_rpath" >&5
$as_echo "$krb_cv_sys_x_libs_rpath" >&6; }
	X_LIBS="$krb_cv_sys_x_libs"
fi


 if test "$no_x" != yes; then
  HAVE_X_TRUE=
  HAVE_X_FALSE='#'
else
  HAVE_X_TRUE='#'
  HAVE_X_FALSE=
fi



save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"

## check for XauWriteAuth first, so we detect the case where
## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
## could be done by checking for XauReadAuth in -lXau first, but this
## breaks in IRIX 6.5




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauWriteAuth" >&5
$as_echo_n "checking for XauWriteAuth... " >&6; }
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xauth.h>
int
main ()
{
XauWriteAuth(0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_XauWriteAuth"

if false; then
	for ac_func in XauWriteAuth
do :
  ac_fn_c_check_func "$LINENO" "XauWriteAuth" "ac_cv_func_XauWriteAuth"
if test "x$ac_cv_func_XauWriteAuth" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_XAUWRITEAUTH 1
_ACEOF

fi
done

fi
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauWriteAuth=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauReadAuth" >&5
$as_echo_n "checking for XauReadAuth... " >&6; }
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xauth.h>
int
main ()
{
XauReadAuth(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_XauReadAuth"

if false; then
	for ac_func in XauReadAuth
do :
  ac_fn_c_check_func "$LINENO" "XauReadAuth" "ac_cv_func_XauReadAuth"
if test "x$ac_cv_func_XauReadAuth" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_XAUREADAUTH 1
_ACEOF

fi
done

fi
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauReadAuth=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_XauReadAuth=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


LIBS="$LIB_XauReadAauth $LIBS"



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauFileName" >&5
$as_echo_n "checking for XauFileName... " >&6; }
if test "${ac_cv_funclib_XauFileName+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xauth.h>
int
main ()
{
XauFileName()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_XauFileName"

if false; then
	for ac_func in XauFileName
do :
  ac_fn_c_check_func "$LINENO" "XauFileName" "ac_cv_func_XauFileName"
if test "x$ac_cv_func_XauFileName" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_XAUFILENAME 1
_ACEOF

fi
done

fi
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauFileName=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_XauFileName=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


LIBS="$ac_xxx"

## set LIB_XauReadAuth to union of these tests, since this is what the
## Makefiles are using
case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
	fi
	;;
esac

if test "$AUTOMAKE" != ""; then
	 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
else
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
fi

else


	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if test "${ac_cv_c_const+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
$as_echo_n "checking for mode_t... " >&6; }
if test "${ac_cv_type_mode_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
  ac_cv_type_mode_t=yes
else
  ac_cv_type_mode_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mode_t" >&5
$as_echo "$ac_cv_type_mode_t" >&6; }
if test $ac_cv_type_mode_t = no; then

$as_echo "#define mode_t unsigned short" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
$as_echo_n "checking for sig_atomic_t... " >&6; }
if test "${ac_cv_type_sig_atomic_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
  ac_cv_type_sig_atomic_t=yes
else
  ac_cv_type_sig_atomic_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
if test $ac_cv_type_sig_atomic_t = no; then

$as_echo "#define sig_atomic_t int" >>confdefs.h

fi



cv=`echo "long long" | sed 'y%./+- %__p__%'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
$as_echo_n "checking for long long... " >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_type_$cv=yes"
else
  eval "ac_cv_type_$cv=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
$as_echo "$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if test "${ac_cv_header_time+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if test "${ac_cv_struct_tm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
else
  ac_cv_struct_tm=sys/time.h
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi


for ac_header in \
	CommonCrypto/CommonDigest.h		\
	CommonCrypto/CommonCryptor.h		\
	arpa/ftp.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	curses.h				\
	dlfcn.h					\
	execinfo.h				\
	fnmatch.h				\
	inttypes.h				\
	io.h					\
	libutil.h				\
	limits.h				\
	maillock.h				\
	netgroup.h				\
	netinet/in6_machtypes.h			\
	pthread.h				\
	pty.h					\
	sac.h					\
	sgtty.h					\
	siad.h					\
	signal.h				\
	strings.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/mman.h				\
	sys/param.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/select.h				\
	sys/socket.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/syscall.h				\
	sys/termio.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/types.h				\
	sys/un.h				\
	locale.h				\
	termcap.h				\
	termio.h				\
	termios.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	util.h					\
	utmp.h					\
	utmpx.h					\

do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in term.h
do :
  ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
if test "x$ac_cv_header_term_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_TERM_H 1
_ACEOF

fi

done


for ac_header in asl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "asl.h" "ac_cv_header_asl_h" "
#include <asl.h>
#ifndef ASL_STRING_EMERG
#error ASL_STRING_EMERG missing
#endif
"
if test "x$ac_cv_header_asl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ASL_H 1
_ACEOF

fi

done


for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
"
if test "x$ac_cv_header_net_if_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done


for ac_header in sys/ptyvar.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/ptyvar.h" "ac_cv_header_sys_ptyvar_h" "$ac_includes_default
#if HAVE_SYS_TTY_H
#include <sys/tty.h>
#endif
"
if test "x$ac_cv_header_sys_ptyvar_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PTYVAR_H 1
_ACEOF

fi

done


for ac_header in sys/strtty.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/strtty.h" "ac_cv_header_sys_strtty_h" "$ac_includes_default
#if HAVE_TERMIOS_H
#include <termios.h>
#endif
#if HAVE_SYS_STREAM_H
#include <sys/stream.h>
#endif
"
if test "x$ac_cv_header_sys_strtty_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_STRTTY_H 1
_ACEOF

fi

done


for ac_header in sys/ucred.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
"
if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_UCRED_H 1
_ACEOF

fi

done


for ac_header in security/pam_modules.h
do :
  ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default
#include <security/pam_appl.h>

"
if test "x$ac_cv_header_security_pam_modules_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SECURITY_PAM_MODULES_H 1
_ACEOF

fi

done










{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logwtmp" >&5
$as_echo_n "checking for logwtmp... " >&6; }
if test "${ac_cv_funclib_logwtmp+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UTIL_H
#include <util.h>
#endif

int
main ()
{
logwtmp(0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_logwtmp"

if false; then
	for ac_func in logwtmp
do :
  ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
if test "x$ac_cv_func_logwtmp" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOGWTMP 1
_ACEOF

fi
done

fi
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logwtmp=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_logwtmp=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logout" >&5
$as_echo_n "checking for logout... " >&6; }
if test "${ac_cv_funclib_logout+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_logout\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UTIL_H
#include <util.h>
#endif

int
main ()
{
logout(0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_logout"

if false; then
	for ac_func in logout
do :
  ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout"
if test "x$ac_cv_func_logout" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOGOUT 1
_ACEOF

fi
done

fi
# logout
eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logout=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_logout=yes"
	eval "LIB_logout="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_logout=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5
$as_echo_n "checking for openpty... " >&6; }
if test "${ac_cv_funclib_openpty+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UTIL_H
#include <util.h>
#endif

int
main ()
{
openpty(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_openpty"

if false; then
	for ac_func in openpty
do :
  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
if test "x$ac_cv_func_openpty" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_OPENPTY 1
_ACEOF

fi
done

fi
# openpty
eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_openpty=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_openpty=yes"
	eval "LIB_openpty="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_openpty=no"
	eval "LIB_openpty="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_openpty=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5
$as_echo_n "checking for tgetent... " >&6; }
if test "${ac_cv_funclib_tgetent+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" termcap ncurses curses; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_TERMCAP_H
#include <termcap.h>
#endif
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif

int
main ()
{
tgetent(0,0)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_tgetent"

if false; then
	for ac_func in tgetent
do :
  ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
if test "x$ac_cv_func_tgetent" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_TGETENT 1
_ACEOF

fi
done

fi
# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_tgetent=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_tgetent=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac




for ac_func in 				\
	_getpty					\
	_scrsize				\
	arc4random				\
	backtrace				\
	fcntl					\
	getpeereid				\
	getpeerucred				\
	grantpt					\
	mktime					\
	ptsname					\
	rand					\
	revoke					\
	select					\
	setitimer				\
	setpcred				\
	setpgid					\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	strstr					\
	ttyname					\
	ttyslot					\
	umask					\
	unlockpt				\
	vhangup					\
	yp_get_default_domain			\

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for __sync_add_and_fetch" >&5
$as_echo_n "checking checking for __sync_add_and_fetch... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
int
main ()
{
unsigned int foo; __sync_add_and_fetch(&foo, 1);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_rk_have___sync_add_and_fetch=yes
else
  ac_rk_have___sync_add_and_fetch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then

cat >>confdefs.h <<_ACEOF
#define HAVE___SYNC_ADD_AND_FETCH 1
_ACEOF

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_rk_have___sync_add_and_fetch" >&5
$as_echo "$ac_rk_have___sync_add_and_fetch" >&6; }


for ac_func in getpagesize
do :
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
if test "x$ac_cv_func_getpagesize" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPAGESIZE 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
$as_echo_n "checking for working mmap... " >&6; }
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_mmap_fixed_mapped=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd, fd2;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    return 1;
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    return 2;
  if (write (fd, data, pagesize) != pagesize)
    return 3;
  close (fd);

  /* Next, check that the tail of a page is zero-filled.  File must have
     non-zero length, otherwise we risk SIGBUS for entire page.  */
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  if (fd2 < 0)
    return 4;
  data2 = "";
  if (write (fd2, data2, 1) != 1)
    return 5;
  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  if (data2 == MAP_FAILED)
    return 6;
  for (i = 0; i < pagesize; ++i)
    if (*(data2 + i))
      return 7;
  close (fd2);
  if (munmap (data2, pagesize))
    return 8;

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    return 9;
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    return 10;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      return 11;

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    return 12;
  if (read (fd, data3, pagesize) != pagesize)
    return 13;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      return 14;
  close (fd);
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_mmap_fixed_mapped=yes
else
  ac_cv_func_mmap_fixed_mapped=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_mmap_fixed_mapped = yes; then

$as_echo "#define HAVE_MMAP 1" >>confdefs.h

fi
rm -f conftest.mmap conftest.txt




for ac_header in capability.h sys/capability.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_func in sgi_getcapabilitybyname cap_set_proc
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done







{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5
$as_echo_n "checking for getpwnam_r... " >&6; }
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" c_r; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
getpwnam_r()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getpwnam_r"

if false; then
	for ac_func in getpwnam_r
do :
  ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
if test "x$ac_cv_func_getpwnam_r" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPWNAM_R 1
_ACEOF

fi
done

fi
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


if test "$ac_cv_func_getpwnam_r" = yes; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r is posix" >&5
$as_echo_n "checking if getpwnam_r is posix... " >&6; }
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _POSIX_PTHREAD_SEMANTICS
#include <pwd.h>
int main(int argc, char **argv)
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, 0, 0, &pwd) < 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_getpwnam_r_posix=yes
else
  ac_cv_func_getpwnam_r_posix=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

LIBS="$ac_libs"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix" >&5
$as_echo "$ac_cv_func_getpwnam_r_posix" >&6; }
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is needed" >&5
$as_echo_n "checking if _POSIX_PTHREAD_SEMANTICS is needed... " >&6; }
if test "${ac_cv_func_getpwnam_r_posix_def+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pwd.h>
int main(int argc, char **argv)
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, 0, 0, &pwd) < 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_getpwnam_r_posix_def=no
else
  ac_cv_func_getpwnam_r_posix_def=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

LIBS="$ac_libs"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpwnam_r_posix_def" >&5
$as_echo "$ac_cv_func_getpwnam_r_posix_def" >&6; }
if test "$ac_cv_func_getpwnam_r_posix" = yes; then

$as_echo "#define POSIX_GETPWNAM_R 1" >>confdefs.h

fi
if test "$ac_cv_func_getpwnam_r_posix" = yes -a "$ac_cv_func_getpwnam_r_posix_def" = yes; then

$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

fi
fi


if test "$enable_pthread_support" != no; then
   saved_LIBS="$LIBS"
   LIBS="$LIBS $PTHREADS_LIBS"



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for door_create" >&5
$as_echo_n "checking for door_create... " >&6; }
if test "${ac_cv_funclib_door_create+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" door; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
door_create()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_door_create"

if false; then
	for ac_func in door_create
do :
  ac_fn_c_check_func "$LINENO" "door_create" "ac_cv_func_door_create"
if test "x$ac_cv_func_door_create" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DOOR_CREATE 1
_ACEOF

fi
done

fi
# door_create
eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_door_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_door_create=yes"
	eval "LIB_door_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	;;
	no)
	eval "ac_cv_func_door_create=no"
	eval "LIB_door_create="
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	;;
	*)
	eval "ac_cv_func_door_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
$as_echo "yes, in $ac_res" >&6; }
	;;
esac


   LIBS="$saved_LIBS"
fi

# Check whether --enable-kcm was given.
if test "${enable_kcm+set}" = set; then :
  enableval=$enable_kcm;
else
  enable_kcm=yes
fi


if test "$enable_kcm" = yes ; then
   if test  "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
  	enable_kcm=no
   fi
fi
if test "$enable_kcm" = yes; then

$as_echo "#define HAVE_KCM 1" >>confdefs.h

fi
 if test "$enable_kcm" = yes; then
  KCM_TRUE=
  KCM_FALSE='#'
else
  KCM_TRUE='#'
  KCM_FALSE=
fi




for ac_func in getudbnam setlim
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr in struct utmp" >&5
$as_echo_n "checking for ut_addr in struct utmp... " >&6; }
if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmp_ut_addr=yes
else
  ac_cv_type_struct_utmp_ut_addr=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_addr" >&5
$as_echo "$ac_cv_type_struct_utmp_ut_addr" >&6; }
if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then


$as_echo "#define HAVE_STRUCT_UTMP_UT_ADDR 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmp" >&5
$as_echo_n "checking for ut_host in struct utmp... " >&6; }
if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmp_ut_host=yes
else
  ac_cv_type_struct_utmp_ut_host=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_host" >&5
$as_echo "$ac_cv_type_struct_utmp_ut_host" >&6; }
if test "$ac_cv_type_struct_utmp_ut_host" = yes; then


$as_echo "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmp" >&5
$as_echo_n "checking for ut_id in struct utmp... " >&6; }
if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmp_ut_id=yes
else
  ac_cv_type_struct_utmp_ut_id=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_id" >&5
$as_echo "$ac_cv_type_struct_utmp_ut_id" >&6; }
if test "$ac_cv_type_struct_utmp_ut_id" = yes; then


$as_echo "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmp" >&5
$as_echo_n "checking for ut_pid in struct utmp... " >&6; }
if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmp_ut_pid=yes
else
  ac_cv_type_struct_utmp_ut_pid=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_pid" >&5
$as_echo "$ac_cv_type_struct_utmp_ut_pid" >&6; }
if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then


$as_echo "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmp" >&5
$as_echo_n "checking for ut_type in struct utmp... " >&6; }
if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmp_ut_type=yes
else
  ac_cv_type_struct_utmp_ut_type=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_type" >&5
$as_echo "$ac_cv_type_struct_utmp_ut_type" >&6; }
if test "$ac_cv_type_struct_utmp_ut_type" = yes; then


$as_echo "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmp" >&5
$as_echo_n "checking for ut_user in struct utmp... " >&6; }
if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmp_ut_user=yes
else
  ac_cv_type_struct_utmp_ut_user=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmp_ut_user" >&5
$as_echo "$ac_cv_type_struct_utmp_ut_user" >&6; }
if test "$ac_cv_type_struct_utmp_ut_user" = yes; then


$as_echo "#define HAVE_STRUCT_UTMP_UT_USER 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmpx" >&5
$as_echo_n "checking for ut_host in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_host+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_host
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_host=yes
else
  ac_cv_type_struct_utmpx_ut_host=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_host" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_host" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_host" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id in struct utmpx" >&5
$as_echo_n "checking for ut_id in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_id+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_id
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_id=yes
else
  ac_cv_type_struct_utmpx_ut_id=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_id" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_id" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_id" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_ID 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_line in struct utmpx" >&5
$as_echo_n "checking for ut_line in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_line+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_line
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_line=yes
else
  ac_cv_type_struct_utmpx_ut_line=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_line" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_line" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_line" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_LINE 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in struct utmpx" >&5
$as_echo_n "checking for ut_pid in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_pid+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_pid
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_pid=yes
else
  ac_cv_type_struct_utmpx_ut_pid=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_pid" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_pid" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_pid" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_PID 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv in struct utmpx" >&5
$as_echo_n "checking for ut_tv in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_tv+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_tv
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_tv=yes
else
  ac_cv_type_struct_utmpx_ut_tv=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_tv" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_tv" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_tv" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type in struct utmpx" >&5
$as_echo_n "checking for ut_type in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_type
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_type=yes
else
  ac_cv_type_struct_utmpx_ut_type=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_type" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_type" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_type" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_TYPE 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_user in struct utmpx" >&5
$as_echo_n "checking for ut_user in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_user+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_user
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_user=yes
else
  ac_cv_type_struct_utmpx_ut_user=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_user" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_user" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_user" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_USER 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit in struct utmpx" >&5
$as_echo_n "checking for ut_exit in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_exit=yes
else
  ac_cv_type_struct_utmpx_ut_exit=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_exit" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_syslen in struct utmpx" >&5
$as_echo_n "checking for ut_syslen in struct utmpx... " >&6; }
if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_struct_utmpx_ut_syslen=yes
else
  ac_cv_type_struct_utmpx_ut_syslen=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
$as_echo "$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then


$as_echo "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h


fi



ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_int8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_int16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_int32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_int64_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT64_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_u_int8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_u_int16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_u_int32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_u_int64_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT64_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_uint8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_uint16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_uint32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

"
if test "x$ac_cv_type_uint64_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT64_T 1
_ACEOF


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework security" >&5
$as_echo_n "checking for framework security... " >&6; }
if test "${rk_cv_framework_security+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

if test "$rk_cv_framework_security" != yes; then
	ac_save_LIBS="$LIBS"
	LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <Security/Security.h>

int
main ()
{
SecKeychainSearchRef searchRef;
SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
CFRelease(&searchRef);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  rk_cv_framework_security=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ac_save_LIBS"
fi

fi


if test "$rk_cv_framework_security" = yes; then

$as_echo "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h

   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
 if test "$rk_cv_framework_security" = yes; then
  FRAMEWORK_SECURITY_TRUE=
  FRAMEWORK_SECURITY_FALSE='#'
else
  FRAMEWORK_SECURITY_TRUE='#'
  FRAMEWORK_SECURITY_FALSE=
fi


if test "$rk_cv_framework_security" = yes; then

if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SecKeyGetCSPHandle needs a prototype" >&5
$as_echo_n "checking if SecKeyGetCSPHandle needs a prototype... " >&6; }
if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <Security/Security.h>
struct foo { int foo; } xx;
extern int SecKeyGetCSPHandle (struct foo*);
int
main ()
{
SecKeyGetCSPHandle(&xx)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
else
  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
$as_echo "$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then

$as_echo "#define NEED_SECKEYGETCSPHANDLE_PROTO 1" >>confdefs.h

fi
fi

fi






ac_foo=no
build_editline=no
if test "$with_readline" = yes; then
	:
elif test "$with_libedit" = yes; then
   	LIB_readline="${LIB_libedit}"
elif test "$ac_cv_func_readline" = yes; then
	:
else
	build_libedit=yes
	LIB_readline="\$(top_builddir)/lib/libedit/src/libheimedit.la \$(LIB_tgetent)"
fi
 if test "$build_libedit" = yes; then
  LIBEDIT_TRUE=
  LIBEDIT_FALSE='#'
else
  LIBEDIT_TRUE='#'
  LIBEDIT_FALSE=
fi


$as_echo "#define HAVE_READLINE 1" >>confdefs.h





$as_echo "#define AUTHENTICATION 1" >>confdefs.h

$as_echo "#define ENCRYPTION 1" >>confdefs.h

$as_echo "#define DES_ENCRYPTION 1" >>confdefs.h

$as_echo "#define DIAGNOSTICS 1" >>confdefs.h

$as_echo "#define OLD_ENVIRON 1" >>confdefs.h
if false; then

$as_echo "#define ENV_HACK 1" >>confdefs.h

fi

# Simple test for streamspty, based on the existance of getmsg(), alas
# this breaks on SunOS4 which have streams but BSD-like ptys
#
# And also something wierd has happend with dec-osf1, fallback to bsd-ptys

case "$host" in
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
	;;
*)
	ac_fn_c_check_func "$LINENO" "getmsg" "ac_cv_func_getmsg"
if test "x$ac_cv_func_getmsg" = x""yes; then :

fi

	if test "$ac_cv_func_getmsg" = "yes"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getmsg works" >&5
$as_echo_n "checking if getmsg works... " >&6; }
if test "${ac_cv_func_getmsg_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_getmsg_works=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdio.h>
			#include <errno.h>

			int main(int argc, char **argv)
			{
			  int ret;
			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
			  if(ret < 0 && errno == ENOSYS)
			    return 1;
			  return 0;
			}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_getmsg_works=yes
else
  ac_cv_func_getmsg_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getmsg_works" >&5
$as_echo "$ac_cv_func_getmsg_works" >&6; }
		if test "$ac_cv_func_getmsg_works" = "yes"; then

$as_echo "#define HAVE_GETMSG 1" >>confdefs.h


$as_echo "#define STREAMSPTY 1" >>confdefs.h

		fi
	fi
	;;
esac






# Extract the first word of "compile_et", so it can be a program name with args.
set dummy compile_et; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_COMPILE_ET+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$COMPILE_ET"; then
  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_COMPILE_ET="compile_et"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
COMPILE_ET=$ac_cv_prog_COMPILE_ET
if test -n "$COMPILE_ET"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
$as_echo "$COMPILE_ET" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



krb_cv_compile_et="no"
krb_cv_com_err_need_r=""
krb_cv_compile_et_cross=no
if test "${COMPILE_ET}" = "compile_et"; then

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et has the features we need" >&5
$as_echo_n "checking whether compile_et has the features we need... " >&6; }
cat > conftest_et.et <<'EOF'
error_table test conf
prefix CONFTEST
index 1
error_code CODE1, "CODE1"
index 128
error_code CODE2, "CODE2"
end
EOF
if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
    save_CPPFLAGS="${CPPFLAGS}"
  if test -d "/usr/include/et"; then
    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
  fi
    if test "$cross_compiling" = yes; then :
  krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <com_err.h>
#include <string.h>
#include "conftest_et.h"
int main(int argc, char **argv){
#ifndef ERROR_TABLE_BASE_conf
#error compile_et does not handle error_table N M
#endif
return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  krb_cv_compile_et="yes"
else
  CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_compile_et}" >&5
$as_echo "${krb_cv_compile_et}" >&6; }
if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if com_err generates a initialize_conf_error_table_r" >&5
$as_echo_n "checking for if com_err generates a initialize_conf_error_table_r... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "conftest_et.h"
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then :
  krb_cv_com_err_need_r="ok"
fi
rm -f conftest*

  if test X"$krb_cv_com_err_need_r" = X ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    krb_cv_compile_et=no
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  fi
fi
rm -fr conftest*
fi

if test "${krb_cv_compile_et_cross}" = yes ; then
  krb_cv_com_err="cross"
elif test "${krb_cv_compile_et}" = "yes"; then
    krb_cv_save_LIBS="${LIBS}"
  LIBS="${LIBS} -lcom_err"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5
$as_echo_n "checking for com_err... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <com_err.h>
int
main ()
{

    const char *p;
    p = error_message(0);
    initialize_error_table_r(0,0,0,0);
    com_right_r(0, 0, 0, 0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  krb_cv_com_err="yes"
else
  krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb_cv_com_err}" >&5
$as_echo "${krb_cv_com_err}" >&6; }
  LIBS="${krb_cv_save_LIBS}"
else
    krb_cv_com_err="no"
fi

if test "${krb_cv_com_err}" = "yes"; then
    DIR_com_err=""
    LIB_com_err="-lcom_err"
    LIB_com_err_a=""
    LIB_com_err_so=""
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the already-installed com_err" >&5
$as_echo "$as_me: Using the already-installed com_err" >&6;}
    COMPILE_ET="${ac_cv_prog_COMPILE_ET}"
    localcomerr=no
elif test "${krb_cv_com_err}" = "cross"; then
    DIR_com_err="com_err"
    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err with toolchain compile_et" >&5
$as_echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
    COMPILE_ET="${ac_cv_prog_COMPILE_ET}"
    localcomerr=yes
else
    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
    DIR_com_err="com_err"
    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using our own com_err" >&5
$as_echo "$as_me: Using our own com_err" >&6;}
    localcomerr=yes
fi
 if test "$localcomerr" = yes; then
  COM_ERR_TRUE=
  COM_ERR_FALSE='#'
else
  COM_ERR_TRUE='#'
  COM_ERR_FALSE=
fi









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which authentication modules should be built" >&5
$as_echo_n "checking which authentication modules should be built... " >&6; }

z='sia afskauthlib'
LIB_AUTH_SUBDIRS=
for i in $z; do
case $i in
sia)
if test "$ac_cv_header_siad_h" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
fi
;;
pam)
case "${host}" in
*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
*)		ac_cv_want_pam_krb4=yes ;;
esac

if test "$ac_cv_want_pam_krb4" = yes -a \
    "$ac_cv_header_security_pam_modules_h" = yes -a \
    "$enable_shared" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
fi
;;
afskauthlib)
case "${host}" in
*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
esac
;;
esac
done
if test "$LIB_AUTH_SUBDIRS"; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIB_AUTH_SUBDIRS" >&5
$as_echo "$LIB_AUTH_SUBDIRS" >&6; }
else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi




# This is done by AC_OUTPUT but we need the result here.
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'


	x="${bindir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define BINDIR "$x"
_ACEOF

	x="${libdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBDIR "$x"
_ACEOF

	x="${libexecdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBEXECDIR "$x"
_ACEOF

	x="${localstatedir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LOCALSTATEDIR "$x"
_ACEOF

	x="${sbindir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SBINDIR "$x"
_ACEOF

	x="${sysconfdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SYSCONFDIR "$x"
_ACEOF





# Check whether --enable-developer was given.
if test "${enable_developer+set}" = set; then :
  enableval=$enable_developer;
fi

if test "X$enable_developer" = Xyes; then
    dwflags="-Werror"
fi

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  #   -Wstrict-overflow=5
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi







# Check whether --enable-heimdal-documentation was given.
if test "${enable_heimdal_documentation+set}" = set; then :
  enableval=$enable_heimdal_documentation;
fi

 if test "$enable_heimdal_documentation" != no; then
  HEIMDAL_DOCUMENTATION_TRUE=
  HEIMDAL_DOCUMENTATION_FALSE='#'
else
  HEIMDAL_DOCUMENTATION_TRUE='#'
  HEIMDAL_DOCUMENTATION_FALSE=
fi


ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile base/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/ipc/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/sqlite/Makefile lib/vers/Makefile lib/wind/Makefile po/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/bin/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile doc/Makefile tools/Makefile"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
  as_fn_error "conditional \"AIX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
  as_fn_error "conditional \"AIX4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
  as_fn_error "conditional \"HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
  as_fn_error "conditional \"AIX_DYNAMIC_AFS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
  as_fn_error "conditional \"IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
  as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
  as_fn_error "conditional \"versionscript\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${CROSS_COMPILE_TRUE}" && test -z "${CROSS_COMPILE_FALSE}"; then
  as_fn_error "conditional \"CROSS_COMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
  as_fn_error "conditional \"OPENLDAP_MODULE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
  as_fn_error "conditional \"PKINIT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_CAPNG_TRUE}" && test -z "${HAVE_CAPNG_FALSE}"; then
  as_fn_error "conditional \"HAVE_CAPNG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
  as_fn_error "conditional \"SQLITE3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_scc_TRUE}" && test -z "${have_scc_FALSE}"; then
  as_fn_error "conditional \"have_scc\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
  as_fn_error "conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
  as_fn_error "conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
  as_fn_error "conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
  as_fn_error "conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
  as_fn_error "conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
  as_fn_error "conditional \"HAVE_DB1\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
  as_fn_error "conditional \"HAVE_DB3\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
  as_fn_error "conditional \"HAVE_NDBM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_DBHEADER_TRUE}" && test -z "${HAVE_DBHEADER_FALSE}"; then
  as_fn_error "conditional \"HAVE_DBHEADER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
  as_fn_error "conditional \"have_err_h\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
  as_fn_error "conditional \"have_ifaddrs_h\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_search_h_TRUE}" && test -z "${have_search_h_FALSE}"; then
  as_fn_error "conditional \"have_search_h\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
  as_fn_error "conditional \"have_vis_h\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
  as_fn_error "conditional \"have_glob_h\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
  as_fn_error "conditional \"have_cgetent\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
  as_fn_error "conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
  as_fn_error "conditional \"have_socket_wrapper\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
  as_fn_error "conditional \"OTP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${have_gcd_TRUE}" && test -z "${have_gcd_FALSE}"; then
  as_fn_error "conditional \"have_gcd\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
  as_fn_error "conditional \"CATMAN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
  as_fn_error "conditional \"HAVE_X\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
  as_fn_error "conditional \"NEED_WRITEAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
  as_fn_error "conditional \"KCM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
  as_fn_error "conditional \"FRAMEWORK_SECURITY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${LIBEDIT_TRUE}" && test -z "${LIBEDIT_FALSE}"; then
  as_fn_error "conditional \"LIBEDIT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
  as_fn_error "conditional \"COM_ERR\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HEIMDAL_DOCUMENTATION_TRUE}" && test -z "${HEIMDAL_DOCUMENTATION_FALSE}"; then
  as_fn_error "conditional \"HEIMDAL_DOCUMENTATION\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Heimdal $as_me 1.5.2, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <heimdal-bugs@@h5l.org>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
Heimdal config.status 1.5.2
configured by $0, generated by GNU Autoconf 2.65,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2009 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
  eval 'cat <<_LTECHO_EOF
\$1
_LTECHO_EOF'
}

# Quote evaled strings.
for var in SHELL \
ECHO \
SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
OBJDUMP \
deplibs_check_method \
file_magic_cmd \
file_magic_glob \
want_nocaseglob \
DLLTOOL \
sharedlib_from_linklib_cmd \
AR \
AR_FLAGS \
archiver_list_spec \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
nm_file_list_spec \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_pic \
lt_prog_compiler_wl \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
MANIFEST_TOOL \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
install_override_mode \
finish_eval \
old_striplib \
striplib; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postlink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'




_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;;
    "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;;
    "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    "base/Makefile") CONFIG_FILES="$CONFIG_FILES base/Makefile" ;;
    "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
    "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
    "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;;
    "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;;
    "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
    "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;;
    "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
    "lib/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ipc/Makefile" ;;
    "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
    "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
    "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
    "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
    "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
    "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
    "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
    "lib/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sqlite/Makefile" ;;
    "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
    "lib/wind/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wind/Makefile" ;;
    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
    "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
    "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
    "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
    "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;;
    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
    "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
    "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
    "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
    "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
    "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
    "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;;
    "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
    "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
    "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
    "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
    "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
    "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
    "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
    "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
    "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
    "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
    "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
    "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
    "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
    "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
    "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
    "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;;
    "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;;
    "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
    "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;;
    "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;;
    "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;;
    "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;;
    "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;;
    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;

  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@@srcdir@@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_t"; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s|@@configure_input@@|$ac_sed_conf_input|;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@top_build_prefix@@&$ac_top_build_prefix&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  || as_fn_error "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out" && rm -f "$tmp/out";;
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  esac \
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    } >"$tmp/config.h" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$tmp/config.h" "$ac_file" \
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags=""

# ### BEGIN LIBTOOL CONFIG

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that protects backslashes.
ECHO=$lt_ECHO

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# convert \$build file names to \$host format.
to_host_file_cmd=$lt_cv_to_host_file_cmd

# convert \$build files to toolchain format.
to_tool_file_cmd=$lt_cv_to_tool_file_cmd

# An object symbol dumper.
OBJDUMP=$lt_OBJDUMP

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method = "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# How to find potential files when deplibs_check_method = "file_magic".
file_magic_glob=$lt_file_magic_glob

# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
want_nocaseglob=$lt_want_nocaseglob

# DLL creation program.
DLLTOOL=$lt_DLLTOOL

# Command to associate shared and link libraries.
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd

# The archiver.
AR=$lt_AR

# Flags to create an archive.
AR_FLAGS=$lt_AR_FLAGS

# How to feed a file listing to the archiver.
archiver_list_spec=$lt_archiver_list_spec

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# Specify filename containing input files for \$NM.
nm_file_list_spec=$lt_nm_file_list_spec

# The root where to search for dependent libraries,and in which our libraries should be installed.
lt_sysroot=$lt_sysroot

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Manifest tool.
MANIFEST_TOOL=$lt_MANIFEST_TOOL

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
  esac


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" \
     || (rm -f "$cfgfile"; exit 1)

  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


   mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

 ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit $?
fi

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  # so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  eval "set x $ac_configure_args"
  shift
  for ac_arg
  do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    --disable-option-checking)
      ;;
    *)
      case $ac_arg in
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_arg="--prefix=$prefix"
  case $ac_arg in
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  # Pass --silent
  if test "$silent" = yes; then
    ac_sub_configure_args="--silent $ac_sub_configure_args"
  fi

  # Always prepend --disable-option-checking to silence warnings, since
  # different subdirs can have different --enable and --with options.
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d "$srcdir/$ac_dir" || continue

    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    $as_echo "$ac_msg" >&6
    as_dir="$ac_dir"; as_fn_mkdir_p
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


    cd "$ac_dir"

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      ac_sub_configure=$ac_srcdir/configure.gnu
    elif test -f "$ac_srcdir/configure"; then
      ac_sub_configure=$ac_srcdir/configure
    elif test -f "$ac_srcdir/configure.in"; then
      # This should be Cygnus configure.
      ac_sub_configure=$ac_aux_dir/configure
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative name.
	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
      esac

      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    fi

    cd "$ac_popdir"
  done
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi



cat > include/newversion.h.in <<EOF
#ifndef VERSION_HIDDEN
#define VERSION_HIDDEN
#endif
VERSION_HIDDEN const char *heimdal_long_version = "@@(#)\$Version: $PACKAGE_STRING by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
VERSION_HIDDEN const char *heimdal_version = "Heimdal 1.5.2";
EOF

if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
	echo "include/version.h is unchanged"
	rm -f include/newversion.h.in
else
 	echo "creating include/version.h"
 	User=${USER-${LOGNAME}}
 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
 	Date=`date`
	mv -f include/newversion.h.in include/version.h.in
	sed -e "s/@@USER@@/$User/" -e "s/@@HOST@@/$Host/" -e "s/@@DATE@@/$Date/" include/version.h.in > include/version.h
fi
@


1.3.2.1
log
@file configure was added on branch RELENG_8_4 on 2013-03-28 13:02:14 +0000
@
text
@d1 31300
@


1.3.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 54327
#! /bin/sh
# From configure.in Revision: 22513 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for Heimdal 1.1.
#
# Report bugs to <heimdal-bugs@@h5l.org>.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH


if test "x$CONFIG_SHELL" = x; then
  if (eval ":") 2>/dev/null; then
  as_have_required=yes
else
  as_have_required=no
fi

  if test $as_have_required = yes && 	 (eval ":
(as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=\$LINENO
  as_lineno_2=\$LINENO
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
  :
else
  as_candidate_shells=
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  case $as_dir in
	 /*)
	   for as_base in sh bash ksh sh5; do
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
	   done;;
       esac
done
IFS=$as_save_IFS


      for as_shell in $as_candidate_shells $SHELL; do
	 # Try only shells that exist, to save several forks.
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
_ASEOF
}; then
  CONFIG_SHELL=$as_shell
	       as_have_required=yes
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
(as_func_return () {
  (exit $1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = "$1" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test $exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }

_ASEOF
}; then
  break
fi

fi

      done

      if test "x$CONFIG_SHELL" != x; then
  for as_var in BASH_ENV ENV
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
        done
        export CONFIG_SHELL
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@@"}
fi


    if test $as_have_required = no; then
  echo This script requires a shell more modern than all the
      echo shells that I found on your system.  Please install a
      echo modern shell, or manually run the script under such a
      echo shell if you do have one.
      { (exit 1); exit 1; }
fi


fi

fi



(eval "as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0") || {
  echo No shell found that supports shell functions.
  echo Please tell autoconf@@gnu.org about your system,
  echo including any error possibly output before this
  echo message
}



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
        test -d "$1/.";
      else
	case $1 in
        -*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"




# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF
$*
EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
       echo_test_string=`eval $cmd` &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for dir in $PATH /usr/ucb; do
    IFS="$lt_save_ifs"
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$lt_save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi




tagnames=${tagnames+${tagnames},}CXX

tagnames=${tagnames+${tagnames},}F77

exec 7<&0 </dev/null 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Identity of this package.
PACKAGE_NAME='Heimdal'
PACKAGE_TARNAME='heimdal'
PACKAGE_VERSION='1.1'
PACKAGE_STRING='Heimdal 1.1'
PACKAGE_BUGREPORT='heimdal-bugs@@h5l.org'

ac_unique_file="kuser/kinit.c"
ac_default_prefix=/usr/heimdal
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='SHELL
PATH_SEPARATOR
PACKAGE_NAME
PACKAGE_TARNAME
PACKAGE_VERSION
PACKAGE_STRING
PACKAGE_BUGREPORT
exec_prefix
prefix
program_transform_name
bindir
sbindir
libexecdir
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
am__isrc
CYGPATH_W
PACKAGE
VERSION
ACLOCAL
AUTOCONF
AUTOMAKE
AUTOHEADER
MAKEINFO
install_sh
STRIP
INSTALL_STRIP_PROGRAM
mkdir_p
AWK
SET_MAKE
am__leading_dot
AMTAR
am__tar
am__untar
MAINTAINER_MODE_TRUE
MAINTAINER_MODE_FALSE
MAINT
CC
CFLAGS
LDFLAGS
CPPFLAGS
ac_ct_CC
EXEEXT
OBJEXT
CPP
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
CANONICAL_HOST
YACC
YFLAGS
LEX
LEX_OUTPUT_ROOT
LEXLIB
LN_S
GREP
EGREP
ECHO
AR
RANLIB
CXX
CXXFLAGS
ac_ct_CXX
CXXCPP
F77
FFLAGS
ac_ct_F77
LIBTOOL
ENABLE_SHARED_TRUE
ENABLE_SHARED_FALSE
VERSIONING
versionscript_TRUE
versionscript_FALSE
LDFLAGS_VERSION_SCRIPT
INCLUDE_openldap
LIB_openldap
OPENLDAP_MODULE_TRUE
OPENLDAP_MODULE_FALSE
PKINIT_TRUE
PKINIT_FALSE
DIR_hdbdir
INCLUDE_krb4
LIB_krb4
KRB4_TRUE
KRB4_FALSE
KRB5_TRUE
KRB5_FALSE
do_roken_rename_TRUE
do_roken_rename_FALSE
LIB_kdb
HAVE_OPENSSL_TRUE
HAVE_OPENSSL_FALSE
DIR_hcrypto
INCLUDE_hcrypto
LIB_hcrypto
LIB_hcrypto_a
LIB_hcrypto_so
LIB_hcrypto_appl
PTHREADS_CFLAGS
PTHREADS_LIBS
DCE_TRUE
DCE_FALSE
dpagaix_cflags
dpagaix_ldadd
dpagaix_ldflags
LIB_db_create
LIB_dbopen
LIB_dbm_firstkey
HAVE_DB1_TRUE
HAVE_DB1_FALSE
HAVE_DB3_TRUE
HAVE_DB3_FALSE
HAVE_NDBM_TRUE
HAVE_NDBM_FALSE
DBLIB
LIB_NDBM
WFLAGS
WFLAGS_NOUNUSED
WFLAGS_NOIMPLICITINT
VOID_RETSIGTYPE
have_err_h_TRUE
have_err_h_FALSE
have_ifaddrs_h_TRUE
have_ifaddrs_h_FALSE
have_vis_h_TRUE
have_vis_h_FALSE
LIB_socket
LIB_gethostbyname
LIB_syslog
LIB_gethostbyname2
LIB_res_search
LIB_res_nsearch
LIB_res_ndestroy
LIB_dn_expand
LIBOBJS
have_glob_h_TRUE
have_glob_h_FALSE
have_cgetent_TRUE
have_cgetent_FALSE
LIB_getsockopt
LIB_setsockopt
LIB_hstrerror
LIB_bswap16
LIB_bswap32
LIB_pidfile
LIB_getaddrinfo
LIB_getnameinfo
LIB_freeaddrinfo
LIB_gai_strerror
have_fnmatch_h_TRUE
have_fnmatch_h_FALSE
LIB_crypt
have_socket_wrapper_TRUE
have_socket_wrapper_FALSE
DIR_roken
LIB_roken
INCLUDES_roken
LIBADD_roken
LIB_otp
OTP_TRUE
OTP_FALSE
LIB_security
NROFF
GROFF
CATMAN
CATMAN_TRUE
CATMAN_FALSE
CATMANEXT
INCLUDE_readline
LIB_readline
INCLUDE_hesiod
LIB_hesiod
AIX_TRUE
AIX_FALSE
AIX4_TRUE
AIX4_FALSE
LIB_dlopen
HAVE_DLOPEN_TRUE
HAVE_DLOPEN_FALSE
LIB_loadquery
AIX_DYNAMIC_AFS_TRUE
AIX_DYNAMIC_AFS_FALSE
AIX_EXTRA_KAFS
IRIX_TRUE
IRIX_FALSE
XMKMF
X_CFLAGS
X_PRE_LIBS
X_LIBS
X_EXTRA_LIBS
HAVE_X_TRUE
HAVE_X_FALSE
LIB_XauWriteAuth
LIB_XauReadAuth
LIB_XauFileName
NEED_WRITEAUTH_TRUE
NEED_WRITEAUTH_FALSE
LIB_logwtmp
LIB_logout
LIB_openpty
LIB_tgetent
LIB_getpwnam_r
LIB_door_create
KCM_TRUE
KCM_FALSE
FRAMEWORK_SECURITY_TRUE
FRAMEWORK_SECURITY_FALSE
LIB_el_init
el_compat_TRUE
el_compat_FALSE
COMPILE_ET
COM_ERR_TRUE
COM_ERR_FALSE
DIR_com_err
LIB_com_err
LIB_com_err_a
LIB_com_err_so
LIB_AUTH_SUBDIRS
LTLIBOBJS'
ac_subst_files=''
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
YACC
YFLAGS
CXX
CXXFLAGS
CCC
CXXCPP
F77
FFLAGS
XMKMF'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    eval enable_$ac_feature=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    eval enable_$ac_feature=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    eval with_$ac_package=\$ac_optarg ;;

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    eval with_$ac_package=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

# Be sure to have absolute directory names.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; }
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  { echo "$as_me: error: Working directory cannot be determined" >&2
   { (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  { echo "$as_me: error: pwd does not report name of working directory" >&2
   { (exit 1); exit 1; }; }


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$0" ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$0" : 'X\(//\)[^/]' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   { (exit 1); exit 1; }; }
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures Heimdal 1.1 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
			  [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
			  [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/heimdal]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of Heimdal 1.1:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-maintainer-mode  enable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
  --disable-largefile     omit support for large files
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-hdb-openldap-module
                          if you want support to build openldap hdb as shared
                          object
  --disable-pk-init       if you want disable to PK-INIT support
  --enable-pthread-support
                          if you want thread safe libraries
  --enable-dce            if you want support for DCE/DFS PAG's
  --disable-afs-support   if you don't want support for AFS
  --disable-berkeley-db   if you don't want berkeley db
  --disable-ndbm-db       if you don't want ndbm db
  --enable-developer      enable developer warnings
  --enable-socket-wrapper use sambas socket-wrapper for testing
  --disable-otp           if you don't want OTP support
  --enable-osfc2          enable some OSF C2 support
  --disable-mmap          disable use of mmap
  --disable-afs-string-to-key
                          disable use of weak AFS string-to-key functions
  --enable-bigendian      the target is big endian
  --enable-littleendian   the target is little endian
  --disable-dynamic-afs   do not use loaded AFS library with AIX
  --enable-netinfo        enable netinfo for configuration lookup
  --enable-kcm            enable Kerberos Credentials Manager

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]      include additional configurations [automatic]
  --with-openldap=dir     use openldap in dir
  --with-openldap-lib=dir use openldap libraries in dir
  --with-openldap-include=dir
                          use openldap headers in dir
  --with-openldap-config=path
                          config program for openldap
  --with-hdbdir           Default location for KDC database
                          [default=/var/heimdal]
  --with-openssl=dir      use openssl in dir
  --with-openssl-lib=dir  use openssl libraries in dir
  --with-openssl-include=dir
                          use openssl headers in dir
  --without-ipv6          do not enable IPv6 support
  --with-readline=dir     use readline in dir
  --with-readline-lib=dir use readline libraries in dir
  --with-readline-include=dir
                          use readline headers in dir
  --with-readline-config=path
                          config program for readline
  --with-hesiod=dir       use hesiod in dir
  --with-hesiod-lib=dir   use hesiod libraries in dir
  --with-hesiod-include=dir
                          use hesiod headers in dir
  --with-hesiod-config=path
                          config program for hesiod
  --with-x                use the X Window System

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
              the first program found out of: `bison -y', `byacc', `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags
  XMKMF       Path to xmkmf, Makefile generator for X Window System

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <heimdal-bugs@@h5l.org>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" || continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
Heimdal configure 1.1
generated by GNU Autoconf 2.61

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Heimdal $as_me 1.1, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ $0 $@@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    esac
  done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -n "$CONFIG_SITE"; then
  set x "$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
else
  set x "$ac_default_prefix/share/config.site" \
	"$ac_default_prefix/etc/config.site"
fi
shift
for ac_site_file
do
  if test -r "$ac_site_file"; then
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
	ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

























ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_config_headers="$ac_config_headers include/config.h"


am__api_version='1.10'

ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	    break 3
	  fi
	fi
      done
    done
    ;;
esac
done
IFS=$as_save_IFS


fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
fi
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm -f conftest.sed

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
done
IFS=$as_save_IFS

fi

  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    test -d ./--version && rmdir ./--version
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
echo "${ECHO_T}$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$AWK" && break
done

{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
  SET_MAKE=
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='heimdal'
 VERSION='1.1'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'





{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
    # Check whether --enable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
else
  USE_MAINTAINER_MODE=no
fi

  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
   if test $USE_MAINTAINER_MODE = yes; then
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
fi

  MAINT=$MAINTAINER_MODE_TRUE



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
#
# List of possible output files, starting from the most likely.
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
# only as a last resort.  b.out is created by i960 compilers.
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
#
# The IRIX 6 linker writes into existing files which may not be
# executable, retaining their permissions.  Remove them first so a
# subsequent execution test works.
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi

{ echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6; }
if test -z "$ac_file"; then
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext

# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }

rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6; }

{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_c89=$ac_arg
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; } ;;
  xno)
    { echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
esac


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test "x$CC" != xcc; then
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
else
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
fi
set dummy $CC; ac_cc=`echo $2 |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }

cat >>confdefs.h <<\_ACEOF
#define NO_MINUS_C_MINUS_O 1
_ACEOF

fi

# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'

# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   { (exit 1); exit 1; }; }

{ echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
echo "$as_me: error: invalid value of canonical build" >&2;}
   { (exit 1); exit 1; }; };;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   { (exit 1); exit 1; }; }
fi

fi
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
echo "$as_me: error: invalid value of canonical host" >&2;}
   { (exit 1); exit 1; }; };;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


CANONICAL_HOST=$host






	{ echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
	{ echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
	hostname=`hostname`
	if test "$hostname"; then
	   { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
echo "$as_me: autobuild hostname... $hostname" >&6;}
	fi

	date=`date +%Y%m%d-%H%M%S`
	if test "$?" != 0; then
	   date=`date`
	fi
	if test "$date"; then
	   { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
echo "$as_me: autobuild timestamp... $date" >&6;}
	fi



# Check whether --enable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval=$enable_largefile;
fi

if test "$enable_largefile" != no; then

  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
	 # IRIX 6.2 and later do not support large files by default,
	 # so use the C compiler's -n32 option if that helps.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
	 CC="$CC -n32"
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
	 break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_file_offset_bits=no; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_file_offset_bits=unknown
  break
done
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
case $ac_cv_sys_file_offset_bits in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
_ACEOF
;;
esac
rm -f conftest*
  if test $ac_cv_sys_file_offset_bits = unknown; then
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_large_files=no; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_large_files=unknown
  break
done
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
case $ac_cv_sys_large_files in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF
;;
esac
rm -f conftest*
  fi
fi


if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
fi
if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
	CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
fi



cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF





for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_YACC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { echo "$as_me:$LINENO: result: $YACC" >&5
echo "${ECHO_T}$YACC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"

for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LEX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  { echo "$as_me:$LINENO: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"

if test "x$LEX" != "x:"; then
  cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
c { yymore (); }
d { yyless (1); }
e { yyless (input () != 0); }
f { unput (yytext[0]); }
. { BEGIN INITIAL; }
%%
#ifdef YYTEXT_POINTER
extern char *yytext;
#endif
int
main (void)
{
  return ! yylex () + ! yywrap ();
}
_ACEOF
{ (ac_try="$LEX conftest.l"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$LEX conftest.l") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ echo "$as_me:$LINENO: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

if test -z "${LEXLIB+set}"; then
  { echo "$as_me:$LINENO: checking lex library" >&5
echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
if test "${ac_cv_lib_lex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    ac_save_LIBS=$LIBS
    ac_cv_lib_lex='none needed'
    for ac_lib in '' -lfl -ll; do
      LIBS="$ac_lib $ac_save_LIBS"
      cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_lex=$ac_lib
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
      test "$ac_cv_lib_lex" != 'none needed' && break
    done
    LIBS=$ac_save_LIBS

fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
fi


{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent.  Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
ac_save_LIBS=$LIBS
LIBS="$LEXLIB $ac_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
#define YYTEXT_POINTER 1
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_prog_lex_yytext_pointer=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS

fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
if test $ac_cv_prog_lex_yytext_pointer = yes; then

cat >>confdefs.h <<\_ACEOF
#define YYTEXT_POINTER 1
_ACEOF

fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c

fi
if test "$LEX" = :; then
  LEX=${am_missing_run}flex
fi
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$AWK" && break
done

{ echo "$as_me:$LINENO: checking for ln -s or something else" >&5
echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6; }
if test "${ac_cv_prog_LN_S+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  touch conftestdata1
  if ln conftestdata1 conftestdata2; then
    rm -f conftestdata*
    ac_cv_prog_LN_S=ln
  else
    ac_cv_prog_LN_S=cp
  fi
fi
fi
LN_S="$ac_cv_prog_LN_S"
{ echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
echo "${ECHO_T}$ac_cv_prog_LN_S" >&6; }




# Check whether --with-mips_abi was given.
if test "${with_mips_abi+set}" = set; then
  withval=$with_mips_abi;
fi


case "$host_os" in
irix*)
with_mips_abi="${with_mips_abi:-yes}"
if test -n "$GCC"; then

# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
#
# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
# GCC and revert back to O32. The same goes if O32 is asked for - old
# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
#
# Don't you just love *all* the different SGI ABIs?

case "${with_mips_abi}" in
        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
        64) abi='-mabi=64';  abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
if test -n "$abi" ; then
ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
{ echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6; }
if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $abi"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval $ac_foo=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval $ac_foo=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"

fi

ac_res=`eval echo \\\$$ac_foo`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test $ac_res = no; then
# Try to figure out why that failed...
case $abi in
	-mabi=32)
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS -mabi=n32"
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_res=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_res=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext	CLAGS="$save_CFLAGS"
	if test $ac_res = yes; then
		# New GCC
		{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
	fi
	# Old GCC
	abi=''
	abilibdirext=''
	;;
	-mabi=n32|-mabi=64)
		if test $with_mips_abi = yes; then
			# Old GCC, default to O32
			abi=''
			abilibdirext=''
		else
			# Some broken GCC
			{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
		fi
	;;
esac
fi #if test $ac_res = no; then
fi #if test -n "$abi" ; then
else
case "${with_mips_abi}" in
        32|o32) abi='-32'; abilibdirext=''     ;;
       n32|yes) abi='-n32'; abilibdirext='32'  ;;
        64) abi='-64'; abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
fi #if test -n "$GCC"; then
;;
esac

CC="$CC $abi"
libdir="$libdir$abilibdirext"


{ echo "$as_me:$LINENO: checking for __attribute__" >&5
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
if test "${ac_cv___attribute__+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
static void foo(void) __attribute__ ((noreturn));

static void
foo(void)
{
  exit(1);
}

_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv___attribute__=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv___attribute__=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

if test "$ac_cv___attribute__" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE___ATTRIBUTE__ 1
_ACEOF

fi
{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
echo "${ECHO_T}$ac_cv___attribute__" >&6; }


# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=yes
fi


# Check whether --enable-static was given.
if test "${enable_static+set}" = set; then
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=yes
fi


# Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi


{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
if test "${lt_cv_path_SED+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for lt_ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
      fi
    done
  done
done
lt_ac_max=0
lt_ac_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  test ! -f $lt_ac_sed && continue
  cat /dev/null > conftest.in
  lt_ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  # Check for GNU sed and select it if it is found.
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    lt_cv_path_SED=$lt_ac_sed
    break
  fi
  while true; do
    cat conftest.in conftest.in >conftest.tmp
    mv conftest.tmp conftest.in
    cp conftest.in conftest.nl
    echo >>conftest.nl
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    cmp -s conftest.out conftest.nl || break
    # 10000 chars as input seems more than enough
    test $lt_ac_count -gt 10 && break
    lt_ac_count=`expr $lt_ac_count + 1`
    if test $lt_ac_count -gt $lt_ac_max; then
      lt_ac_max=$lt_ac_count
      lt_cv_path_SED=$lt_ac_sed
    fi
  done
done

fi

SED=$lt_cv_path_SED
{ echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6; }

{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then
set dummy grep ggrep; ac_prog_name=$2
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    # Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_GREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

GREP="$ac_cv_path_GREP"
if test -z "$GREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_GREP=$GREP
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     # Extract the first word of "egrep" to use in msg output
if test -z "$EGREP"; then
set dummy egrep; ac_prog_name=$2
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in egrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_EGREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

EGREP="$ac_cv_path_EGREP"
if test -z "$EGREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_EGREP=$EGREP
fi


   fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
else
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld


{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac

{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
if test "${lt_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
fi
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
NM="$lt_cv_path_NM"

{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6; }
fi

{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | kfreebsd*-gnu | dragonfly*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix3*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux*)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

nto-qnx*)
  lt_cv_deplibs_check_method=unknown
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown


# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *ELF-32*)
      HPUX_IA64_MODE="32"
      ;;
    *ELF-64*)
      HPUX_IA64_MODE="64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 5679 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
   if test "$lt_cv_prog_gnu_ld" = yes; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -melf32bsmip"
      ;;
    *N32*)
      LD="${LD-ld} -melf32bmipn32"
      ;;
    *64-bit*)
      LD="${LD-ld} -melf64bmip"
      ;;
    esac
   else
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
   fi
  fi
  rm -rf conftest*
  ;;

x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.o` in
    *32-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_i386"
          ;;
        ppc64-*linux*|powerpc64-*linux*)
          LD="${LD-ld} -m elf32ppclinux"
          ;;
        s390x-*linux*)
          LD="${LD-ld} -m elf_s390"
          ;;
        sparc64-*linux*)
          LD="${LD-ld} -m elf32_sparc"
          ;;
      esac
      ;;
    *64-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        ppc*-*linux*|powerpc*-*linux*)
          LD="${LD-ld} -m elf64ppc"
          ;;
        s390*-*linux*)
          LD="${LD-ld} -m elf64_s390"
          ;;
        sparc*-*linux*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	lt_cv_cc_needs_belf=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)    LD="${LD-ld} -64" ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;


esac

need_locks="$enable_libtool_lock"



{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_stdc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in dlfcn.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CXXFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu



if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

fi


ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$F77"; then
  ac_cv_prog_F77="$F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
F77=$ac_cv_prog_F77
if test -n "$F77"; then
  { echo "$as_me:$LINENO: result: $F77" >&5
echo "${ECHO_T}$F77" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


    test -n "$F77" && break
  done
fi
if test -z "$F77"; then
  ac_ct_F77=$F77
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_F77"; then
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_F77="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_F77=$ac_cv_prog_ac_ct_F77
if test -n "$ac_ct_F77"; then
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
echo "${ECHO_T}$ac_ct_F77" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$ac_ct_F77" && break
done

  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_f77_compiler_gnu=$ac_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
if test "${ac_cv_prog_f77_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  FFLAGS=-g
cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_f77_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_prog_f77_g=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
if test "$ac_test_FFLAGS" = set; then
  FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-g -O2"
  else
    FFLAGS="-g"
  fi
else
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-O2"
  else
    FFLAGS=
  fi
fi

G77=`test $ac_compiler_gnu = yes && echo yes`
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!

# find the maximum length of command line arguments
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    # If test is not a shell built-in, we'll probably end up computing a
    # maximum length that is only half of the actual maximum length, but
    # we can't tell.
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
	       = "XX$teststring") >/dev/null 2>&1 &&
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
	    lt_cv_sys_max_cmd_len=$new_result &&
	    test $i != 17 # 1/2 MB should be enough
    do
      i=`expr $i + 1`
      teststring=$teststring$teststring
    done
    teststring=
    # Add a significant safety factor because C++ compilers can tack on massive
    # amounts of additional arguments before passing them to the linker.
    # It appears as though 1/2 is a usable value.
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
else
  { echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6; }
fi




# Check for command to grab the raw symbol name followed by C symbol from nm.
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform an extracted symbol line into a proper C declaration
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  ;;
linux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDGIRSTW]'
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6; }
else
  { echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6; }
fi

{ echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
if test "${lt_cv_objdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
echo "${ECHO_T}$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e 1s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi


old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$SED" && SED=sed
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes


# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi

test -z "$pic_mode" && pic_mode=default

# Use C for the default configuration in the libtool script
tagname=
lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}\n'


# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*



lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'


{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:8072: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:8076: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic='-qnocommon'
         lt_prog_compiler_wl='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:8340: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:8344: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }

if test x"$lt_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:8444: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:8448: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  runpath_var=
  allow_undefined_flag=
  enable_shared_with_static_runtimes=no
  archive_cmds=
  archive_expsym_cmds=
  old_archive_From_new_cmds=
  old_archive_from_expsyms_cmds=
  export_dynamic_flag_spec=
  whole_archive_flag_spec=
  thread_safe_flag_spec=
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_direct=no
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  link_all_deplibs=unknown
  hardcode_automatic=no
  module_cmds=
  module_expsym_cmds=
  always_export_symbols=no
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    interix3*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct=yes
	  else
  	  # We have old collect2
  	  hardcode_direct=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L=yes
  	  hardcode_libdir_flag_spec='-L$libdir'
  	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec='$convenience'
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc=no
      hardcode_direct=no
      hardcode_automatic=yes
      hardcode_shlibpath_var=unsupported
      whole_archive_flag_spec=''
      link_all_deplibs=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	hardcode_direct=yes
	export_dynamic_flag_spec='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld='+b $libdir'
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    openbsd*)
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	export_dynamic_flag_spec='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec='-R$libdir'
	   ;;
	 *)
	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl
	pic_flag=$lt_prog_compiler_pic
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc=no
        else
	  archive_cmds_need_lc=yes
        fi
        allow_undefined_flag=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var" || \
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6; }

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
       else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
       ;;
   *)
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    { echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_shl_load || defined __stub___shl_load
choke me
#endif

int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_shl_load=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dld_shl_load=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  { echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlopen

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_dlopen || defined __stub___dlopen
choke me
#endif

int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_svld_dlopen=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dld_dld_link=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 10752 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 10852 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# Report which library types will actually be built
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
    ;;
esac
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler \
    CC \
    LD \
    lt_prog_compiler_wl \
    lt_prog_compiler_pic \
    lt_prog_compiler_static \
    lt_prog_compiler_no_builtin_flag \
    export_dynamic_flag_spec \
    thread_safe_flag_spec \
    whole_archive_flag_spec \
    enable_shared_with_static_runtimes \
    old_archive_cmds \
    old_archive_from_new_cmds \
    predep_objects \
    postdep_objects \
    predeps \
    postdeps \
    compiler_lib_search_path \
    archive_cmds \
    archive_expsym_cmds \
    postinstall_cmds \
    postuninstall_cmds \
    old_archive_from_expsyms_cmds \
    allow_undefined_flag \
    no_undefined_flag \
    export_symbols_cmds \
    hardcode_libdir_flag_spec \
    hardcode_libdir_flag_spec_ld \
    hardcode_libdir_separator \
    hardcode_automatic \
    module_cmds \
    module_expsym_cmds \
    lt_cv_prog_compiler_c_o \
    exclude_expsyms \
    include_expsyms; do

    case $var in
    old_archive_cmds | \
    old_archive_from_new_cmds | \
    archive_cmds | \
    archive_expsym_cmds | \
    module_cmds | \
    module_expsym_cmds | \
    old_archive_from_expsyms_cmds | \
    export_symbols_cmds | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="${ofile}T"
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  $rm -f "$cfgfile"
  { echo "$as_me:$LINENO: creating $ofile" >&5
echo "$as_me: creating $ofile" >&6;}

  cat <<__EOF__ >> "$cfgfile"
#! $SHELL

# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="$SED -e 1s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

# The names of the tagged configurations supported by this script.
available_tags=

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__


  case $host_os in
  aix3*)
    cat <<\EOF >> "$cfgfile"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" || \
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"


# Check whether --with-tags was given.
if test "${with_tags+set}" = set; then
  withval=$with_tags; tagnames="$withval"
fi


if test -f "$ltmain" && test -n "$tagnames"; then
  if test ! -f "${ofile}"; then
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  fi

  if test -z "$LTCC"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    if test -z "$LTCC"; then
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
    else
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    fi
  fi
  if test -z "$LTCFLAGS"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  fi

  # Extract list of available tagged configurations in $ofile.
  # Note that this assumes the entire list is on one line.
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`

  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  for tagname in $tagnames; do
    IFS="$lt_save_ifs"
    # Check whether tagname contains only valid characters
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
    "") ;;
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
echo "$as_me: error: invalid tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
    esac

    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    then
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Update the list of available tags.
    if test -n "$tagname"; then
      echo appending configuration tag \"$tagname\" to $ofile

      case $tagname in
      CXX)
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
	    (test "X$CXX" != "Xg++"))) ; then
	  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu




archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC=$CC
lt_save_LD=$LD
lt_save_GCC=$GCC
GCC=$GXX
lt_save_with_gnu_ld=$with_gnu_ld
lt_save_path_LD=$lt_cv_path_LD
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
else
  $as_unset lt_cv_prog_gnu_ld
fi
if test -n "${lt_cv_path_LDCXX+set}"; then
  lt_cv_path_LD=$lt_cv_path_LDCXX
else
  $as_unset lt_cv_path_LD
fi
test -z "${LDCXX+set}" || LD=$LDCXX
CC=${CXX-"c++"}
compiler=$CC
compiler_CXX=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# We don't want -fno-exception wen compiling C++ code, so set the
# no_builtin_flag separately
if test "$GXX" = yes; then
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
else
  lt_prog_compiler_no_builtin_flag_CXX=
fi

if test "$GXX" = yes; then
  # Set up default GNU C++ configuration


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
else
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld



  # Check if GNU C++ uses GNU ld as the underlying linker, since the
  # archiving commands below assume that GNU ld is being used.
  if test "$with_gnu_ld" = yes; then
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

    # If archive_cmds runs LD, not CC, wlarc should be empty
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    #     investigate it a little bit more. (MM)
    wlarc='${wl}'

    # ancient GNU ld didn't support --whole-archive et. al.
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
	grep 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec_CXX=
    fi
  else
    with_gnu_ld=no
    wlarc=

    # A generic and very simple default shared library creation
    # command for GNU C++ for the case where it uses the native
    # linker, instead of GNU ld.  If possible, this setting should
    # overridden to take advantage of the native linker features on
    # the platform it is being used on.
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  fi

  # Commands to make compiler produce verbose output that lists
  # what "hidden" libraries, object files and flags are used when
  # linking a shared library.
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

else
  GXX=no
  with_gnu_ld=no
  wlarc=
fi

# PORTME: fill in a description of your system's C++ link characteristics
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
ld_shlibs_CXX=yes
case $host_os in
  aix3*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  aix4* | aix5*)
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  case $ld_flag in
	  *-brtl*)
	    aix_use_runtimelinking=yes
	    break
	    ;;
	  esac
	done
	;;
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    archive_cmds_CXX=''
    hardcode_direct_CXX=yes
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes

    if test "$GXX" = yes; then
      case $host_os in aix4.[012]|aix4.[012].*)
      # We only want to do this on AIX 4.2 and lower, the check
      # below for broken collect2 doesn't work under 4.3+
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct_CXX=yes
	else
	  # We have old collect2
	  hardcode_direct_CXX=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L_CXX=yes
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  hardcode_libdir_separator_CXX=
	fi
	;;
      esac
      shared_flag='-shared'
      if test "$aix_use_runtimelinking" = yes; then
	shared_flag="$shared_flag "'${wl}-G'
      fi
    else
      # not using gcc
      if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	shared_flag='-G'
      else
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
      fi
    fi

    # It seems that -bexpall does not export symbols beginning with
    # underscore (_), so it is better to generate a list of symbols to export.
    always_export_symbols_CXX=yes
    if test "$aix_use_runtimelinking" = yes; then
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag_CXX='-berok'
      # Determine the default libpath from the value encoded in an empty executable.
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     else
      if test "$host_cpu" = ia64; then
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag_CXX="-z nodefs"
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
      else
	# Determine the default libpath from the value encoded in an empty executable.
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	no_undefined_flag_CXX=' ${wl}-bernotok'
	allow_undefined_flag_CXX=' ${wl}-berok'
	# Exported symbols can be pulled into shared objects from archives
	whole_archive_flag_spec_CXX='$convenience'
	archive_cmds_need_lc_CXX=yes
	# This is similar to how AIX traditionally builds its shared libraries.
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
      fi
    fi
    ;;

  beos*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag_CXX=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs_CXX=no
    fi
    ;;

  chorus*)
    case $cc_basename in
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;

  cygwin* | mingw* | pw32*)
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
    # as there is no search path for DLLs.
    hardcode_libdir_flag_spec_CXX='-L$libdir'
    allow_undefined_flag_CXX=unsupported
    always_export_symbols_CXX=no
    enable_shared_with_static_runtimes_CXX=yes

    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      # If the export-symbols file already is a .def file (1st line
      # is EXPORTS), use it as is; otherwise, prepend...
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	cp $export_symbols $output_objdir/$soname.def;
      else
	echo EXPORTS > $output_objdir/$soname.def;
	cat $export_symbols >> $output_objdir/$soname.def;
      fi~
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    else
      ld_shlibs_CXX=no
    fi
  ;;
      darwin* | rhapsody*)
        case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
        esac
      archive_cmds_need_lc_CXX=no
      hardcode_direct_CXX=no
      hardcode_automatic_CXX=yes
      hardcode_shlibpath_var_CXX=unsupported
      whole_archive_flag_spec_CXX=''
      link_all_deplibs_CXX=yes

    if test "$GXX" = yes ; then
      lt_int_apple_cc_single_mod=no
      output_verbose_link_cmd='echo'
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
       lt_int_apple_cc_single_mod=yes
      fi
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      else
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
        fi
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          else
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          fi
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_CXX=no
          ;;
      esac
      fi
        ;;

  dgux*)
    case $cc_basename in
      ec++*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      ghcx*)
	# Green Hills C++ Compiler
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  freebsd[12]*)
    # C++ shared libraries reported to be fairly broken before switch to ELF
    ld_shlibs_CXX=no
    ;;
  freebsd-elf*)
    archive_cmds_need_lc_CXX=no
    ;;
  freebsd* | kfreebsd*-gnu | dragonfly*)
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    # conventions
    ld_shlibs_CXX=yes
    ;;
  gnu*)
    ;;
  hpux9*)
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    export_dynamic_flag_spec_CXX='${wl}-E'
    hardcode_direct_CXX=yes
    hardcode_minus_L_CXX=yes # Not in the search PATH,
				# but as the default
				# location of the library.

    case $cc_basename in
    CC*)
      # FIXME: insert proper C++ library support
      ld_shlibs_CXX=no
      ;;
    aCC*)
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      #
      # There doesn't appear to be a way to prevent this compiler from
      # explicitly linking system object files so we need to strip them
      # from the output so that they don't get included in the library
      # dependencies.
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
      ;;
    *)
      if test "$GXX" = yes; then
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
      fi
      ;;
    esac
    ;;
  hpux10*|hpux11*)
    if test $with_gnu_ld = no; then
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_CXX=:

      case $host_cpu in
      hppa*64*|ia64*)
	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
        ;;
      *)
	export_dynamic_flag_spec_CXX='${wl}-E'
        ;;
      esac
    fi
    case $host_cpu in
    hppa*64*|ia64*)
      hardcode_direct_CXX=no
      hardcode_shlibpath_var_CXX=no
      ;;
    *)
      hardcode_direct_CXX=yes
      hardcode_minus_L_CXX=yes # Not in the search PATH,
					      # but as the default
					      # location of the library.
      ;;
    esac

    case $cc_basename in
      CC*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      aCC*)
	case $host_cpu in
	hppa*64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	esac
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes; then
	  if test $with_gnu_ld = no; then
	    case $host_cpu in
	    hppa*64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    ia64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    *)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    esac
	  fi
	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  interix3*)
    hardcode_direct_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    export_dynamic_flag_spec_CXX='${wl}-E'
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    # Instead, shared libraries are loaded at an image base (0x10000000 by
    # default) and relocated if they conflict, which is a slow very memory
    # consuming and fragmenting process.  To avoid this, we pick a random,
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    ;;
  irix5* | irix6*)
    case $cc_basename in
      CC*)
	# SGI C++
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'

	# Archives containing C++ object files must be created using
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	;;
      *)
	if test "$GXX" = yes; then
	  if test "$with_gnu_ld" = no; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	  else
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
	  fi
	fi
	link_all_deplibs_CXX=yes
	;;
    esac
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    ;;
  linux*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	;;
      icpc*)
	# Intel C++
	with_gnu_ld=yes
	# version 8.0 and above of icpc choke on multiply defined symbols
	# if we add $predep_objects and $postdep_objects, however 7.1 and
	# earlier do not add the objects themselves.
	case `$CC -V 2>&1` in
	*"Version 7."*)
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	*)  # Version 8.0 or newer
	  tmp_idyn=
	  case $host_cpu in
	    ia64*) tmp_idyn=' -i_dynamic';;
	  esac
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	esac
	archive_cmds_need_lc_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	;;
      pgCC*)
        # Portland Group C++ compiler
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
        ;;
      cxx*)
	# Compaq C++
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	runpath_var=LD_RUN_PATH
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
    esac
    ;;
  lynxos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  m88k*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  mvs*)
    case $cc_basename in
      cxx*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
      wlarc=
      hardcode_libdir_flag_spec_CXX='-R$libdir'
      hardcode_direct_CXX=yes
      hardcode_shlibpath_var_CXX=no
    fi
    # Workaround some broken pre-1.5 toolchains
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    ;;
  openbsd2*)
    # C++ shared libraries are fairly broken
    ld_shlibs_CXX=no
    ;;
  openbsd*)
    hardcode_direct_CXX=yes
    hardcode_shlibpath_var_CXX=no
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
      export_dynamic_flag_spec_CXX='${wl}-E'
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    fi
    output_verbose_link_cmd='echo'
    ;;
  osf3*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'

	;;
      RCC*)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx*)
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  osf4* | osf5*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
	;;
      RCC*)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx*)
	allow_undefined_flag_CXX=' -expect_unresolved \*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	  echo "-hidden">> $lib.exp~
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
	  $rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  psos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  sunos4*)
    case $cc_basename in
      CC*)
	# Sun C++ 4.x
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      lcc*)
	# Lucid
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  solaris*)
    case $cc_basename in
      CC*)
	# Sun C++ 4.2, 5.x and Centerline C++
        archive_cmds_need_lc_CXX=yes
	no_undefined_flag_CXX=' -zdefs'
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-R$libdir'
	hardcode_shlibpath_var_CXX=no
	case $host_os in
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
	  *)
	    # The C++ compiler is used as linker so we must use $wl
	    # flag to pass the commands to the underlying system
	    # linker. We must also pass each convience library through
	    # to the system linker between allextract/defaultextract.
	    # The C++ compiler will combine linker options so we
	    # cannot just pass the convience library names through
	    # without $wl.
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
	    ;;
	esac
	link_all_deplibs_CXX=yes

	output_verbose_link_cmd='echo'

	# Archives containing C++ object files must be created using
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	;;
      gcx*)
	# Green Hills C++ Compiler
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	# The C++ compiler must be used to create the archive.
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	;;
      *)
	# GNU C++ compiler with Solaris linker
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  else
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
	    # platform.
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  fi

	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	fi
	;;
    esac
    ;;
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    no_undefined_flag_CXX='${wl}-z,text'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  sysv5* | sco3.2v5* | sco5v6*)
    # Note: We can NOT use -z defs as we might desire, because we do not
    # link with -lc, and that would cause any symbols used from libc to
    # always be unresolved, which means just about no library would
    # ever link correctly.  If we're not using GNU ld we use -z text
    # though, which does catch some bad symbols but isn't as heavy-handed
    # as -z defs.
    # For security reasons, it is highly recommended that you always
    # use absolute paths for naming shared libraries, and exclude the
    # DT_RUNPATH tag from executables and libraries.  But doing so
    # requires that you compile everything twice, which is a pain.
    # So that behaviour is only enabled if SCOABSPATH is set to a
    # non-empty value in the environment.  Most likely only useful for
    # creating official distributions of packages.
    # This is a hack until libtool officially supports absolute path
    # names for shared libraries.
    no_undefined_flag_CXX='${wl}-z,text'
    allow_undefined_flag_CXX='${wl}-z,nodefs'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  tandem*)
    case $cc_basename in
      NCC*)
	# NonStop-UX NCC 3.20
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  vxworks*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  *)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
esac
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

GCC_CXX="$GXX"
LD_CXX="$LD"


cat > conftest.$ac_ext <<EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
EOF

if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  # The `*' in the case matches for architectures that use `case' in
  # $output_verbose_cmd can trigger glob expansion during the loop
  # eval without this substitution.
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`

  for p in `eval $output_verbose_link_cmd`; do
    case $p in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" \
	  || test $p = "-R"; then
	 prev=$p
	 continue
       else
	 prev=
       fi

       if test "$pre_test_object_deps_done" = no; then
	 case $p in
	 -L* | -R*)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       ;;

    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$rm -f confest.$objext

# PORTME: override above test on systems where it is broken
case $host_os in
interix3*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

solaris*)
  case $cc_basename in
  CC*)
    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    postdeps_CXX='-lCstd -lCrun'
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac

lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | os2* | pw32*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix4* | aix5*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
       darwin*)
         # PIC is the default on this platform
         # Common symbols not allowed in MH_DYLIB files
         case $cc_basename in
           xlc*)
           lt_prog_compiler_pic_CXX='-qnocommon'
           lt_prog_compiler_wl_CXX='-Wl,'
           ;;
         esac
       ;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | kfreebsd*-gnu | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux*)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  icpc* | ecpc*)
	    # Intel C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC*)
	    # Portland Group C++ compiler.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_CXX=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:13192: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_prog_compiler_static_works_CXX=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:13292: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:13296: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  case $host_os in
  aix4* | aix5*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
  ;;
  cygwin* | mingw*)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  esac

{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_CXX
	pic_flag=$lt_prog_compiler_pic_CXX
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
        allow_undefined_flag_CXX=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_CXX=no
        else
	  archive_cmds_need_lc_CXX=yes
        fi
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" || \
   test -n "$runpath_var_CXX" || \
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_CXX \
    CC_CXX \
    LD_CXX \
    lt_prog_compiler_wl_CXX \
    lt_prog_compiler_pic_CXX \
    lt_prog_compiler_static_CXX \
    lt_prog_compiler_no_builtin_flag_CXX \
    export_dynamic_flag_spec_CXX \
    thread_safe_flag_spec_CXX \
    whole_archive_flag_spec_CXX \
    enable_shared_with_static_runtimes_CXX \
    old_archive_cmds_CXX \
    old_archive_from_new_cmds_CXX \
    predep_objects_CXX \
    postdep_objects_CXX \
    predeps_CXX \
    postdeps_CXX \
    compiler_lib_search_path_CXX \
    archive_cmds_CXX \
    archive_expsym_cmds_CXX \
    postinstall_cmds_CXX \
    postuninstall_cmds_CXX \
    old_archive_from_expsyms_cmds_CXX \
    allow_undefined_flag_CXX \
    no_undefined_flag_CXX \
    export_symbols_cmds_CXX \
    hardcode_libdir_flag_spec_CXX \
    hardcode_libdir_flag_spec_ld_CXX \
    hardcode_libdir_separator_CXX \
    hardcode_automatic_CXX \
    module_cmds_CXX \
    module_expsym_cmds_CXX \
    lt_cv_prog_compiler_c_o_CXX \
    exclude_expsyms_CXX \
    include_expsyms_CXX; do

    case $var in
    old_archive_cmds_CXX | \
    old_archive_from_new_cmds_CXX | \
    archive_cmds_CXX | \
    archive_expsym_cmds_CXX | \
    module_cmds_CXX | \
    module_expsym_cmds_CXX | \
    old_archive_from_expsyms_cmds_CXX | \
    export_symbols_cmds_CXX | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU C compiler?
with_gcc=$GCC_CXX

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_CXX

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_CXX
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_CXX

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_CXX

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_CXX"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC=$lt_save_CC
LDCXX=$LD
LD=$lt_save_LD
GCC=$lt_save_GCC
with_gnu_ldcxx=$with_gnu_ld
with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld

	else
	  tagname=""
	fi
	;;

      F77)
	if test -n "$F77" && test "X$F77" != "Xno"; then

ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu


archive_cmds_need_lc_F77=no
allow_undefined_flag_F77=
always_export_symbols_F77=no
archive_expsym_cmds_F77=
export_dynamic_flag_spec_F77=
hardcode_direct_F77=no
hardcode_libdir_flag_spec_F77=
hardcode_libdir_flag_spec_ld_F77=
hardcode_libdir_separator_F77=
hardcode_minus_L_F77=no
hardcode_automatic_F77=no
module_cmds_F77=
module_expsym_cmds_F77=
link_all_deplibs_F77=unknown
old_archive_cmds_F77=$old_archive_cmds
no_undefined_flag_F77=
whole_archive_flag_spec_F77=
enable_shared_with_static_runtimes_F77=no

# Source file extension for f77 test sources.
ac_ext=f

# Object file extension for compiled f77 test sources.
objext=o
objext_F77=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"

# Code to be used in simple link tests
lt_simple_link_test_code="      program t\n      end\n"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${F77-"f77"}
compiler=$CC
compiler_F77=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;
aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
esac
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }

GCC_F77="$G77"
LD_F77="$LD"

lt_prog_compiler_wl_F77=
lt_prog_compiler_pic_F77=
lt_prog_compiler_static_F77=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_F77='-Wl,'
    lt_prog_compiler_static_F77='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_F77='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_F77=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_F77='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_F77='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      else
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_F77='-qnocommon'
         lt_prog_compiler_wl_F77='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_F77='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_F77='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_F77='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_F77='-Qoption ld '
      lt_prog_compiler_pic_F77='-PIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_F77='-Kconform_pic'
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
      ;;

    uts4*)
      lt_prog_compiler_pic_F77='-pic'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_F77=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_F77"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_F77=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14862: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:14866: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_F77=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }

if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
    case $lt_prog_compiler_pic_F77 in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
     esac
else
    lt_prog_compiler_pic_F77=
     lt_prog_compiler_can_build_shared_F77=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_F77=
    ;;
  *)
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_F77=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_F77=yes
       fi
     else
       lt_prog_compiler_static_works_F77=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }

if test x"$lt_prog_compiler_static_works_F77" = xyes; then
    :
else
    lt_prog_compiler_static_F77=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:14970: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  runpath_var=
  allow_undefined_flag_F77=
  enable_shared_with_static_runtimes_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  old_archive_From_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  export_dynamic_flag_spec_F77=
  whole_archive_flag_spec_F77=
  thread_safe_flag_spec_F77=
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_direct_F77=no
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  link_all_deplibs_F77=unknown
  hardcode_automatic_F77=no
  module_cmds_F77=
  module_expsym_cmds_F77=
  always_export_symbols_F77=no
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_F77=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_F77=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_F77=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_F77=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_F77='-L$libdir'
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=no
      enable_shared_with_static_runtimes_F77=yes
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    interix3*)
      hardcode_direct_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_F77='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_F77=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_F77=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
    esac

    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=yes
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_F77=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_F77=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_F77=''
      hardcode_direct_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_F77=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_F77=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_F77=yes
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
  	  hardcode_libdir_separator_F77=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_F77=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_F77='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_F77="-z nodefs"
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_F77=' ${wl}-bernotok'
	  allow_undefined_flag_F77=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_F77='$convenience'
	  archive_cmds_need_lc_F77=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_F77=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_F77=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_F77=' '
      allow_undefined_flag_F77=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_F77='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_F77=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_F77=no
      hardcode_direct_F77=no
      hardcode_automatic_F77=yes
      hardcode_shlibpath_var_F77=unsupported
      whole_archive_flag_spec_F77=''
      link_all_deplibs_F77=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_F77=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    freebsd1*)
      ld_shlibs_F77=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_direct_F77=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_F77=yes
      export_dynamic_flag_spec_F77='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	hardcode_direct_F77=yes
	export_dynamic_flag_spec_F77='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_F77=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	*)
	  hardcode_direct_F77=yes
	  export_dynamic_flag_spec_F77='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      link_all_deplibs_F77=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    newsos6)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_shlibpath_var_F77=no
      ;;

    openbsd*)
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_F77='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_F77='-R$libdir'
	   ;;
	 *)
	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      allow_undefined_flag_F77=unsupported
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
      fi
      hardcode_libdir_separator_F77=:
      ;;

    solaris*)
      no_undefined_flag_F77=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_shlibpath_var_F77=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_F77=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
	  hardcode_direct_F77=no
        ;;
	motorola)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4.3*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_F77=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_F77=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_F77='${wl}-z,text'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_F77='${wl}-z,text'
      allow_undefined_flag_F77='${wl}-z,nodefs'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      export_dynamic_flag_spec_F77='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      ld_shlibs_F77=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
test "$ld_shlibs_F77" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_F77" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_F77=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_F77 in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_F77
	pic_flag=$lt_prog_compiler_pic_F77
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
        allow_undefined_flag_F77=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_F77=no
        else
	  archive_cmds_need_lc_F77=yes
        fi
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_F77=
if test -n "$hardcode_libdir_flag_spec_F77" || \
   test -n "$runpath_var_F77" || \
   test "X$hardcode_automatic_F77" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_F77" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     test "$hardcode_minus_L_F77" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_F77=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_F77=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_F77=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6; }

if test "$hardcode_action_F77" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_F77 \
    CC_F77 \
    LD_F77 \
    lt_prog_compiler_wl_F77 \
    lt_prog_compiler_pic_F77 \
    lt_prog_compiler_static_F77 \
    lt_prog_compiler_no_builtin_flag_F77 \
    export_dynamic_flag_spec_F77 \
    thread_safe_flag_spec_F77 \
    whole_archive_flag_spec_F77 \
    enable_shared_with_static_runtimes_F77 \
    old_archive_cmds_F77 \
    old_archive_from_new_cmds_F77 \
    predep_objects_F77 \
    postdep_objects_F77 \
    predeps_F77 \
    postdeps_F77 \
    compiler_lib_search_path_F77 \
    archive_cmds_F77 \
    archive_expsym_cmds_F77 \
    postinstall_cmds_F77 \
    postuninstall_cmds_F77 \
    old_archive_from_expsyms_cmds_F77 \
    allow_undefined_flag_F77 \
    no_undefined_flag_F77 \
    export_symbols_cmds_F77 \
    hardcode_libdir_flag_spec_F77 \
    hardcode_libdir_flag_spec_ld_F77 \
    hardcode_libdir_separator_F77 \
    hardcode_automatic_F77 \
    module_cmds_F77 \
    module_expsym_cmds_F77 \
    lt_cv_prog_compiler_c_o_F77 \
    exclude_expsyms_F77 \
    include_expsyms_F77; do

    case $var in
    old_archive_cmds_F77 | \
    old_archive_from_new_cmds_F77 | \
    archive_cmds_F77 | \
    archive_expsym_cmds_F77 | \
    module_cmds_F77 | \
    module_expsym_cmds_F77 | \
    old_archive_from_expsyms_cmds_F77 | \
    export_symbols_cmds_F77 | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_F77

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_F77

# Is the compiler the GNU C compiler?
with_gcc=$GCC_F77

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_F77

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_F77
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_F77

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_F77

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_F77

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_F77

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_F77

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_F77

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_F77"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_F77

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_F77

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_F77

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_F77

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      GCJ)
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then


# Source file extension for Java test sources.
ac_ext=java

# Object file extension for compiled Java test sources.
objext=o
objext_GCJ=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="class foo {}\n"

# Code to be used in simple link tests
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${GCJ-"gcj"}
compiler=$CC
compiler_GCJ=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# GCJ did not exist at the time GCC didn't implicitly link libc in.
archive_cmds_need_lc_GCJ=no

old_archive_cmds_GCJ=$old_archive_cmds


lt_prog_compiler_no_builtin_flag_GCJ=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'


{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:17164: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:17168: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl_GCJ=
lt_prog_compiler_pic_GCJ=
lt_prog_compiler_static_GCJ=

{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_GCJ='-Wl,'
    lt_prog_compiler_static_GCJ='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_GCJ='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_GCJ=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_GCJ=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_GCJ='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      else
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_GCJ='-qnocommon'
         lt_prog_compiler_wl_GCJ='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-KPIC'
	lt_prog_compiler_static_GCJ='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_GCJ='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_GCJ='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_GCJ='-Qoption ld '
      lt_prog_compiler_pic_GCJ='-PIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;

    uts4*)
      lt_prog_compiler_pic_GCJ='-pic'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_GCJ"; then

{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_GCJ=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:17432: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:17436: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_GCJ=yes
     fi
   fi
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }

if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    case $lt_prog_compiler_pic_GCJ in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
     esac
else
    lt_prog_compiler_pic_GCJ=
     lt_prog_compiler_can_build_shared_GCJ=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_GCJ=
    ;;
  *)
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_GCJ=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_GCJ=yes
       fi
     else
       lt_prog_compiler_static_works_GCJ=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }

if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
    :
else
    lt_prog_compiler_static_GCJ=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_GCJ=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:17536: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:17540: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_GCJ=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }

  runpath_var=
  allow_undefined_flag_GCJ=
  enable_shared_with_static_runtimes_GCJ=no
  archive_cmds_GCJ=
  archive_expsym_cmds_GCJ=
  old_archive_From_new_cmds_GCJ=
  old_archive_from_expsyms_cmds_GCJ=
  export_dynamic_flag_spec_GCJ=
  whole_archive_flag_spec_GCJ=
  thread_safe_flag_spec_GCJ=
  hardcode_libdir_flag_spec_GCJ=
  hardcode_libdir_flag_spec_ld_GCJ=
  hardcode_libdir_separator_GCJ=
  hardcode_direct_GCJ=no
  hardcode_minus_L_GCJ=no
  hardcode_shlibpath_var_GCJ=unsupported
  link_all_deplibs_GCJ=unknown
  hardcode_automatic_GCJ=no
  module_cmds_GCJ=
  module_expsym_cmds_GCJ=
  always_export_symbols_GCJ=no
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_GCJ=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_GCJ=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_GCJ=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_GCJ=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=no
      enable_shared_with_static_runtimes_GCJ=yes
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    interix3*)
      hardcode_direct_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_GCJ='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_GCJ=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_GCJ=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;
    esac

    if test "$ld_shlibs_GCJ" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_GCJ=
      export_dynamic_flag_spec_GCJ=
      whole_archive_flag_spec_GCJ=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=yes
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_GCJ=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_GCJ=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_GCJ=''
      hardcode_direct_GCJ=yes
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_GCJ=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_GCJ=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_GCJ=yes
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
  	  hardcode_libdir_separator_GCJ=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_GCJ=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_GCJ='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_GCJ="-z nodefs"
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
	  allow_undefined_flag_GCJ=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_GCJ='$convenience'
	  archive_cmds_need_lc_GCJ=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_GCJ=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_GCJ=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ=' '
      allow_undefined_flag_GCJ=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_GCJ='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_GCJ=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_GCJ=no
      hardcode_direct_GCJ=no
      hardcode_automatic_GCJ=yes
      hardcode_shlibpath_var_GCJ=unsupported
      whole_archive_flag_spec_GCJ=''
      link_all_deplibs_GCJ=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_GCJ=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    freebsd1*)
      ld_shlibs_GCJ=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_direct_GCJ=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	hardcode_direct_GCJ=yes
	export_dynamic_flag_spec_GCJ='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_GCJ=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no
	  ;;
	*)
	  hardcode_direct_GCJ=yes
	  export_dynamic_flag_spec_GCJ='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      link_all_deplibs_GCJ=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    newsos6)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_shlibpath_var_GCJ=no
      ;;

    openbsd*)
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_GCJ='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
	   ;;
	 *)
	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      allow_undefined_flag_GCJ=unsupported
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_separator_GCJ=:
      ;;

    solaris*)
      no_undefined_flag_GCJ=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_shlibpath_var_GCJ=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_GCJ=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
	  hardcode_direct_GCJ=no
        ;;
	motorola)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4.3*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_GCJ=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_GCJ=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z,text'
      archive_cmds_need_lc_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_GCJ='${wl}-z,text'
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
      archive_cmds_need_lc_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      ld_shlibs_GCJ=no
      ;;
    esac
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
test "$ld_shlibs_GCJ" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_GCJ" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_GCJ=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_GCJ in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_GCJ
	pic_flag=$lt_prog_compiler_pic_GCJ
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
        allow_undefined_flag_GCJ=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_GCJ=no
        else
	  archive_cmds_need_lc_GCJ=yes
        fi
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var_GCJ" || \
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }

if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_GCJ \
    CC_GCJ \
    LD_GCJ \
    lt_prog_compiler_wl_GCJ \
    lt_prog_compiler_pic_GCJ \
    lt_prog_compiler_static_GCJ \
    lt_prog_compiler_no_builtin_flag_GCJ \
    export_dynamic_flag_spec_GCJ \
    thread_safe_flag_spec_GCJ \
    whole_archive_flag_spec_GCJ \
    enable_shared_with_static_runtimes_GCJ \
    old_archive_cmds_GCJ \
    old_archive_from_new_cmds_GCJ \
    predep_objects_GCJ \
    postdep_objects_GCJ \
    predeps_GCJ \
    postdeps_GCJ \
    compiler_lib_search_path_GCJ \
    archive_cmds_GCJ \
    archive_expsym_cmds_GCJ \
    postinstall_cmds_GCJ \
    postuninstall_cmds_GCJ \
    old_archive_from_expsyms_cmds_GCJ \
    allow_undefined_flag_GCJ \
    no_undefined_flag_GCJ \
    export_symbols_cmds_GCJ \
    hardcode_libdir_flag_spec_GCJ \
    hardcode_libdir_flag_spec_ld_GCJ \
    hardcode_libdir_separator_GCJ \
    hardcode_automatic_GCJ \
    module_cmds_GCJ \
    module_expsym_cmds_GCJ \
    lt_cv_prog_compiler_c_o_GCJ \
    exclude_expsyms_GCJ \
    include_expsyms_GCJ; do

    case $var in
    old_archive_cmds_GCJ | \
    old_archive_from_new_cmds_GCJ | \
    archive_cmds_GCJ | \
    archive_expsym_cmds_GCJ | \
    module_cmds_GCJ | \
    module_expsym_cmds_GCJ | \
    old_archive_from_expsyms_cmds_GCJ | \
    export_symbols_cmds_GCJ | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_GCJ

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_GCJ

# Is the compiler the GNU C compiler?
with_gcc=$GCC_GCJ

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_GCJ

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_GCJ

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_GCJ
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_GCJ

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_GCJ
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_GCJ
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_GCJ
module_expsym_cmds=$lt_module_expsym_cmds_GCJ

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_GCJ

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_GCJ

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_GCJ

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_GCJ

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_GCJ

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_GCJ

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_GCJ

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_GCJ

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_GCJ

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_GCJ"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_GCJ

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_GCJ

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_GCJ

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_GCJ

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      RC)


# Source file extension for RC test sources.
ac_ext=rc

# Object file extension for compiled RC test sources.
objext=o
objext_RC=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'

# Code to be used in simple link tests
lt_simple_link_test_code="$lt_simple_compile_test_code"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${RC-"windres"}
compiler=$CC
compiler_RC=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

lt_cv_prog_compiler_c_o_RC=yes

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_RC \
    CC_RC \
    LD_RC \
    lt_prog_compiler_wl_RC \
    lt_prog_compiler_pic_RC \
    lt_prog_compiler_static_RC \
    lt_prog_compiler_no_builtin_flag_RC \
    export_dynamic_flag_spec_RC \
    thread_safe_flag_spec_RC \
    whole_archive_flag_spec_RC \
    enable_shared_with_static_runtimes_RC \
    old_archive_cmds_RC \
    old_archive_from_new_cmds_RC \
    predep_objects_RC \
    postdep_objects_RC \
    predeps_RC \
    postdeps_RC \
    compiler_lib_search_path_RC \
    archive_cmds_RC \
    archive_expsym_cmds_RC \
    postinstall_cmds_RC \
    postuninstall_cmds_RC \
    old_archive_from_expsyms_cmds_RC \
    allow_undefined_flag_RC \
    no_undefined_flag_RC \
    export_symbols_cmds_RC \
    hardcode_libdir_flag_spec_RC \
    hardcode_libdir_flag_spec_ld_RC \
    hardcode_libdir_separator_RC \
    hardcode_automatic_RC \
    module_cmds_RC \
    module_expsym_cmds_RC \
    lt_cv_prog_compiler_c_o_RC \
    exclude_expsyms_RC \
    include_expsyms_RC; do

    case $var in
    old_archive_cmds_RC | \
    old_archive_from_new_cmds_RC | \
    archive_cmds_RC | \
    archive_expsym_cmds_RC | \
    module_cmds_RC | \
    module_expsym_cmds_RC | \
    old_archive_from_expsyms_cmds_RC | \
    export_symbols_cmds_RC | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_RC

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_RC

# Is the compiler the GNU C compiler?
with_gcc=$GCC_RC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_RC

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_RC

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_RC
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_RC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_RC
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_RC
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_RC
module_expsym_cmds=$lt_module_expsym_cmds_RC

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_RC

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_RC

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_RC

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_RC

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_RC

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_RC

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_RC

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_RC

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_RC

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_RC

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_RC"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_RC

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_RC

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_RC

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_RC

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	;;

      *)
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
      esac

      # Append the new tag name to the list of available tags.
      if test -n "$tagname" ; then
      available_tags="$available_tags $tagname"
    fi
    fi
  done
  IFS="$lt_save_ifs"

  # Now substitute the updated list of available tags.
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    mv "${ofile}T" "$ofile"
    chmod +x "$ofile"
  else
    rm -f "${ofile}T"
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
   { (exit 1); exit 1; }; }
  fi
fi



# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion





















 if test "$enable_shared" = "yes"; then
  ENABLE_SHARED_TRUE=
  ENABLE_SHARED_FALSE='#'
else
  ENABLE_SHARED_TRUE='#'
  ENABLE_SHARED_FALSE=
fi


{ echo "$as_me:$LINENO: checking for ld --version-script" >&5
echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
if test "${rk_cv_version_script+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  rk_cv_version_script=no

  cat > conftest.map <<EOF
HEIM_GSS_V1 {
        global: gss*;
};
HEIM_GSS_V1_1 {
        global: gss_init_creds;
} HEIM_GSS_V1;
EOF
cat > conftest.c <<EOF
int gss_init_creds(int foo) { return 0; }
EOF

  if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
                               -o conftest.so conftest.c
                               -Wl,--version-script,conftest.map'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; };
  then
    rk_cv_version_script=yes
  fi
rm -f conftest*

fi
{ echo "$as_me:$LINENO: result: $rk_cv_version_script" >&5
echo "${ECHO_T}$rk_cv_version_script" >&6; }

if test $rk_cv_version_script = yes ; then
  doversioning=yes
  LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
else
  doversioning=no
  LDFLAGS_VERSION_SCRIPT=
fi


 if test $doversioning = yes; then
  versionscript_TRUE=
  versionscript_FALSE='#'
else
  versionscript_TRUE='#'
  versionscript_FALSE=
fi







# Check whether --with-openldap was given.
if test "${with_openldap+set}" = set; then
  withval=$with_openldap;
fi


# Check whether --with-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi


# Check whether --with-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi


# Check whether --with-openldap-config was given.
if test "${with_openldap_config+set}" = set; then
  withval=$with_openldap_config;
fi




{ echo "$as_me:$LINENO: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6; }

case "$with_openldap" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_openldap" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_openldap_include" = ""; then
		if test -d "$i/include/openldap"; then
			header_dirs="$header_dirs $i/include/openldap"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_openldap_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_openldap_include"; then
	header_dirs="$with_openldap_include $header_dirs"
fi
if test "$with_openldap_lib"; then
	lib_dirs="$with_openldap_lib $lib_dirs"
fi

if test "$with_openldap_config" = ""; then
	with_openldap_config=''
fi

openldap_cflags=
openldap_libs=

case "$with_openldap_config" in
yes|no|""|"")
	if test -f $with_openldap/bin/ ; then
		with_openldap_config=$with_openldap/bin/
	fi
	;;
esac

case "$with_openldap_config" in
yes|no|"")
	;;
*)
	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
	openldap_libs="`$with_openldap_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_openldap" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$openldap_cflags" -a "$openldap_libs"; then
		CFLAGS="$openldap_cflags $save_CFLAGS"
		LIBS="$openldap_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

			INCLUDE_openldap="$openldap_cflags"
			LIB_openldap="$openldap_libs"
			{ echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
echo "${ECHO_T}from $with_openldap_config" >&6; }
			found=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lldap -llber  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
			INCLUDE_openldap="-I$ires"
			LIB_openldap="-L$lres -lldap -llber "
			found=yes
			{ echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define OPENLDAP 1
_ACEOF

	with_openldap=yes
else
	with_openldap=no
	INCLUDE_openldap=
	LIB_openldap=
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi





# Check whether --enable-hdb-openldap-module was given.
if test "${enable_hdb_openldap_module+set}" = set; then
  enableval=$enable_hdb_openldap_module;
fi

if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OPENLDAP_MODULE 1
_ACEOF

fi
 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
  OPENLDAP_MODULE_TRUE=
  OPENLDAP_MODULE_FALSE='#'
else
  OPENLDAP_MODULE_TRUE='#'
  OPENLDAP_MODULE_FALSE=
fi


# Check whether --enable-pk-init was given.
if test "${enable_pk_init+set}" = set; then
  enableval=$enable_pk_init;
fi

if test "$enable_pk_init" != no ;then

cat >>confdefs.h <<\_ACEOF
#define PKINIT 1
_ACEOF

fi
 if test "$enable_pk_init" != no; then
  PKINIT_TRUE=
  PKINIT_FALSE='#'
else
  PKINIT_TRUE='#'
  PKINIT_FALSE=
fi




# Check whether --with-hdbdir was given.
if test "${with_hdbdir+set}" = set; then
  withval=$with_hdbdir;
else
  with_hdbdir=/var/heimdal
fi

DIR_hdbdir="$with_hdbdir"



with_krb4=no


 if false; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi


 if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
fi

 if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
else
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi



cat >>confdefs.h <<\_ACEOF
#define KRB5 1
_ACEOF


crypto_lib=unknown


# Check whether --with-openssl was given.
if test "${with_openssl+set}" = set; then
  withval=$with_openssl;
fi



# Check whether --with-openssl-lib was given.
if test "${with_openssl_lib+set}" = set; then
  withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi



# Check whether --with-openssl-include was given.
if test "${with_openssl_include+set}" = set; then
  withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
echo "$as_me: error: No argument for --with-openssl-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi


case "$with_openssl" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openssl_include" = ""; then
		with_openssl_include="$with_openssl/include"
	fi
	if test "$with_openssl_lib" = ""; then
		with_openssl_lib="$with_openssl/lib$abilibdirext"
	fi
	;;
esac


DIR_hcrypto=

{ echo "$as_me:$LINENO: checking for crypto library" >&5
echo $ECHO_N "checking for crypto library... $ECHO_C" >&6; }

openssl=no

if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
	save_CPPFLAGS="$CPPFLAGS"
	save_LIBS="$LIBS"

	cdirs= clibs=
	for i in $LIB_krb4; do
		case "$i" in
		-L*) cdirs="$cdirs $i";;
		-l*) clibs="$clibs $i";;
		esac
	done

	ires=
	for i in $INCLUDE_krb4; do
		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
		for j in $cdirs; do
			for k in $clibs; do
				LIBS="$j $k $save_LIBS"
				cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#include <openssl/aes.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
		#include <openssl/rand.h>
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
		#else
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
		#endif

int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;
		SHA256_CTX sha256;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);
		SHA256_Init(&sha256);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
		#ifdef HAVE_OPENSSL
		RAND_status();
		UI_UTIL_read_pw_string(0,0,0,0);
		#endif

		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  openssl=yes ires="$i" lres="$j $k"; break 3
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
			done
		done
		CFLAGS="$i $save_CFLAGS"
		for j in $cdirs; do
			for k in $clibs; do
				LIBS="$j $k $save_LIBS"
				cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#include <openssl/aes.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
		#include <openssl/rand.h>
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
		#else
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
		#endif

int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;
		SHA256_CTX sha256;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);
		SHA256_Init(&sha256);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
		#ifdef HAVE_OPENSSL
		RAND_status();
		UI_UTIL_read_pw_string(0,0,0,0);
		#endif

		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  openssl=no ires="$i" lres="$j $k"; break 3
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
			done
		done
	done

	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
	if test "$ires" -a "$lres"; then
		INCLUDE_hcrypto="$ires"
		LIB_hcrypto="$lres"
		crypto_lib=krb4
		{ echo "$as_me:$LINENO: result: same as krb4" >&5
echo "${ECHO_T}same as krb4" >&6; }
		LIB_hcrypto_a='$(LIB_hcrypto)'
		LIB_hcrypto_so='$(LIB_hcrypto)'
		LIB_hcrypto_appl='$(LIB_hcrypto)'
	fi
fi

if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	INCLUDE_hcrypto=
	LIB_hcrypto=
	if test "$with_openssl_include" != ""; then
		INCLUDE_hcrypto="-I${with_openssl_include}"
	fi
	if test "$with_openssl_lib" != ""; then
		LIB_hcrypto="-L${with_openssl_lib}"
	fi
	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
	saved_LIB_hcrypto="$LIB_hcrypto"
	for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
		LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
		LIB_hcrypto_a="$LIB_hcrypto"
		LIB_hcrypto_so="$LIB_hcrypto"
		LIB_hcrypto_appl="$LIB_hcrypto"
		LIBS="${LIBS} ${LIB_hcrypto}"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#include <openssl/aes.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
		#include <openssl/rand.h>
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
		#else
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
		#endif

int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;
		SHA256_CTX sha256;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);
		SHA256_Init(&sha256);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
		#ifdef HAVE_OPENSSL
		RAND_status();
		UI_UTIL_read_pw_string(0,0,0,0);
		#endif

		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

			crypto_lib=libcrypto openssl=yes
			{ echo "$as_me:$LINENO: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6; }

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
		if test "$crypto_lib" = libcrypto ; then
			break;
		fi
	done
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$crypto_lib" = "unknown"; then

  DIR_hcrypto='hcrypto'
  LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
  LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
  LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
  LIB_hcrypto_appl="-lhcrypto"

  { echo "$as_me:$LINENO: result: included libhcrypto" >&5
echo "${ECHO_T}included libhcrypto" >&6; }

fi

if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
	{ { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
required by Kerberos 5; to continue, you need to install a newer
Kerberos 4 or configure --without-krb4" >&5
echo "$as_me: error: the crypto library used by krb4 lacks features
required by Kerberos 5; to continue, you need to install a newer
Kerberos 4 or configure --without-krb4" >&2;}
   { (exit 1); exit 1; }; }
fi

if test "$openssl" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENSSL 1
_ACEOF

fi
 if test "$openssl" = yes; then
  HAVE_OPENSSL_TRUE=
  HAVE_OPENSSL_FALSE='#'
else
  HAVE_OPENSSL_TRUE='#'
  HAVE_OPENSSL_FALSE=
fi










{ echo "$as_me:$LINENO: checking if compiling threadsafe libraries" >&5
echo $ECHO_N "checking if compiling threadsafe libraries... $ECHO_C" >&6; }

# Check whether --enable-pthread-support was given.
if test "${enable_pthread_support+set}" = set; then
  enableval=$enable_pthread_support;
else
  enable_pthread_support=maybe
fi


case "$host" in
*-*-solaris2*)
	native_pthread_support=yes
	if test "$GCC" = yes; then
		PTHREADS_CFLAGS=-pthreads
		PTHREADS_LIBS=-pthreads
	else
		PTHREADS_CFLAGS=-mt
		PTHREADS_LIBS=-mt
	fi
	;;
*-*-netbsd*)
	native_pthread_support="if running netbsd 1.6T or newer"
		PTHREADS_LIBS=""
	;;
*-*-freebsd5*)
	native_pthread_support=yes
	;;
*-*-linux* | *-*-linux-gnu)
	case `uname -r` in
	2.*)
		native_pthread_support=yes
		PTHREADS_CFLAGS=-pthread
		PTHREADS_LIBS=-pthread
		;;
	esac
	;;
*-*-aix*)
	        	native_pthread_support=no
	;;
mips-sgi-irix6.[5-9])  # maybe works for earlier versions too
	native_pthread_support=yes
	PTHREADS_LIBS="-lpthread"
	;;
*-*-darwin*)
	native_pthread_support=yes
	;;
*)
	native_pthread_support=no
	;;
esac

if test "$enable_pthread_support" = maybe ; then
	enable_pthread_support="$native_pthread_support"
fi

if test "$enable_pthread_support" != no; then

cat >>confdefs.h <<\_ACEOF
#define ENABLE_PTHREAD_SUPPORT 1
_ACEOF

            LIBS="$PTHREADS_LIBS $LIBS"
else
  PTHREADS_CFLAGS=""
  PTHREADS_LIBS=""
fi




{ echo "$as_me:$LINENO: result: $enable_pthread_support" >&5
echo "${ECHO_T}$enable_pthread_support" >&6; }


# Check whether --enable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval=$enable_dce;
fi

if test "$enable_dce" = yes; then

cat >>confdefs.h <<\_ACEOF
#define DCE 1
_ACEOF

fi
 if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
else
  DCE_TRUE='#'
  DCE_FALSE=
fi


## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
	dpagaix_ldflags=
else
	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
fi




# Check whether --enable-afs-support was given.
if test "${enable_afs_support+set}" = set; then
  enableval=$enable_afs_support;
fi

if test "$enable_afs_support" = no; then

cat >>confdefs.h <<\_ACEOF
#define NO_AFS 1
_ACEOF

fi


# Check whether --enable-berkeley-db was given.
if test "${enable_berkeley_db+set}" = set; then
  enableval=$enable_berkeley_db;

fi


# Check whether --enable-ndbm-db was given.
if test "${enable_ndbm_db+set}" = set; then
  enableval=$enable_ndbm_db;

fi


have_ndbm=no
db_type=unknown

if test "$enable_berkeley_db" != no; then





for ac_header in 				\
	db4/db.h				\
	db3/db.h				\
	db.h					\
	db_185.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done






{ echo "$as_me:$LINENO: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6; }
if test "${ac_cv_funclib_db_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db4 db3 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include <stdio.h>
  #ifdef HAVE_DB4_DB_H
  #include <db4/db.h>
  #elif defined(HAVE_DB3_DB_H)
  #include <db3/db.h>
  #else
  #include <db.h>
  #endif

int
main ()
{
db_create(NULL, NULL, 0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_db_create"

if false; then

for ac_func in db_create
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac



  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB3 1
_ACEOF

  else





{ echo "$as_me:$LINENO: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
if test "${ac_cv_funclib_dbopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db2 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #include <stdio.h>
    #if defined(HAVE_DB2_DB_H)
    #include <db2/db.h>
    #elif defined(HAVE_DB_185_H)
    #include <db_185.h>
    #elif defined(HAVE_DB_H)
    #include <db.h>
    #else
    #error no db.h
    #endif

int
main ()
{
dbopen(NULL, 0, 0, 0, NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbopen"

if false; then

for ac_func in dbopen
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac



    if test "$ac_cv_func_dbopen" = "yes"; then
      db_type=db1
      if test "$ac_cv_funclib_dbopen" != "yes"; then
        DBLIB="$ac_cv_funclib_dbopen"
      else
        DBLIB=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB1 1
_ACEOF

    fi
  fi


  if test "$ac_cv_func_dbm_firstkey" != yes; then


{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #include <stdio.h>
    #define DB_DBM_HSEARCH 1
    #include <db.h>
    DBM *dbm;

int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB_NDBM 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey
    fi
  fi

fi # berkeley db

if test "$enable_ndbm_db" != "no"; then

  if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then



for ac_header in 				\
  	dbm.h					\
  	ndbm.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ndbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #include <stdio.h>
    #if defined(HAVE_NDBM_H)
    #include <ndbm.h>
    #elif defined(HAVE_DBM_H)
    #include <dbm.h>
    #endif
    DBM *dbm;

int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
        db_type=ndbm
        DBLIB="$LIB_NDBM"
      fi
    else

      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey


for ac_header in 				\
  	  gdbm/ndbm.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" gdbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

      #include <stdio.h>
      #include <gdbm/ndbm.h>
      DBM *dbm;

int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac



      if test "$ac_cv_func_dbm_firstkey" = "yes"; then
        if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
  	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
        else
  	LIB_NDBM=""
        fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
        have_ndbm=yes
        if test "$db_type" = "unknown"; then
  	db_type=ndbm
  	DBLIB="$LIB_NDBM"
        fi
      fi
    fi
  fi #enable_ndbm_db
fi # unknown

if test "$have_ndbm" = "yes"; then
  { echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6; }
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#endif
int main(int argc, char **argv)
{
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

    if test -f conftest.db; then
      { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }

cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi

 if test "$db_type" = db1; then
  HAVE_DB1_TRUE=
  HAVE_DB1_FALSE='#'
else
  HAVE_DB1_TRUE='#'
  HAVE_DB1_FALSE=
fi
 if test "$db_type" = db3; then
  HAVE_DB3_TRUE=
  HAVE_DB3_FALSE='#'
else
  HAVE_DB3_TRUE='#'
  HAVE_DB3_FALSE=
fi
 if test "$db_type" = ndbm; then
  HAVE_NDBM_TRUE=
  HAVE_NDBM_FALSE='#'
else
  HAVE_NDBM_TRUE='#'
  HAVE_NDBM_FALSE=
fi

## it's probably not correct to include LDFLAGS here, but we might
## need it, for now just add any possible -L
z=""
for i in $LDFLAGS; do
	case "$i" in
	-L*) z="$z $i";;
	esac
done
DBLIB="$z $DBLIB"





{ echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_inline=$ac_kw
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6; }


case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac

{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_c_const=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\_ACEOF
#define const
_ACEOF

fi

{ echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef size_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_size_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi

{ echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef pid_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_pid_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

cat >>confdefs.h <<\_ACEOF
#define uid_t int
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define gid_t int
_ACEOF

fi


{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_signal=int
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_signal=void
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6; }

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\_ACEOF
#define VOID_RETSIGTYPE 1
_ACEOF

fi




{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_time=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF

fi



for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

{ echo "$as_me:$LINENO: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6; }
if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  eval "ac_cv_header_$cv=no"
fi

rm -f conftest.err conftest.$ac_ext
fi
ac_res=`eval echo '${'ac_cv_header_$cv'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
done
if false;then


for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi




for ac_func in getlogin setlogin
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "$ac_cv_func_getlogin" = yes; then
{ echo "$as_me:$LINENO: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6; }
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi

fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6; }
if test "$ac_cv_func_getlogin_posix" = yes; then

cat >>confdefs.h <<\_ACEOF
#define POSIX_GETLOGIN 1
_ACEOF

fi
fi



for ac_header in stdlib.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_func in getpagesize
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

{ echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    return 1;
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    return 1;
  if (write (fd, data, pagesize) != pagesize)
    return 1;
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    return 1;
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    return 1;
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    return 1;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      return 1;

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    return 1;
  if (read (fd, data3, pagesize) != pagesize)
    return 1;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      return 1;
  close (fd);
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mmap_fixed_mapped=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_mmap_fixed_mapped = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
_ACEOF

fi
rm -f conftest.mmap


{ echo "$as_me:$LINENO: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6; }
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stddef.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_realloc_broken=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6; }
if test "$ac_cv_func_realloc_broken" = yes ; then

cat >>confdefs.h <<\_ACEOF
#define BROKEN_REALLOC 1
_ACEOF

fi







DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'















# Check whether --enable-developer was given.
if test "${enable_developer+set}" = set; then
  enableval=$enable_developer;
fi

if test "X$enable_developer" = Xyes; then
    dwflags="-Werror"
fi

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi








cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
int
main ()
{
ssize_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef ssize_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ssize_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
if test $ac_cv_type_ssize_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi





cv=`echo "long long" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef long long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_long_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi














































for ac_header in \
	arpa/inet.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	fnmatch.h				\
	grp.h					\
	ifaddrs.h				\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	paths.h					\
	poll.h					\
	pwd.h					\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	stdint.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/mman.h				\
	sys/param.h				\
	sys/resource.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
int
main ()
{
uintptr_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uintptr_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef uintptr_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_uintptr_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uintptr_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
if test $ac_cv_type_uintptr_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



for ac_header in vis.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <vis.h>
#ifndef VIS_SP
#error invis
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in netdb.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/socket.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in net/if.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in netinet6/in6_var.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET6_IN6_H
#include <netinet6/in6.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/sysctl.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/proc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




 if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi

 if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi

 if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi







{ echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_socket"

if false; then

for ac_func in socket
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi





{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

if false; then

for ac_func in gethostbyname
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi





{ echo "$as_me:$LINENO: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_syslog"

if false; then

for ac_func in syslog
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi




# Check whether --with-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval=$with_ipv6;
if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi

save_CFLAGS="${CFLAGS}"
{ echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6; }
if test "${v6type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  v6type=unknown
v6lib=none

for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi

fi
{ echo "$as_me:$LINENO: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6; }

{ echo "$as_me:$LINENO: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6; }
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_ipv6=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ipv6=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6; }
if test "$ac_cv_lib_ipv6" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_IPV6 1
_ACEOF

else
  CFLAGS="${save_CFLAGS}"
fi

## test for AIX missing in6addr_loopback
if test "$ac_cv_lib_ipv6" = yes; then
	{ echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6; }
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
int
main ()
{

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_in6addr_loopback=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_in6addr_loopback=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6; }
	if test "$ac_cv_var_in6addr_loopback" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_IN6ADDR_LOOPBACK 1
_ACEOF

	fi
fi






{ echo "$as_me:$LINENO: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6; }
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
gethostbyname2()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname2"

if false; then

for ac_func in gethostbyname2
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
fi





for ac_header in arpa/nameser.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in resolv.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done






{ echo "$as_me:$LINENO: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_search"

if false; then

for ac_func in res_search
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi






{ echo "$as_me:$LINENO: checking for res_nsearch" >&5
echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6; }
if test "${ac_cv_funclib_res_nsearch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_nsearch(0,0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_nsearch"

if false; then

for ac_func in res_nsearch
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# res_nsearch
eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_nsearch=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_nsearch=yes"
	eval "LIB_res_nsearch="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_res_nsearch=no"
	eval "LIB_res_nsearch="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_res_nsearch=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_res_nsearch"; then
	LIBS="$LIB_res_nsearch $LIBS"
fi






{ echo "$as_me:$LINENO: checking for res_ndestroy" >&5
echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
if test "${ac_cv_funclib_res_ndestroy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_ndestroy(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_ndestroy"

if false; then

for ac_func in res_ndestroy
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# res_ndestroy
eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_ndestroy=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_ndestroy=yes"
	eval "LIB_res_ndestroy="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_res_ndestroy=no"
	eval "LIB_res_ndestroy="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_res_ndestroy=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_res_ndestroy"; then
	LIBS="$LIB_res_ndestroy $LIBS"
fi






{ echo "$as_me:$LINENO: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6; }
if test "${ac_cv_funclib_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dn_expand"

if false; then

for ac_func in dn_expand
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi



{ echo "$as_me:$LINENO: checking for _res" >&5
echo $ECHO_N "checking for _res... $ECHO_C" >&6; }
if test "${ac_cv_var__res+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
	void * foo(void) { return &_res; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var__res=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var__res=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var__res" != yes ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
extern int _res;
int foo(void) { return _res; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var__res=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var__res=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var__res`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE__RES 1
_ACEOF

	{ echo "$as_me:$LINENO: checking whether _res is declared" >&5
echo $ECHO_N "checking whether _res is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl__res+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
#ifndef _res
  (void) _res;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl__res=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl__res=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__res" >&5
echo "${ECHO_T}$ac_cv_have_decl__res" >&6; }
if test $ac_cv_have_decl__res = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__RES 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__RES 0
_ACEOF


fi


fi





{ echo "$as_me:$LINENO: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
if test "${ac_cv_func_snprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_snprintf_working=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6; }

if test "$ac_cv_func_snprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_snprintf_working" = yes; then

if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
{ echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
int
main ()
{
snprintf(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_snprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_snprintf_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6; }
if test "$ac_cv_func_snprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SNPRINTF_PROTO 1
_ACEOF

fi
fi

fi


{ echo "$as_me:$LINENO: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>
#include <stdarg.h>

int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}

int bar(int num, int len, ...)
{
	int r;
	va_list arg;
	va_start(arg, len);
	r = vsnprintf(NULL, 0, "%s", arg);
	va_end(arg);
	return r != len;
}

int main(int argc, char **argv)
{
	return foo(0, "12") || bar(0, 2, "12");
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_vsnprintf_working=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6; }

if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VSNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
{ echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
int
main ()
{
vsnprintf(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_vsnprintf_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6; }
if test "$ac_cv_func_vsnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VSNPRINTF_PROTO 1
_ACEOF

fi
fi

fi



{ echo "$as_me:$LINENO: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6; }
if test "${ac_cv_func_glob_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#include <glob.h>
int
main ()
{

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_glob_working=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6; }

if test "$ac_cv_func_glob_working" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_GLOB 1
_ACEOF

fi
if test "$ac_cv_func_glob_working" = yes; then

if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
{ echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_glob_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#include <glob.h>
struct foo { int foo; } xx;
extern int glob (struct foo*);
int
main ()
{
glob(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_glob_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_glob_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6; }
if test "$ac_cv_func_glob_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GLOB_PROTO 1
_ACEOF

fi
fi

fi

if test "$ac_cv_func_glob_working" != yes; then
	case " $LIBOBJS " in
  *" glob.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS glob.$ac_objext"
 ;;
esac

fi
 if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi






























for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	initstate				\
	issetugid				\
	on_exit					\
	poll					\
	random					\
	setprogname				\
	setstate				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


if test "$ac_cv_func_cgetent" = no; then
	case " $LIBOBJS " in
  *" getcap.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
 ;;
esac

fi
 if test "$ac_cv_func_cgetent" = yes; then
  have_cgetent_TRUE=
  have_cgetent_FALSE='#'
else
  have_cgetent_TRUE='#'
  have_cgetent_FALSE=
fi









{ echo "$as_me:$LINENO: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6; }
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getsockopt"

if false; then

for ac_func in getsockopt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac





{ echo "$as_me:$LINENO: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setsockopt"

if false; then

for ac_func in setsockopt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac







{ echo "$as_me:$LINENO: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
if test "${ac_cv_funclib_hstrerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
hstrerror(17)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then

for ac_func in hstrerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
fi

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
	case " $LIBOBJS " in
  *" hstrerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
 ;;
esac

fi


if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
{ echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
int
main ()
{
hstrerror(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_hstrerror_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_hstrerror_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6; }
if test "$ac_cv_func_hstrerror_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_HSTRERROR_PROTO 1
_ACEOF

fi
fi



if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
{ echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
int
main ()
{
asprintf(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_asprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_asprintf_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6; }
if test "$ac_cv_func_asprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_ASPRINTF_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
{ echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
int
main ()
{
vasprintf(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_vasprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_vasprintf_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6; }
if test "$ac_cv_func_vasprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VASPRINTF_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
{ echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
int
main ()
{
asnprintf(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_asnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_asnprintf_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6; }
if test "$ac_cv_func_asnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_ASNPRINTF_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
{ echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#include <string.h>
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
int
main ()
{
vasnprintf(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_vasnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_vasnprintf_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6; }
if test "$ac_cv_func_vasnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VASNPRINTF_PROTO 1
_ACEOF

fi
fi





{ echo "$as_me:$LINENO: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6; }
if test "${ac_cv_funclib_bswap16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
int
main ()
{
bswap16(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then

for ac_func in bswap16
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac






{ echo "$as_me:$LINENO: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6; }
if test "${ac_cv_funclib_bswap32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
int
main ()
{
bswap32(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_bswap32"

if false; then

for ac_func in bswap32
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac






{ echo "$as_me:$LINENO: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6; }
if test "${ac_cv_funclib_pidfile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
int
main ()
{
pidfile(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_pidfile"

if false; then

for ac_func in pidfile
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac







{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
getaddrinfo(0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getaddrinfo"

if false; then

for ac_func in getaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
fi

if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
	case " $LIBOBJS " in
  *" getaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
 ;;
esac

fi






{ echo "$as_me:$LINENO: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
if test "${ac_cv_funclib_getnameinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
getnameinfo(0,0,0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getnameinfo"

if false; then

for ac_func in getnameinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getnameinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_getnameinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
fi

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
	case " $LIBOBJS " in
  *" getnameinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
 ;;
esac

fi






{ echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6; }
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
freeaddrinfo(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_freeaddrinfo"

if false; then

for ac_func in freeaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
fi

if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
	case " $LIBOBJS " in
  *" freeaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
 ;;
esac

fi






{ echo "$as_me:$LINENO: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
if test "${ac_cv_funclib_gai_strerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
gai_strerror(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gai_strerror"

if false; then

for ac_func in gai_strerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
fi

if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
	case " $LIBOBJS " in
  *" gai_strerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
 ;;
esac

fi


{ echo "$as_me:$LINENO: checking for chown" >&5
echo $ECHO_N "checking for chown... $ECHO_C" >&6; }
if test "${ac_cv_func_chown+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define chown to an innocuous variant, in case <limits.h> declares chown.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define chown innocuous_chown

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char chown (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef chown

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char chown ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_chown || defined __stub___chown
choke me
#endif

int
main ()
{
return chown ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_chown=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_chown=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
echo "${ECHO_T}$ac_cv_func_chown" >&6; }
if test $ac_cv_func_chown = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_CHOWN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" chown.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS chown.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for copyhostent" >&5
echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6; }
if test "${ac_cv_func_copyhostent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define copyhostent innocuous_copyhostent

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char copyhostent (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef copyhostent

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char copyhostent ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_copyhostent || defined __stub___copyhostent
choke me
#endif

int
main ()
{
return copyhostent ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_copyhostent=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_copyhostent=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
echo "${ECHO_T}$ac_cv_func_copyhostent" >&6; }
if test $ac_cv_func_copyhostent = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_COPYHOSTENT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" copyhostent.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for closefrom" >&5
echo $ECHO_N "checking for closefrom... $ECHO_C" >&6; }
if test "${ac_cv_func_closefrom+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define closefrom to an innocuous variant, in case <limits.h> declares closefrom.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define closefrom innocuous_closefrom

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char closefrom (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef closefrom

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char closefrom ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_closefrom || defined __stub___closefrom
choke me
#endif

int
main ()
{
return closefrom ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_closefrom=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_closefrom=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_closefrom" >&5
echo "${ECHO_T}$ac_cv_func_closefrom" >&6; }
if test $ac_cv_func_closefrom = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_CLOSEFROM 1
_ACEOF

else
  case " $LIBOBJS " in
  *" closefrom.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for daemon" >&5
echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
if test "${ac_cv_func_daemon+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define daemon innocuous_daemon

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char daemon (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef daemon

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char daemon ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_daemon || defined __stub___daemon
choke me
#endif

int
main ()
{
return daemon ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_daemon=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_daemon=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
if test $ac_cv_func_daemon = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

else
  case " $LIBOBJS " in
  *" daemon.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for ecalloc" >&5
echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6; }
if test "${ac_cv_func_ecalloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ecalloc innocuous_ecalloc

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ecalloc (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ecalloc

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ecalloc ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_ecalloc || defined __stub___ecalloc
choke me
#endif

int
main ()
{
return ecalloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_ecalloc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_ecalloc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
echo "${ECHO_T}$ac_cv_func_ecalloc" >&6; }
if test $ac_cv_func_ecalloc = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ECALLOC 1
_ACEOF

else
  case " $LIBOBJS " in
  *" ecalloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for emalloc" >&5
echo $ECHO_N "checking for emalloc... $ECHO_C" >&6; }
if test "${ac_cv_func_emalloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define emalloc innocuous_emalloc

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char emalloc (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef emalloc

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char emalloc ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_emalloc || defined __stub___emalloc
choke me
#endif

int
main ()
{
return emalloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_emalloc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_emalloc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
echo "${ECHO_T}$ac_cv_func_emalloc" >&6; }
if test $ac_cv_func_emalloc = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_EMALLOC 1
_ACEOF

else
  case " $LIBOBJS " in
  *" emalloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for erealloc" >&5
echo $ECHO_N "checking for erealloc... $ECHO_C" >&6; }
if test "${ac_cv_func_erealloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define erealloc innocuous_erealloc

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char erealloc (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef erealloc

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char erealloc ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_erealloc || defined __stub___erealloc
choke me
#endif

int
main ()
{
return erealloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_erealloc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_erealloc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
echo "${ECHO_T}$ac_cv_func_erealloc" >&6; }
if test $ac_cv_func_erealloc = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_EREALLOC 1
_ACEOF

else
  case " $LIBOBJS " in
  *" erealloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for estrdup" >&5
echo $ECHO_N "checking for estrdup... $ECHO_C" >&6; }
if test "${ac_cv_func_estrdup+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define estrdup innocuous_estrdup

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char estrdup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef estrdup

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char estrdup ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_estrdup || defined __stub___estrdup
choke me
#endif

int
main ()
{
return estrdup ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_estrdup=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_estrdup=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
echo "${ECHO_T}$ac_cv_func_estrdup" >&6; }
if test $ac_cv_func_estrdup = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ESTRDUP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" estrdup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for err" >&5
echo $ECHO_N "checking for err... $ECHO_C" >&6; }
if test "${ac_cv_func_err+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define err to an innocuous variant, in case <limits.h> declares err.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define err innocuous_err

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char err (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef err

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char err ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_err || defined __stub___err
choke me
#endif

int
main ()
{
return err ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_err=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_err=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
echo "${ECHO_T}$ac_cv_func_err" >&6; }
if test $ac_cv_func_err = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ERR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" err.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS err.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for errx" >&5
echo $ECHO_N "checking for errx... $ECHO_C" >&6; }
if test "${ac_cv_func_errx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define errx to an innocuous variant, in case <limits.h> declares errx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define errx innocuous_errx

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char errx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef errx

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char errx ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_errx || defined __stub___errx
choke me
#endif

int
main ()
{
return errx ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_errx=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_errx=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
echo "${ECHO_T}$ac_cv_func_errx" >&6; }
if test $ac_cv_func_errx = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ERRX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" errx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS errx.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for fchown" >&5
echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
if test "${ac_cv_func_fchown+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fchown innocuous_fchown

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fchown (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fchown

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fchown ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_fchown || defined __stub___fchown
choke me
#endif

int
main ()
{
return fchown ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_fchown=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_fchown=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
if test $ac_cv_func_fchown = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_FCHOWN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" fchown.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for flock" >&5
echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
if test "${ac_cv_func_flock+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define flock to an innocuous variant, in case <limits.h> declares flock.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define flock innocuous_flock

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char flock (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef flock

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char flock ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_flock || defined __stub___flock
choke me
#endif

int
main ()
{
return flock ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_flock=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_flock=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
echo "${ECHO_T}$ac_cv_func_flock" >&6; }
if test $ac_cv_func_flock = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_FLOCK 1
_ACEOF

else
  case " $LIBOBJS " in
  *" flock.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS flock.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for fnmatch" >&5
echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6; }
if test "${ac_cv_func_fnmatch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fnmatch innocuous_fnmatch

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fnmatch (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fnmatch

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fnmatch ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_fnmatch || defined __stub___fnmatch
choke me
#endif

int
main ()
{
return fnmatch ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_fnmatch=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_fnmatch=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
echo "${ECHO_T}$ac_cv_func_fnmatch" >&6; }
if test $ac_cv_func_fnmatch = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_FNMATCH 1
_ACEOF

else
  case " $LIBOBJS " in
  *" fnmatch.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for freehostent" >&5
echo $ECHO_N "checking for freehostent... $ECHO_C" >&6; }
if test "${ac_cv_func_freehostent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define freehostent innocuous_freehostent

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char freehostent (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef freehostent

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char freehostent ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_freehostent || defined __stub___freehostent
choke me
#endif

int
main ()
{
return freehostent ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_freehostent=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_freehostent=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
echo "${ECHO_T}$ac_cv_func_freehostent" >&6; }
if test $ac_cv_func_freehostent = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_FREEHOSTENT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" freehostent.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getcwd" >&5
echo $ECHO_N "checking for getcwd... $ECHO_C" >&6; }
if test "${ac_cv_func_getcwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getcwd innocuous_getcwd

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getcwd (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getcwd

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getcwd ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getcwd || defined __stub___getcwd
choke me
#endif

int
main ()
{
return getcwd ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getcwd=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getcwd=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
echo "${ECHO_T}$ac_cv_func_getcwd" >&6; }
if test $ac_cv_func_getcwd = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETCWD 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getcwd.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getdtablesize" >&5
echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; }
if test "${ac_cv_func_getdtablesize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getdtablesize innocuous_getdtablesize

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getdtablesize (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getdtablesize

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getdtablesize ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getdtablesize || defined __stub___getdtablesize
choke me
#endif

int
main ()
{
return getdtablesize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getdtablesize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getdtablesize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; }
if test $ac_cv_func_getdtablesize = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETDTABLESIZE 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getdtablesize.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getegid" >&5
echo $ECHO_N "checking for getegid... $ECHO_C" >&6; }
if test "${ac_cv_func_getegid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getegid innocuous_getegid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getegid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getegid

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getegid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getegid || defined __stub___getegid
choke me
#endif

int
main ()
{
return getegid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getegid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getegid=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
echo "${ECHO_T}$ac_cv_func_getegid" >&6; }
if test $ac_cv_func_getegid = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETEGID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getegid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for geteuid" >&5
echo $ECHO_N "checking for geteuid... $ECHO_C" >&6; }
if test "${ac_cv_func_geteuid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define geteuid innocuous_geteuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char geteuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef geteuid

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char geteuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_geteuid || defined __stub___geteuid
choke me
#endif

int
main ()
{
return geteuid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_geteuid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_geteuid=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
echo "${ECHO_T}$ac_cv_func_geteuid" >&6; }
if test $ac_cv_func_geteuid = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETEUID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" geteuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getgid" >&5
echo $ECHO_N "checking for getgid... $ECHO_C" >&6; }
if test "${ac_cv_func_getgid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getgid innocuous_getgid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getgid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getgid

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getgid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getgid || defined __stub___getgid
choke me
#endif

int
main ()
{
return getgid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getgid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getgid=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
echo "${ECHO_T}$ac_cv_func_getgid" >&6; }
if test $ac_cv_func_getgid = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETGID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getgid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for gethostname" >&5
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; }
if test "${ac_cv_func_gethostname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethostname innocuous_gethostname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethostname

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_gethostname || defined __stub___gethostname
choke me
#endif

int
main ()
{
return gethostname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_gethostname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_gethostname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
echo "${ECHO_T}$ac_cv_func_gethostname" >&6; }
if test $ac_cv_func_gethostname = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETHOSTNAME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" gethostname.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getifaddrs" >&5
echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
if test "${ac_cv_func_getifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getifaddrs innocuous_getifaddrs

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getifaddrs (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getifaddrs

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getifaddrs ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getifaddrs || defined __stub___getifaddrs
choke me
#endif

int
main ()
{
return getifaddrs ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getifaddrs=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getifaddrs=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
if test $ac_cv_func_getifaddrs = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getifaddrs.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6; }
if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getipnodebyaddr innocuous_getipnodebyaddr

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getipnodebyaddr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getipnodebyaddr

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getipnodebyaddr ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getipnodebyaddr || defined __stub___getipnodebyaddr
choke me
#endif

int
main ()
{
return getipnodebyaddr ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getipnodebyaddr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getipnodebyaddr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6; }
if test $ac_cv_func_getipnodebyaddr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYADDR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getipnodebyaddr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getipnodebyname" >&5
echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; }
if test "${ac_cv_func_getipnodebyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getipnodebyname innocuous_getipnodebyname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getipnodebyname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getipnodebyname

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getipnodebyname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getipnodebyname || defined __stub___getipnodebyname
choke me
#endif

int
main ()
{
return getipnodebyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getipnodebyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getipnodebyname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; }
if test $ac_cv_func_getipnodebyname = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYNAME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getipnodebyname.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getopt" >&5
echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
if test "${ac_cv_func_getopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getopt innocuous_getopt

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getopt (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getopt

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getopt ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getopt || defined __stub___getopt
choke me
#endif

int
main ()
{
return getopt ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getopt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getopt=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
if test $ac_cv_func_getopt = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETOPT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getopt.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
if test "${ac_cv_func_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gettimeofday innocuous_gettimeofday

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettimeofday (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gettimeofday

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettimeofday ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_gettimeofday || defined __stub___gettimeofday
choke me
#endif

int
main ()
{
return gettimeofday ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_gettimeofday=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
if test $ac_cv_func_gettimeofday = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETTIMEOFDAY 1
_ACEOF

else
  case " $LIBOBJS " in
  *" gettimeofday.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getuid" >&5
echo $ECHO_N "checking for getuid... $ECHO_C" >&6; }
if test "${ac_cv_func_getuid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getuid innocuous_getuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getuid

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getuid || defined __stub___getuid
choke me
#endif

int
main ()
{
return getuid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getuid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getuid=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
echo "${ECHO_T}$ac_cv_func_getuid" >&6; }
if test $ac_cv_func_getuid = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETUID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for getusershell" >&5
echo $ECHO_N "checking for getusershell... $ECHO_C" >&6; }
if test "${ac_cv_func_getusershell+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getusershell innocuous_getusershell

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getusershell (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getusershell

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getusershell ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getusershell || defined __stub___getusershell
choke me
#endif

int
main ()
{
return getusershell ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getusershell=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getusershell=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
echo "${ECHO_T}$ac_cv_func_getusershell" >&6; }
if test $ac_cv_func_getusershell = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_GETUSERSHELL 1
_ACEOF

else
  case " $LIBOBJS " in
  *" getusershell.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6; }
if test "${ac_cv_func_initgroups+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define initgroups innocuous_initgroups

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char initgroups (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef initgroups

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char initgroups ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_initgroups || defined __stub___initgroups
choke me
#endif

int
main ()
{
return initgroups ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_initgroups=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_initgroups=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
echo "${ECHO_T}$ac_cv_func_initgroups" >&6; }
if test $ac_cv_func_initgroups = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INITGROUPS 1
_ACEOF

else
  case " $LIBOBJS " in
  *" initgroups.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for innetgr" >&5
echo $ECHO_N "checking for innetgr... $ECHO_C" >&6; }
if test "${ac_cv_func_innetgr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define innetgr innocuous_innetgr

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char innetgr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef innetgr

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char innetgr ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_innetgr || defined __stub___innetgr
choke me
#endif

int
main ()
{
return innetgr ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_innetgr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_innetgr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
echo "${ECHO_T}$ac_cv_func_innetgr" >&6; }
if test $ac_cv_func_innetgr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INNETGR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" innetgr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for iruserok" >&5
echo $ECHO_N "checking for iruserok... $ECHO_C" >&6; }
if test "${ac_cv_func_iruserok+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define iruserok innocuous_iruserok

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char iruserok (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef iruserok

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char iruserok ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_iruserok || defined __stub___iruserok
choke me
#endif

int
main ()
{
return iruserok ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_iruserok=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_iruserok=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
echo "${ECHO_T}$ac_cv_func_iruserok" >&6; }
if test $ac_cv_func_iruserok = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_IRUSEROK 1
_ACEOF

else
  case " $LIBOBJS " in
  *" iruserok.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for localtime_r" >&5
echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
if test "${ac_cv_func_localtime_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define localtime_r innocuous_localtime_r

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char localtime_r (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef localtime_r

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char localtime_r ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_localtime_r || defined __stub___localtime_r
choke me
#endif

int
main ()
{
return localtime_r ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_localtime_r=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_localtime_r=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
if test $ac_cv_func_localtime_r = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALTIME_R 1
_ACEOF

else
  case " $LIBOBJS " in
  *" localtime_r.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for lstat" >&5
echo $ECHO_N "checking for lstat... $ECHO_C" >&6; }
if test "${ac_cv_func_lstat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define lstat innocuous_lstat

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char lstat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef lstat

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lstat ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_lstat || defined __stub___lstat
choke me
#endif

int
main ()
{
return lstat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_lstat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_lstat=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
echo "${ECHO_T}$ac_cv_func_lstat" >&6; }
if test $ac_cv_func_lstat = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LSTAT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" lstat.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
if test "${ac_cv_func_memmove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define memmove innocuous_memmove

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char memmove (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef memmove

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char memmove ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_memmove || defined __stub___memmove
choke me
#endif

int
main ()
{
return memmove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_memmove=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_memmove=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
if test $ac_cv_func_memmove = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_MEMMOVE 1
_ACEOF

else
  case " $LIBOBJS " in
  *" memmove.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; }
if test "${ac_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define mkstemp innocuous_mkstemp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mkstemp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef mkstemp

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mkstemp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_mkstemp || defined __stub___mkstemp
choke me
#endif

int
main ()
{
return mkstemp ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_mkstemp=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_mkstemp=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6; }
if test $ac_cv_func_mkstemp = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" mkstemp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for putenv" >&5
echo $ECHO_N "checking for putenv... $ECHO_C" >&6; }
if test "${ac_cv_func_putenv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define putenv innocuous_putenv

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char putenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef putenv

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char putenv ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_putenv || defined __stub___putenv
choke me
#endif

int
main ()
{
return putenv ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_putenv=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_putenv=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
echo "${ECHO_T}$ac_cv_func_putenv" >&6; }
if test $ac_cv_func_putenv = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PUTENV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" putenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for rcmd" >&5
echo $ECHO_N "checking for rcmd... $ECHO_C" >&6; }
if test "${ac_cv_func_rcmd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define rcmd innocuous_rcmd

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char rcmd (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef rcmd

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char rcmd ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_rcmd || defined __stub___rcmd
choke me
#endif

int
main ()
{
return rcmd ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_rcmd=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_rcmd=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
echo "${ECHO_T}$ac_cv_func_rcmd" >&6; }
if test $ac_cv_func_rcmd = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_RCMD 1
_ACEOF

else
  case " $LIBOBJS " in
  *" rcmd.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for readv" >&5
echo $ECHO_N "checking for readv... $ECHO_C" >&6; }
if test "${ac_cv_func_readv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define readv to an innocuous variant, in case <limits.h> declares readv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define readv innocuous_readv

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char readv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef readv

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readv ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_readv || defined __stub___readv
choke me
#endif

int
main ()
{
return readv ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_readv=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_readv=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
echo "${ECHO_T}$ac_cv_func_readv" >&6; }
if test $ac_cv_func_readv = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_READV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" readv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS readv.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for recvmsg" >&5
echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6; }
if test "${ac_cv_func_recvmsg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define recvmsg innocuous_recvmsg

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char recvmsg (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef recvmsg

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char recvmsg ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_recvmsg || defined __stub___recvmsg
choke me
#endif

int
main ()
{
return recvmsg ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_recvmsg=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_recvmsg=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
echo "${ECHO_T}$ac_cv_func_recvmsg" >&6; }
if test $ac_cv_func_recvmsg = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

else
  case " $LIBOBJS " in
  *" recvmsg.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for sendmsg" >&5
echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6; }
if test "${ac_cv_func_sendmsg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sendmsg innocuous_sendmsg

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sendmsg (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sendmsg

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sendmsg ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_sendmsg || defined __stub___sendmsg
choke me
#endif

int
main ()
{
return sendmsg ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_sendmsg=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_sendmsg=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
echo "${ECHO_T}$ac_cv_func_sendmsg" >&6; }
if test $ac_cv_func_sendmsg = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SENDMSG 1
_ACEOF

else
  case " $LIBOBJS " in
  *" sendmsg.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for setegid" >&5
echo $ECHO_N "checking for setegid... $ECHO_C" >&6; }
if test "${ac_cv_func_setegid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setegid innocuous_setegid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setegid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setegid

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setegid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_setegid || defined __stub___setegid
choke me
#endif

int
main ()
{
return setegid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_setegid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_setegid=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
echo "${ECHO_T}$ac_cv_func_setegid" >&6; }
if test $ac_cv_func_setegid = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SETEGID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" setegid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for setenv" >&5
echo $ECHO_N "checking for setenv... $ECHO_C" >&6; }
if test "${ac_cv_func_setenv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setenv innocuous_setenv

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setenv

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setenv ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_setenv || defined __stub___setenv
choke me
#endif

int
main ()
{
return setenv ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_setenv=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_setenv=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
echo "${ECHO_T}$ac_cv_func_setenv" >&6; }
if test $ac_cv_func_setenv = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SETENV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" setenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for seteuid" >&5
echo $ECHO_N "checking for seteuid... $ECHO_C" >&6; }
if test "${ac_cv_func_seteuid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define seteuid innocuous_seteuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char seteuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef seteuid

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seteuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_seteuid || defined __stub___seteuid
choke me
#endif

int
main ()
{
return seteuid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_seteuid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_seteuid=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
echo "${ECHO_T}$ac_cv_func_seteuid" >&6; }
if test $ac_cv_func_seteuid = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SETEUID 1
_ACEOF

else
  case " $LIBOBJS " in
  *" seteuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
if test "${ac_cv_func_strcasecmp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strcasecmp innocuous_strcasecmp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strcasecmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strcasecmp

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strcasecmp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strcasecmp || defined __stub___strcasecmp
choke me
#endif

int
main ()
{
return strcasecmp ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strcasecmp=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strcasecmp=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
if test $ac_cv_func_strcasecmp = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRCASECMP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strcasecmp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strdup" >&5
echo $ECHO_N "checking for strdup... $ECHO_C" >&6; }
if test "${ac_cv_func_strdup+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strdup innocuous_strdup

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strdup

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strdup ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strdup || defined __stub___strdup
choke me
#endif

int
main ()
{
return strdup ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strdup=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strdup=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
echo "${ECHO_T}$ac_cv_func_strdup" >&6; }
if test $ac_cv_func_strdup = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRDUP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strdup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strerror" >&5
echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
if test "${ac_cv_func_strerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strerror innocuous_strerror

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strerror (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strerror

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strerror || defined __stub___strerror
choke me
#endif

int
main ()
{
return strerror ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strerror=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strerror=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
if test $ac_cv_func_strerror = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strftime" >&5
echo $ECHO_N "checking for strftime... $ECHO_C" >&6; }
if test "${ac_cv_func_strftime+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strftime innocuous_strftime

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strftime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strftime

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strftime ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strftime || defined __stub___strftime
choke me
#endif

int
main ()
{
return strftime ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strftime=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strftime=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
echo "${ECHO_T}$ac_cv_func_strftime" >&6; }
if test $ac_cv_func_strftime = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRFTIME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strftime.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strlcat" >&5
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
if test "${ac_cv_func_strlcat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlcat innocuous_strlcat

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlcat

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strlcat ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strlcat || defined __stub___strlcat
choke me
#endif

int
main ()
{
return strlcat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strlcat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strlcat=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
if test $ac_cv_func_strlcat = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCAT 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strlcat.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strlcpy" >&5
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
if test "${ac_cv_func_strlcpy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlcpy innocuous_strlcpy

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcpy (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlcpy

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strlcpy ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strlcpy || defined __stub___strlcpy
choke me
#endif

int
main ()
{
return strlcpy ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strlcpy=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strlcpy=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
if test $ac_cv_func_strlcpy = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCPY 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strlcpy.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strlwr" >&5
echo $ECHO_N "checking for strlwr... $ECHO_C" >&6; }
if test "${ac_cv_func_strlwr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlwr innocuous_strlwr

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlwr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlwr

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strlwr ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strlwr || defined __stub___strlwr
choke me
#endif

int
main ()
{
return strlwr ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strlwr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strlwr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
echo "${ECHO_T}$ac_cv_func_strlwr" >&6; }
if test $ac_cv_func_strlwr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRLWR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strlwr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strncasecmp" >&5
echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; }
if test "${ac_cv_func_strncasecmp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strncasecmp innocuous_strncasecmp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strncasecmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strncasecmp

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strncasecmp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strncasecmp || defined __stub___strncasecmp
choke me
#endif

int
main ()
{
return strncasecmp ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strncasecmp=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strncasecmp=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; }
if test $ac_cv_func_strncasecmp = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRNCASECMP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strncasecmp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strndup" >&5
echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
if test "${ac_cv_func_strndup+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strndup innocuous_strndup

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strndup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strndup

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strndup ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strndup || defined __stub___strndup
choke me
#endif

int
main ()
{
return strndup ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strndup=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strndup=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
if test $ac_cv_func_strndup = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRNDUP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strndup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strnlen" >&5
echo $ECHO_N "checking for strnlen... $ECHO_C" >&6; }
if test "${ac_cv_func_strnlen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strnlen innocuous_strnlen

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strnlen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strnlen

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strnlen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strnlen || defined __stub___strnlen
choke me
#endif

int
main ()
{
return strnlen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strnlen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strnlen=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
echo "${ECHO_T}$ac_cv_func_strnlen" >&6; }
if test $ac_cv_func_strnlen = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRNLEN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strnlen.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strptime" >&5
echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
if test "${ac_cv_func_strptime+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strptime innocuous_strptime

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strptime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strptime

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strptime ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strptime || defined __stub___strptime
choke me
#endif

int
main ()
{
return strptime ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strptime=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strptime=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
if test $ac_cv_func_strptime = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRPTIME 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strptime.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strsep" >&5
echo $ECHO_N "checking for strsep... $ECHO_C" >&6; }
if test "${ac_cv_func_strsep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strsep innocuous_strsep

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strsep

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strsep ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strsep || defined __stub___strsep
choke me
#endif

int
main ()
{
return strsep ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strsep=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strsep=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
echo "${ECHO_T}$ac_cv_func_strsep" >&6; }
if test $ac_cv_func_strsep = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strsep.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strsep_copy" >&5
echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6; }
if test "${ac_cv_func_strsep_copy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strsep_copy innocuous_strsep_copy

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep_copy (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strsep_copy

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strsep_copy ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strsep_copy || defined __stub___strsep_copy
choke me
#endif

int
main ()
{
return strsep_copy ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strsep_copy=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strsep_copy=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6; }
if test $ac_cv_func_strsep_copy = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP_COPY 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strsep_copy.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strtok_r" >&5
echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6; }
if test "${ac_cv_func_strtok_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strtok_r innocuous_strtok_r

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strtok_r (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strtok_r

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strtok_r ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strtok_r || defined __stub___strtok_r
choke me
#endif

int
main ()
{
return strtok_r ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strtok_r=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strtok_r=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r" >&6; }
if test $ac_cv_func_strtok_r = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOK_R 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strtok_r.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for strupr" >&5
echo $ECHO_N "checking for strupr... $ECHO_C" >&6; }
if test "${ac_cv_func_strupr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strupr innocuous_strupr

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strupr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strupr

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strupr ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_strupr || defined __stub___strupr
choke me
#endif

int
main ()
{
return strupr ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_strupr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_strupr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
echo "${ECHO_T}$ac_cv_func_strupr" >&6; }
if test $ac_cv_func_strupr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUPR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" strupr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for swab" >&5
echo $ECHO_N "checking for swab... $ECHO_C" >&6; }
if test "${ac_cv_func_swab+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define swab to an innocuous variant, in case <limits.h> declares swab.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define swab innocuous_swab

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char swab (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef swab

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char swab ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_swab || defined __stub___swab
choke me
#endif

int
main ()
{
return swab ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_swab=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_swab=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
echo "${ECHO_T}$ac_cv_func_swab" >&6; }
if test $ac_cv_func_swab = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SWAB 1
_ACEOF

else
  case " $LIBOBJS " in
  *" swab.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS swab.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for timegm" >&5
echo $ECHO_N "checking for timegm... $ECHO_C" >&6; }
if test "${ac_cv_func_timegm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define timegm innocuous_timegm

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char timegm (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef timegm

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char timegm ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_timegm || defined __stub___timegm
choke me
#endif

int
main ()
{
return timegm ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_timegm=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_timegm=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
echo "${ECHO_T}$ac_cv_func_timegm" >&6; }
if test $ac_cv_func_timegm = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEGM 1
_ACEOF

else
  case " $LIBOBJS " in
  *" timegm.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for unsetenv" >&5
echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6; }
if test "${ac_cv_func_unsetenv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define unsetenv innocuous_unsetenv

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char unsetenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef unsetenv

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char unsetenv ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_unsetenv || defined __stub___unsetenv
choke me
#endif

int
main ()
{
return unsetenv ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_unsetenv=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_unsetenv=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv" >&6; }
if test $ac_cv_func_unsetenv = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UNSETENV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" unsetenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for verr" >&5
echo $ECHO_N "checking for verr... $ECHO_C" >&6; }
if test "${ac_cv_func_verr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define verr to an innocuous variant, in case <limits.h> declares verr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define verr innocuous_verr

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef verr

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char verr ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_verr || defined __stub___verr
choke me
#endif

int
main ()
{
return verr ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_verr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_verr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
echo "${ECHO_T}$ac_cv_func_verr" >&6; }
if test $ac_cv_func_verr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VERR 1
_ACEOF

else
  case " $LIBOBJS " in
  *" verr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS verr.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for verrx" >&5
echo $ECHO_N "checking for verrx... $ECHO_C" >&6; }
if test "${ac_cv_func_verrx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define verrx innocuous_verrx

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verrx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef verrx

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char verrx ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_verrx || defined __stub___verrx
choke me
#endif

int
main ()
{
return verrx ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_verrx=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_verrx=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
echo "${ECHO_T}$ac_cv_func_verrx" >&6; }
if test $ac_cv_func_verrx = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VERRX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" verrx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for vsyslog" >&5
echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6; }
if test "${ac_cv_func_vsyslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define vsyslog innocuous_vsyslog

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vsyslog (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef vsyslog

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vsyslog ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_vsyslog || defined __stub___vsyslog
choke me
#endif

int
main ()
{
return vsyslog ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_vsyslog=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_vsyslog=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
echo "${ECHO_T}$ac_cv_func_vsyslog" >&6; }
if test $ac_cv_func_vsyslog = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VSYSLOG 1
_ACEOF

else
  case " $LIBOBJS " in
  *" vsyslog.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for vwarn" >&5
echo $ECHO_N "checking for vwarn... $ECHO_C" >&6; }
if test "${ac_cv_func_vwarn+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define vwarn innocuous_vwarn

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarn (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef vwarn

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vwarn ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_vwarn || defined __stub___vwarn
choke me
#endif

int
main ()
{
return vwarn ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_vwarn=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_vwarn=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
echo "${ECHO_T}$ac_cv_func_vwarn" >&6; }
if test $ac_cv_func_vwarn = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VWARN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" vwarn.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for vwarnx" >&5
echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6; }
if test "${ac_cv_func_vwarnx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define vwarnx innocuous_vwarnx

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarnx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef vwarnx

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vwarnx ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_vwarnx || defined __stub___vwarnx
choke me
#endif

int
main ()
{
return vwarnx ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_vwarnx=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_vwarnx=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
echo "${ECHO_T}$ac_cv_func_vwarnx" >&6; }
if test $ac_cv_func_vwarnx = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VWARNX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" vwarnx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for warn" >&5
echo $ECHO_N "checking for warn... $ECHO_C" >&6; }
if test "${ac_cv_func_warn+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define warn to an innocuous variant, in case <limits.h> declares warn.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define warn innocuous_warn

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warn (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef warn

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char warn ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_warn || defined __stub___warn
choke me
#endif

int
main ()
{
return warn ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_warn=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_warn=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
echo "${ECHO_T}$ac_cv_func_warn" >&6; }
if test $ac_cv_func_warn = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_WARN 1
_ACEOF

else
  case " $LIBOBJS " in
  *" warn.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS warn.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for warnx" >&5
echo $ECHO_N "checking for warnx... $ECHO_C" >&6; }
if test "${ac_cv_func_warnx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define warnx innocuous_warnx

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warnx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef warnx

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char warnx ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_warnx || defined __stub___warnx
choke me
#endif

int
main ()
{
return warnx ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_warnx=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_warnx=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
echo "${ECHO_T}$ac_cv_func_warnx" >&6; }
if test $ac_cv_func_warnx = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_WARNX 1
_ACEOF

else
  case " $LIBOBJS " in
  *" warnx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for writev" >&5
echo $ECHO_N "checking for writev... $ECHO_C" >&6; }
if test "${ac_cv_func_writev+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define writev to an innocuous variant, in case <limits.h> declares writev.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define writev innocuous_writev

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char writev (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef writev

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char writev ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_writev || defined __stub___writev
choke me
#endif

int
main ()
{
return writev ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_writev=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_writev=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
echo "${ECHO_T}$ac_cv_func_writev" >&6; }
if test $ac_cv_func_writev = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_WRITEV 1
_ACEOF

else
  case " $LIBOBJS " in
  *" writev.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS writev.$ac_objext"
 ;;
esac

fi


 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi



if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
{ echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_strndup_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>
struct foo { int foo; } xx;
extern int strndup (struct foo*);
int
main ()
{
strndup(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_strndup_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_strndup_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6; }
if test "$ac_cv_func_strndup_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_STRNDUP_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
{ echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_strsep_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>
struct foo { int foo; } xx;
extern int strsep (struct foo*);
int
main ()
{
strsep(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_strsep_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_strsep_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6; }
if test "$ac_cv_func_strsep_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_STRSEP_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
{ echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
int
main ()
{
strtok_r(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_strtok_r_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_strtok_r_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6; }
if test "$ac_cv_func_strtok_r_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_STRTOK_R_PROTO 1
_ACEOF

fi
fi



if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
{ echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_strsvis_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strsvis (struct foo*);
int
main ()
{
strsvis(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_strsvis_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_strsvis_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6; }
if test "$ac_cv_func_strsvis_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_STRSVIS_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
{ echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_strunvis_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strunvis (struct foo*);
int
main ()
{
strunvis(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_strunvis_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_strunvis_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6; }
if test "$ac_cv_func_strunvis_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_STRUNVIS_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
{ echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_strvis_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strvis (struct foo*);
int
main ()
{
strvis(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_strvis_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_strvis_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6; }
if test "$ac_cv_func_strvis_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_STRVIS_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
{ echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_strvisx_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int strvisx (struct foo*);
int
main ()
{
strvisx(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_strvisx_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_strvisx_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6; }
if test "$ac_cv_func_strvisx_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_STRVISX_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
{ echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_svis_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int svis (struct foo*);
int
main ()
{
svis(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_svis_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_svis_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6; }
if test "$ac_cv_func_svis_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SVIS_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
{ echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_unvis_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int unvis (struct foo*);
int
main ()
{
unvis(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_unvis_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_unvis_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6; }
if test "$ac_cv_func_unvis_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_UNVIS_PROTO 1
_ACEOF

fi
fi

if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
{ echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_vis_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
struct foo { int foo; } xx;
extern int vis (struct foo*);
int
main ()
{
vis(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_vis_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_vis_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6; }
if test "$ac_cv_func_vis_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VIS_PROTO 1
_ACEOF

fi
fi


{ echo "$as_me:$LINENO: checking for inet_aton" >&5
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
if test "${ac_cv_func_inet_aton+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton(0,0);
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "ac_cv_func_inet_aton=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_inet_aton=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_ATON 1
_ACEOF

  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  case " $LIBOBJS " in
  *" inet_aton.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
 ;;
esac

fi

{ echo "$as_me:$LINENO: checking for inet_ntop" >&5
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
if test "${ac_cv_func_inet_ntop+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop(0, 0, 0, 0);
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "ac_cv_func_inet_ntop=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_inet_ntop=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_NTOP 1
_ACEOF

  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  case " $LIBOBJS " in
  *" inet_ntop.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
 ;;
esac

fi

{ echo "$as_me:$LINENO: checking for inet_pton" >&5
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
if test "${ac_cv_func_inet_pton+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton(0,0,0);
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "ac_cv_func_inet_pton=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_inet_pton=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_PTON 1
_ACEOF

  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  case " $LIBOBJS " in
  *" inet_pton.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
 ;;
esac

fi



{ echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_sockaddr_sa_len=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_sa_len=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6; }
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
_ACEOF


fi



if test "$ac_cv_func_getaddrinfo" = "yes"; then

{ echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6; }
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

int
main(int argc, char **argv)
{
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
		return 1;
	if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
		return 1;
	return 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getaddrinfo_numserv=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_getaddrinfo_numserv=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6; }
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
	case " $LIBOBJS " in
  *" getaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
 ;;
esac

	case " $LIBOBJS " in
  *" freeaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
 ;;
esac

  fi
fi


if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
{ echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_setenv_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
struct foo { int foo; } xx;
extern int setenv (struct foo*);
int
main ()
{
setenv(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_setenv_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_setenv_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6; }
if test "$ac_cv_func_setenv_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SETENV_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
{ echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
int
main ()
{
unsetenv(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_unsetenv_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_unsetenv_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6; }
if test "$ac_cv_func_unsetenv_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_UNSETENV_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
{ echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
int
main ()
{
gethostname(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_gethostname_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_gethostname_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6; }
if test "$ac_cv_func_gethostname_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GETHOSTNAME_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
{ echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
int
main ()
{
mkstemp(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_mkstemp_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_mkstemp_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6; }
if test "$ac_cv_func_mkstemp_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_MKSTEMP_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
{ echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
int
main ()
{
getusershell(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_getusershell_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_getusershell_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6; }
if test "$ac_cv_func_getusershell_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GETUSERSHELL_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
{ echo "$as_me:$LINENO: checking if daemon needs a prototype" >&5
echo $ECHO_N "checking if daemon needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_daemon_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int daemon (struct foo*);
int
main ()
{
daemon(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_daemon_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_daemon_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon_noproto" >&5
echo "${ECHO_T}$ac_cv_func_daemon_noproto" >&6; }
if test "$ac_cv_func_daemon_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_DAEMON_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
{ echo "$as_me:$LINENO: checking if iruserok needs a prototype" >&5
echo $ECHO_N "checking if iruserok needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_iruserok_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
struct foo { int foo; } xx;
extern int iruserok (struct foo*);
int
main ()
{
iruserok(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_iruserok_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_iruserok_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_iruserok_noproto" >&5
echo "${ECHO_T}$ac_cv_func_iruserok_noproto" >&6; }
if test "$ac_cv_func_iruserok_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_IRUSEROK_PROTO 1
_ACEOF

fi
fi



if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
{ echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
int
main ()
{
inet_aton(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_inet_aton_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_inet_aton_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6; }
if test "$ac_cv_func_inet_aton_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_INET_ATON_PROTO 1
_ACEOF

fi
fi





{ echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
if test "${ac_cv_funclib_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
crypt()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_crypt"

if false; then

for ac_func in crypt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac






{ echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct hostent *gethostbyname(const char *)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_gethostbyname_proto_compat=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6; }

if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
_ACEOF

fi




{ echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct hostent *gethostbyaddr(const void *, size_t, int)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_gethostbyaddr_proto_compat=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6; }

if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
_ACEOF

fi




{ echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct servent *getservbyname(const char *, const char *)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_getservbyname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_getservbyname_proto_compat=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6; }

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
_ACEOF

fi




{ echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{
int getsockname(int, struct sockaddr*, socklen_t*)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_getsockname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_getsockname_proto_compat=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6; }

if test "$ac_cv_func_getsockname_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
_ACEOF

fi




{ echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

int
main ()
{
void openlog(const char *, int, int)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_openlog_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_openlog_proto_compat=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6; }

if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OPENLOG_PROTO_COMPATIBLE 1
_ACEOF

fi




if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
{ echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_crypt_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

struct foo { int foo; } xx;
extern int crypt (struct foo*);
int
main ()
{
crypt(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_crypt_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_crypt_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6; }
if test "$ac_cv_func_crypt_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_CRYPT_PROTO 1
_ACEOF

fi
fi




{ echo "$as_me:$LINENO: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
if test "${ac_cv_var_h_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
	void * foo(void) { return &h_errno; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_h_errno=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_h_errno=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_errno" != yes ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
extern int h_errno;
int foo(void) { return h_errno; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_h_errno=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_h_errno=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_h_errno`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRNO 1
_ACEOF

	{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_h_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
#ifndef h_errno
  (void) h_errno;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_h_errno=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_h_errno=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
if test $ac_cv_have_decl_h_errno = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRNO 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRNO 0
_ACEOF


fi


fi



{ echo "$as_me:$LINENO: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6; }
if test "${ac_cv_var_h_errlist+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
	void * foo(void) { return &h_errlist; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_h_errlist=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_h_errlist=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_errlist" != yes ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
extern int h_errlist;
int foo(void) { return h_errlist; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_h_errlist=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_h_errlist=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRLIST 1
_ACEOF

	{ echo "$as_me:$LINENO: checking whether h_errlist is declared" >&5
echo $ECHO_N "checking whether h_errlist is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_h_errlist+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
#ifndef h_errlist
  (void) h_errlist;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_h_errlist=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_h_errlist=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errlist" >&5
echo "${ECHO_T}$ac_cv_have_decl_h_errlist" >&6; }
if test $ac_cv_have_decl_h_errlist = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRLIST 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRLIST 0
_ACEOF


fi


fi



{ echo "$as_me:$LINENO: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6; }
if test "${ac_cv_var_h_nerr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
	void * foo(void) { return &h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_h_nerr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_h_nerr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_nerr" != yes ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
extern int h_nerr;
int foo(void) { return h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_h_nerr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_h_nerr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_h_nerr`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_H_NERR 1
_ACEOF

	{ echo "$as_me:$LINENO: checking whether h_nerr is declared" >&5
echo $ECHO_N "checking whether h_nerr is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_h_nerr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
#ifndef h_nerr
  (void) h_nerr;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_h_nerr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_h_nerr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_nerr" >&5
echo "${ECHO_T}$ac_cv_have_decl_h_nerr" >&6; }
if test $ac_cv_have_decl_h_nerr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_NERR 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_NERR 0
_ACEOF


fi


fi



{ echo "$as_me:$LINENO: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
if test "${ac_cv_var___progname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_ERR_H
#include <err.h>
#endif
	void * foo(void) { return &__progname; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var___progname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var___progname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var___progname" != yes ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
extern int __progname;
int foo(void) { return __progname; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var___progname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var___progname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var___progname`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE___PROGNAME 1
_ACEOF

	{ echo "$as_me:$LINENO: checking whether __progname is declared" >&5
echo $ECHO_N "checking whether __progname is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl___progname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef HAVE_ERR_H
#include <err.h>
#endif

int
main ()
{
#ifndef __progname
  (void) __progname;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl___progname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl___progname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___progname" >&5
echo "${ECHO_T}$ac_cv_have_decl___progname" >&6; }
if test $ac_cv_have_decl___progname = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___PROGNAME 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___PROGNAME 0
_ACEOF


fi


fi


{ echo "$as_me:$LINENO: checking whether optarg is declared" >&5
echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_optarg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
#ifndef optarg
  (void) optarg;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_optarg=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_optarg=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6; }
if test $ac_cv_have_decl_optarg = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTARG 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTARG 0
_ACEOF


#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether optind is declared" >&5
echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_optind+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
#ifndef optind
  (void) optind;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_optind=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_optind=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; }
if test $ac_cv_have_decl_optind = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTIND 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTIND 0
_ACEOF


#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether opterr is declared" >&5
echo $ECHO_N "checking whether opterr is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_opterr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
#ifndef opterr
  (void) opterr;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_opterr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_opterr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_opterr" >&5
echo "${ECHO_T}$ac_cv_have_decl_opterr" >&6; }
if test $ac_cv_have_decl_opterr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTERR 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTERR 0
_ACEOF


#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether optopt is declared" >&5
echo $ECHO_N "checking whether optopt is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_optopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
#ifndef optopt
  (void) optopt;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_optopt=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_optopt=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optopt" >&5
echo "${ECHO_T}$ac_cv_have_decl_optopt" >&6; }
if test $ac_cv_have_decl_optopt = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTOPT 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTOPT 0
_ACEOF


#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_environ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
#ifndef environ
  (void) environ;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_environ=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_environ=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
if test $ac_cv_have_decl_environ = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ENVIRON 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ENVIRON 0
_ACEOF


#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi






{ echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <time.h>
int
main ()
{
struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_tm_tm_gmtoff=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_tm_tm_gmtoff=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <time.h>
int
main ()
{
struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_tm_tm_zone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_tm_tm_zone=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6; }
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF


fi





{ echo "$as_me:$LINENO: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6; }
if test "${ac_cv_var_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <time.h>
	void * foo(void) { return &timezone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_timezone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_timezone=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_timezone" != yes ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
extern int timezone;
int foo(void) { return timezone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_timezone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_timezone=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_timezone`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEZONE 1
_ACEOF

	{ echo "$as_me:$LINENO: checking whether timezone is declared" >&5
echo $ECHO_N "checking whether timezone is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <time.h>

int
main ()
{
#ifndef timezone
  (void) timezone;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_timezone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_timezone=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_timezone" >&5
echo "${ECHO_T}$ac_cv_have_decl_timezone" >&6; }
if test $ac_cv_have_decl_timezone = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TIMEZONE 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TIMEZONE 0
_ACEOF


fi


fi


{ echo "$as_me:$LINENO: checking for altzone" >&5
echo $ECHO_N "checking for altzone... $ECHO_C" >&6; }
if test "${ac_cv_var_altzone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <time.h>
	void * foo(void) { return &altzone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_altzone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_altzone=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_altzone" != yes ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
extern int altzone;
int foo(void) { return altzone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_var_altzone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_var_altzone=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

fi

ac_foo=`eval echo \\$ac_cv_var_altzone`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ALTZONE 1
_ACEOF

	{ echo "$as_me:$LINENO: checking whether altzone is declared" >&5
echo $ECHO_N "checking whether altzone is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_altzone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <time.h>

int
main ()
{
#ifndef altzone
  (void) altzone;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_altzone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_altzone=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_altzone" >&5
echo "${ECHO_T}$ac_cv_have_decl_altzone" >&6; }
if test $ac_cv_have_decl_altzone = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ALTZONE 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ALTZONE 0
_ACEOF


fi


fi




cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
sa_family_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef sa_family_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_sa_family_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
if test $ac_cv_type_sa_family_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SA_FAMILY_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
socklen_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
if test "${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef socklen_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_socklen_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_socklen_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
if test $ac_cv_type_socklen_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef struct sockaddr ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_sockaddr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6; }
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef struct sockaddr_storage ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_storage=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <netdb.h>
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef struct addrinfo ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_addrinfo=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
if test $ac_cv_type_struct_addrinfo = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_ADDRINFO 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
int
main ()
{
struct ifaddrs foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef struct ifaddrs ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_ifaddrs=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_ifaddrs=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6; }
if test $ac_cv_type_struct_ifaddrs = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFADDRS 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/uio.h>

int
main ()
{
struct iovec foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_iovec+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef struct iovec ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_iovec=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_iovec=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; }
if test $ac_cv_type_struct_iovec = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IOVEC 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/socket.h>

int
main ()
{
struct msghdr foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_msghdr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef struct msghdr ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_msghdr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_msghdr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; }
if test $ac_cv_type_struct_msghdr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_MSGHDR 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi




{ echo "$as_me:$LINENO: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6; }
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$i>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
fi
rm -f conftest*
done

fi

if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_WINSIZE 1
_ACEOF

fi
{ echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ws_xpixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_WS_XPIXEL 1
_ACEOF

fi
rm -f conftest*

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ws_ypixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_WS_YPIXEL 1
_ACEOF

fi
rm -f conftest*





{ echo "$as_me:$LINENO: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6; }
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_struct_spwd=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_struct_spwd=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

{ echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6; }

if test "$ac_cv_struct_spwd" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SPWD 1
_ACEOF

fi


#
# Check if we want samba's socket wrapper
#



# Check whether --enable-socket-wrapper was given.
if test "${enable_socket_wrapper+set}" = set; then
  enableval=$enable_socket_wrapper;
fi


 if test "x$enable_socket_wrapper" = xyes; then
  have_socket_wrapper_TRUE=
  have_socket_wrapper_FALSE='#'
else
  have_socket_wrapper_TRUE='#'
  have_socket_wrapper_FALSE=
fi

if test "x$enable_socket_wrapper" = xyes ; then

cat >>confdefs.h <<\_ACEOF
#define SOCKET_WRAPPER_REPLACE 1
_ACEOF

fi




LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"


LIBADD_roken="$LIB_roken"
LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"


# Check whether --enable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval=$enable_otp;
fi

if test "$enable_otp" = yes -a "$db_type" = unknown; then
	{ { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$enable_otp" != no; then
	if test "$db_type" != unknown; then
		enable_otp=yes
	else
		enable_otp=no
	fi
fi
if test "$enable_otp" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OTP 1
_ACEOF

	LIB_otp='$(top_builddir)/lib/otp/libotp.la'

fi
{ echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $enable_otp" >&5
echo "${ECHO_T}$enable_otp" >&6; }
 if test "$enable_otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi



# Check whether --enable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
  enableval=$enable_osfc2;
fi

LIB_security=
if test "$enable_osfc2" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OSFC2 1
_ACEOF

	LIB_security=-lsecurity
fi



# Check whether --enable-mmap was given.
if test "${enable_mmap+set}" = set; then
  enableval=$enable_mmap;
fi

if test "$enable_mmap" = "no"; then

cat >>confdefs.h <<\_ACEOF
#define NO_MMAP 1
_ACEOF

fi

# Check whether --enable-afs-string-to-key was given.
if test "${enable_afs_string_to_key+set}" = set; then
  enableval=$enable_afs_string_to_key;
else
  enable_afs_string_to_key=yes
fi


if test "$enable_afs_string_to_key" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define ENABLE_AFS_STRING_TO_KEY 1
_ACEOF

fi


# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_NROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $NROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
NROFF=$ac_cv_path_NROFF
if test -n "$NROFF"; then
  { echo "$as_me:$LINENO: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_GROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
GROFF=$ac_cv_path_GROFF
if test -n "$GROFF"; then
  { echo "$as_me:$LINENO: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


{ echo "$as_me:$LINENO: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6; }
if test "${ac_cv_sys_man_format+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
END

if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
fi

fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6; }
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"

fi
 if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
else
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi

{ echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6; }
if test "${ac_cv_sys_catman_ext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
fi

fi
{ echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6; }
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$section'
else
	CATMANEXT=0
fi





# Check whether --with-readline was given.
if test "${with_readline+set}" = set; then
  withval=$with_readline;
fi


# Check whether --with-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
echo "$as_me: error: No argument for --with-readline-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi


# Check whether --with-readline-include was given.
if test "${with_readline_include+set}" = set; then
  withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
echo "$as_me: error: No argument for --with-readline-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi


# Check whether --with-readline-config was given.
if test "${with_readline_config+set}" = set; then
  withval=$with_readline_config;
fi




{ echo "$as_me:$LINENO: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6; }

case "$with_readline" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_readline" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_readline_include" = ""; then
		if test -d "$i/include/readline"; then
			header_dirs="$header_dirs $i/include/readline"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_readline_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_readline_include"; then
	header_dirs="$with_readline_include $header_dirs"
fi
if test "$with_readline_lib"; then
	lib_dirs="$with_readline_lib $lib_dirs"
fi

if test "$with_readline_config" = ""; then
	with_readline_config=''
fi

readline_cflags=
readline_libs=

case "$with_readline_config" in
yes|no|""|"")
	if test -f $with_readline/bin/ ; then
		with_readline_config=$with_readline/bin/
	fi
	;;
esac

case "$with_readline_config" in
yes|no|"")
	;;
*)
	readline_cflags="`$with_readline_config --cflags 2>&1`"
	readline_libs="`$with_readline_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_readline" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$readline_cflags" -a "$readline_libs"; then
		CFLAGS="$readline_cflags $save_CFLAGS"
		LIBS="$readline_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
 #include <readline.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

			INCLUDE_readline="$readline_cflags"
			LIB_readline="$readline_libs"
			{ echo "$as_me:$LINENO: result: from $with_readline_config" >&5
echo "${ECHO_T}from $with_readline_config" >&6; }
			found=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
 #include <readline.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lreadline  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
 #include <readline.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
			INCLUDE_readline="-I$ires"
			LIB_readline="-L$lres -lreadline "
			found=yes
			{ echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define READLINE 1
_ACEOF

	with_readline=yes
else
	with_readline=no
	INCLUDE_readline=
	LIB_readline=
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi







# Check whether --with-hesiod was given.
if test "${with_hesiod+set}" = set; then
  withval=$with_hesiod;
fi


# Check whether --with-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
  withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi


# Check whether --with-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
  withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi


# Check whether --with-hesiod-config was given.
if test "${with_hesiod_config+set}" = set; then
  withval=$with_hesiod_config;
fi




{ echo "$as_me:$LINENO: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6; }

case "$with_hesiod" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_hesiod" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_hesiod_include" = ""; then
		if test -d "$i/include/hesiod"; then
			header_dirs="$header_dirs $i/include/hesiod"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_hesiod_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_hesiod_include"; then
	header_dirs="$with_hesiod_include $header_dirs"
fi
if test "$with_hesiod_lib"; then
	lib_dirs="$with_hesiod_lib $lib_dirs"
fi

if test "$with_hesiod_config" = ""; then
	with_hesiod_config=''
fi

hesiod_cflags=
hesiod_libs=

case "$with_hesiod_config" in
yes|no|""|"")
	if test -f $with_hesiod/bin/ ; then
		with_hesiod_config=$with_hesiod/bin/
	fi
	;;
esac

case "$with_hesiod_config" in
yes|no|"")
	;;
*)
	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_hesiod" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$hesiod_cflags" -a "$hesiod_libs"; then
		CFLAGS="$hesiod_cflags $save_CFLAGS"
		LIBS="$hesiod_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

			INCLUDE_hesiod="$hesiod_cflags"
			LIB_hesiod="$hesiod_libs"
			{ echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
echo "${ECHO_T}from $with_hesiod_config" >&6; }
			found=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lhesiod  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
			INCLUDE_hesiod="-I$ires"
			LIB_hesiod="-L$lres -lhesiod "
			found=yes
			{ echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define HESIOD 1
_ACEOF

	with_hesiod=yes
else
	with_hesiod=no
	INCLUDE_hesiod=
	LIB_hesiod=
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi






# Check whether --enable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
  enableval=$enable_bigendian; krb_cv_c_bigendian=yes
fi

# Check whether --enable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
  enableval=$enable_littleendian; krb_cv_c_bigendian=no
fi

{ echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6; }
if test "${krb_cv_c_bigendian_compile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/param.h>
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  krb_cv_c_bigendian_compile=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	krb_cv_c_bigendian_compile=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6; }
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
if test "${krb_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  if test "$krb_cv_c_bigendian_compile" = "yes"; then
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/param.h>
#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  krb_cv_c_bigendian=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	krb_cv_c_bigendian=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  else
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
main (int argc, char **argv) {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
    } u;
    u.l = 1;
    exit (u.c[sizeof (long) - 1] == 1);
  }
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_c_bigendian=no
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
krb_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


  fi

fi
{ echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6; }
if test "$krb_cv_c_bigendian" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
fi
if test "$krb_cv_c_bigendian_compile" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define ENDIANESS_IN_SYS_PARAM_H 1
_ACEOF
fi



{ echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_inline=$ac_kw
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6; }


case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac






{ echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
if test "${ac_cv_funclib_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" dl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
int
main ()
{
dlopen(0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dlopen"

if false; then

for ac_func in dlopen
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dlopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_dlopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


	 if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
fi




aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*|*-*-aix5*)
	aix=4
	;;
esac

 if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
else
  AIX_TRUE='#'
  AIX_FALSE=
fi
 if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
else
  AIX4_TRUE='#'
  AIX4_FALSE=
fi



# Check whether --enable-dynamic-afs was given.
if test "${enable_dynamic_afs+set}" = set; then
  enableval=$enable_dynamic_afs;
fi


if test "$aix" != no; then
	if test "$enable_dynamic_afs" != no; then

		if test "$ac_cv_func_dlopen" = no; then



{ echo "$as_me:$LINENO: checking for loadquery" >&5
echo $ECHO_N "checking for loadquery... $ECHO_C" >&6; }
if test "${ac_cv_funclib_loadquery+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ld; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
loadquery()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_loadquery"

if false; then

for ac_func in loadquery
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# loadquery
eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_loadquery=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_loadquery=yes"
	eval "LIB_loadquery="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_loadquery=no"
	eval "LIB_loadquery="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_loadquery=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


		fi
		if test "$ac_cv_func_dlopen" != no; then
			AIX_EXTRA_KAFS='$(LIB_dlopen)'
		elif test "$ac_cv_func_loadquery" != no; then
			AIX_EXTRA_KAFS='$(LIB_loadquery)'
		else
			{ echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
echo "$as_me: not using dynloaded AFS library" >&6;}
			AIX_EXTRA_KAFS=
			enable_dynamic_afs=no
		fi
	else
		AIX_EXTRA_KAFS=
	fi
fi

 if test "$enable_dynamic_afs" != no; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi






irix=no
case "$host" in
*-*-irix4*)

cat >>confdefs.h <<\_ACEOF
#define IRIX4 1
_ACEOF

	irix=yes
	;;
*-*-irix*)
	irix=yes
	;;
esac
 if test "$irix" != no; then
  IRIX_TRUE=
  IRIX_FALSE='#'
else
  IRIX_TRUE='#'
  IRIX_FALSE=
fi





sunos=no
case "$host" in
*-*-sunos4*)
	sunos=40
	;;
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2.[89] | *-*-solaris2.10)
	sunos=58
	;;
*-*-solaris2*)
	sunos=50
	;;
esac
if test "$sunos" != no; then

cat >>confdefs.h <<_ACEOF
#define SunOS $sunos
_ACEOF

fi


{ echo "$as_me:$LINENO: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6; }


# Check whether --with-x was given.
if test "${with_x+set}" = set; then
  withval=$with_x;
fi

# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  case $x_includes,$x_libraries in #(
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
   { (exit 1); exit 1; }; };; #(
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -f -r conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  cat >Imakefile <<'_ACEOF'
incroot:
	@@echo incroot='${INCROOT}'
usrlibdir:
	@@echo usrlibdir='${USRLIBDIR}'
libdir:
	@@echo libdir='${LIBDIR}'
_ACEOF
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    for ac_var in incroot usrlibdir libdir; do
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
    done
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
	ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ac_x_includes= ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -f -r conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include

/usr/openwin/include
/usr/openwin/share/include'

if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Xlib.h.
  # First, try using that file with no special directory specified.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Xlib.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Xlib.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
fi

rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no

if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lX11 $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Xlib.h>
int
main ()
{
XrmInitialize ()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl; do
    if test -r "$ac_dir/libX11.$ac_extension"; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no

case $ac_x_includes,$ac_x_libraries in #(
  no,* | *,no | *\'*)
    # Didn't find X, or a directory has "'" in its name.
    ac_cv_have_x="have_x=no";; #(
  *)
    # Record where we found X for the cache.
    ac_cv_have_x="have_x=yes\
	ac_x_includes='$ac_x_includes'\
	ac_x_libraries='$ac_x_libraries'"
esac
fi
;; #(
    *) have_x=yes;;
  esac
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  { echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6; }
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes\
	ac_x_includes='$x_includes'\
	ac_x_libraries='$x_libraries'"
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
fi


if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.

cat >>confdefs.h <<\_ACEOF
#define X_DISPLAY_MISSING 1
_ACEOF

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
    ac_xsave_c_werror_flag=$ac_c_werror_flag
    ac_c_werror_flag=yes
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
       X_LIBS="$X_LIBS -R$x_libraries"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	LIBS="$ac_xsave_LIBS -R $x_libraries"
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	  X_LIBS="$X_LIBS -R $x_libraries"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ echo "$as_me:$LINENO: result: neither works" >&5
echo "${ECHO_T}neither works" >&6; }
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    ac_c_werror_flag=$ac_xsave_c_werror_flag
    LIBS=$ac_xsave_LIBS
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XOpenDisplay ();
int
main ()
{
return XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dnet_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dnet_dnet_ntoa=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dnet_stub_dnet_ntoa=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi

    fi
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"

    # msh@@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
if test "${ac_cv_func_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethostbyname innocuous_gethostbyname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethostbyname

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_gethostbyname || defined __stub___gethostbyname
choke me
#endif

int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_gethostbyname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }

    if test $ac_cv_func_gethostbyname = no; then
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_nsl_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_nsl_gethostbyname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi

      if test $ac_cv_lib_nsl_gethostbyname = no; then
	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_bsd_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bsd_gethostbyname=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
if test $ac_cv_lib_bsd_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the name server (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    { echo "$as_me:$LINENO: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
if test "${ac_cv_func_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define connect innocuous_connect

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef connect

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char connect ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_connect || defined __stub___connect
choke me
#endif

int
main ()
{
return connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_connect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_connect=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6; }

    if test $ac_cv_func_connect = no; then
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
if test "${ac_cv_lib_socket_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char connect ();
int
main ()
{
return connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_socket_connect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_socket_connect=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
if test $ac_cv_lib_socket_connect = yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi

    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    { echo "$as_me:$LINENO: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
if test "${ac_cv_func_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define remove innocuous_remove

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char remove (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef remove

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char remove ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_remove || defined __stub___remove
choke me
#endif

int
main ()
{
return remove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_remove=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_remove=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6; }

    if test $ac_cv_func_remove = no; then
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
if test "${ac_cv_lib_posix_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char remove ();
int
main ()
{
return remove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_posix_remove=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_posix_remove=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
if test $ac_cv_lib_posix_remove = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    { echo "$as_me:$LINENO: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
if test "${ac_cv_func_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shmat innocuous_shmat

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shmat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shmat

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shmat ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_shmat || defined __stub___shmat
choke me
#endif

int
main ()
{
return shmat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_shmat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_shmat=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }

    if test $ac_cv_func_shmat = no; then
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shmat ();
int
main ()
{
return shmat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_ipc_shmat=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ipc_shmat=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
if test $ac_cv_lib_ipc_shmat = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char IceConnectionNumber ();
int
main ()
{
return IceConnectionNumber ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_ICE_IceConnectionNumber=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ICE_IceConnectionNumber=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS

fi


# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
	{ echo "$as_me:$LINENO: checking for special X linker flags" >&5
echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6; }
if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_save_libs="$LIBS"
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS $X_CFLAGS"
	krb_cv_sys_x_libs_rpath=""
	krb_cv_sys_x_libs=""
	for rflag in "" "-R" "-R " "-rpath "; do
		if test "$rflag" = ""; then
			foo="$X_LIBS"
		else
			foo=""
			for flag in $X_LIBS; do
			case $flag in
			-L*)
				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
				;;
			*)
				foo="$foo $flag"
				;;
			esac
			done
		fi
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
		if test "$cross_compiling" = yes; then
  krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
else
  cat >conftest.$ac_ext <<_ACEOF

		#include <X11/Xlib.h>
		foo(void)
		{
		XOpenDisplay(NULL);
		}
		main(int argc, char **argv)
		{
		return 0;
		}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
:
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"

fi
{ echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6; }
	X_LIBS="$krb_cv_sys_x_libs"
fi


 if test "$no_x" != yes; then
  HAVE_X_TRUE=
  HAVE_X_FALSE='#'
else
  HAVE_X_TRUE='#'
  HAVE_X_FALSE=
fi



save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"

## check for XauWriteAuth first, so we detect the case where
## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
## could be done by checking for XauReadAuth in -lXau first, but this
## breaks in IRIX 6.5




{ echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6; }
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Xauth.h>
int
main ()
{
XauWriteAuth(0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_XauWriteAuth"

if false; then

for ac_func in XauWriteAuth
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauWriteAuth=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"



{ echo "$as_me:$LINENO: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6; }
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Xauth.h>
int
main ()
{
XauReadAuth(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_XauReadAuth"

if false; then

for ac_func in XauReadAuth
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauReadAuth=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_XauReadAuth=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


LIBS="$LIB_XauReadAauth $LIBS"



{ echo "$as_me:$LINENO: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6; }
if test "${ac_cv_funclib_XauFileName+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Xauth.h>
int
main ()
{
XauFileName()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_XauFileName"

if false; then

for ac_func in XauFileName
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauFileName=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_XauFileName=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


LIBS="$ac_xxx"

## set LIB_XauReadAuth to union of these tests, since this is what the
## Makefiles are using
case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
	fi
	;;
esac

if test "$AUTOMAKE" != ""; then
	 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
else
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
fi

else


	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS



{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_c_const=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\_ACEOF
#define const
_ACEOF

fi

{ echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef off_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_off_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_off_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
if test $ac_cv_type_off_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF

fi

{ echo "$as_me:$LINENO: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
if test "${ac_cv_type_mode_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_mode_t=yes
else
  ac_cv_type_mode_t=no
fi
rm -f conftest*

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
if test $ac_cv_type_mode_t = no; then

cat >>confdefs.h <<\_ACEOF
#define mode_t unsigned short
_ACEOF

fi

{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_sig_atomic_t=yes
else
  ac_cv_type_sig_atomic_t=no
fi
rm -f conftest*

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
if test $ac_cv_type_sig_atomic_t = no; then

cat >>confdefs.h <<\_ACEOF
#define sig_atomic_t int
_ACEOF

fi



cv=`echo "long long" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef long long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_long_long=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi

{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_time=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF

fi

{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
if test "${ac_cv_struct_tm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
 				     return !p;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_struct_tm=time.h
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_struct_tm=sys/time.h
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

cat >>confdefs.h <<\_ACEOF
#define TM_IN_SYS_TIME 1
_ACEOF

fi


{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_stdc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi






















































for ac_header in \
	arpa/ftp.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	curses.h				\
	dlfcn.h					\
	fnmatch.h				\
	inttypes.h				\
	io.h					\
	libutil.h				\
	limits.h				\
	maillock.h				\
	netgroup.h				\
	netinet/in6_machtypes.h			\
	netinfo/ni.h				\
	pthread.h				\
	pty.h					\
	sac.h					\
	sgtty.h					\
	siad.h					\
	signal.h				\
	strings.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/mman.h				\
	sys/param.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/select.h				\
	sys/socket.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/syscall.h				\
	sys/termio.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/types.h				\
	sys/un.h				\
	termcap.h				\
	termio.h				\
	termios.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	util.h					\
	utmp.h					\
	utmpx.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in term.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  eval "$as_ac_Header=no"
fi

rm -f conftest.err conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in net/if.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/ptyvar.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#if HAVE_SYS_TTY_H
#include <sys/tty.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/strtty.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#if HAVE_TERMIOS_H
#include <termios.h>
#endif
#if HAVE_SYS_STREAM_H
#include <sys/stream.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/ucred.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in security/pam_modules.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <security/pam_appl.h>


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# Check whether --enable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval=$enable_netinfo;
fi


if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_NETINFO 1
_ACEOF

fi










{ echo "$as_me:$LINENO: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6; }
if test "${ac_cv_funclib_logwtmp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_UTIL_H
#include <util.h>
#endif

int
main ()
{
logwtmp(0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_logwtmp"

if false; then

for ac_func in logwtmp
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logwtmp=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_logwtmp=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac





{ echo "$as_me:$LINENO: checking for logout" >&5
echo $ECHO_N "checking for logout... $ECHO_C" >&6; }
if test "${ac_cv_funclib_logout+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_logout\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_UTIL_H
#include <util.h>
#endif

int
main ()
{
logout(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_logout"

if false; then

for ac_func in logout
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# logout
eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logout=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_logout=yes"
	eval "LIB_logout="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_logout=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac





{ echo "$as_me:$LINENO: checking for openpty" >&5
echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
if test "${ac_cv_funclib_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_UTIL_H
#include <util.h>
#endif

int
main ()
{
openpty(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_openpty"

if false; then

for ac_func in openpty
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# openpty
eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_openpty=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_openpty=yes"
	eval "LIB_openpty="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_openpty=no"
	eval "LIB_openpty="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_openpty=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac






{ echo "$as_me:$LINENO: checking for tgetent" >&5
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
if test "${ac_cv_funclib_tgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" termcap ncurses curses; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_TERMCAP_H
#include <termcap.h>
#endif
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif

int
main ()
{
tgetent(0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_tgetent"

if false; then

for ac_func in tgetent
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_tgetent=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_tgetent=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


































for ac_func in 				\
	_getpty					\
	_scrsize				\
	arc4random				\
	fcntl					\
	getpeereid				\
	getpeerucred				\
	grantpt					\
	mktime					\
	ptsname					\
	rand					\
	revoke					\
	select					\
	setitimer				\
	setpcred				\
	setpgid					\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	strstr					\
	ttyname					\
	ttyslot					\
	umask					\
	unlockpt				\
	vhangup					\
	yp_get_default_domain			\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done




for ac_header in stdlib.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_func in getpagesize
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

{ echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    return 1;
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    return 1;
  if (write (fd, data, pagesize) != pagesize)
    return 1;
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    return 1;
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    return 1;
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    return 1;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      return 1;

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    return 1;
  if (read (fd, data3, pagesize) != pagesize)
    return 1;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      return 1;
  close (fd);
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mmap_fixed_mapped=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_mmap_fixed_mapped = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
_ACEOF

fi
rm -f conftest.mmap






for ac_header in capability.h sys/capability.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




for ac_func in sgi_getcapabilitybyname cap_set_proc
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done







{ echo "$as_me:$LINENO: checking for getpwnam_r" >&5
echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; }
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" c_r; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
getpwnam_r()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getpwnam_r"

if false; then

for ac_func in getpwnam_r
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test "$ac_cv_func_getpwnam_r" = yes; then
	{ echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6; }
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#define _POSIX_PTHREAD_SEMANTICS
#include <pwd.h>
int main(int argc, char **argv)
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getpwnam_r_posix=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_getpwnam_r_posix=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


LIBS="$ac_libs"
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6; }
if test "$ac_cv_func_getpwnam_r_posix" = yes; then

cat >>confdefs.h <<\_ACEOF
#define POSIX_GETPWNAM_R 1
_ACEOF

fi
fi


if test "$enable_pthread_support" != no; then
   saved_LIBS="$LIBS"
   LIBS="$LIBS $PTHREADS_LIBS"



{ echo "$as_me:$LINENO: checking for door_create" >&5
echo $ECHO_N "checking for door_create... $ECHO_C" >&6; }
if test "${ac_cv_funclib_door_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" door; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
door_create()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_door_create"

if false; then

for ac_func in door_create
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# door_create
eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_door_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_door_create=yes"
	eval "LIB_door_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_door_create=no"
	eval "LIB_door_create="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_door_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


   LIBS="$saved_LIBS"
fi

# Check whether --enable-kcm was given.
if test "${enable_kcm+set}" = set; then
  enableval=$enable_kcm;
else
  enable_kcm=yes
fi


if test "$enable_kcm" = yes ; then
   if test  "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
  	enable_kcm=no
   fi
fi
if test "$enable_kcm" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_KCM 1
_ACEOF

fi
 if test "$enable_kcm" = yes; then
  KCM_TRUE=
  KCM_FALSE='#'
else
  KCM_TRUE='#'
  KCM_FALSE=
fi






for ac_func in getudbnam setlim
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done






{ echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmp_ut_addr=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmp_ut_addr=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6; }
if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_ADDR 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmp_ut_host=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmp_ut_host=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6; }
if test "$ac_cv_type_struct_utmp_ut_host" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_HOST 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmp_ut_id=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmp_ut_id=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6; }
if test "$ac_cv_type_struct_utmp_ut_id" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_ID 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmp_ut_pid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmp_ut_pid=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6; }
if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_PID 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmp_ut_type=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmp_ut_type=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6; }
if test "$ac_cv_type_struct_utmp_ut_type" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_TYPE 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmp.h>
int
main ()
{
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmp_ut_user=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmp_ut_user=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6; }
if test "$ac_cv_type_struct_utmp_ut_user" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_USER 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmpx_ut_exit=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmpx_ut_exit=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMPX_UT_EXIT 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <utmpx.h>
int
main ()
{
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_utmpx_ut_syslen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_utmpx_ut_syslen=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
_ACEOF


fi



{ echo "$as_me:$LINENO: checking for int8_t" >&5
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
if test "${ac_cv_type_int8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef int8_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_int8_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int8_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
if test $ac_cv_type_int8_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
if test "${ac_cv_type_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef int16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_int16_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int16_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
if test $ac_cv_type_int16_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
if test "${ac_cv_type_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef int32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_int32_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int32_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
if test $ac_cv_type_int32_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
if test "${ac_cv_type_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef int64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int64_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
if test $ac_cv_type_int64_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INT64_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef u_int8_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_u_int8_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int8_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
if test $ac_cv_type_u_int8_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT8_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef u_int16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_u_int16_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int16_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
if test $ac_cv_type_u_int16_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT16_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef u_int32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_u_int32_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int32_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
if test $ac_cv_type_u_int32_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
if test "${ac_cv_type_u_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef u_int64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_u_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int64_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
if test $ac_cv_type_u_int64_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT64_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uint8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef uint8_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_uint8_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint8_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
if test $ac_cv_type_uint8_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uint16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef uint16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_uint16_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint16_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
if test $ac_cv_type_uint16_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uint32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef uint32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_uint32_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint32_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
if test $ac_cv_type_uint32_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
{ echo "$as_me:$LINENO: checking for uint64_t" >&5
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uint64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif


typedef uint64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_uint64_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint64_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
if test $ac_cv_type_uint64_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT64_T 1
_ACEOF


fi




{ echo "$as_me:$LINENO: checking for framework security" >&5
echo $ECHO_N "checking for framework security... $ECHO_C" >&6; }
if test "${rk_cv_framework_security+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$rk_cv_framework_security" != yes; then
	ac_save_LIBS="$LIBS"
	LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <Security/Security.h>

int
main ()
{
SecKeychainSearchRef searchRef;
SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
CFRelease(&searchRef);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  rk_cv_framework_security=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	LIBS="$ac_save_LIBS"
fi

fi


if test "$rk_cv_framework_security" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_FRAMEWORK_SECURITY 1
_ACEOF

   { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
   { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
 if test "$rk_cv_framework_security" = yes; then
  FRAMEWORK_SECURITY_TRUE=
  FRAMEWORK_SECURITY_FALSE='#'
else
  FRAMEWORK_SECURITY_TRUE='#'
  FRAMEWORK_SECURITY_FALSE=
fi


if test "$rk_cv_framework_security" = yes; then

if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
{ echo "$as_me:$LINENO: checking if SecKeyGetCSPHandle needs a prototype" >&5
echo $ECHO_N "checking if SecKeyGetCSPHandle needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <Security/Security.h>
struct foo { int foo; } xx;
extern int SecKeyGetCSPHandle (struct foo*);
int
main ()
{
SecKeyGetCSPHandle(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
echo "${ECHO_T}$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SECKEYGETCSPHANDLE_PROTO 1
_ACEOF

fi
fi

fi







{ echo "$as_me:$LINENO: checking for el_init" >&5
echo $ECHO_N "checking for el_init... $ECHO_C" >&6; }
if test "${ac_cv_funclib_el_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" edit; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
el_init()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_el_init"

if false; then

for ac_func in el_init
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# el_init
eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_el_init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_el_init=yes"
	eval "LIB_el_init="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_el_init=no"
	eval "LIB_el_init="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_el_init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test "$ac_cv_func_el_init" = yes ; then
	{ echo "$as_me:$LINENO: checking for four argument el_init" >&5
echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6; }
if test "${ac_cv_func_el_init_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
			#include <histedit.h>
int
main ()
{
el_init("", NULL, NULL, NULL);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_func_el_init_four=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_el_init_four=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
echo "${ECHO_T}$ac_cv_func_el_init_four" >&6; }
	if test "$ac_cv_func_el_init_four" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_FOUR_VALUED_EL_INIT 1
_ACEOF

	fi
fi


ac_foo=no
if test "$with_readline" = yes; then
	:
elif test "$ac_cv_func_readline" = yes; then
	:
elif test "$ac_cv_func_el_init" = yes; then
	ac_foo=yes
	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
else
	LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
fi
 if test "$ac_foo" = yes; then
  el_compat_TRUE=
  el_compat_FALSE='#'
else
  el_compat_TRUE='#'
  el_compat_FALSE=
fi


cat >>confdefs.h <<\_ACEOF
#define HAVE_READLINE 1
_ACEOF





cat >>confdefs.h <<\_ACEOF
#define AUTHENTICATION 1
_ACEOF

cat >>confdefs.h <<\_ACEOF
#define ENCRYPTION 1
_ACEOF

cat >>confdefs.h <<\_ACEOF
#define DES_ENCRYPTION 1
_ACEOF

cat >>confdefs.h <<\_ACEOF
#define DIAGNOSTICS 1
_ACEOF

cat >>confdefs.h <<\_ACEOF
#define OLD_ENVIRON 1
_ACEOF
if false; then

cat >>confdefs.h <<\_ACEOF
#define ENV_HACK 1
_ACEOF

fi

# Simple test for streamspty, based on the existance of getmsg(), alas
# this breaks on SunOS4 which have streams but BSD-like ptys
#
# And also something wierd has happend with dec-osf1, fallback to bsd-ptys

case "$host" in
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
	;;
*)
	{ echo "$as_me:$LINENO: checking for getmsg" >&5
echo $ECHO_N "checking for getmsg... $ECHO_C" >&6; }
if test "${ac_cv_func_getmsg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getmsg innocuous_getmsg

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getmsg (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getmsg

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getmsg ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_getmsg || defined __stub___getmsg
choke me
#endif

int
main ()
{
return getmsg ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_getmsg=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_getmsg=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
echo "${ECHO_T}$ac_cv_func_getmsg" >&6; }

	if test "$ac_cv_func_getmsg" = "yes"; then
		{ echo "$as_me:$LINENO: checking if getmsg works" >&5
echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6; }
if test "${ac_cv_func_getmsg_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_getmsg_works=no
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

			#include <stdio.h>
			#include <errno.h>

			int main(int argc, char **argv)
			{
			  int ret;
			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
			  if(ret < 0 && errno == ENOSYS)
			    return 1;
			  return 0;
			}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getmsg_works=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_getmsg_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6; }
		if test "$ac_cv_func_getmsg_works" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_GETMSG 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define STREAMSPTY 1
_ACEOF

		fi
	fi
	;;
esac







# Extract the first word of "compile_et", so it can be a program name with args.
set dummy compile_et; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$COMPILE_ET"; then
  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_COMPILE_ET="compile_et"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
COMPILE_ET=$ac_cv_prog_COMPILE_ET
if test -n "$COMPILE_ET"; then
  { echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
echo "${ECHO_T}$COMPILE_ET" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi



krb_cv_compile_et="no"
krb_cv_com_err_need_r=""
krb_cv_compile_et_cross=no
if test "${COMPILE_ET}" = "compile_et"; then

{ echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6; }
cat > conftest_et.et <<'EOF'
error_table test conf
prefix CONFTEST
index 1
error_code CODE1, "CODE1"
index 128
error_code CODE2, "CODE2"
end
EOF
if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
    save_CPPFLAGS="${CPPFLAGS}"
  if test -d "/usr/include/et"; then
    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
  fi
    if test "$cross_compiling" = yes; then
  krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
else
  cat >conftest.$ac_ext <<_ACEOF

#include <com_err.h>
#include <string.h>
#include "conftest_et.h"
int main(int argc, char **argv){
#ifndef ERROR_TABLE_BASE_conf
#error compile_et does not handle error_table N M
#endif
return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_compile_et="yes"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
echo "${ECHO_T}${krb_cv_compile_et}" >&6; }
if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
  { echo "$as_me:$LINENO: checking for if com_err generates a initialize_conf_error_table_r" >&5
echo $ECHO_N "checking for if com_err generates a initialize_conf_error_table_r... $ECHO_C" >&6; }
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include "conftest_et.h"
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then
  krb_cv_com_err_need_r="ok"
fi
rm -f conftest*

  if test X"$krb_cv_com_err_need_r" = X ; then
    { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    krb_cv_compile_et=no
  else
    { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
  fi
fi
rm -fr conftest*
fi

if test "${krb_cv_compile_et_cross}" = yes ; then
  krb_cv_com_err="cross"
elif test "${krb_cv_compile_et}" = "yes"; then
    krb_cv_save_LIBS="${LIBS}"
  LIBS="${LIBS} -lcom_err"
  { echo "$as_me:$LINENO: checking for com_err" >&5
echo $ECHO_N "checking for com_err... $ECHO_C" >&6; }
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <com_err.h>
int
main ()
{

    const char *p;
    p = error_message(0);
    initialize_error_table_r(0,0,0,0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  krb_cv_com_err="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
  { echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
echo "${ECHO_T}${krb_cv_com_err}" >&6; }
  LIBS="${krb_cv_save_LIBS}"
else
    krb_cv_com_err="no"
fi

if test "${krb_cv_com_err}" = "yes"; then
    DIR_com_err=""
    LIB_com_err="-lcom_err"
    LIB_com_err_a=""
    LIB_com_err_so=""
    { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
echo "$as_me: Using the already-installed com_err" >&6;}
    localcomerr=no
elif test "${krb_cv_com_err}" = "cross"; then
    DIR_com_err="com_err"
    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
    { echo "$as_me:$LINENO: Using our own com_err with toolchain compile_et" >&5
echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
    localcomerr=yes
else
    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
    DIR_com_err="com_err"
    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
    { echo "$as_me:$LINENO: Using our own com_err" >&5
echo "$as_me: Using our own com_err" >&6;}
    localcomerr=yes
fi
 if test "$localcomerr" = yes; then
  COM_ERR_TRUE=
  COM_ERR_FALSE='#'
else
  COM_ERR_TRUE='#'
  COM_ERR_FALSE=
fi








{ echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6; }

z='sia afskauthlib'
LIB_AUTH_SUBDIRS=
for i in $z; do
case $i in
sia)
if test "$ac_cv_header_siad_h" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
fi
;;
pam)
case "${host}" in
*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
*)		ac_cv_want_pam_krb4=yes ;;
esac

if test "$ac_cv_want_pam_krb4" = yes -a \
    "$ac_cv_header_security_pam_modules_h" = yes -a \
    "$enable_shared" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
fi
;;
afskauthlib)
case "${host}" in
*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
esac
;;
esac
done
if test "$LIB_AUTH_SUBDIRS"; then
	{ echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6; }
else
	{ echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6; }
fi




# This is done by AC_OUTPUT but we need the result here.
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'


	x="${bindir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define BINDIR "$x"
_ACEOF

	x="${libdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBDIR "$x"
_ACEOF

	x="${libexecdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBEXECDIR "$x"
_ACEOF

	x="${localstatedir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LOCALSTATEDIR "$x"
_ACEOF

	x="${sbindir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SBINDIR "$x"
_ACEOF

	x="${sysconfdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SYSCONFDIR "$x"
_ACEOF





# Check whether --enable-developer was given.
if test "${enable_developer+set}" = set; then
  enableval=$enable_developer;
fi

if test "X$enable_developer" = Xyes; then
    dwflags="-Werror"
fi

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi






ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/editline/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile packages/debian/Makefile doc/Makefile tools/Makefile"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"versionscript\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"versionscript\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP_MODULE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OPENLDAP_MODULE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PKINIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PKINIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_err_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_vis_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_glob_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_cgetent\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_cgetent\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_socket_wrapper\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_socket_wrapper\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OTP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"CATMAN\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_X\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KCM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KCM\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"el_compat\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"COM_ERR\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"COM_ERR\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi

: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
        test -d "$1/.";
      else
	case $1 in
        -*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1

# Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Heimdal $as_me 1.1, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
		   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
		   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Report bugs to <bug-autoconf@@gnu.org>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
Heimdal config.status 1.1
configured by $0, generated by GNU Autoconf 2.61,
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    { echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  CONFIG_SHELL=$SHELL
  export CONFIG_SHELL
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;;
    "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;;
    "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    "lib/45/Makefile") CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
    "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
    "lib/auth/afskauthlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
    "lib/auth/pam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
    "lib/auth/sia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
    "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
    "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
    "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;;
    "lib/editline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
    "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;;
    "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
    "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;;
    "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
    "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
    "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
    "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
    "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
    "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
    "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
    "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
    "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
    "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
    "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
    "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
    "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;;
    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
    "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
    "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
    "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
    "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
    "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
    "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;;
    "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
    "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
    "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
    "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
    "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
    "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
    "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
    "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
    "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
    "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
    "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
    "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
    "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
    "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
    "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
    "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;;
    "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
    "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;;
    "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;;
    "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;;
    "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;;
    "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;;
    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;;
    "packages/debian/Makefile") CONFIG_FILES="$CONFIG_FILES packages/debian/Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;

  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

#
# Set up the sed scripts for CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "$CONFIG_FILES"; then

_ACEOF



ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
SHELL!$SHELL$ac_delim
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
exec_prefix!$exec_prefix$ac_delim
prefix!$prefix$ac_delim
program_transform_name!$program_transform_name$ac_delim
bindir!$bindir$ac_delim
sbindir!$sbindir$ac_delim
libexecdir!$libexecdir$ac_delim
datarootdir!$datarootdir$ac_delim
datadir!$datadir$ac_delim
sysconfdir!$sysconfdir$ac_delim
sharedstatedir!$sharedstatedir$ac_delim
localstatedir!$localstatedir$ac_delim
includedir!$includedir$ac_delim
oldincludedir!$oldincludedir$ac_delim
docdir!$docdir$ac_delim
infodir!$infodir$ac_delim
htmldir!$htmldir$ac_delim
dvidir!$dvidir$ac_delim
pdfdir!$pdfdir$ac_delim
psdir!$psdir$ac_delim
libdir!$libdir$ac_delim
localedir!$localedir$ac_delim
mandir!$mandir$ac_delim
DEFS!$DEFS$ac_delim
ECHO_C!$ECHO_C$ac_delim
ECHO_N!$ECHO_N$ac_delim
ECHO_T!$ECHO_T$ac_delim
LIBS!$LIBS$ac_delim
build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
INSTALL_DATA!$INSTALL_DATA$ac_delim
am__isrc!$am__isrc$ac_delim
CYGPATH_W!$CYGPATH_W$ac_delim
PACKAGE!$PACKAGE$ac_delim
VERSION!$VERSION$ac_delim
ACLOCAL!$ACLOCAL$ac_delim
AUTOCONF!$AUTOCONF$ac_delim
AUTOMAKE!$AUTOMAKE$ac_delim
AUTOHEADER!$AUTOHEADER$ac_delim
MAKEINFO!$MAKEINFO$ac_delim
install_sh!$install_sh$ac_delim
STRIP!$STRIP$ac_delim
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
mkdir_p!$mkdir_p$ac_delim
AWK!$AWK$ac_delim
SET_MAKE!$SET_MAKE$ac_delim
am__leading_dot!$am__leading_dot$ac_delim
AMTAR!$AMTAR$ac_delim
am__tar!$am__tar$ac_delim
am__untar!$am__untar$ac_delim
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
MAINT!$MAINT$ac_delim
CC!$CC$ac_delim
CFLAGS!$CFLAGS$ac_delim
LDFLAGS!$LDFLAGS$ac_delim
CPPFLAGS!$CPPFLAGS$ac_delim
ac_ct_CC!$ac_ct_CC$ac_delim
EXEEXT!$EXEEXT$ac_delim
OBJEXT!$OBJEXT$ac_delim
CPP!$CPP$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
build_os!$build_os$ac_delim
host!$host$ac_delim
host_cpu!$host_cpu$ac_delim
host_vendor!$host_vendor$ac_delim
host_os!$host_os$ac_delim
CANONICAL_HOST!$CANONICAL_HOST$ac_delim
YACC!$YACC$ac_delim
YFLAGS!$YFLAGS$ac_delim
LEX!$LEX$ac_delim
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
LEXLIB!$LEXLIB$ac_delim
LN_S!$LN_S$ac_delim
GREP!$GREP$ac_delim
EGREP!$EGREP$ac_delim
ECHO!$ECHO$ac_delim
AR!$AR$ac_delim
RANLIB!$RANLIB$ac_delim
CXX!$CXX$ac_delim
CXXFLAGS!$CXXFLAGS$ac_delim
ac_ct_CXX!$ac_ct_CXX$ac_delim
CXXCPP!$CXXCPP$ac_delim
F77!$F77$ac_delim
FFLAGS!$FFLAGS$ac_delim
ac_ct_F77!$ac_ct_F77$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
LIBTOOL!$LIBTOOL$ac_delim
ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
VERSIONING!$VERSIONING$ac_delim
versionscript_TRUE!$versionscript_TRUE$ac_delim
versionscript_FALSE!$versionscript_FALSE$ac_delim
LDFLAGS_VERSION_SCRIPT!$LDFLAGS_VERSION_SCRIPT$ac_delim
INCLUDE_openldap!$INCLUDE_openldap$ac_delim
LIB_openldap!$LIB_openldap$ac_delim
OPENLDAP_MODULE_TRUE!$OPENLDAP_MODULE_TRUE$ac_delim
OPENLDAP_MODULE_FALSE!$OPENLDAP_MODULE_FALSE$ac_delim
PKINIT_TRUE!$PKINIT_TRUE$ac_delim
PKINIT_FALSE!$PKINIT_FALSE$ac_delim
DIR_hdbdir!$DIR_hdbdir$ac_delim
INCLUDE_krb4!$INCLUDE_krb4$ac_delim
LIB_krb4!$LIB_krb4$ac_delim
KRB4_TRUE!$KRB4_TRUE$ac_delim
KRB4_FALSE!$KRB4_FALSE$ac_delim
KRB5_TRUE!$KRB5_TRUE$ac_delim
KRB5_FALSE!$KRB5_FALSE$ac_delim
do_roken_rename_TRUE!$do_roken_rename_TRUE$ac_delim
do_roken_rename_FALSE!$do_roken_rename_FALSE$ac_delim
LIB_kdb!$LIB_kdb$ac_delim
HAVE_OPENSSL_TRUE!$HAVE_OPENSSL_TRUE$ac_delim
HAVE_OPENSSL_FALSE!$HAVE_OPENSSL_FALSE$ac_delim
DIR_hcrypto!$DIR_hcrypto$ac_delim
INCLUDE_hcrypto!$INCLUDE_hcrypto$ac_delim
LIB_hcrypto!$LIB_hcrypto$ac_delim
LIB_hcrypto_a!$LIB_hcrypto_a$ac_delim
LIB_hcrypto_so!$LIB_hcrypto_so$ac_delim
LIB_hcrypto_appl!$LIB_hcrypto_appl$ac_delim
PTHREADS_CFLAGS!$PTHREADS_CFLAGS$ac_delim
PTHREADS_LIBS!$PTHREADS_LIBS$ac_delim
DCE_TRUE!$DCE_TRUE$ac_delim
DCE_FALSE!$DCE_FALSE$ac_delim
dpagaix_cflags!$dpagaix_cflags$ac_delim
dpagaix_ldadd!$dpagaix_ldadd$ac_delim
dpagaix_ldflags!$dpagaix_ldflags$ac_delim
LIB_db_create!$LIB_db_create$ac_delim
LIB_dbopen!$LIB_dbopen$ac_delim
LIB_dbm_firstkey!$LIB_dbm_firstkey$ac_delim
HAVE_DB1_TRUE!$HAVE_DB1_TRUE$ac_delim
HAVE_DB1_FALSE!$HAVE_DB1_FALSE$ac_delim
HAVE_DB3_TRUE!$HAVE_DB3_TRUE$ac_delim
HAVE_DB3_FALSE!$HAVE_DB3_FALSE$ac_delim
HAVE_NDBM_TRUE!$HAVE_NDBM_TRUE$ac_delim
HAVE_NDBM_FALSE!$HAVE_NDBM_FALSE$ac_delim
DBLIB!$DBLIB$ac_delim
LIB_NDBM!$LIB_NDBM$ac_delim
WFLAGS!$WFLAGS$ac_delim
WFLAGS_NOUNUSED!$WFLAGS_NOUNUSED$ac_delim
WFLAGS_NOIMPLICITINT!$WFLAGS_NOIMPLICITINT$ac_delim
VOID_RETSIGTYPE!$VOID_RETSIGTYPE$ac_delim
have_err_h_TRUE!$have_err_h_TRUE$ac_delim
have_err_h_FALSE!$have_err_h_FALSE$ac_delim
have_ifaddrs_h_TRUE!$have_ifaddrs_h_TRUE$ac_delim
have_ifaddrs_h_FALSE!$have_ifaddrs_h_FALSE$ac_delim
have_vis_h_TRUE!$have_vis_h_TRUE$ac_delim
have_vis_h_FALSE!$have_vis_h_FALSE$ac_delim
LIB_socket!$LIB_socket$ac_delim
LIB_gethostbyname!$LIB_gethostbyname$ac_delim
LIB_syslog!$LIB_syslog$ac_delim
LIB_gethostbyname2!$LIB_gethostbyname2$ac_delim
LIB_res_search!$LIB_res_search$ac_delim
LIB_res_nsearch!$LIB_res_nsearch$ac_delim
LIB_res_ndestroy!$LIB_res_ndestroy$ac_delim
LIB_dn_expand!$LIB_dn_expand$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
have_glob_h_TRUE!$have_glob_h_TRUE$ac_delim
have_glob_h_FALSE!$have_glob_h_FALSE$ac_delim
have_cgetent_TRUE!$have_cgetent_TRUE$ac_delim
have_cgetent_FALSE!$have_cgetent_FALSE$ac_delim
LIB_getsockopt!$LIB_getsockopt$ac_delim
LIB_setsockopt!$LIB_setsockopt$ac_delim
LIB_hstrerror!$LIB_hstrerror$ac_delim
LIB_bswap16!$LIB_bswap16$ac_delim
LIB_bswap32!$LIB_bswap32$ac_delim
LIB_pidfile!$LIB_pidfile$ac_delim
LIB_getaddrinfo!$LIB_getaddrinfo$ac_delim
LIB_getnameinfo!$LIB_getnameinfo$ac_delim
LIB_freeaddrinfo!$LIB_freeaddrinfo$ac_delim
LIB_gai_strerror!$LIB_gai_strerror$ac_delim
have_fnmatch_h_TRUE!$have_fnmatch_h_TRUE$ac_delim
have_fnmatch_h_FALSE!$have_fnmatch_h_FALSE$ac_delim
LIB_crypt!$LIB_crypt$ac_delim
have_socket_wrapper_TRUE!$have_socket_wrapper_TRUE$ac_delim
have_socket_wrapper_FALSE!$have_socket_wrapper_FALSE$ac_delim
DIR_roken!$DIR_roken$ac_delim
LIB_roken!$LIB_roken$ac_delim
INCLUDES_roken!$INCLUDES_roken$ac_delim
LIBADD_roken!$LIBADD_roken$ac_delim
LIB_otp!$LIB_otp$ac_delim
OTP_TRUE!$OTP_TRUE$ac_delim
OTP_FALSE!$OTP_FALSE$ac_delim
LIB_security!$LIB_security$ac_delim
NROFF!$NROFF$ac_delim
GROFF!$GROFF$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
CATMAN!$CATMAN$ac_delim
CATMAN_TRUE!$CATMAN_TRUE$ac_delim
CATMAN_FALSE!$CATMAN_FALSE$ac_delim
CATMANEXT!$CATMANEXT$ac_delim
INCLUDE_readline!$INCLUDE_readline$ac_delim
LIB_readline!$LIB_readline$ac_delim
INCLUDE_hesiod!$INCLUDE_hesiod$ac_delim
LIB_hesiod!$LIB_hesiod$ac_delim
AIX_TRUE!$AIX_TRUE$ac_delim
AIX_FALSE!$AIX_FALSE$ac_delim
AIX4_TRUE!$AIX4_TRUE$ac_delim
AIX4_FALSE!$AIX4_FALSE$ac_delim
LIB_dlopen!$LIB_dlopen$ac_delim
HAVE_DLOPEN_TRUE!$HAVE_DLOPEN_TRUE$ac_delim
HAVE_DLOPEN_FALSE!$HAVE_DLOPEN_FALSE$ac_delim
LIB_loadquery!$LIB_loadquery$ac_delim
AIX_DYNAMIC_AFS_TRUE!$AIX_DYNAMIC_AFS_TRUE$ac_delim
AIX_DYNAMIC_AFS_FALSE!$AIX_DYNAMIC_AFS_FALSE$ac_delim
AIX_EXTRA_KAFS!$AIX_EXTRA_KAFS$ac_delim
IRIX_TRUE!$IRIX_TRUE$ac_delim
IRIX_FALSE!$IRIX_FALSE$ac_delim
XMKMF!$XMKMF$ac_delim
X_CFLAGS!$X_CFLAGS$ac_delim
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
X_LIBS!$X_LIBS$ac_delim
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
HAVE_X_TRUE!$HAVE_X_TRUE$ac_delim
HAVE_X_FALSE!$HAVE_X_FALSE$ac_delim
LIB_XauWriteAuth!$LIB_XauWriteAuth$ac_delim
LIB_XauReadAuth!$LIB_XauReadAuth$ac_delim
LIB_XauFileName!$LIB_XauFileName$ac_delim
NEED_WRITEAUTH_TRUE!$NEED_WRITEAUTH_TRUE$ac_delim
NEED_WRITEAUTH_FALSE!$NEED_WRITEAUTH_FALSE$ac_delim
LIB_logwtmp!$LIB_logwtmp$ac_delim
LIB_logout!$LIB_logout$ac_delim
LIB_openpty!$LIB_openpty$ac_delim
LIB_tgetent!$LIB_tgetent$ac_delim
LIB_getpwnam_r!$LIB_getpwnam_r$ac_delim
LIB_door_create!$LIB_door_create$ac_delim
KCM_TRUE!$KCM_TRUE$ac_delim
KCM_FALSE!$KCM_FALSE$ac_delim
FRAMEWORK_SECURITY_TRUE!$FRAMEWORK_SECURITY_TRUE$ac_delim
FRAMEWORK_SECURITY_FALSE!$FRAMEWORK_SECURITY_FALSE$ac_delim
LIB_el_init!$LIB_el_init$ac_delim
el_compat_TRUE!$el_compat_TRUE$ac_delim
el_compat_FALSE!$el_compat_FALSE$ac_delim
COMPILE_ET!$COMPILE_ET$ac_delim
COM_ERR_TRUE!$COM_ERR_TRUE$ac_delim
COM_ERR_FALSE!$COM_ERR_FALSE$ac_delim
DIR_com_err!$DIR_com_err$ac_delim
LIB_com_err!$LIB_com_err$ac_delim
LIB_com_err_a!$LIB_com_err_a$ac_delim
LIB_com_err_so!$LIB_com_err_so$ac_delim
LIB_AUTH_SUBDIRS!$LIB_AUTH_SUBDIRS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b end
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
:end
s/|#_!!_#|//g
CEOF$ac_eof
_ACEOF


# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@@srcdir@@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF
fi # test -n "$CONFIG_FILES"


for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      ac_file_inputs="$ac_file_inputs $ac_f"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input="Generated from "`IFS=:
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    fi

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin";;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

case `sed -n '/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF
  sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s&@@configure_input@@&$configure_input&;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out"; rm -f "$tmp/out";;
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  esac
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
_ACEOF

# Transform confdefs.h into a sed script `conftest.defines', that
# substitutes the proper values into config.h.in to produce config.h.
rm -f conftest.defines conftest.tail
# First, append a space to every undef/define line, to ease matching.
echo 's/$/ /' >conftest.defines
# Then, protect against being on the right side of a sed subst, or in
# an unquoted here document, in config.status.  If some macros were
# called several times there might be several #defines for the same
# symbol, which is useless.  But do not sort them, since the last
# AC_DEFINE must be honored.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
# NAME is the cpp macro being defined, VALUE is the value it is being given.
# PARAMS is the parameter list in the macro definition--in most cases, it's
# just an empty string.
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
ac_dB='\\)[	 (].*,\\1define\\2'
ac_dC=' '
ac_dD=' ,'

uniq confdefs.h |
  sed -n '
	t rset
	:rset
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
	t ok
	d
	:ok
	s/[\\&,]/\\&/g
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  ' >>conftest.defines

# Remove the space that was appended to ease matching.
# Then replace #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
# (The regexp can be short, since the line contains either #define or #undef.)
echo 's/ $//
s,^[	 #]*u.*,/* & */,' >>conftest.defines

# Break up conftest.defines:
ac_max_sed_lines=50

# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
# et cetera.
ac_in='$ac_file_inputs'
ac_out='"$tmp/out1"'
ac_nxt='"$tmp/out2"'

while :
do
  # Write a here document:
    cat >>$CONFIG_STATUS <<_ACEOF
    # First, check the format of the line:
    cat >"\$tmp/defines.sed" <<\\CEOF
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
b
:def
_ACEOF
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  grep . conftest.tail >/dev/null || break
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines conftest.tail

echo "ac_result=$ac_in" >>$CONFIG_STATUS
cat >>$CONFIG_STATUS <<\_ACEOF
  if test x"$ac_file" != x-; then
    echo "/* $configure_input  */" >"$tmp/config.h"
    cat "$ac_result" >>"$tmp/config.h"
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f $ac_file
      mv "$tmp/config.h" $ac_file
    fi
  else
    echo "/* $configure_input  */"
    cat "$ac_result"
  fi
  rm -f "$tmp/out12"
# Compute $ac_file's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $ac_file | $ac_file:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X$ac_file : 'X\(//\)[^/]' \| \
	 X$ac_file : 'X\(//\)$' \| \
	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
echo X$ac_file |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;


  esac

done # for ac_tag


{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi



cat > include/newversion.h.in <<EOF
const char *heimdal_long_version = "@@(#)\$Version: $PACKAGE_STRING by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
const char *heimdal_version = "Heimdal 1.1";
EOF

if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
	echo "include/version.h is unchanged"
	rm -f include/newversion.h.in
else
 	echo "creating include/version.h"
 	User=${USER-${LOGNAME}}
 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
 	Date=`date`
	mv -f include/newversion.h.in include/version.h.in
	sed -e "s/@@USER@@/$User/" -e "s/@@HOST@@/$Host/" -e "s/@@DATE@@/$Date/" include/version.h.in > include/version.h
fi
@


1.2
log
@SVN rev 233294 on 2012-03-22 08:48:42Z by stas

- Update FreeBSD Heimdal distribution to version 1.5.1.  This also brings
  several new kerberos related libraries and applications to FreeBSD:
  o kgetcred(1) allows one to manually get a ticket for a particular service.
  o kf(1) securily forwards ticket to another host through an authenticated
    and encrypted stream.
  o kcc(1) is an umbrella program around klist(1), kswitch(1), kgetcred(1)
    and other user kerberos operations. klist and kswitch are just symlinks
    to kcc(1) now.
  o kswitch(1) allows you to easily switch between kerberos credentials if
    you're running KCM.
  o hxtool(1) is a certificate management tool to use with PKINIT.
  o string2key(1) maps a password into key.
  o kdigest(8) is a userland tool to access the KDC's digest interface.
  o kimpersonate(8) creates a "fake" ticket for a service.

  We also now install manpages for some lirbaries that were not installed
  before, libheimntlm and libhx509.

- The new HEIMDAL version no longer supports Kerberos 4.  All users are
  recommended to switch to Kerberos 5.

- Weak ciphers are now disabled by default.  To enable DES support (used
  by telnet(8)), use "allow_weak_crypto" option in krb5.conf.

- libtelnet, pam_ksu and pam_krb5 are now compiled with error on warnings
  disabled due to the function they use (krb5_get_err_text(3)) being
  deprecated.  I plan to work on this next.

- Heimdal's KDC now require sqlite to operate.  We use the bundled version
  and install it as libheimsqlite.  If some other FreeBSD components will
  require it in the future we can rename it to libbsdsqlite and use for these
  components as well.

- This is not a latest Heimdal version, the new one was released while I was
  working on the update.  I will update it to 1.5.2 soon, as it fixes some
  important bugs and security issues.
@
text
@d4 1
a4 1
# Generated by GNU Autoconf 2.65 for Heimdal 1.5.1.
d566 2
a567 2
PACKAGE_VERSION='1.5.1'
PACKAGE_STRING='Heimdal 1.5.1'
d1538 1
a1538 1
\`configure' configures Heimdal 1.5.1 to adapt to many kinds of systems.
d1612 1
a1612 1
     short | recursive ) echo "Configuration of Heimdal 1.5.1:";;
d1801 1
a1801 1
Heimdal configure 1.5.1
d2255 1
a2255 1
It was created by Heimdal $as_me 1.5.1, which was
d3071 1
a3071 1
 VERSION='1.5.1'
d29249 1
a29249 1
This file was extended by Heimdal $as_me 1.5.1, which was
d29315 1
a29315 1
Heimdal config.status 1.5.1
d31287 1
a31287 1
VERSION_HIDDEN const char *heimdal_version = "Heimdal 1.5.1";
@


1.1
log
@Initial revision
@
text
@d2 10
a11 20

# From configure.in Revision: 1.215 





# Like AC_CONFIG_HEADER, but automatically create stamp file.



# Do all the work for Automake.  This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.

# serial 1




a12 1
# Check to make sure that the build environment is sane.
d14 23
d39 37
d77 8
d87 18
d106 23
d130 139
d270 7
d278 15
d294 38
d334 129
d464 12
d477 26
d504 6
d511 22
d534 2
d537 2
d540 1
d543 2
a544 61
# serial 25 AM_PROG_LIBTOOL


# AM_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AM_ENABLE_SHARED[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.


# AM_DISABLE_SHARED - set the default shared flag to --disable-shared


# AM_DISABLE_STATIC - set the default static flag to --disable-static


# AM_ENABLE_STATIC - implement the --enable-static flag
# Usage: AM_ENABLE_STATIC[(DEFAULT)]
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
#   `yes'.



# AM_PROG_LD - find the path to the GNU or non-GNU linker




# AM_PROG_NM - find the path to a BSD-compatible name lister


















# Define a conditional.














d546 4
d551 11
d563 44
a607 72





























































# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
d609 389
a997 46
ac_help="$ac_help
  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)"
ac_help="$ac_help
  --enable-shared[=PKGS]  build shared libraries [default=no]"
ac_help="$ac_help
  --enable-static[=PKGS]  build static libraries [default=yes]"
ac_help="$ac_help
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
ac_help="$ac_help
  --without-berkeley-db   if you don't want berkeley db"
ac_help="$ac_help
  --with-krb4=dir                use krb4 in dir"
ac_help="$ac_help
  --with-krb4-lib=dir            use krb4 libraries in dir"
ac_help="$ac_help
  --with-krb4-include=dir        use krb4 headers in dir"
ac_help="$ac_help
  --enable-kaserver	  if you want the KDC to try to emulate a kaserver"
ac_help="$ac_help
  --enable-kaserver-db	  if you want support for reading kaserver databases in hprop"
ac_help="$ac_help
  --disable-otp          if you don't want OTP support"
ac_help="$ac_help
  --enable-osfc2          enable some OSF C2 support"
ac_help="$ac_help
  --with-readline=dir                use readline in dir"
ac_help="$ac_help
  --with-readline-lib=dir            use readline libraries in dir"
ac_help="$ac_help
  --with-readline-include=dir        use readline headers in dir"
ac_help="$ac_help
  --with-hesiod=dir                use hesiod in dir"
ac_help="$ac_help
  --with-hesiod-lib=dir            use hesiod libraries in dir"
ac_help="$ac_help
  --with-hesiod-include=dir        use hesiod headers in dir"
ac_help="$ac_help
  --enable-bigendian	the target is big endian"
ac_help="$ac_help
  --enable-littleendian	the target is little endian"
ac_help="$ac_help
  --with-x                use the X Window System"
ac_help="$ac_help
  --enable-netinfo      enable netinfo for configuration lookup"
ac_help="$ac_help
  --without-ipv6	do not enable IPv6 support"
d1000 4
d1006 1
a1006 2
build=NONE
cache_file=./config.cache
a1007 1
host=NONE
a1008 1
nonopt=NONE
a1016 1
target=NONE
d1020 7
d1030 2
a1031 1
datadir='${prefix}/share'
a1034 1
libdir='${exec_prefix}/lib'
d1037 9
a1045 9
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
d1048 1
a1050 1

d1053 1
a1053 1
    eval "$ac_prev=\$ac_option"
d1058 3
a1060 3
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
d1065 3
a1067 1
  case "$ac_option" in
d1072 1
a1072 1
    bindir="$ac_optarg" ;;
d1075 1
a1075 1
    ac_prev=build ;;
d1077 1
a1077 1
    build="$ac_optarg" ;;
d1084 1
a1084 1
    cache_file="$ac_optarg" ;;
d1086 4
a1089 1
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
d1091 9
a1099 3
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;
d1102 1
a1102 1
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
d1104 22
a1125 5
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
d1128 1
a1128 1
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
d1130 10
a1139 7
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
d1141 1
a1141 1
    eval "enable_${ac_feature}='$ac_optarg'" ;;
d1150 1
a1150 1
    exec_prefix="$ac_optarg" ;;
d1156 6
a1161 54
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;
d1164 1
a1164 1
    ac_prev=host ;;
d1166 7
a1172 1
    host="$ac_optarg" ;;
d1179 1
a1179 1
    includedir="$ac_optarg" ;;
d1184 1
a1184 1
    infodir="$ac_optarg" ;;
d1189 1
a1189 1
    libdir="$ac_optarg" ;;
d1196 6
a1201 1
    libexecdir="$ac_optarg" ;;
d1204 1
a1204 2
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
d1207 2
a1208 3
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;
d1213 1
a1213 1
    mandir="$ac_optarg" ;;
d1220 1
a1220 1
  | --no-cr | --no-c)
d1234 1
a1234 1
    oldincludedir="$ac_optarg" ;;
d1239 1
a1239 1
    prefix="$ac_optarg" ;;
d1246 1
a1246 1
    program_prefix="$ac_optarg" ;;
d1253 1
a1253 1
    program_suffix="$ac_optarg" ;;
d1270 11
a1280 1
    program_transform_name="$ac_optarg" ;;
d1290 1
a1290 1
    sbindir="$ac_optarg" ;;
d1301 1
a1301 1
    sharedstatedir="$ac_optarg" ;;
d1306 1
a1306 1
    site="$ac_optarg" ;;
d1311 1
a1311 1
    srcdir="$ac_optarg" ;;
d1318 1
a1318 1
    sysconfdir="$ac_optarg" ;;
d1321 1
a1321 1
    ac_prev=target ;;
d1323 1
a1323 1
    target="$ac_optarg" ;;
d1328 2
a1329 3
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
d1332 1
a1332 1
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
d1334 10
a1343 7
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
d1345 1
a1345 1
    eval "with_${ac_package}='$ac_optarg'" ;;
d1348 1
a1348 1
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
d1350 12
a1361 5
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
d1372 1
a1372 1
    x_includes="$ac_optarg" ;;
d1379 1
a1379 1
    x_libraries="$ac_optarg" ;;
d1381 2
a1382 1
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
d1385 10
d1396 5
a1400 7
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
d1407 2
a1408 1
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
d1411 6
a1416 14
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
a1417 6
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
d1419 5
a1423 4
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
d1425 11
a1435 8
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
d1437 1
d1440 30
a1469 9
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
a1470 8
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=lib/krb5/send_to_kdc.c
d1475 24
a1498 4
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
d1500 1
a1500 1
  if test ! -r $srcdir/$ac_unique_file; then
d1506 24
a1529 8
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
d1531 379
a1909 6
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
d1911 594
d2506 7
a2512 3
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
d2518 10
a2527 2
  echo "loading cache $cache_file"
  . $cache_file
d2529 68
a2596 3
  echo "creating cache $cache_file"
  > $cache_file
fi
a2598 1
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
d2600 4
a2603 17
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi
d2606 1
d2610 1
d2613 8
a2620 10
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
d2623 1
a2623 1
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
d2625 9
a2633 3
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
d2642 1
d2646 1
d2648 3
a2650 2
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:776: checking for a BSD compatible install" >&5
d2652 2
a2653 2
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2655 5
a2659 2
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  for ac_dir in $PATH; do
d2661 12
a2672 8
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if test -f $ac_dir/$ac_prog; then
d2674 1
a2674 1
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
d2677 4
d2682 12
a2693 2
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
d2697 4
a2700 2
      ;;
    esac
d2702 3
a2704 1
  IFS="$ac_save_IFS"
d2708 1
a2708 1
    INSTALL="$ac_cv_path_install"
d2710 2
a2711 2
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
d2713 2
a2714 2
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
d2717 2
a2718 1
echo "$ac_t""$INSTALL" 1>&6
d2724 1
a2724 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
d2728 2
a2729 2
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
echo "configure:829: checking whether build environment is sane" >&5
d2732 14
a2745 1
echo timestamp > conftestfile
d2752 1
a2752 1
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
d2755 1
a2755 1
      set X `ls -t $srcdir/configure conftestfile`
d2757 3
a2759 2
   if test "$*" != "X $srcdir/configure conftestfile" \
      && test "$*" != "X conftestfile $srcdir/configure"; then
d2765 2
a2766 2
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" 1>&2; exit 1; }
d2769 1
a2769 1
   test "$2" = conftestfile
d2775 2
a2776 14
   { echo "configure: error: newly created file is older than distributed files!
Check your system clock" 1>&2; exit 1; }
fi
rm -f conftest*
echo "$ac_t""yes" 1>&6
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF_SED > conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  rm -f conftestsed
d2778 2
d2781 1
a2781 1
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
d2784 76
a2859 1
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
a2860 2
# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
d2862 9
a2870 5
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:886: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2872 2
a2873 8
  cat > conftestmake <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
d2875 15
a2889 1
  eval ac_cv_prog_make_${ac_make}_set=no
a2890 1
rm -f conftestmake
d2892 4
a2895 3
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  SET_MAKE=
d2897 2
a2898 2
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
d2901 14
d2916 2
a2917 1
PACKAGE=heimdal
d2919 25
a2943 1
VERSION=0.2m
a2944 2
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
a2945 3
cat >> confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
d2947 13
a2959 3
cat >> confdefs.h <<EOF
#define VERSION "$VERSION"
EOF
d2961 5
d2967 26
d2994 6
a2999 61
missing_dir=`cd $ac_aux_dir && pwd`
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
echo "configure:932: checking for working aclocal" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
   ACLOCAL=aclocal
   echo "$ac_t""found" 1>&6
else
   ACLOCAL="$missing_dir/missing aclocal"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
echo "configure:945: checking for working autoconf" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
   AUTOCONF=autoconf
   echo "$ac_t""found" 1>&6
else
   AUTOCONF="$missing_dir/missing autoconf"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working automake""... $ac_c" 1>&6
echo "configure:958: checking for working automake" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (automake --version) < /dev/null > /dev/null 2>&1; then
   AUTOMAKE=automake
   echo "$ac_t""found" 1>&6
else
   AUTOMAKE="$missing_dir/missing automake"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
echo "configure:971: checking for working autoheader" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
   AUTOHEADER=autoheader
   echo "$ac_t""found" 1>&6
else
   AUTOHEADER="$missing_dir/missing autoheader"
   echo "$ac_t""missing" 1>&6
fi

echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
echo "configure:984: checking for working makeinfo" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf.  Sigh.
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
   MAKEINFO=makeinfo
   echo "$ac_t""found" 1>&6
d3001 2
a3002 2
   MAKEINFO="$missing_dir/missing makeinfo"
   echo "$ac_t""missing" 1>&6
d3006 2
d3009 30
d3040 18
d3059 7
a3065 4

# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
a3067 2
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:1007: checking host system type" >&5
d3069 3
a3071 11
host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac
a3072 5
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
d3074 3
a3076 1
CANONICAL_HOST=$host
d3079 41
a3119 16
sunos=no
case "$host" in 
*-*-sunos4*)
	sunos=40
	;;
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2*)
	sunos=50
	;;
esac
if test "$sunos" != no; then
	cat >> confdefs.h <<EOF
#define SunOS $sunos
EOF
d3121 8
d3131 45
a3175 9
aix=no
case "$host" in 
*-*-aix3*)
	aix=3
	;;
*-*-aix4*)
	aix=4
	;;
esac
a3176 1
#test -z "$CFLAGS" && CFLAGS="-g"
d3178 4
a3181 1
# Extract the first word of "gcc", so it can be a program name with args.
d3183 57
a3239 4
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1064: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3244 12
a3255 8
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
d3257 2
a3258 1
  IFS="$ac_save_ifs"
d3261 1
a3261 1
CC="$ac_cv_prog_CC"
d3263 2
a3264 1
  echo "$ac_t""$CC" 1>&6
d3266 2
a3267 1
  echo "$ac_t""no" 1>&6
d3270 3
d3276 4
a3279 4
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1094: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a3283 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
d3285 16
a3300 11
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
d3302 2
a3303 1
  IFS="$ac_save_ifs"
d3308 1
a3308 1
  if test $# -gt 0; then
d3313 1
a3313 3
    set dummy "$ac_dir/$ac_word" "$@@"
    shift
    ac_cv_prog_CC="$@@"
d3318 1
a3318 1
CC="$ac_cv_prog_CC"
d3320 2
a3321 1
  echo "$ac_t""$CC" 1>&6
d3323 2
a3324 1
  echo "$ac_t""no" 1>&6
d3327 12
a3338 9
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1145: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3343 12
a3354 8
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
d3356 2
a3357 1
  IFS="$ac_save_ifs"
d3360 1
a3360 1
CC="$ac_cv_prog_CC"
d3362 2
a3363 1
  echo "$ac_t""$CC" 1>&6
d3365 7
a3371 1
  echo "$ac_t""no" 1>&6
d3373 24
a3396 2
 ;;
    esac
d3398 13
a3410 1
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
a3412 2
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d3414 15
a3428 6
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
d3430 1
a3430 1
cat > conftest.$ac_ext << EOF
a3431 2
#line 1188 "configure"
#include "confdefs.h"
d3433 24
a3456 9
main(){return(0);}
EOF
if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
d3458 133
d3592 65
a3656 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
d3658 41
a3698 29
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:1224: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
d3700 7
a3706 1
  ac_cv_prog_gcc=no
d3708 1
d3710 11
d3722 18
a3739 1
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
d3741 4
a3744 1
if test $ac_cv_prog_gcc = yes; then
d3749 38
a3787 7
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3789 14
a3802 2
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
a3803 2
else
  ac_cv_prog_cc_g=no
d3805 6
a3810 2
rm -f conftest*

d3812 2
a3813 2

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
d3815 1
a3815 1
  CFLAGS="$ac_save_CFLAGS"
d3829 31
d3861 40
a3901 28
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:1285: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1290 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
EOF
if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_cygwin=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_cygwin=no
fi
rm -f conftest*
rm -f conftest*
d3903 14
a3917 21
echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
echo "configure:1318: checking for object suffix" >&5
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftest*
echo 'int i = 1;' > conftest.$ac_ext
if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  for ac_file in conftest.*; do
    case $ac_file in
    *.c) ;;
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
    esac
  done
else
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
fi
rm -f conftest*
d3920 119
a4038 3
echo "$ac_t""$ac_cv_objext" 1>&6
OBJEXT=$ac_cv_objext
ac_objext=$ac_cv_objext
d4040 52
a4091 8
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo "configure:1342: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1347 "configure"
#include "confdefs.h"
d4093 2
a4094 7
int main() {
return __MINGW32__;
; return 0; }
EOF
if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_mingw32=yes
d4096 1
a4096 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_mingw32=no
d4098 1
a4098 2
rm -f conftest*
rm -f conftest*
d4100 3
d4104 9
a4112 3
echo "$ac_t""$ac_cv_mingw32" 1>&6
MINGW32=
test "$ac_cv_mingw32" = yes && MINGW32=yes
d4115 3
a4117 4
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:1373: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4119 7
a4125 2
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  ac_cv_exeext=.exe
d4127 81
a4207 12
  rm -f conftest*
  echo 'int main () { return 0; }' > conftest.$ac_ext
  ac_cv_exeext=
  if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    for file in conftest.*; do
      case $file in
      *.c | *.o | *.obj) ;;
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
      esac
    done
  else
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
d4209 2
a4210 2
  rm -f conftest*
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
d4212 2
d4215 6
d4222 1
a4222 4
EXEEXT=""
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
echo "$ac_t""${ac_cv_exeext}" 1>&6
ac_exeext=$EXEEXT
d4224 1
d4226 12
a4237 29
for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1409: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_YACC="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
  echo "$ac_t""$YACC" 1>&6
else
  echo "$ac_t""no" 1>&6
a4239 3
test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
d4241 7
a4247 2
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1440: checking how to run the C preprocessor" >&5
d4253 2
a4254 2
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4256 10
a4265 3
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
d4267 12
a4278 12
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 1455 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
d4280 14
a4293 33
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 1472 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 1489 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
d4295 3
a4297 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP=/lib/cpp
d4299 7
a4305 1
rm -f conftest*
d4307 4
a4310 4
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
d4312 1
a4312 1
  CPP="$ac_cv_prog_CPP"
d4314 1
a4314 1
  ac_cv_prog_CPP="$CPP"
d4316 21
a4336 1
echo "$ac_t""$CPP" 1>&6
a4337 12
missing_dir=`cd $ac_aux_dir && pwd`
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1525: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
d4339 2
a4340 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_LEX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
d4342 11
a4352 4
fi
LEX="$ac_cv_prog_LEX"
if test -n "$LEX"; then
  echo "$ac_t""$LEX" 1>&6
d4354 3
a4356 1
  echo "$ac_t""no" 1>&6
d4358 1
a4359 1
test -n "$LEX" && break
d4361 3
a4363 1
test -n "$LEX" || LEX=""$missing_dir/missing flex""
a4364 26
# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1558: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_LEX="flex"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
fi
fi
LEX="$ac_cv_prog_LEX"
if test -n "$LEX"; then
  echo "$ac_t""$LEX" 1>&6
d4366 4
a4369 1
  echo "$ac_t""no" 1>&6
d4372 79
a4450 34
if test -z "$LEXLIB"
then
  case "$LEX" in
  flex*) ac_lib=fl ;;
  *) ac_lib=l ;;
  esac
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
echo "configure:1592: checking for yywrap in -l$ac_lib" >&5
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-l$ac_lib  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1600 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yywrap();

int main() {
yywrap()
; return 0; }
EOF
if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a4451 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d4454 80
a4533 6
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LEXLIB="-l$ac_lib"
else
  echo "$ac_t""no" 1>&6
fi
a4534 1
fi
a4535 17
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
echo "configure:1634: checking lex output file root" >&5
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # The minimal lex program is just a single line: %%.  But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
echo '%%
%%' | $LEX
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
fi
fi
a4536 2
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
a4537 17
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
echo "configure:1655: checking whether yytext is a pointer" >&5
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS="$LIBS"
LIBS="$LIBS $LEXLIB"
cat > conftest.$ac_ext <<EOF
#line 1667 "configure"
#include "confdefs.h"
`cat $LEX_OUTPUT_ROOT.c`
int main() {
a4538 12
; return 0; }
EOF
if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_prog_lex_yytext_pointer=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
rm -f "${LEX_OUTPUT_ROOT}.c"
a4539 1
fi
a4540 5
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
if test $ac_cv_prog_lex_yytext_pointer = yes; then
  cat >> confdefs.h <<\EOF
#define YYTEXT_POINTER 1
EOF
a4541 1
fi
d4543 44
a4586 17
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1698: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
d4588 2
d4591 2
a4592 10
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
d4594 3
a4596 20
for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1730: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AWK="$ac_prog"
      break
    fi
d4598 4
a4601 6
  IFS="$ac_save_ifs"
fi
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
  echo "$ac_t""$AWK" 1>&6
d4603 1
a4603 1
  echo "$ac_t""no" 1>&6
a4605 21
test -n "$AWK" && break
done

echo $ac_n "checking for ln -s or something else""... $ac_c" 1>&6
echo "configure:1760: checking for ln -s or something else" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  touch conftestdata1
  if ln conftestdata1 conftestdata2; then
    rm -f conftestdata*
    ac_cv_prog_LN_S=ln
  else
    ac_cv_prog_LN_S=cp
  fi
d4607 7
a4613 3
fi
LN_S="$ac_cv_prog_LN_S"
echo "$ac_t""$ac_cv_prog_LN_S" 1>&6
a4616 5
# Check whether --with-mips_abi or --without-mips_abi was given.
if test "${with_mips_abi+set}" = set; then
  withval="$with_mips_abi"
  :
fi
a4618 4
case "$host_os" in
irix*)
with_mips_abi="${with_mips_abi:-yes}"
if test -n "$GCC"; then
a4619 8
# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
#
# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
# GCC and revert back to O32. The same goes if O32 is asked for - old
# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
#
# Don't you just love *all* the different SGI ABIs?
a4620 20
case "${with_mips_abi}" in 
        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
        64) abi='-mabi=64';  abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
esac
if test -n "$abi" ; then
ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
echo $ac_n "checking if $CC supports the $abi option""... $ac_c" 1>&6
echo "configure:1815: checking if $CC supports the $abi option" >&5
if eval "test \"`echo '$''{'$ac_foo'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $abi"
cat > conftest.$ac_ext <<EOF
#line 1823 "configure"
#include "confdefs.h"
a4621 15
int main() {
int x;
; return 0; }
EOF
if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval $ac_foo=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval $ac_foo=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"
a4622 1
fi
a4623 11
ac_res=`eval echo \\\$$ac_foo`
echo "$ac_t""$ac_res" 1>&6
if test $ac_res = no; then
# Try to figure out why that failed...
case $abi in
	-mabi=32) 
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS -mabi=n32"
	cat > conftest.$ac_ext <<EOF
#line 1853 "configure"
#include "confdefs.h"
d4625 4
a4628 7
int main() {
int x;
; return 0; }
EOF
if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_res=yes
d4630 38
a4667 38
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_res=no
fi
rm -f conftest*
	CLAGS="$save_CFLAGS"
	if test $ac_res = yes; then
		# New GCC
		{ echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
	fi
	# Old GCC
	abi=''
	abilibdirext=''
	;;
	-mabi=n32|-mabi=64)
		if test $with_mips_abi = yes; then
			# Old GCC, default to O32
			abi=''
			abilibdirext=''
		else
			# Some broken GCC
			{ echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
		fi
	;;
esac
fi #if test $ac_res = no; then
fi #if test -n "$abi" ; then
else
case "${with_mips_abi}" in
        32|o32) abi='-32'; abilibdirext=''     ;;
       n32|yes) abi='-n32'; abilibdirext='32'  ;;
        64) abi='-64'; abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
esac
fi #if test -n "$GCC"; then
;;
d4670 8
a4677 31
CC="$CC $abi"
libdir="$libdir$abilibdirext"


echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
echo "configure:1909: checking for __attribute__" >&5
if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 1915 "configure"
#include "confdefs.h"

#include <stdlib.h>

int main() {

static void foo(void) __attribute__ ((noreturn));

static void
foo(void)
{
  exit(1);
}

; return 0; }
EOF
if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv___attribute__=yes
d4679 1
a4679 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv___attribute__=no
a4680 7
rm -f conftest*
fi

if test "$ac_cv___attribute__" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE___ATTRIBUTE__ 1
EOF
d4683 3
a4685 1
echo "$ac_t""$ac_cv___attribute__" 1>&6
d4688 25
a4712 7
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
d4714 15
a4728 6
  enable_shared=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_shared=yes
d4730 2
d4733 1
a4733 2
  IFS="$ac_save_ifs"
  ;;
d4735 9
d4745 1
a4745 1
  enable_shared=no
d4748 32
a4779 7
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
  enableval="$enable_static"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
d4781 15
a4795 6
  enable_static=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_static=yes
d4797 2
d4800 1
a4800 2
  IFS="$ac_save_ifs"
  ;;
d4802 9
d4812 4
a4815 1
  enable_static=yes
d4817 12
d4830 15
a4844 4
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
a4848 1

d4850 1
a4850 1
if test "$ac_cv_prog_gcc" = yes; then
d4852 20
a4871 8
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:2012: checking for ld used by GCC" >&5
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
  case "$ac_prog" in
  # Accept absolute paths.
  /* | [A-Za-z]:\\*)
    test -z "$LD" && LD="$ac_prog"
    ;;
d4882 2
a4883 2
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
echo "configure:2030: checking for GNU ld" >&5
d4885 2
a4886 2
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:2033: checking for non-GNU ld" >&5
d4888 2
a4889 2
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4892 1
a4892 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d4894 1
d4896 2
a4897 2
    if test -f "$ac_dir/$ac_prog"; then
      ac_cv_path_LD="$ac_dir/$ac_prog"
d4899 1
a4899 1
      # but apparently some GNU ld's only accept -v.
d4901 2
a4902 1
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
d4904 5
a4908 3
      else
        test "$with_gnu_ld" != yes && break
      fi
d4911 1
a4911 1
  IFS="$ac_save_ifs"
d4913 1
a4913 1
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
d4917 1
a4917 1
LD="$ac_cv_path_LD"
d4919 2
a4920 1
  echo "$ac_t""$LD" 1>&6
d4922 18
a4939 1
  echo "$ac_t""no" 1>&6
d4941 8
a4948 1
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
a4949 12
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo "configure:2069: checking if the linker ($LD) is GNU ld" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  ac_cv_prog_gnu_ld=yes
else
  ac_cv_prog_gnu_ld=no
fi
fi
a4950 1
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
d4953 4
a4956 4
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo "configure:2085: checking for BSD-compatible nm" >&5
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4960 1
a4960 1
  ac_cv_path_NM="$NM"
d4962 33
a4994 13
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/nm; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        ac_cv_path_NM="$ac_dir/nm -B"
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        ac_cv_path_NM="$ac_dir/nm -p"
      else
        ac_cv_path_NM="$ac_dir/nm"
d4996 2
a4997 2
      break
    fi
d4999 1
a4999 2
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
d5002 36
d5039 10
a5048 2
NM="$ac_cv_path_NM"
echo "$ac_t""$NM" 1>&6
d5051 13
a5063 4
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:2120: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5065 2
a5066 5
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
d5068 15
a5082 1
  ac_cv_prog_LN_S=ln
d5085 4
a5088 3
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
d5090 2
a5091 1
  echo "$ac_t""no" 1>&6
a5093 2
# Always use our own libtool.
LIBTOOL='$(top_builddir)/libtool'
d5095 15
a5109 7
# Check for any special flags to pass to ltconfig.
libtool_flags=
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
d5111 3
a5113 10
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$host" in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 2156 "configure"' > conftest.$ac_ext
  if { (eval echo configure:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
      LD="${LD-ld} -32"
d5115 2
a5116 5
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
a5119 2
  rm -rf conftest*
  ;;
d5121 5
a5125 5
*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  CFLAGS="$CFLAGS -belf"
  ;;
esac
a5126 10
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }

# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
a5129 12
WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi
d5132 19
a5150 7
berkeley_db=db
# Check whether --with-berkeley-db or --without-berkeley-db was given.
if test "${with_berkeley_db+set}" = set; then
  withval="$with_berkeley_db"
  
if test "$withval" = no; then
	berkeley_db=""
d5152 2
d5155 28
a5182 1
fi
d5184 6
d5191 10
d5202 4
a5205 5
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"
  :
fi
d5207 5
a5211 9
# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-krb4-lib" 1>&2; exit 1; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi
d5213 13
a5225 9
# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-krb4-include" 1>&2; exit 1; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi
d5227 4
d5232 56
a5287 2
echo $ac_n "checking for krb4""... $ac_c" 1>&6
echo "configure:2247: checking for krb4" >&5
d5289 1
a5289 41
case "$with_krb4" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_krb4_include" = ""; then
		with_krb4_include="$with_krb4/include"
	fi
	if test "$with_krb4_lib" = ""; then
		with_krb4_lib="$with_krb4/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d='/usr/athena'
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done

case "$with_krb4_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_krb4_include $header_dirs";;
esac
case "$with_krb4_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_krb4_lib $lib_dirs";;
esac

save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat > conftest.$ac_ext <<EOF
#line 2286 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
d5291 3
a5293 5
; return 0; }
EOF
if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ires=$i;break
d5295 2
a5296 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d5298 1
a5298 9
rm -f conftest*
done
for i in $lib_dirs; do
	LIBS="-L$i -lkrb -ldes $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 2305 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
a5299 13
; return 0; }
EOF
if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  lres=$i;break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
a5300 8
if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
	krb4_includedir="$ires"
	krb4_libdir="$lres"
	INCLUDE_krb4="-I$krb4_includedir"
	LIB_krb4="-L$krb4_libdir -lkrb"
	cat >> confdefs.h <<EOF
#define `echo krb4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
EOF
a5301 8
	with_krb4=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
else
	INCLUDE_krb4=
	LIB_krb4=
	with_krb4=no
	echo "$ac_t""$with_krb4" 1>&6
fi
d5305 3
d5309 12
a5320 18
LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 -ldes $LIBS"
	EXTRA_LIB45=lib45.a
	
	echo $ac_n "checking for four valued krb_put_int""... $ac_c" 1>&6
echo "configure:2354: checking for four valued krb_put_int" >&5
if eval "test \"`echo '$''{'ac_cv_func_krb_put_int_four'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2359 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
a5321 16
		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
; return 0; }
EOF
if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_krb_put_int_four=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_krb_put_int_four=no
fi
rm -f conftest*
	
fi
d5323 8
a5330 5
echo "$ac_t""$ac_cv_func_krb_put_int_four" 1>&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then
		cat >> confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
EOF
a5331 11
	fi
	echo $ac_n "checking for KRB_VERIFY_SECURE""... $ac_c" 1>&6
echo "configure:2389: checking for KRB_VERIFY_SECURE" >&5
if eval "test \"`echo '$''{'ac_cv_func_krb_verify_secure'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2394 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
d5333 2
a5334 6
		int x = KRB_VERIFY_SECURE
; return 0; }
EOF
if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_krb_verify_secure=yes
d5336 1
a5336 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_krb_verify_secure=no
fi
rm -f conftest*
	
a5338 5
echo "$ac_t""$ac_cv_func_krb_verify_secure" 1>&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then
		cat >> confdefs.h <<\EOF
#define KRB_VERIFY_SECURE 1
EOF
a5339 3
		cat >> confdefs.h <<\EOF
#define KRB_VERIFY_SECURE_FAIL 2
EOF
a5340 11
	fi
	echo $ac_n "checking for KRB_VERIFY_NOT_SECURE""... $ac_c" 1>&6
echo "configure:2427: checking for KRB_VERIFY_NOT_SECURE" >&5
if eval "test \"`echo '$''{'ac_cv_func_krb_verify_not_secure'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2432 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
a5341 15
		int x = KRB_VERIFY_NOT_SECURE
; return 0; }
EOF
if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_krb_verify_not_secure=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_krb_verify_not_secure=no
fi
rm -f conftest*
	
fi
d5343 14
a5356 5
echo "$ac_t""$ac_cv_func_krb_verify_not_secure" 1>&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
		cat >> confdefs.h <<\EOF
#define KRB_VERIFY_NOT_SECURE 0
EOF
a5357 2
	fi
	
a5360 18
echo $ac_n "checking for krb_enable_debug""... $ac_c" 1>&6
echo "configure:2465: checking for krb_enable_debug" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_krb_enable_debug'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 2480 "configure"
#include "confdefs.h"
a5361 16
int main() {
krb_enable_debug()
; return 0; }
EOF
if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
	LIBS="$ac_save_LIBS"
fi
a5362 1
fi
d5364 36
d5401 1
a5401 1
eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
d5403 3
a5405 4
: << END
@@@@@@funcs="$funcs krb_enable_debug"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
END
a5406 4
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_enable_debug=$ac_res"
a5407 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a5408 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a5409 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d5411 15
a5425 2
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
d5428 1
d5430 3
a5432 3
if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
fi
a5433 1
	
a5436 18
echo $ac_n "checking for krb_disable_debug""... $ac_c" 1>&6
echo "configure:2555: checking for krb_disable_debug" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_krb_disable_debug'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 2570 "configure"
#include "confdefs.h"
d5438 4
a5441 7
int main() {
krb_disable_debug()
; return 0; }
EOF
if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d5443 1
a5443 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
	LIBS="$ac_save_LIBS"
d5445 22
a5467 1
fi
a5469 1
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
a5470 4
: << END
@@@@@@funcs="$funcs krb_disable_debug"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
END
a5471 4
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_disable_debug=$ac_res"
a5472 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a5473 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a5474 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d5476 25
a5500 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d5502 9
a5510 3

if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
a5512 1
	
d5514 12
a5525 6


echo $ac_n "checking for krb_get_our_ip_for_realm""... $ac_c" 1>&6
echo "configure:2645: checking for krb_get_our_ip_for_realm" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_krb_get_our_ip_for_realm'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5527 14
a5540 13
  
if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 2660 "configure"
#include "confdefs.h"
d5542 6
a5547 7
int main() {
krb_get_our_ip_for_realm()
; return 0; }
EOF
if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
d5549 2
a5550 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
	LIBS="$ac_save_LIBS"
d5553 13
d5568 1
a5569 1
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
a5570 4
: << END
@@@@@@funcs="$funcs krb_get_our_ip_for_realm"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
END
a5571 4
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"
a5572 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a5573 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a5574 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a5575 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d5578 18
a5595 3
if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi
d5597 4
a5600 8
	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
	if test "$krb4_libdir"; then
		LIB_krb4="-rpath $krb4_libdir $LIB_krb4"
		LIB_kdb="-rpath $krb4_libdir -L$krb4_libdir $LIB_kdb"
	fi
fi
d5602 3
d5606 5
a5610 7
if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi
d5612 5
d5618 20
a5637 10
if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
fi
cat >> confdefs.h <<\EOF
#define KRB5 1
EOF
d5639 3
d5643 15
a5657 7
if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
else
  AIX_TRUE='#'
  AIX_FALSE=
fi
d5659 3
a5661 8
if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
else
  AIX4_TRUE='#'
  AIX4_FALSE=
fi
aix_dynamic_afs=yes
d5663 3
d5667 17
a5683 7
if test "$aix_dynamic_afs" = yes; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi
d5685 4
d5690 9
d5700 4
a5703 18
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
echo "configure:2790: checking for dlopen" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dlopen'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" dl; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 2805 "configure"
#include "confdefs.h"
d5705 7
a5711 16
int main() {
dlopen()
; return 0; }
EOF
if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
	LIBS="$ac_save_LIBS"
fi
d5713 5
a5717 1
fi
d5719 3
d5723 7
a5729 1
eval "ac_res=\$ac_cv_funclib_dlopen"
d5731 3
a5733 4
: << END
@@@@@@funcs="$funcs dlopen"@@@@@@
@@@@@@libs="$libs "" dl"@@@@@@
END
d5735 3
a5737 4
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dlopen=$ac_res"
d5739 3
a5741 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d5743 3
a5745 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_dlopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d5747 26
a5772 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d5774 3
a5776 2
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
d5779 17
d5797 3
a5800 13
if test "$aix" != no; then
	if test "$aix_dynamic_afs" = yes; then
		if test "$ac_cv_funclib_dlopen" = yes; then
			AIX_EXTRA_KAFS=
		elif test "$ac_cv_funclib_dlopen" != no; then
			AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
		else
			AIX_EXTRA_KAFS=-lld
		fi
	else
		AIX_EXTRA_KAFS=
	fi
fi
a5803 12
if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
fi
# Check whether --enable-kaserver or --disable-kaserver was given.
if test "${enable_kaserver+set}" = set; then
  enableval="$enable_kaserver"
  :
fi
a5804 4
if test "$enable_kaserver" = yes; then
	cat >> confdefs.h <<\EOF
#define KASERVER 1
EOF
a5805 5
	if test "$with_krb4" = "no"; then
		{ echo "configure: error: kaserver requires krb4" 1>&2; exit 1; }
		exit 1
	fi
fi
a5806 5
# Check whether --enable-kaserver-db or --disable-kaserver-db was given.
if test "${enable_kaserver_db+set}" = set; then
  enableval="$enable_kaserver_db"
  :
fi
a5807 4
if test "$enable_kaserver_db" = yes; then
	cat >> confdefs.h <<\EOF
#define KASERVER_DB 1
EOF
a5808 5
	if test "$with_krb4" = "no"; then
		{ echo "configure: error: kaserver-db requires krb4" 1>&2; exit 1; }
		exit 1
	fi
fi
a5809 8
otp=yes
# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval="$enable_otp"
  
if test "$enableval" = "no"; then
	otp=no
fi
a5810 1
fi
a5811 4
if test "$otp" = "yes"; then
	cat >> confdefs.h <<\EOF
#define OTP 1
EOF
a5812 2
	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
fi
a5815 7
if test "$otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi
a5816 5
# Check whether --enable-osfc2 or --disable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
  enableval="$enable_osfc2"
  :
fi
a5817 5
LIB_security=
if test "$enable_osfc2" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_OSFC2 1
EOF
a5818 2
	LIB_security=-lsecurity
fi
d5822 10
a5831 6
# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2978: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5833 12
a5844 16
  case "$NROFF" in
  /*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_NROFF="$ac_dir/$ac_word"
      break
    fi
d5846 3
a5848 3
  IFS="$ac_save_ifs"
  ;;
esac
d5850 4
a5853 3
NROFF="$ac_cv_path_NROFF"
if test -n "$NROFF"; then
  echo "$ac_t""$NROFF" 1>&6
d5855 2
a5856 1
  echo "$ac_t""no" 1>&6
d5859 1
a5859 27
# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3013: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GROFF'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GROFF" in
  /*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GROFF="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
d5861 8
a5868 3
GROFF="$ac_cv_path_GROFF"
if test -n "$GROFF"; then
  echo "$ac_t""$GROFF" 1>&6
d5870 2
a5871 7
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking how to format man pages""... $ac_c" 1>&6
echo "configure:3046: checking how to format man pages" >&5
if eval "test \"`echo '$''{'ac_cv_sys_man_format'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5873 14
a5886 8
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
END
a5887 8
if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
a5888 8
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
	done
d5890 7
a5896 2
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
d5899 13
d5914 1
a5914 5
echo "$ac_t""$ac_cv_sys_man_format" 1>&6
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"
	
fi
a5916 17
if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
else
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi
echo $ac_n "checking extension of pre-formatted manual pages""... $ac_c" 1>&6
echo "configure:3098: checking extension of pre-formatted manual pages" >&5
if eval "test \"`echo '$''{'ac_cv_sys_catman_ext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
fi
a5917 1
fi
a5918 6
echo "$ac_t""$ac_cv_sys_catman_ext" 1>&6
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$ext'
else
	CATMANEXT=0
fi
a5923 5
# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
  withval="$with_readline"
  :
fi
d5925 25
a5949 9
# Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval="$with_readline_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-readline-lib" 1>&2; exit 1; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi
a5950 8
# Check whether --with-readline-include or --without-readline-include was given.
if test "${with_readline_include+set}" = set; then
  withval="$with_readline_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-readline-include" 1>&2; exit 1; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
d5952 6
a5959 2
echo $ac_n "checking for readline""... $ac_c" 1>&6
echo "configure:3149: checking for readline" >&5
a5960 19
case "$with_readline" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_readline_include" = ""; then
		with_readline_include="$with_readline/include"
	fi
	if test "$with_readline_lib" = ""; then
		with_readline_lib="$with_readline/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
a5961 10
case "$with_readline_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_readline_include $header_dirs";;
esac
case "$with_readline_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_readline_lib $lib_dirs";;
esac
a5962 11
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat > conftest.$ac_ext <<EOF
#line 3188 "configure"
#include "confdefs.h"
#include <stdio.h>
 #include <readline.h>
int main() {
d5964 12
a5975 5
; return 0; }
EOF
if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ires=$i;break
d5977 11
a5987 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
d5989 2
a5990 8
for i in $lib_dirs; do
	LIBS="-L$i -lreadline  $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 3208 "configure"
#include "confdefs.h"
#include <stdio.h>
 #include <readline.h>
int main() {
d5992 6
a5997 5
; return 0; }
EOF
if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  lres=$i;break
d5999 2
a6000 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d6002 30
a6031 1
rm -f conftest*
d6033 2
a6034 2
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
d6036 6
a6041 11
if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
	readline_includedir="$ires"
	readline_libdir="$lres"
	INCLUDE_readline="-I$readline_includedir"
	LIB_readline="-L$readline_libdir -lreadline"
	cat >> confdefs.h <<EOF
#define `echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
EOF

	with_readline=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
d6043 2
a6044 4
	INCLUDE_readline=
	LIB_readline=
	with_readline=no
	echo "$ac_t""$with_readline" 1>&6
d6048 18
a6068 5
# Check whether --with-hesiod or --without-hesiod was given.
if test "${with_hesiod+set}" = set; then
  withval="$with_hesiod"
  :
fi
a6069 9
# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
  withval="$with_hesiod_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-hesiod-lib" 1>&2; exit 1; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi
a6070 9
# Check whether --with-hesiod-include or --without-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
  withval="$with_hesiod_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-hesiod-include" 1>&2; exit 1; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi
a6072 2
echo $ac_n "checking for hesiod""... $ac_c" 1>&6
echo "configure:3278: checking for hesiod" >&5
a6073 19
case "$with_hesiod" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_hesiod_include" = ""; then
		with_hesiod_include="$with_hesiod/include"
	fi
	if test "$with_hesiod_lib" = ""; then
		with_hesiod_lib="$with_hesiod/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
a6074 10
case "$with_hesiod_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_hesiod_include $header_dirs";;
esac
case "$with_hesiod_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_hesiod_lib $lib_dirs";;
esac
a6075 10
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat > conftest.$ac_ext <<EOF
#line 3317 "configure"
#include "confdefs.h"
#include <hesiod.h>
int main() {
d6077 4
a6080 5
; return 0; }
EOF
if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ires=$i;break
d6082 34
a6115 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d6117 1
a6117 9
rm -f conftest*
done
for i in $lib_dirs; do
	LIBS="-L$i -lhesiod  $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 3336 "configure"
#include "confdefs.h"
#include <hesiod.h>
int main() {
a6118 8
; return 0; }
EOF
if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  lres=$i;break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d6120 2
a6121 13
rm -f conftest*
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"

if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
	hesiod_includedir="$ires"
	hesiod_libdir="$lres"
	INCLUDE_hesiod="-I$hesiod_includedir"
	LIB_hesiod="-L$hesiod_libdir -lhesiod"
	cat >> confdefs.h <<EOF
#define `echo hesiod | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
EOF
d6123 2
a6124 2
	with_hesiod=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
d6126 1
a6126 4
	INCLUDE_hesiod=
	LIB_hesiod=
	with_hesiod=no
	echo "$ac_t""$with_hesiod" 1>&6
a6132 5
# Check whether --enable-bigendian or --disable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
  enableval="$enable_bigendian"
  krb_cv_c_bigendian=yes
fi
a6133 5
# Check whether --enable-littleendian or --disable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
  enableval="$enable_littleendian"
  krb_cv_c_bigendian=no
fi
d6135 7
a6141 4
echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6
echo "configure:3390: checking whether byte order is known at compile time" >&5
if eval "test \"`echo '$''{'krb_cv_c_bigendian_compile'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d6143 17
a6159 3
  cat > conftest.$ac_ext <<EOF
#line 3395 "configure"
#include "confdefs.h"
d6161 6
a6166 12
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
; return 0; }
EOF
if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  krb_cv_c_bigendian_compile=yes
d6168 2
a6169 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  krb_cv_c_bigendian_compile=no
fi
rm -f conftest*
a6171 18
echo "$ac_t""$krb_cv_c_bigendian_compile" 1>&6
if test "$krb_cv_c_bigendian_compile" = "no"; then
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:3422: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'krb_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
  if test "$krb_cv_c_bigendian" = ""; then
    krb_cv_c_bigendian=unknown
  fi
  cat > conftest.$ac_ext <<EOF
#line 3431 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
int main() {
a6172 13
#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
; return 0; }
EOF
if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  krb_cv_c_bigendian=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  krb_cv_c_bigendian=no
d6174 8
a6181 4
rm -f conftest*
  if test "$krb_cv_c_bigendian" = "unknown"; then
    if test "$cross_compiling" = yes; then
  { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; }
d6183 2
a6184 17
  cat > conftest.$ac_ext <<EOF
#line 3458 "configure"
#include "confdefs.h"
main () {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
      } u;
      u.l = 1;
      exit (u.c[sizeof (long) - 1] == 1);
    }
EOF
if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  krb_cv_c_bigendian=no
d6186 16
a6201 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  krb_cv_c_bigendian=yes
d6203 7
a6209 1
rm -fr conftest*
d6212 10
d6223 2
a6224 1
  
d6227 28
a6254 5
echo "$ac_t""$krb_cv_c_bigendian" 1>&6
  if test "$krb_cv_c_bigendian" = "yes"; then
    cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF
d6256 5
d6262 7
a6268 4
if test "$krb_cv_c_bigendian_compile" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ENDIANESS_IN_SYS_PARAM_H 1
EOF
d6271 10
a6280 4
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:3501: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d6282 2
a6283 13
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
#line 3508 "configure"
#include "confdefs.h"

int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
d6285 11
a6295 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
d6297 2
d6301 8
a6308 26

echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
  inline | yes) ;;
  no) cat >> confdefs.h <<\EOF
#define inline 
EOF
 ;;
  *)  cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac


# If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
echo "configure:3546: checking for X" >&5

# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"
  :
d6311 2
a6312 8
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
d6314 8
a6321 2
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d6323 1
a6323 34
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=NO ac_x_libraries=NO
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
        test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case "$ac_im_incroot" in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
    esac
    case "$ac_im_usrlibdir" in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
d6326 2
a6327 3
if test "$ac_x_includes" = NO; then
  # Guess where to find include files, by looking for this one X11 .h file.
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
a6328 64
  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 3608 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  # Look for the header file in a standard set of common directories.
# Check X11 before X11Rn because it is often a symlink to the current release.
  for ac_dir in               \
    /usr/X11/include          \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
                              \
    /usr/include/X11          \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
                              \
    /usr/local/X11/include    \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
                              \
    /usr/local/include/X11    \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
                              \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
                              \
    /usr/include              \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
                              \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*
fi # $ac_x_includes = NO
a6329 2
if test "$ac_x_libraries" = NO; then
  # Check for the libraries.
a6330 2
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
a6331 7
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS="$LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3682 "configure"
#include "confdefs.h"
d6333 4
a6336 63
int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11/lib          \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11/lib    \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11    \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
    /lib/usr/lib/X11	  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*
fi # $ac_x_libraries = NO
d6338 10
a6347 8
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
a6348 3
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no
d6350 6
a6355 12
if test "$have_x" != yes; then
  echo "$ac_t""$have_x" 1>&6
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi
a6357 5
if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.
  cat >> confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1
EOF
a6358 5
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi
a6359 13
  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case "`(uname -sr) 2>/dev/null`" in
    "SunOS 5"*)
      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
echo "configure:3796: checking whether -R must be followed by a space" >&5
      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
      cat > conftest.$ac_ext <<EOF
#line 3799 "configure"
#include "confdefs.h"
a6360 1
int main() {
a6361 20
; return 0; }
EOF
if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_R_nospace=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_R_nospace=no
fi
rm -f conftest*
      if test $ac_R_nospace = yes; then
	echo "$ac_t""no" 1>&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat > conftest.$ac_ext <<EOF
#line 3822 "configure"
#include "confdefs.h"
a6362 1
int main() {
a6363 22
; return 0; }
EOF
if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_R_space=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_R_space=no
fi
rm -f conftest*
	if test $ac_R_space = yes; then
	  echo "$ac_t""yes" 1>&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$ac_t""neither works" 1>&6
	fi
      fi
      LIBS="$ac_xsave_LIBS"
    esac
  fi
a6364 3
  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.
a6365 37
  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn.Johnson@@cl.cam.ac.uk says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And karl@@cs.umb.edu says
    # the Alpha needs dnet_stub (dnet does not exist).
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
echo "configure:3861: checking for dnet_ntoa in -ldnet" >&5
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldnet  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3869 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
EOF
if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
a6366 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
else
  echo "$ac_t""no" 1>&6
fi
a6367 32
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
echo "configure:3902: checking for dnet_ntoa in -ldnet_stub" >&5
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldnet_stub  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3910 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
EOF
if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
a6368 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
else
  echo "$ac_t""no" 1>&6
fi
a6369 1
    fi
a6370 21
    # msh@@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # chad@@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to dickey@@clark.net.
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:3950: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3955 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname();
a6371 1
int main() {
a6372 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
gethostbyname();
#endif
a6373 13
; return 0; }
EOF
if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=no"
fi
rm -f conftest*
fi
a6374 6
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi
a6375 16
    if test $ac_cv_func_gethostbyname = no; then
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
echo "configure:3999: checking for gethostbyname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4007 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname();
a6376 15
int main() {
gethostbyname()
; return 0; }
EOF
if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
a6377 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
else
  echo "$ac_t""no" 1>&6
fi
a6378 1
    fi
a6379 22
    # lieder@@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says simon@@lia.di.epfl.ch: it contains
    # gethostby* variants that don't use the nameserver (or something).
    # -lsocket must be given before -lnsl if both are needed.
    # We assume that if connect needs -lnsl, so does gethostbyname.
    echo $ac_n "checking for connect""... $ac_c" 1>&6
echo "configure:4048: checking for connect" >&5
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4053 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char connect();
a6380 1
int main() {
a6381 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_connect) || defined (__stub___connect)
choke me
#else
connect();
#endif
a6382 13
; return 0; }
EOF
if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_connect=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_connect=no"
fi
rm -f conftest*
fi
a6383 6
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi
a6384 32
    if test $ac_cv_func_connect = no; then
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
echo "configure:4097: checking for connect in -lsocket" >&5
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4105 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
connect()
; return 0; }
EOF
if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
a6385 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
else
  echo "$ac_t""no" 1>&6
fi
a6386 1
    fi
a6387 16
    # gomez@@mi.uni-erlangen.de says -lposix is necessary on A/UX.
    echo $ac_n "checking for remove""... $ac_c" 1>&6
echo "configure:4140: checking for remove" >&5
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4145 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char remove(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char remove();
a6388 1
int main() {
a6389 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_remove) || defined (__stub___remove)
choke me
#else
remove();
#endif
a6390 13
; return 0; }
EOF
if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_remove=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_remove=no"
fi
rm -f conftest*
fi
a6391 6
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi
a6392 32
    if test $ac_cv_func_remove = no; then
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
echo "configure:4189: checking for remove in -lposix" >&5
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lposix  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4197 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char remove();

int main() {
remove()
; return 0; }
EOF
if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
a6393 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
else
  echo "$ac_t""no" 1>&6
fi
d6395 2
a6396 1
    fi
d6398 2
a6399 16
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
echo "configure:4232: checking for shmat" >&5
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4237 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shmat(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shmat();
d6401 2
a6402 1
int main() {
a6403 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shmat) || defined (__stub___shmat)
choke me
#else
shmat();
#endif
d6405 5
a6409 5
; return 0; }
EOF
if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_shmat=yes"
a6410 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_shmat=no"
fi
rm -f conftest*
fi
d6412 8
a6419 6
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi
d6421 61
a6481 32
    if test $ac_cv_func_shmat = no; then
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
echo "configure:4281: checking for shmat in -lipc" >&5
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lipc  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4289 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shmat();

int main() {
shmat()
; return 0; }
EOF
if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
d6483 2
a6484 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
else
  echo "$ac_t""no" 1>&6
fi
d6486 19
a6504 1
    fi
d6506 1
d6508 2
a6509 40
  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS="$LDFLAGS"
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  #  --interran@@uluru.Stanford.EDU, kb@@cs.umb.edu.
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
echo "configure:4333: checking for IceConnectionNumber in -lICE" >&5
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4341 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char IceConnectionNumber();

int main() {
IceConnectionNumber()
; return 0; }
EOF
if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
d6511 13
a6523 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
else
  echo "$ac_t""no" 1>&6
fi
d6525 18
a6542 1
  LDFLAGS="$ac_save_LDFLAGS"
d6544 15
a6558 1
fi
d6560 3
d6564 3
a6566 37
# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
	echo $ac_n "checking for special X linker flags""... $ac_c" 1>&6
echo "configure:4381: checking for special X linker flags" >&5
if eval "test \"`echo '$''{'krb_cv_sys_x_libs_rpath'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	ac_save_libs="$LIBS"
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS $X_CFLAGS"
	krb_cv_sys_x_libs_rpath=""
	krb_cv_sys_x_libs=""
	for rflag in "" "-R" "-R " "-rpath "; do
		if test "$rflag" = ""; then
			foo="$X_LIBS"
		else
			foo=""
			for flag in $X_LIBS; do
			case $flag in
			-L*)
				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
				;;
			*)
				foo="$foo $flag"
				;;
			esac
			done
		fi
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
		if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4412 "configure"
#include "confdefs.h"
d6568 1
a6568 22
		#include <X11/Xlib.h>
		foo()
		{
		XOpenDisplay(NULL);
		}
		main()
		{
		return 0;
		}
		
EOF
if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  :
fi
rm -fr conftest*
fi
d6570 20
a6589 5
	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"
	
fi
d6591 33
a6623 3
echo "$ac_t""$krb_cv_sys_x_libs_rpath" 1>&6
	X_LIBS="$krb_cv_sys_x_libs"
fi
d6625 7
a6632 8
if test "$no_x" = "yes" ; then
	MAKE_X_PROGS_BIN_PROGS=""
	MAKE_X_PROGS_BIN_SCRPTS=""
	MAKE_X_PROGS_LIBEXEC_PROGS=""
else
	MAKE_X_PROGS_BIN_PROGS='$(X_PROGS_BIN_PROGS)'
	MAKE_X_PROGS_BIN_SCRPTS='$(X_PROGS_BIN_SCRPTS)'
	MAKE_X_PROGS_LIBEXEC_PROGS='$(X_PROGS_LIBEXEC_PROGS)'
d6635 10
d6646 6
a6651 6
save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"
a6656 18
echo $ac_n "checking for XauWriteAuth""... $ac_c" 1>&6
echo "configure:4472: checking for XauWriteAuth" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauWriteAuth'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 4487 "configure"
#include "confdefs.h"
a6657 16
int main() {
XauWriteAuth()
; return 0; }
EOF
if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
	LIBS="$ac_save_LIBS"
fi
a6658 1
fi
a6660 1
eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
a6661 4
: << END
@@@@@@funcs="$funcs XauWriteAuth"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
END
a6662 4
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauWriteAuth=$ac_res"
a6663 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a6664 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a6665 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a6666 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
a6668 2
ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"
a6671 18
echo $ac_n "checking for XauReadAuth""... $ac_c" 1>&6
echo "configure:4559: checking for XauReadAuth" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauReadAuth'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 4574 "configure"
#include "confdefs.h"
a6672 16
int main() {
XauReadAuth()
; return 0; }
EOF
if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
	LIBS="$ac_save_LIBS"
fi
a6673 1
fi
a6675 1
eval "ac_res=\$ac_cv_funclib_XauReadAuth"
a6676 4
: << END
@@@@@@funcs="$funcs XauReadAuth"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
END
a6677 4
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauReadAuth=$ac_res"
d6679 2
a6680 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d6682 6
a6687 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_XauReadAuth=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a6688 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d6690 17
a6706 2
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
d6709 2
a6711 1
LIBS="$LIB_XauReadAauth $LIBS"
a6714 18
echo $ac_n "checking for XauFileName""... $ac_c" 1>&6
echo "configure:4645: checking for XauFileName" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauFileName'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 4660 "configure"
#include "confdefs.h"
d6716 3
a6718 15
int main() {
XauFileName()
; return 0; }
EOF
if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
	LIBS="$ac_save_LIBS"
d6721 1
a6721 1
fi
d6723 58
d6782 28
a6809 21
eval "ac_res=\$ac_cv_funclib_XauFileName"

: << END
@@@@@@funcs="$funcs XauFileName"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
END

# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauFileName=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
d6811 18
a6828 4
	no)
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	echo "$ac_t""no" 1>&6
d6830 4
a6833 6
	*)
	eval "ac_cv_func_XauFileName=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d6835 14
a6848 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d6850 2
a6851 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d6853 3
d6857 16
a6872 1
LIBS="$ac_xxx"
d6874 23
a6896 15
case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
d6899 6
d6907 1
a6907 2
if test "$AUTOMAKE" != ""; then
	
d6909 10
a6918 3
if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
d6920 16
a6935 2
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
d6937 4
d6942 2
a6943 9
	
	
	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
a6944 3
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS
d6947 27
d6975 6
a6980 4
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:4775: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d6982 3
a6984 3
  cat > conftest.$ac_ext <<EOF
#line 4780 "configure"
#include "confdefs.h"
d6986 14
a6999 1
int main() {
d7001 14
a7014 52
/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_const=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
d7016 4
a7019 1
rm -f conftest*
a7021 5
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF
a7022 1
fi
d7024 12
a7035 4
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:4850: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7037 2
a7038 14
  cat > conftest.$ac_ext <<EOF
#line 4855 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
d7040 16
a7055 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
d7057 4
a7060 12
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 4880 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
d7062 2
a7063 2
  rm -rf conftest*
  ac_cv_header_stdc=no
d7065 1
a7065 1
rm -f conftest*
d7068 26
d7095 6
a7100 10
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 4898 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
d7102 2
a7103 2
  rm -rf conftest*
  ac_cv_header_stdc=no
a7104 1
rm -f conftest*
d7106 13
d7121 10
a7130 4
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
d7132 14
a7145 10
  cat > conftest.$ac_ext <<EOF
#line 4919 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
d7147 6
a7152 4
EOF
if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
d7154 2
a7155 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
d7157 2
a7158 1
rm -fr conftest*
d7160 26
d7189 8
d7198 13
a7210 6
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

d7213 7
a7219 4
echo $ac_n "checking for off_t""... $ac_c" 1>&6
echo "configure:4954: checking for off_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7221 24
a7244 13
  cat > conftest.$ac_ext <<EOF
#line 4959 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_off_t=yes
d7246 2
a7247 2
  rm -rf conftest*
  ac_cv_type_off_t=no
a7248 1
rm -f conftest*
a7249 6
fi
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
#define off_t long
EOF
d7252 11
a7262 5

echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:4987: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7264 21
a7284 13
  cat > conftest.$ac_ext <<EOF
#line 4992 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
d7286 2
a7287 2
  rm -rf conftest*
  ac_cv_type_size_t=no
a7288 8
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
d7290 13
d7305 7
a7311 4
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
echo "configure:5020: checking for ssize_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7313 2
a7314 14
  cat > conftest.$ac_ext <<EOF
#line 5025 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_ssize_t=yes
d7316 14
a7329 4
  rm -rf conftest*
  ac_cv_type_ssize_t=no
fi
rm -f conftest*
a7331 6
echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
if test $ac_cv_type_ssize_t = no; then
  cat >> confdefs.h <<\EOF
#define ssize_t int
EOF

d7333 4
a7336 19

echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:5054: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5059 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
d7338 2
a7339 2
  rm -rf conftest*
  ac_cv_type_pid_t=no
a7340 1
rm -f conftest*
a7341 6
fi
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF
d7344 8
a7351 5

echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
echo "configure:5087: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7353 2
a7354 9
  cat > conftest.$ac_ext <<EOF
#line 5092 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_uid_t=yes
d7356 16
a7371 2
  rm -rf conftest*
  ac_cv_type_uid_t=no
d7373 7
a7379 2
rm -f conftest*

d7382 13
a7394 10
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
if test $ac_cv_type_uid_t = no; then
  cat >> confdefs.h <<\EOF
#define uid_t int
EOF

  cat >> confdefs.h <<\EOF
#define gid_t int
EOF

d7397 7
a7403 4
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
echo "configure:5121: checking for mode_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7405 17
a7421 8
  cat > conftest.$ac_ext <<EOF
#line 5126 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d7423 6
a7428 5
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_mode_t=yes
d7430 2
a7431 2
  rm -rf conftest*
  ac_cv_type_mode_t=no
a7432 1
rm -f conftest*
a7433 6
fi
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
  cat >> confdefs.h <<\EOF
#define mode_t unsigned short
EOF
d7436 8
a7443 5

echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
echo "configure:5155: checking for sig_atomic_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7445 2
a7446 14
  cat > conftest.$ac_ext <<EOF
#line 5160 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_sig_atomic_t=yes
d7448 15
a7462 2
  rm -rf conftest*
  ac_cv_type_sig_atomic_t=no
a7463 2
rm -f conftest*

d7465 7
a7471 6
echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
if test $ac_cv_type_sig_atomic_t = no; then
  cat >> confdefs.h <<\EOF
#define sig_atomic_t int
EOF

d7474 11
a7484 18
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:5189: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5194 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
d7486 1
a7486 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*
a7488 5
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
a7489 1
fi
d7491 28
a7518 4
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
echo "configure:5224: checking whether struct tm is in sys/time.h or time.h" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7520 21
a7540 19
  cat > conftest.$ac_ext <<EOF
#line 5229 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
int main() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_tm=time.h
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_struct_tm=sys/time.h
fi
rm -f conftest*
d7542 17
d7560 44
a7603 5
echo "$ac_t""$ac_cv_struct_tm" 1>&6
if test $ac_cv_struct_tm = sys/time.h; then
  cat >> confdefs.h <<\EOF
#define TM_IN_SYS_TIME 1
EOF
d7606 36
d7644 4
a7647 4
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:5259: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d7649 2
a7650 3
  cat > conftest.$ac_ext <<EOF
#line 5264 "configure"
#include "confdefs.h"
d7655 10
a7664 6
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
a7666 4
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
d7669 1
a7669 1
rm -f conftest*
d7673 2
a7674 3
cat > conftest.$ac_ext <<EOF
#line 5289 "configure"
#include "confdefs.h"
d7676 2
a7677 1
EOF
d7679 2
a7680 2
  egrep "memchr" >/dev/null 2>&1; then
  :
a7681 1
  rm -rf conftest*
d7690 2
a7691 3
cat > conftest.$ac_ext <<EOF
#line 5307 "configure"
#include "confdefs.h"
d7693 2
a7694 1
EOF
d7696 2
a7697 2
  egrep "free" >/dev/null 2>&1; then
  :
a7698 1
  rm -rf conftest*
d7707 1
a7707 1
if test "$cross_compiling" = yes; then
d7710 2
a7711 3
  cat > conftest.$ac_ext <<EOF
#line 5328 "configure"
#include "confdefs.h"
d7713 12
a7724 2
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
d7726 12
a7737 3
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
a7738 4
EOF
if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
a7739 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d7742 2
a7743 1
rm -fr conftest*
d7748 3
d7752 1
a7752 5
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
d7756 12
a7768 41
if test "$berkeley_db"; then
  for ac_hdr in 				\
	db.h					\
	db_185.h				\
  
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5371: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5376 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d7770 1
a7772 1
fi
d7774 15346
a23119 87
for ac_hdr in \
	arpa/ftp.h				\
	arpa/inet.h				\
	arpa/nameser.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	crypt.h					\
	curses.h				\
	dbm.h					\
	dirent.h				\
	dlfcn.h					\
	err.h					\
	errno.h					\
	fcntl.h					\
	fnmatch.h				\
	grp.h					\
	inttypes.h				\
	io.h					\
	limits.h				\
	maillock.h				\
	ndbm.h					\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in6_machtypes.h			\
	netinet/in6_var.h			\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinfo/ni.h				\
	paths.h					\
	pthread.h				\
	pty.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/dbm.h				\
	sac.h					\
	security/pam_modules.h			\
	sgtty.h					\
	shadow.h				\
	siad.h					\
	signal.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/ptyvar.h				\
	sys/resource.h				\
	sys/select.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/strtty.h				\
	sys/syscall.h				\
	sys/sysctl.h				\
	sys/termio.h				\
	sys/time.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/un.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	term.h					\
	termio.h				\
	termios.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	unistd.h				\
	util.h					\
	utmp.h					\
	utmpx.h					\
d23121 14
a23134 6
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5500: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d23136 31
a23166 11
  cat > conftest.$ac_ext <<EOF
#line 5505 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
d23168 34
a23201 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
d23203 6
a23208 1
rm -f conftest*
d23210 7
a23216 7
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
d23218 15
a23232 1
  echo "$ac_t""no" 1>&6
d23234 1
d23239 6
a23244 7
for ac_hdr in standards.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5542: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d23246 33
a23278 17
  cat > conftest.$ac_ext <<EOF
#line 5547 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
d23280 1
a23280 1
rm -f conftest*
d23282 13
a23294 9
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d23298 44
a23341 1
for i in netinet/ip.h netinet/tcp.h; do
d23343 4
a23346 1
cv=`echo "$i" | sed 'y%./+-%__p_%'`
d23348 3
a23350 4
echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:5583: checking for $i" >&5
if eval "test \"`echo '$''{'ac_cv_header_$cv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d23352 33
a23384 8
  cat > conftest.$ac_ext <<EOF
#line 5588 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>
d23386 3
a23388 7
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$cv=yes"
d23390 1
a23390 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$cv=no"
d23392 6
a23397 1
rm -f conftest*
a23399 6
echo "$ac_t""`eval echo \\$ac_cv_header_$cv`" 1>&6
if test `eval echo \\$ac_cv_header_$cv` = yes; then
  ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d23401 37
d23439 25
d23465 14
a23478 3
: << END
@@@@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@@@@
END
d23481 12
d23494 21
a23515 4
# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval="$enable_netinfo"
  :
d23517 4
a23520 6


if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
       cat >> confdefs.h <<\EOF
#define HAVE_NETINFO 1
EOF
d23523 3
a23525 6



if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
d23527 2
a23528 2
  have_err_h_TRUE='#'
  have_err_h_FALSE=
d23531 7
a23537 4

if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
d23539 1
a23539 2
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
a23541 7

# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"
  
if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
d23543 6
a23550 28
if eval "test \"`echo '$''{'ac_cv_lib_ipv6'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  v6type=unknown
v6lib=none

echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
echo "configure:5679: checking ipv6 stack type" >&5
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat > conftest.$ac_ext <<EOF
#line 5684 "configure"
#include "confdefs.h"
dnl
#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*
a23551 19
		;;
	toshiba)
		cat > conftest.$ac_ext <<EOF
#line 5704 "configure"
#include "confdefs.h"
dnl
#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
a23552 19
		;;
	kame)
		cat > conftest.$ac_ext <<EOF
#line 5724 "configure"
#include "confdefs.h"
dnl
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
a23553 17
		;;
	inria)
		cat > conftest.$ac_ext <<EOF
#line 5744 "configure"
#include "confdefs.h"
dnl
#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
d23555 3
a23557 17
		;;
	zeta)
		cat > conftest.$ac_ext <<EOF
#line 5762 "configure"
#include "confdefs.h"
dnl
#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
a23558 1
rm -f conftest*
a23559 15
		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done
echo "$ac_t""$v6type" 1>&6
d23561 7
a23567 7
if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
a23568 16
cat > conftest.$ac_ext <<EOF
#line 5804 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
a23569 1
int main() {
d23571 6
a23576 20
 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

; return 0; }
EOF
if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_lib_ipv6=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_lib_ipv6=no
a23577 1
rm -f conftest*
a23579 7
echo $ac_n "checking for IPv6""... $ac_c" 1>&6
echo "configure:5847: checking for IPv6" >&5
echo "$ac_t""$ac_cv_lib_ipv6" 1>&6
if test "$ac_cv_lib_ipv6" = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_IPV6 1
EOF
d23581 3
d23589 2
d23592 5
d23598 14
a23611 14

echo $ac_n "checking for socket""... $ac_c" 1>&6
echo "configure:5863: checking for socket" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
d23613 2
a23614 4
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 5878 "configure"
#include "confdefs.h"
d23616 2
a23617 10
int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:5885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d23619 2
a23620 4
rm -f conftest*
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d23623 2
d23627 10
d23638 8
a23645 1
eval "ac_res=\$ac_cv_funclib_socket"
d23647 16
a23662 4
: << END
@@@@@@funcs="$funcs socket"@@@@@@
@@@@@@libs="$libs "" socket"@@@@@@
END
d23664 1
a23664 4
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"
d23666 1
a23666 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d23668 8
a23675 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d23677 3
a23679 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d23681 5
a23685 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d23687 22
a23709 2
if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d23712 10
d23723 3
d23727 19
d23747 3
d23751 16
a23766 13
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:5953: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
d23768 10
a23777 4
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 5968 "configure"
#include "confdefs.h"
d23779 1
a23779 7
int main() {
gethostbyname()
; return 0; }
EOF
if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d23781 5
a23785 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
a23787 1
fi
a23789 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
a23790 4
: << END
@@@@@@funcs="$funcs gethostbyname"@@@@@@
@@@@@@libs="$libs "" nsl"@@@@@@
END
a23791 4
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"
a23792 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d23794 14
a23807 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a23808 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d23810 8
a23817 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d23820 3
a23822 2
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
d23828 8
d23837 14
a23850 13
echo $ac_n "checking for syslog""... $ac_c" 1>&6
echo "configure:6043: checking for syslog" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_syslog'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
d23852 2
a23853 4
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 6058 "configure"
#include "confdefs.h"
d23855 2
a23856 10
int main() {
syslog()
; return 0; }
EOF
if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d23858 2
a23859 4
rm -f conftest*
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
d23862 2
d23866 10
d23877 8
a23884 1
eval "ac_res=\$ac_cv_funclib_syslog"
d23886 16
a23901 4
: << END
@@@@@@funcs="$funcs syslog"@@@@@@
@@@@@@libs="$libs "" syslog"@@@@@@
END
d23903 1
a23903 4
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"
d23905 1
a23905 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d23907 8
a23914 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d23916 3
a23918 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d23920 5
a23924 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d23926 22
a23948 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
d23951 10
d23962 3
d23966 19
d23986 3
d23990 16
a24005 13
echo $ac_n "checking for logwtmp""... $ac_c" 1>&6
echo "configure:6133: checking for logwtmp" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_logwtmp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
d24007 10
a24016 4
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 6148 "configure"
#include "confdefs.h"
d24018 1
a24018 7
int main() {
logwtmp()
; return 0; }
EOF
if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d24020 5
a24024 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
	LIBS="$ac_save_LIBS"
a24026 1
fi
a24028 1
eval "ac_res=\$ac_cv_funclib_logwtmp"
a24029 4
: << END
@@@@@@funcs="$funcs logwtmp"@@@@@@
@@@@@@libs="$libs "" util"@@@@@@
END
a24030 4
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logwtmp=$ac_res"
a24031 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d24033 1
a24033 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_logwtmp=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a24034 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a24035 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d24038 4
d24044 8
a24052 18
echo $ac_n "checking for tgetent""... $ac_c" 1>&6
echo "configure:6218: checking for tgetent" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" termcap ncurses curses; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 6233 "configure"
#include "confdefs.h"
d24054 6
a24059 10
int main() {
tgetent()
; return 0; }
EOF
if { (eval echo configure:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a24060 4
rm -f conftest*
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
d24063 4
a24069 1
eval "ac_res=\$ac_cv_funclib_tgetent"
a24070 4
: << END
@@@@@@funcs="$funcs tgetent"@@@@@@
@@@@@@libs="$libs "" termcap ncurses curses"@@@@@@
END
d24072 26
a24097 4
# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_tgetent=$ac_res"
d24099 6
a24104 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d24106 3
a24108 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_tgetent=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d24110 2
a24111 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d24113 5
a24117 1
	echo "$ac_t""yes, in $ac_res" 1>&6
d24121 8
d24130 7
d24138 6
d24145 5
d24151 5
a24155 35

echo $ac_n "checking for gethostbyname2""... $ac_c" 1>&6
echo "configure:6304: checking for gethostbyname2" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname2'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 6319 "configure"
#include "confdefs.h"

int main() {
gethostbyname2()
; return 0; }
EOF
if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
d24157 14
d24172 6
d24179 10
d24190 21
d24212 1
a24212 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
d24214 3
a24216 4
: << END
@@@@@@funcs="$funcs gethostbyname2"@@@@@@
@@@@@@libs="$libs "" inet6 ip6"@@@@@@
END
d24218 8
a24225 4
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"
a24226 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a24227 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a24228 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a24229 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d24232 3
a24234 2
if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
d24237 4
d24242 7
d24250 20
d24271 3
a24274 22

echo $ac_n "checking for res_search""... $ac_c" 1>&6
echo "configure:6395: checking for res_search" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 6410 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
d24276 3
d24280 26
a24305 17
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int main() {
res_search(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d24307 1
a24307 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d24309 2
a24310 4
rm -f conftest*
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
d24313 2
d24316 3
d24320 3
d24324 2
a24325 1
eval "ac_res=\$ac_cv_funclib_res_search"
a24326 4
: << END
@@@@@@funcs="$funcs res_search"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
END
d24328 14
a24341 4
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"
d24343 7
a24349 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d24351 3
a24353 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d24355 13
a24367 6
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
d24371 2
a24372 3
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi
d24375 4
d24380 50
d24431 37
d24469 2
d24472 10
a24481 4
echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
echo "configure:6500: checking for dn_expand" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d24483 9
a24491 13
  
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 6515 "configure"
#include "confdefs.h"
d24493 21
a24513 21
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int main() {
dn_expand(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d24515 11
a24525 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d24527 14
a24540 4
rm -f conftest*
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
d24542 5
d24548 14
d24565 2
a24566 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d24568 1
a24568 4
: << END
@@@@@@funcs="$funcs dn_expand"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
END
d24570 5
a24574 12
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d24576 12
a24587 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d24589 3
a24591 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d24593 12
a24604 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d24606 3
d24610 14
a24623 2
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d24625 5
d24631 3
d24635 26
a24661 5

echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
echo "configure:6603: checking for working snprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_snprintf_working'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d24663 4
a24666 3
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
d24668 4
a24671 3
  cat > conftest.$ac_ext <<EOF
#line 6612 "configure"
#include "confdefs.h"
d24673 9
a24681 3
#include <stdio.h>
#include <string.h>
int main()
d24683 3
a24685 3
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
d24687 21
a24707 4
EOF
if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
d24709 33
a24741 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_snprintf_working=no
fi
rm -fr conftest*
d24744 1
d24746 3
d24750 10
a24759 6
echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6

if test "$ac_cv_func_snprintf_working" = yes; then
	cat >> confdefs.h <<EOF
#define HAVE_SNPRINTF 1
EOF
a24761 1
if test "$ac_cv_func_snprintf_working" = yes; then
d24763 5
a24767 5
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo $ac_n "checking if snprintf needs a prototype""... $ac_c" 1>&6
echo "configure:6650: checking if snprintf needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_snprintf_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d24769 4
a24772 8
  cat > conftest.$ac_ext <<EOF
#line 6655 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
d24774 28
a24801 10
; return 0; }
EOF
if { (eval echo configure:6665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_snprintf_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_snprintf_noproto=no"
d24803 40
a24842 1
rm -f conftest*
d24845 2
a24846 1
echo "$ac_t""$ac_cv_func_snprintf_noproto" 1>&6
d24848 9
a24856 4
if test "$ac_cv_func_snprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
EOF
d24860 10
a24869 1
fi
d24871 28
d24901 1
d24903 3
a24905 16
echo $ac_n "checking for working vsnprintf""... $ac_c" 1>&6
echo "configure:6692: checking for working vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_working'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 6701 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>
d24907 1
a24907 9
int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}
d24909 10
d24920 9
a24928 1
int main()
d24930 3
a24932 1
	return foo(0, "12");
d24934 14
a24947 11
EOF
if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_vsnprintf_working=no
fi
rm -fr conftest*
d24950 1
a24950 1
fi
d24952 3
a24954 6
echo "$ac_t""$ac_cv_func_vsnprintf_working" 1>&6

if test "$ac_cv_func_vsnprintf_working" = yes; then
	cat >> confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
EOF
a24956 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
d24958 5
a24962 5
if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo $ac_n "checking if vsnprintf needs a prototype""... $ac_c" 1>&6
echo "configure:6750: checking if vsnprintf needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d24964 4
a24967 8
  cat > conftest.$ac_ext <<EOF
#line 6755 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);
d24969 28
a24996 12
; return 0; }
EOF
if { (eval echo configure:6765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_vsnprintf_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f conftest*
d24999 2
a25000 1
echo "$ac_t""$ac_cv_func_vsnprintf_noproto" 1>&6
d25002 18
a25019 4
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_VSNPRINTF_PROTO 1
EOF
d25021 28
d25051 2
a25054 1
fi
d25056 36
d25093 9
d25103 3
a25105 4
echo $ac_n "checking for working glob""... $ac_c" 1>&6
echo "configure:6793: checking for working glob" >&5
if eval "test \"`echo '$''{'ac_cv_func_glob_working'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25107 9
a25115 4
  ac_cv_func_glob_working=yes
cat > conftest.$ac_ext <<EOF
#line 6799 "configure"
#include "confdefs.h"
d25117 5
a25121 3
#include <stdio.h>
#include <glob.h>
int main() {
a25122 1
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
d25124 3
a25126 5
; return 0; }
EOF
if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  :
d25128 2
a25129 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_glob_working=no
fi
rm -f conftest*
a25131 1
echo "$ac_t""$ac_cv_func_glob_working" 1>&6
a25132 4
if test "$ac_cv_func_glob_working" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_GLOB 1
EOF
d25134 14
a25147 2
fi
if test "$ac_cv_func_glob_working" = yes; then
d25149 4
a25152 5
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo $ac_n "checking if glob needs a prototype""... $ac_c" 1>&6
echo "configure:6834: checking if glob needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_glob_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a25153 9
  cat > conftest.$ac_ext <<EOF
#line 6839 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <glob.h>
int main() {
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);
d25155 30
a25184 10
; return 0; }
EOF
if { (eval echo configure:6850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_glob_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_glob_noproto=no"
d25186 1
a25186 1
rm -f conftest*
a25188 1
echo "$ac_t""$ac_cv_func_glob_noproto" 1>&6
d25190 1
a25190 4
if test "$ac_cv_func_glob_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GLOB_PROTO 1
EOF
d25192 8
a25199 1
fi
d25202 1
d25205 4
d25210 7
d25218 15
a25232 3
if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.o"
fi
d25234 3
d25238 4
a25241 7
if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi
d25244 2
d25249 4
a25252 4
echo $ac_n "checking for dbopen""... $ac_c" 1>&6
echo "configure:6894: checking for dbopen" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dbopen'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25254 2
a25255 2
  
if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
d25257 8
a25264 6
	for ac_lib in "" $berkeley_db; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
d25266 13
a25278 14
		cat > conftest.$ac_ext <<EOF
#line 6909 "configure"
#include "confdefs.h"

int main() {
dbopen()
; return 0; }
EOF
if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d25280 2
a25281 1
rm -f conftest*
d25283 1
a25283 1
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
d25290 10
a25299 1
eval "ac_res=\$ac_cv_funclib_dbopen"
d25301 2
a25302 4
: << END
@@@@@@funcs="$funcs dbopen"@@@@@@
@@@@@@libs="$libs "" $berkeley_db"@@@@@@
END
d25304 3
a25306 2
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d25308 1
a25308 1
eval "LIB_dbopen=$ac_res"
d25312 3
a25314 3
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >> confdefs.h <<EOF
d25316 1
a25316 1
EOF
d25318 2
a25319 1
	echo "$ac_t""yes" 1>&6
d25322 4
a25325 3
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$ac_t""no" 1>&6
d25328 1
a25328 1
	eval "ac_cv_func_dbopen=yes"
d25330 1
a25330 1
	cat >> confdefs.h <<EOF
d25332 1
a25332 1
EOF
d25334 1
a25334 1
	cat >> confdefs.h <<EOF
d25336 1
a25336 1
EOF
d25338 2
a25339 1
	echo "$ac_t""yes, in $ac_res" 1>&6
d25344 1
d25348 4
a25351 4
echo $ac_n "checking for dbm_firstkey""... $ac_c" 1>&6
echo "configure:6979: checking for dbm_firstkey" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dbm_firstkey'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25353 2
a25354 2
  
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
d25356 8
a25363 6
	for ac_lib in "" $berkeley_db gdbm ndbm; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
d25365 13
a25377 14
		cat > conftest.$ac_ext <<EOF
#line 6994 "configure"
#include "confdefs.h"

int main() {
dbm_firstkey()
; return 0; }
EOF
if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d25379 2
a25380 1
rm -f conftest*
d25382 1
a25382 1
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
d25389 10
a25398 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d25400 2
a25401 4
: << END
@@@@@@funcs="$funcs dbm_firstkey"@@@@@@
@@@@@@libs="$libs "" $berkeley_db gdbm ndbm"@@@@@@
END
d25403 3
a25405 2
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d25407 1
a25407 1
eval "LIB_dbm_firstkey=$ac_res"
d25411 3
a25413 3
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >> confdefs.h <<EOF
d25415 1
a25415 1
EOF
d25417 2
a25418 1
	echo "$ac_t""yes" 1>&6
d25421 4
a25424 3
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$ac_t""no" 1>&6
d25427 1
a25427 1
	eval "ac_cv_func_dbm_firstkey=yes"
d25429 1
a25429 1
	cat >> confdefs.h <<EOF
d25431 1
a25431 1
EOF
d25433 1
a25433 1
	cat >> confdefs.h <<EOF
d25435 9
a25443 1
EOF
d25445 18
a25462 1
	echo "$ac_t""yes, in $ac_res" 1>&6
d25466 143
d25610 1
a25611 3
DBLIB="$LIB_dbopen"
if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
	DBLIB="$DBLIB $LIB_dbm_firstkey"
d25614 4
a25617 6
for ac_func in _getpty _scrsize asnprintf asprintf cgetent fcntl
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7069: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25619 6
a25624 20
  cat > conftest.$ac_ext <<EOF
#line 7074 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
d25626 5
a25630 6

; return 0; }
EOF
if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d25632 1
a25632 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d25635 1
d25637 5
a25642 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
a25643 1
done
d25645 7
a25651 6
for ac_func in getmsg getrlimit getspnam gettimeofday getuid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7124: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25653 2
a25654 10
  cat > conftest.$ac_ext <<EOF
#line 7129 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d25656 4
a25659 9
int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
d25662 10
a25671 5
; return 0; }
EOF
if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d25673 3
a25675 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d25677 14
a25690 1
rm -f conftest*
a25692 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
a25693 1
done
d25695 3
a25697 17
for ac_func in grantpt mktime ptsname rand random setproctitle
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7179: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7184 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d25699 1
a25699 1
int main() {
d25701 10
a25710 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d25712 11
a25722 5
; return 0; }
EOF
if { (eval echo configure:7207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d25724 1
a25724 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d25726 1
a25726 1
rm -f conftest*
d25728 5
a25733 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
a25734 1
done
d25736 4
a25739 6
for ac_func in revoke select setitimer setpcred setpgid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7234: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25741 4
a25744 10
  cat > conftest.$ac_ext <<EOF
#line 7239 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d25746 20
a25765 1
int main() {
d25767 1
a25767 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
a25768 12
; return 0; }
EOF
if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
d25771 5
a25775 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
d25777 10
a25786 3
  echo "$ac_t""no" 1>&6
fi
done
d25788 6
a25793 6
for ac_func in setregid setresgid setresuid setreuid setutent
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7289: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25795 3
a25797 10
  cat > conftest.$ac_ext <<EOF
#line 7294 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d25799 5
a25803 1
int main() {
d25805 3
a25807 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
a25808 5
; return 0; }
EOF
if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d25810 1
a25810 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d25813 1
d25816 10
a25825 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
d25827 4
a25830 1
  echo "$ac_t""no" 1>&6
a25831 1
done
d25833 4
a25836 6
for ac_func in setsid sigaction strstr
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7344: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d25838 7
a25844 18
  cat > conftest.$ac_ext <<EOF
#line 7349 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
d25846 5
a25850 1
$ac_func();
d25853 14
a25866 5
; return 0; }
EOF
if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d25868 7
a25874 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d25876 6
a25881 1
rm -f conftest*
d25884 67
a25950 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d25952 1
a25954 17
for ac_func in sysconf sysctl timegm ttyname ttyslot umask uname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7399: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7404 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d25956 7
a25962 10
int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
a25963 12
; return 0; }
EOF
if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
a25965 10
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
a25967 19
for ac_func in unlockpt vasnprintf vasprintf vhangup
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7454: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7459 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
d25969 12
a25980 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
a25981 12
; return 0; }
EOF
if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
a25983 10
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
a25985 19
for ac_func in yp_get_default_domain
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7509: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7514 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
d25987 5
a25991 7
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
d25993 5
a25998 12
; return 0; }
EOF
if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
a26000 10
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
d26004 12
a26015 2
if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.o"
d26018 1
a26019 17
for ac_func in getlogin setlogin
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7570: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7575 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d26021 8
a26028 9
int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
d26030 5
a26035 12
; return 0; }
EOF
if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
a26037 10
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
a26039 14
if test "$ac_cv_func_getlogin" = yes; then
echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6
echo "configure:7624: checking if getlogin is posix" >&5
if eval "test \"`echo '$''{'ac_cv_func_getlogin_posix'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi

fi
d26041 14
a26054 5
echo "$ac_t""$ac_cv_func_getlogin_posix" 1>&6
if test "$ac_cv_func_getlogin_posix" = yes; then
	cat >> confdefs.h <<\EOF
#define POSIX_GETLOGIN 1
EOF
a26056 1
fi
d26058 1
d26061 10
a26071 37
for ac_hdr in capability.h sys/capability.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7653: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7658 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d26073 1
a26076 42
for ac_func in sgi_getcapabilitybyname cap_set_proc
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7693: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7698 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a26077 11
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done
d26085 4
a26088 4
echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
echo "configure:7752: checking for getpwnam_r" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26090 2
a26091 2
  
if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
d26093 8
a26100 6
	for ac_lib in "" c_r; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
d26102 6
a26107 3
		cat > conftest.$ac_ext <<EOF
#line 7767 "configure"
#include "confdefs.h"
d26109 10
a26118 10
int main() {
getpwnam_r()
; return 0; }
EOF
if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d26120 2
a26121 1
rm -f conftest*
d26123 1
a26123 1
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
d26130 10
a26139 1
eval "ac_res=\$ac_cv_funclib_getpwnam_r"
d26141 2
a26142 4
: << END
@@@@@@funcs="$funcs getpwnam_r"@@@@@@
@@@@@@libs="$libs "" c_r"@@@@@@
END
d26144 3
a26146 2
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d26148 1
a26148 1
eval "LIB_getpwnam_r=$ac_res"
d26152 3
a26154 3
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >> confdefs.h <<EOF
d26156 1
a26156 1
EOF
d26158 2
a26159 1
	echo "$ac_t""yes" 1>&6
d26162 4
a26165 3
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	echo "$ac_t""no" 1>&6
d26168 1
a26168 1
	eval "ac_cv_func_getpwnam_r=yes"
d26170 1
a26170 1
	cat >> confdefs.h <<EOF
d26172 1
a26172 1
EOF
d26174 1
a26174 1
	cat >> confdefs.h <<EOF
d26176 1
a26176 1
EOF
d26178 2
a26179 1
	echo "$ac_t""yes, in $ac_res" 1>&6
d26184 7
a26190 5
if test "$ac_cv_func_getpwnam_r" = yes; then
	echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
echo "configure:7835: checking if getpwnam_r is posix" >&5
if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a26191 8
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 7845 "configure"
#include "confdefs.h"
d26193 20
a26212 2
#include <pwd.h>
int main()
d26214 3
a26216 2
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
d26218 3
a26220 10

EOF
if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_getpwnam_r_posix=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_getpwnam_r_posix=no
d26222 5
a26226 1
rm -fr conftest*
a26228 1
LIBS="$ac_libs"
d26231 11
a26241 5
echo "$ac_t""$ac_cv_func_getpwnam_r_posix" 1>&6
if test "$ac_cv_func_getpwnam_r_posix" = yes; then
	cat >> confdefs.h <<\EOF
#define POSIX_GETPWNAM_R 1
EOF
d26244 2
d26247 28
d26276 8
d26288 5
a26292 4
echo $ac_n "checking for getsockopt""... $ac_c" 1>&6
echo "configure:7885: checking for getsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26294 2
a26295 2
  
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
d26297 8
a26304 6
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
d26306 5
a26310 5
		cat > conftest.$ac_ext <<EOF
#line 7900 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d26312 11
a26322 13
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
getsockopt(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d26324 2
a26325 1
rm -f conftest*
d26327 1
a26327 1
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
d26334 10
a26343 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
d26345 2
a26346 4
: << END
@@@@@@funcs="$funcs getsockopt"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
END
d26348 3
a26350 2
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d26352 1
a26352 1
eval "LIB_getsockopt=$ac_res"
d26356 3
a26358 3
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >> confdefs.h <<EOF
d26360 1
a26360 1
EOF
d26362 2
a26363 1
	echo "$ac_t""yes" 1>&6
d26366 4
a26369 3
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$ac_t""no" 1>&6
d26372 1
a26372 1
	eval "ac_cv_func_getsockopt=yes"
d26374 1
a26374 1
	cat >> confdefs.h <<EOF
d26376 1
a26376 1
EOF
d26378 1
a26378 1
	cat >> confdefs.h <<EOF
d26380 1
a26380 1
EOF
d26382 2
a26383 1
	echo "$ac_t""yes, in $ac_res" 1>&6
d26391 5
a26395 4
echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
echo "configure:7975: checking for setsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26397 2
a26398 2
  
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
d26400 8
a26407 6
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
d26409 5
a26413 5
		cat > conftest.$ac_ext <<EOF
#line 7990 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d26415 2
a26416 2
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d26418 11
a26428 10
int main() {
setsockopt(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d26430 2
a26431 1
rm -f conftest*
d26433 1
a26433 1
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
d26440 10
a26449 1
eval "ac_res=\$ac_cv_funclib_setsockopt"
d26451 2
a26452 4
: << END
@@@@@@funcs="$funcs setsockopt"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
END
d26454 3
a26456 2
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d26458 1
a26458 1
eval "LIB_setsockopt=$ac_res"
d26462 3
a26464 3
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >> confdefs.h <<EOF
d26466 1
a26466 1
EOF
d26468 2
a26469 1
	echo "$ac_t""yes" 1>&6
d26472 4
a26475 3
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$ac_t""no" 1>&6
d26478 1
a26478 1
	eval "ac_cv_func_setsockopt=yes"
d26480 1
a26480 1
	cat >> confdefs.h <<EOF
d26482 1
a26482 1
EOF
d26484 1
a26484 1
	cat >> confdefs.h <<EOF
d26486 1
a26486 1
EOF
d26488 2
a26489 1
	echo "$ac_t""yes, in $ac_res" 1>&6
a26494 17
for ac_func in getudbnam setlim
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8065: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8070 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d26496 44
a26539 1
int main() {
a26540 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d26542 15
a26556 5
; return 0; }
EOF
if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d26558 1
a26558 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d26560 8
a26567 1
rm -f conftest*
d26569 11
a26580 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d26584 74
d26659 73
a26731 4
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:8119: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26733 12
a26744 13
  cat > conftest.$ac_ext <<EOF
#line 8124 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif
a26745 12
int main() {
int i;
; return 0; }
EOF
if { (eval echo configure:8141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_signal=void
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_signal=int
d26747 15
a26761 1
rm -f conftest*
d26764 1
a26764 4
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
d26767 9
a26775 4
if test "$ac_cv_type_signal" = "void" ; then
	cat >> confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
EOF
d26778 2
d26786 4
a26789 4
echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
echo "configure:8172: checking for hstrerror" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26791 2
a26792 2
  
if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
d26794 8
a26801 6
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
d26803 13
a26815 16
		cat > conftest.$ac_ext <<EOF
#line 8187 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int main() {
hstrerror(17)
; return 0; }
EOF
if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d26817 2
a26818 1
rm -f conftest*
d26820 1
a26820 1
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
d26827 10
a26836 1
eval "ac_res=\$ac_cv_funclib_hstrerror"
d26838 2
a26839 4
: << END
@@@@@@funcs="$funcs hstrerror"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
END
d26841 3
a26843 2
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d26845 1
a26845 1
eval "LIB_hstrerror=$ac_res"
d26849 3
a26851 3
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >> confdefs.h <<EOF
d26853 1
a26853 1
EOF
d26855 2
a26856 1
	echo "$ac_t""yes" 1>&6
d26859 4
a26862 3
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$ac_t""no" 1>&6
d26865 1
a26865 1
	eval "ac_cv_func_hstrerror=yes"
d26867 1
a26867 1
	cat >> confdefs.h <<EOF
d26869 1
a26869 1
EOF
d26871 1
a26871 1
	cat >> confdefs.h <<EOF
d26873 1
a26873 1
EOF
d26875 2
a26876 1
	echo "$ac_t""yes, in $ac_res" 1>&6
d26881 5
a26885 15
if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
fi

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
LIBOBJS="$LIBOBJS hstrerror.o"
fi

if test "$ac_cv_func_hstrerror" = yes; then

if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo $ac_n "checking if hstrerror needs a prototype""... $ac_c" 1>&6
echo "configure:8267: checking if hstrerror needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26887 4
a26890 17
  cat > conftest.$ac_ext <<EOF
#line 8272 "configure"
#include "confdefs.h"

#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int main() {
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

; return 0; }
EOF
if { (eval echo configure:8285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_noproto=yes"
d26892 2
a26893 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_noproto=no"
fi
rm -f conftest*
fi
d26895 7
a26901 54
echo "$ac_t""$ac_cv_func_hstrerror_noproto" 1>&6

if test "$ac_cv_func_hstrerror_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_HSTRERROR_PROTO 1
EOF

fi

fi

fi

if test "$ac_cv_func_asprintf" = yes; then

if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo $ac_n "checking if asprintf needs a prototype""... $ac_c" 1>&6
echo "configure:8314: checking if asprintf needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_asprintf_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8319 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int main() {
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);

; return 0; }
EOF
if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_asprintf_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_asprintf_noproto=no"
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_asprintf_noproto" 1>&6

if test "$ac_cv_func_asprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_ASPRINTF_PROTO 1
EOF

fi
d26903 5
d26909 2
a26911 1
if test "$ac_cv_func_vasprintf" = yes; then
d26913 13
a26925 5
if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo $ac_n "checking if vasprintf needs a prototype""... $ac_c" 1>&6
echo "configure:8358: checking if vasprintf needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_vasprintf_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d26927 2
a26928 3
  cat > conftest.$ac_ext <<EOF
#line 8363 "configure"
#include "confdefs.h"
d26930 6
a26935 6
#include <stdio.h>
#include <string.h>
int main() {
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);
d26937 3
a26939 5
; return 0; }
EOF
if { (eval echo configure:8375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_vasprintf_noproto=yes"
d26941 1
a26941 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_vasprintf_noproto=no"
d26943 2
a26944 1
rm -f conftest*
d26947 5
a26951 6
echo "$ac_t""$ac_cv_func_vasprintf_noproto" 1>&6

if test "$ac_cv_func_vasprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_VASPRINTF_PROTO 1
EOF
d26953 1
a26953 1
fi
d26956 1
a26956 12
fi
if test "$ac_cv_func_asnprintf" = yes; then

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo $ac_n "checking if asnprintf needs a prototype""... $ac_c" 1>&6
echo "configure:8402: checking if asnprintf needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_asnprintf_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8407 "configure"
#include "confdefs.h"
d26958 1
a26958 6
#include <stdio.h>
#include <string.h>
int main() {
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
a26959 10
; return 0; }
EOF
if { (eval echo configure:8419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_asnprintf_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_asnprintf_noproto=no"
a26960 1
rm -f conftest*
a26962 1
echo "$ac_t""$ac_cv_func_asnprintf_noproto" 1>&6
d26964 3
a26966 4
if test "$ac_cv_func_asnprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_ASNPRINTF_PROTO 1
EOF
a26967 1
fi
a26968 3
fi
fi
if test "$ac_cv_func_vasnprintf" = yes; then
d26970 4
a26973 5
if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo $ac_n "checking if vasnprintf needs a prototype""... $ac_c" 1>&6
echo "configure:8446: checking if vasnprintf needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_vasnprintf_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a26974 3
  cat > conftest.$ac_ext <<EOF
#line 8451 "configure"
#include "confdefs.h"
d26976 13
a26988 6
#include <stdio.h>
#include <string.h>
int main() {
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);
d26990 10
a26999 10
; return 0; }
EOF
if { (eval echo configure:8463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_vasnprintf_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_vasnprintf_noproto=no"
d27001 5
a27005 1
rm -f conftest*
a27007 7
echo "$ac_t""$ac_cv_func_vasnprintf_noproto" 1>&6

if test "$ac_cv_func_vasnprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_VASNPRINTF_PROTO 1
EOF

a27009 2
fi
fi
d27011 1
a27011 17
for ac_func in chown copyhostent daemon err errx fchown flock fnmatch
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8490: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8495 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d27013 8
a27020 1
int main() {
d27022 2
a27023 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
a27024 12
; return 0; }
EOF
if { (eval echo configure:8518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
d27026 4
d27031 5
a27035 5
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
d27037 1
a27037 1
EOF
d27039 15
a27053 4
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
d27055 3
a27057 4
: << END
@@@@@@funcs="$funcs chown copyhostent daemon err errx fchown flock fnmatch"@@@@@@
END
done
d27059 4
a27062 17
for ac_func in freeaddrinfo freehostent gai_strerror getaddrinfo
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8551: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8556 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27063 1
int main() {
d27065 2
a27066 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27068 3
a27070 5
; return 0; }
EOF
if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27072 1
a27072 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27074 6
a27079 1
rm -f conftest*
d27081 1
d27083 1
a27083 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d27085 4
d27090 2
a27091 2
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27093 4
: << END
@@@@@@funcs="$funcs freeaddrinfo freehostent gai_strerror getaddrinfo"@@@@@@
END
done
a27094 17
for ac_func in getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8612: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8617 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27095 1
int main() {
d27097 9
a27105 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
a27106 12
; return 0; }
EOF
if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
d27108 1
a27109 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27110 4
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
a27111 4
: << END
@@@@@@funcs="$funcs getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname"@@@@@@
END
done
a27112 17
for ac_func in geteuid getgid getegid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8673: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8678 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27113 1
int main() {
d27115 5
a27119 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27121 13
a27133 5
; return 0; }
EOF
if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27135 1
a27135 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27137 2
a27138 1
rm -f conftest*
d27140 6
a27146 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27147 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27149 4
: << END
@@@@@@funcs="$funcs geteuid getgid getegid"@@@@@@
END
done
a27150 17
for ac_func in getnameinfo getopt getusershell
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8734: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8739 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27151 1
int main() {
d27153 5
a27157 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27159 13
a27171 5
; return 0; }
EOF
if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27173 1
a27173 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27175 2
a27176 1
rm -f conftest*
d27178 6
a27184 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27185 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27187 4
: << END
@@@@@@funcs="$funcs getnameinfo getopt getusershell"@@@@@@
END
done
a27188 17
for ac_func in inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8795: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8800 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27189 1
int main() {
d27191 5
a27195 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27197 13
a27209 5
; return 0; }
EOF
if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27211 1
a27211 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27213 2
a27214 1
rm -f conftest*
d27216 6
a27222 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27223 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27225 4
: << END
@@@@@@funcs="$funcs inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat"@@@@@@
END
done
a27226 17
for ac_func in memmove
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8856: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8861 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27227 1
int main() {
d27229 5
a27233 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27235 13
a27247 5
; return 0; }
EOF
if { (eval echo configure:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27249 1
a27249 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27251 2
a27252 1
rm -f conftest*
d27254 6
a27260 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27261 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27263 4
: << END
@@@@@@funcs="$funcs memmove"@@@@@@
END
done
a27264 17
for ac_func in mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8917: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8922 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27265 1
int main() {
d27267 5
a27271 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27273 13
a27285 5
; return 0; }
EOF
if { (eval echo configure:8945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27287 1
a27287 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27289 2
a27290 1
rm -f conftest*
d27292 6
a27298 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27299 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27301 4
: << END
@@@@@@funcs="$funcs mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@@@@
END
done
a27302 17
for ac_func in strcasecmp strncasecmp strdup strerror strftime
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8978: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8983 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27303 1
int main() {
d27305 5
a27309 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27311 13
a27323 5
; return 0; }
EOF
if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27325 1
a27325 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27327 2
a27328 1
rm -f conftest*
d27330 6
a27336 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27337 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27339 4
: << END
@@@@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime"@@@@@@
END
done
a27340 17
for ac_func in strlcat strlcpy strlwr
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9039: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9044 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27341 1
int main() {
d27343 5
a27347 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27349 13
a27361 5
; return 0; }
EOF
if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27363 1
a27363 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27365 2
a27366 1
rm -f conftest*
d27368 6
a27374 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27375 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27377 4
: << END
@@@@@@funcs="$funcs strlcat strlcpy strlwr"@@@@@@
END
done
a27378 17
for ac_func in strndup strnlen strptime strsep strtok_r strupr
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9100: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9105 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27379 1
int main() {
d27381 5
a27385 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27387 13
a27399 5
; return 0; }
EOF
if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27401 1
a27401 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27403 2
a27404 1
rm -f conftest*
d27406 6
a27412 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27413 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27415 4
: << END
@@@@@@funcs="$funcs strndup strnlen strptime strsep strtok_r strupr"@@@@@@
END
done
a27416 17
for ac_func in swab unsetenv verr verrx vsyslog
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9161: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9166 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27417 1
int main() {
d27419 5
a27423 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27425 13
a27437 5
; return 0; }
EOF
if { (eval echo configure:9189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27439 1
a27439 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27441 2
a27442 1
rm -f conftest*
d27444 6
a27450 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27451 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27453 4
: << END
@@@@@@funcs="$funcs swab unsetenv verr verrx vsyslog"@@@@@@
END
done
a27454 17
for ac_func in vwarn vwarnx warn warnx writev
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9222: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9227 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
a27455 1
int main() {
d27457 5
a27461 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
d27463 13
a27475 5
; return 0; }
EOF
if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d27477 1
a27477 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d27479 2
a27480 1
rm -f conftest*
d27482 6
a27488 7
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27489 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a27491 4
: << END
@@@@@@funcs="$funcs vwarn vwarnx warn warnx writev"@@@@@@
END
done
d27495 4
a27498 5
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo $ac_n "checking if setenv needs a prototype""... $ac_c" 1>&6
echo "configure:9284: checking if setenv needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_setenv_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a27499 8
  cat > conftest.$ac_ext <<EOF
#line 9289 "configure"
#include "confdefs.h"
#include <stdlib.h>
int main() {
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);
d27501 13
a27513 5
; return 0; }
EOF
if { (eval echo configure:9299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_setenv_noproto=yes"
d27515 1
a27515 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_setenv_noproto=no"
d27517 2
a27518 1
rm -f conftest*
d27520 4
d27525 1
a27525 1
echo "$ac_t""$ac_cv_func_setenv_noproto" 1>&6
a27526 4
if test "$ac_cv_func_setenv_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_SETENV_PROTO 1
EOF
a27529 1
fi
d27532 5
a27536 5
if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo $ac_n "checking if unsetenv needs a prototype""... $ac_c" 1>&6
echo "configure:9325: checking if unsetenv needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_unsetenv_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a27537 8
  cat > conftest.$ac_ext <<EOF
#line 9330 "configure"
#include "confdefs.h"
#include <stdlib.h>
int main() {
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);
d27539 13
a27551 5
; return 0; }
EOF
if { (eval echo configure:9340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_unsetenv_noproto=yes"
d27553 1
a27553 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_unsetenv_noproto=no"
d27555 2
a27556 1
rm -f conftest*
d27558 4
d27563 1
a27563 1
echo "$ac_t""$ac_cv_func_unsetenv_noproto" 1>&6
a27564 4
if test "$ac_cv_func_unsetenv_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_UNSETENV_PROTO 1
EOF
a27567 1
fi
d27570 5
a27574 5
if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo $ac_n "checking if gethostname needs a prototype""... $ac_c" 1>&6
echo "configure:9366: checking if gethostname needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostname_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a27575 8
  cat > conftest.$ac_ext <<EOF
#line 9371 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);
d27577 13
a27589 5
; return 0; }
EOF
if { (eval echo configure:9381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_gethostname_noproto=yes"
d27591 1
a27591 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostname_noproto=no"
d27593 2
a27594 1
rm -f conftest*
d27596 4
d27601 1
a27601 1
echo "$ac_t""$ac_cv_func_gethostname_noproto" 1>&6
a27602 4
if test "$ac_cv_func_gethostname_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GETHOSTNAME_PROTO 1
EOF
a27605 1
fi
d27608 5
a27612 5
if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo $ac_n "checking if mkstemp needs a prototype""... $ac_c" 1>&6
echo "configure:9407: checking if mkstemp needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_mkstemp_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a27613 8
  cat > conftest.$ac_ext <<EOF
#line 9412 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);
d27615 13
a27627 5
; return 0; }
EOF
if { (eval echo configure:9422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_mkstemp_noproto=yes"
d27629 1
a27629 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_mkstemp_noproto=no"
d27631 2
a27632 1
rm -f conftest*
d27634 3
a27637 1
echo "$ac_t""$ac_cv_func_mkstemp_noproto" 1>&6
d27639 2
a27640 4
if test "$ac_cv_func_mkstemp_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_MKSTEMP_PROTO 1
EOF
a27643 1
fi
d27646 5
a27650 5
if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo $ac_n "checking if getusershell needs a prototype""... $ac_c" 1>&6
echo "configure:9448: checking if getusershell needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_getusershell_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a27651 8
  cat > conftest.$ac_ext <<EOF
#line 9453 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);
d27653 13
a27665 5
; return 0; }
EOF
if { (eval echo configure:9463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_getusershell_noproto=yes"
d27667 1
a27667 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_getusershell_noproto=no"
d27669 2
a27670 1
rm -f conftest*
d27672 3
a27675 1
echo "$ac_t""$ac_cv_func_getusershell_noproto" 1>&6
d27677 1
a27677 4
if test "$ac_cv_func_getusershell_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GETUSERSHELL_PROTO 1
EOF
a27678 1
fi
d27684 4
a27687 10
if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo $ac_n "checking if inet_aton needs a prototype""... $ac_c" 1>&6
echo "configure:9490: checking if inet_aton needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9495 "configure"
#include "confdefs.h"

d27691 2
a27692 2
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d27694 2
a27695 2
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
d27697 2
a27698 2
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
a27699 4
int main() {
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);
d27701 2
a27702 13
; return 0; }
EOF
if { (eval echo configure:9517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_inet_aton_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_inet_aton_noproto=no"
fi
rm -f conftest*
fi
d27704 3
a27706 1
echo "$ac_t""$ac_cv_func_inet_aton_noproto" 1>&6
a27707 4
if test "$ac_cv_func_inet_aton_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
EOF
d27710 19
d27730 3
a27732 1
fi
d27735 17
d27753 2
d27756 3
a27759 18
echo $ac_n "checking for crypt""... $ac_c" 1>&6
echo "configure:9545: checking for crypt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_crypt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 9560 "configure"
#include "confdefs.h"
a27760 15
int main() {
crypt()
; return 0; }
EOF
if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
d27762 16
d27779 2
a27780 1
fi
d27782 3
a27785 1
eval "ac_res=\$ac_cv_funclib_crypt"
d27787 17
a27803 4
: << END
@@@@@@funcs="$funcs crypt"@@@@@@
@@@@@@libs="$libs "" crypt"@@@@@@
END
d27805 2
a27806 4
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"
d27808 3
a27810 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a27811 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d27813 17
a27829 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d27831 2
a27832 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d27834 3
d27839 17
a27855 1
LIB_roken='$(top_builddir)/lib/roken/libroken.la $(LIB_crypt) $(LIB_dbopen)'
d27857 2
a27858 13
echo $ac_n "checking if realloc if broken""... $ac_c" 1>&6
echo "configure:9630: checking if realloc if broken" >&5
if eval "test \"`echo '$''{'ac_cv_func_realloc_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 9640 "configure"
#include "confdefs.h"
d27860 3
a27862 2
#include <stddef.h>
#include <stdlib.h>
a27863 4
int main()
{
	return realloc(NULL, 17) == NULL;
}
a27864 11
EOF
if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_realloc_broken=yes
fi
rm -fr conftest*
d27866 16
d27883 2
d27886 3
a27888 1
fi
a27889 5
echo "$ac_t""$ac_cv_func_realloc_broken" 1>&6
if test "$ac_cv_func_realloc_broken" = yes ; then
	cat >> confdefs.h <<\EOF
#define BROKEN_REALLOC 1
EOF
d27892 16
d27909 2
d27912 3
d27917 5
a27921 9
echo $ac_n "checking if gethostbyname is compatible with system prototype""... $ac_c" 1>&6
echo "configure:9679: checking if gethostbyname is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_proto_compat'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9684 "configure"
#include "confdefs.h"

d27925 2
a27926 2
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d27928 2
a27929 2
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
d27931 2
a27932 5
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
d27935 2
a27936 15
int main() {
struct hostent *gethostbyname(const char *);
; return 0; }
EOF
if { (eval echo configure:9707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname_proto_compat=no"
fi
rm -f conftest*
fi
d27938 3
a27940 1
echo "$ac_t""$ac_cv_func_gethostbyname_proto_compat" 1>&6
a27941 4
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
EOF
d27944 4
a27947 13




echo $ac_n "checking if gethostbyaddr is compatible with system prototype""... $ac_c" 1>&6
echo "configure:9732: checking if gethostbyaddr is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_proto_compat'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9737 "configure"
#include "confdefs.h"

d27951 2
a27952 2
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d27954 2
a27955 2
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
d27957 2
a27958 5
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
d27961 2
a27962 15
int main() {
struct hostent *gethostbyaddr(const void *, size_t, int);
; return 0; }
EOF
if { (eval echo configure:9760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostbyaddr_proto_compat=no"
fi
rm -f conftest*
fi
d27964 3
a27966 1
echo "$ac_t""$ac_cv_func_gethostbyaddr_proto_compat" 1>&6
a27967 4
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
EOF
d27970 4
a27973 13




echo $ac_n "checking if getservbyname is compatible with system prototype""... $ac_c" 1>&6
echo "configure:9785: checking if getservbyname is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_getservbyname_proto_compat'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9790 "configure"
#include "confdefs.h"

d27977 2
a27978 2
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d27980 2
a27981 2
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
d27983 2
a27984 5
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
d27987 2
a27988 15
int main() {
struct servent *getservbyname(const char *, const char *);
; return 0; }
EOF
if { (eval echo configure:9813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_getservbyname_proto_compat=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_getservbyname_proto_compat=no"
fi
rm -f conftest*
fi
d27990 3
a27992 1
echo "$ac_t""$ac_cv_func_getservbyname_proto_compat" 1>&6
a27993 4
if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
EOF
d28000 4
a28003 4
echo $ac_n "checking if openlog is compatible with system prototype""... $ac_c" 1>&6
echo "configure:9838: checking if openlog is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_openlog_proto_compat'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a28004 3
  cat > conftest.$ac_ext <<EOF
#line 9843 "configure"
#include "confdefs.h"
d28006 13
a28018 3
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif
d28020 6
a28025 12
int main() {
void openlog(const char *, int, int);
; return 0; }
EOF
if { (eval echo configure:9854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_openlog_proto_compat=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_openlog_proto_compat=no"
d28027 3
a28029 1
rm -f conftest*
a28031 7
echo "$ac_t""$ac_cv_func_openlog_proto_compat" 1>&6

if test "$ac_cv_func_openlog_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define OPENLOG_PROTO_COMPATIBLE 1
EOF

d28035 1
d28037 1
d28039 2
a28040 5
if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo $ac_n "checking if crypt needs a prototype""... $ac_c" 1>&6
echo "configure:9880: checking if crypt needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_crypt_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d28042 6
a28047 21
  cat > conftest.$ac_ext <<EOF
#line 9885 "configure"
#include "confdefs.h"

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int main() {
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

; return 0; }
EOF
if { (eval echo configure:9902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_crypt_noproto=yes"
d28049 2
a28050 17
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_crypt_noproto=no"
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_crypt_noproto" 1>&6

if test "$ac_cv_func_crypt_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_CRYPT_PROTO 1
EOF

fi

d28054 1
d28056 5
a28060 5
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo $ac_n "checking if strtok_r needs a prototype""... $ac_c" 1>&6
echo "configure:9929: checking if strtok_r needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_strtok_r_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d28062 3
a28064 7
  cat > conftest.$ac_ext <<EOF
#line 9934 "configure"
#include "confdefs.h"

#include <string.h>

int main() {
d28066 11
a28076 8
extern int strtok_r (struct foo*);
strtok_r(&xx);

; return 0; }
EOF
if { (eval echo configure:9946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_strtok_r_noproto=yes"
d28078 1
a28078 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_strtok_r_noproto=no"
d28080 1
a28080 1
rm -f conftest*
d28082 3
d28086 1
a28086 6
echo "$ac_t""$ac_cv_func_strtok_r_noproto" 1>&6

if test "$ac_cv_func_strtok_r_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_STRTOK_R_PROTO 1
EOF
d28088 1
a28094 9
if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo $ac_n "checking if strsep needs a prototype""... $ac_c" 1>&6
echo "configure:9973: checking if strsep needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9978 "configure"
#include "confdefs.h"
a28095 1
#include <string.h>
a28096 4
int main() {
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);
d28098 8
a28105 5
; return 0; }
EOF
if { (eval echo configure:9990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_strsep_noproto=yes"
d28107 2
a28108 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_strsep_noproto=no"
d28110 6
a28115 1
rm -f conftest*
a28117 1
echo "$ac_t""$ac_cv_func_strsep_noproto" 1>&6
d28119 1
a28119 4
if test "$ac_cv_func_strsep_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_STRSEP_PROTO 1
EOF
a28120 1
fi
a28121 1
fi
d28125 1
a28125 25
echo $ac_n "checking for h_errno""... $ac_c" 1>&6
echo "configure:10016: checking for h_errno" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10022 "configure"
#include "confdefs.h"
extern int h_errno;
int foo() { return h_errno; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_var_h_errno=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_errno=no
fi
rm -f conftest*
d28127 1
a28127 1
fi
d28129 1
d28131 1
d28133 2
a28134 5
echo "$ac_t""`eval echo \\$ac_cv_var_h_errno`" 1>&6
if test `eval echo \\$ac_cv_var_h_errno` = yes; then
	cat >> confdefs.h <<EOF
#define HAVE_H_ERRNO 1
EOF
d28136 1
a28136 31
	
echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6
echo "configure:10053: checking if h_errno is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errno_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10059 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
int main() {
h_errno.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_errno_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_errno_declaration=yes"
fi
rm -f conftest*
d28140 4
d28145 6
a28150 7


echo "$ac_t""$ac_cv_var_h_errno_declaration" 1>&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_H_ERRNO_DECLARATION 1
EOF
d28154 8
a28161 24

fi




echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
echo "configure:10103: checking for h_errlist" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errlist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10109 "configure"
#include "confdefs.h"
extern int h_errlist;
int foo() { return h_errlist; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:10117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_var_h_errlist=yes
d28163 2
a28164 9
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_errlist=no
fi
rm -f conftest*

fi

d28166 2
d28169 8
a28176 5
echo "$ac_t""`eval echo \\$ac_cv_var_h_errlist`" 1>&6
if test `eval echo \\$ac_cv_var_h_errlist` = yes; then
	cat >> confdefs.h <<EOF
#define HAVE_H_ERRLIST 1
EOF
d28178 3
a28180 21
	
echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6
echo "configure:10140: checking if h_errlist is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errlist_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10146 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
int main() {
h_errlist.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=no"
d28182 4
a28185 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=yes"
a28186 1
rm -f conftest*
d28189 3
d28193 1
d28196 1
d28198 4
a28201 5
echo "$ac_t""$ac_cv_var_h_errlist_declaration" 1>&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_H_ERRLIST_DECLARATION 1
EOF
a28202 1
fi
a28204 1
fi
d28208 24
d28233 6
a28238 18
echo $ac_n "checking for h_nerr""... $ac_c" 1>&6
echo "configure:10187: checking for h_nerr" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_nerr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10193 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_var_h_nerr=yes
d28240 2
a28241 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_nerr=no
a28242 1
rm -f conftest*
a28243 1
fi
d28246 4
d28251 10
a28260 4
echo "$ac_t""`eval echo \\$ac_cv_var_h_nerr`" 1>&6
if test `eval echo \\$ac_cv_var_h_nerr` = yes; then
	cat >> confdefs.h <<EOF
#define HAVE_H_NERR 1
d28262 10
d28273 6
a28278 12
	
echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6
echo "configure:10224: checking if h_nerr is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_nerr_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10230 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
d28280 5
a28284 8
extern struct { int foo; } h_nerr;
int main() {
h_nerr.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_nerr_declaration=no"
d28286 19
a28304 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_nerr_declaration=yes"
d28308 10
d28320 13
d28334 4
d28339 17
d28357 34
a28390 6
echo "$ac_t""$ac_cv_var_h_nerr_declaration" 1>&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_H_NERR_DECLARATION 1
EOF

a28393 1
fi
a28397 25
echo $ac_n "checking for __progname""... $ac_c" 1>&6
echo "configure:10271: checking for __progname" >&5
if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10277 "configure"
#include "confdefs.h"
extern int __progname;
int foo() { return __progname; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_var___progname=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var___progname=no
fi
rm -f conftest*
a28398 1
fi
d28401 2
d28404 14
a28417 5
echo "$ac_t""`eval echo \\$ac_cv_var___progname`" 1>&6
if test `eval echo \\$ac_cv_var___progname` = yes; then
	cat >> confdefs.h <<EOF
#define HAVE___PROGNAME 1
EOF
d28419 16
a28434 21
	
echo $ac_n "checking if __progname is properly declared""... $ac_c" 1>&6
echo "configure:10308: checking if __progname is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var___progname_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10314 "configure"
#include "confdefs.h"
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
int main() {
__progname.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var___progname_declaration=no"
d28436 2
a28437 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var___progname_declaration=yes"
a28438 1
rm -f conftest*
a28439 1
fi
d28443 11
d28455 3
a28457 5
echo "$ac_t""$ac_cv_var___progname_declaration" 1>&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE___PROGNAME_DECLARATION 1
EOF
d28459 6
a28464 1
fi
d28466 3
d28470 6
a28475 1
fi
d28477 3
d28481 6
d28488 3
d28492 6
a28497 28
echo $ac_n "checking if optarg is properly declared""... $ac_c" 1>&6
echo "configure:10355: checking if optarg is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optarg_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10361 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optarg;
int main() {
optarg.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_optarg_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_optarg_declaration=yes"
fi
rm -f conftest*
d28499 3
a28501 1
fi
d28503 6
d28510 3
a28514 5
echo "$ac_t""$ac_cv_var_optarg_declaration" 1>&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_OPTARG_DECLARATION 1
EOF
a28515 1
fi
d28518 4
d28523 2
a28524 26
echo $ac_n "checking if optind is properly declared""... $ac_c" 1>&6
echo "configure:10399: checking if optind is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optind_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10405 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
int main() {
optind.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_optind_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_optind_declaration=yes"
a28525 1
rm -f conftest*
d28527 12
a28543 5
echo "$ac_t""$ac_cv_var_optind_declaration" 1>&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_OPTIND_DECLARATION 1
EOF
a28544 1
fi
d28547 4
d28552 3
a28554 21
echo $ac_n "checking if opterr is properly declared""... $ac_c" 1>&6
echo "configure:10443: checking if opterr is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_opterr_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10449 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
int main() {
opterr.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_opterr_declaration=no"
d28556 2
a28557 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_opterr_declaration=yes"
a28558 1
rm -f conftest*
d28560 2
a28561 1
fi
d28564 13
d28578 1
d28580 21
a28600 5
echo "$ac_t""$ac_cv_var_opterr_declaration" 1>&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_OPTERR_DECLARATION 1
EOF
d28602 34
d28637 7
d28645 14
d28661 151
a28811 26
echo $ac_n "checking if optopt is properly declared""... $ac_c" 1>&6
echo "configure:10487: checking if optopt is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optopt_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10493 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
int main() {
optopt.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_optopt_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_optopt_declaration=yes"
d28813 3
a28815 2
rm -f conftest*

d28817 3
a28819 10




echo "$ac_t""$ac_cv_var_optopt_declaration" 1>&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_OPTOPT_DECLARATION 1
EOF

d28821 3
a28823 27




echo $ac_n "checking if environ is properly declared""... $ac_c" 1>&6
echo "configure:10532: checking if environ is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_environ_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10538 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } environ;
int main() {
environ.foo = 1;
; return 0; }
EOF
if { (eval echo configure:10546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_environ_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_environ_declaration=yes"
d28825 3
a28827 2
rm -f conftest*

d28829 3
a28831 10




echo "$ac_t""$ac_cv_var_environ_declaration" 1>&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_ENVIRON_DECLARATION 1
EOF

d28833 3
a28835 28






echo $ac_n "checking for ut_addr in struct utmp""... $ac_c" 1>&6
echo "configure:10576: checking for ut_addr in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_addr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10582 "configure"
#include "confdefs.h"
#include <utmp.h>
int main() {
struct utmp x; x.ut_addr;
; return 0; }
EOF
if { (eval echo configure:10589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_addr=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_addr=no
d28837 3
a28839 1
rm -f conftest*
d28842 13
a28854 6
echo "$ac_t""$ac_cv_type_struct_utmp_ut_addr" 1>&6
if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_ADDR 1
EOF
d28856 28
a28883 1
	
d28887 36
a28922 26


echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
echo "configure:10615: checking for ut_host in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_host'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10621 "configure"
#include "confdefs.h"
#include <utmp.h>
int main() {
struct utmp x; x.ut_host;
; return 0; }
EOF
if { (eval echo configure:10628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_host=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_host=no
fi
rm -f conftest*
d28925 7
a28931 8
echo "$ac_t""$ac_cv_type_struct_utmp_ut_host" 1>&6
if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_HOST 1
EOF

	
d28935 18
d28954 23
d28978 8
a28985 25
echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
echo "configure:10654: checking for ut_id in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_id'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10660 "configure"
#include "confdefs.h"
#include <utmp.h>
int main() {
struct utmp x; x.ut_id;
; return 0; }
EOF
if { (eval echo configure:10667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_id=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_id=no
fi
rm -f conftest*
fi
a28986 6
echo "$ac_t""$ac_cv_type_struct_utmp_ut_id" 1>&6
if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_ID 1
EOF
d28988 15
a29002 2
	
fi
d29005 7
d29013 111
d29125 21
a29145 17
echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
echo "configure:10693: checking for ut_pid in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_pid'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10699 "configure"
#include "confdefs.h"
#include <utmp.h>
int main() {
struct utmp x; x.ut_pid;
; return 0; }
EOF
if { (eval echo configure:10706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_pid=yes
d29147 1
a29147 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_pid=no
d29149 2
a29150 9
rm -f conftest*
fi

echo "$ac_t""$ac_cv_type_struct_utmp_ut_pid" 1>&6
if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_PID 1
EOF
a29151 2
	
fi
d29153 5
d29159 38
d29199 3
a29201 4
echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
echo "configure:10732: checking for ut_type in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_type'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d29203 6
a29208 12
  
cat > conftest.$ac_ext <<EOF
#line 10738 "configure"
#include "confdefs.h"
#include <utmp.h>
int main() {
struct utmp x; x.ut_type;
; return 0; }
EOF
if { (eval echo configure:10745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_type=yes
d29210 47
a29256 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_type=no
fi
rm -f conftest*
fi
d29258 2
a29259 6
echo "$ac_t""$ac_cv_type_struct_utmp_ut_type" 1>&6
if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_TYPE 1
EOF
d29261 1
a29261 2
	
fi
d29263 3
d29267 3
d29272 76
a29347 25
echo $ac_n "checking for ut_user in struct utmp""... $ac_c" 1>&6
echo "configure:10771: checking for ut_user in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_user'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10777 "configure"
#include "confdefs.h"
#include <utmp.h>
int main() {
struct utmp x; x.ut_user;
; return 0; }
EOF
if { (eval echo configure:10784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_user=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_user=no
fi
rm -f conftest*
fi
d29349 33
a29381 6
echo "$ac_t""$ac_cv_type_struct_utmp_ut_user" 1>&6
if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_USER 1
EOF
d29383 3
a29385 2
	
fi
d29387 2
d29390 3
d29394 1
d29396 3
a29398 24
echo $ac_n "checking for ut_exit in struct utmpx""... $ac_c" 1>&6
echo "configure:10810: checking for ut_exit in struct utmpx" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_exit'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10816 "configure"
#include "confdefs.h"
#include <utmpx.h>
int main() {
struct utmpx x; x.ut_exit;
; return 0; }
EOF
if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmpx_ut_exit=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmpx_ut_exit=no
fi
rm -f conftest*
d29401 9
a29409 8
echo "$ac_t""$ac_cv_type_struct_utmpx_ut_exit" 1>&6
if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMPX_UT_EXIT 1
EOF

	
d29412 10
d29423 6
d29431 141
a29571 32
echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
echo "configure:10849: checking for ut_syslen in struct utmpx" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_syslen'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10855 "configure"
#include "confdefs.h"
#include <utmpx.h>
int main() {
struct utmpx x; x.ut_syslen;
; return 0; }
EOF
if { (eval echo configure:10862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmpx_ut_syslen=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmpx_ut_syslen=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_type_struct_utmpx_ut_syslen" 1>&6
if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
EOF
d29573 7
a29579 2
	
fi
d29581 75
d29657 29
d29687 3
d29691 5
d29698 5
a29702 25
echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
echo "configure:10890: checking for tm_gmtoff in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_gmtoff'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10896 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
struct tm x; x.tm_gmtoff;
; return 0; }
EOF
if { (eval echo configure:10903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_tm_tm_gmtoff=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_tm_tm_gmtoff=no
fi
rm -f conftest*
fi
a29703 6
echo "$ac_t""$ac_cv_type_struct_tm_tm_gmtoff" 1>&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
EOF
a29704 2
	
fi
d29707 1
d29709 1
d29711 76
a29786 25
echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
echo "configure:10929: checking for tm_zone in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_zone'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10935 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
struct tm x; x.tm_zone;
; return 0; }
EOF
if { (eval echo configure:10942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_tm_tm_zone=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_tm_tm_zone=no
fi
rm -f conftest*
fi
d29788 3
a29790 6
echo "$ac_t""$ac_cv_type_struct_tm_tm_zone" 1>&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_ZONE 1
EOF
a29791 2
	
fi
d29793 25
d29819 8
d29828 4
d29834 10
a29843 18
echo $ac_n "checking for timezone""... $ac_c" 1>&6
echo "configure:10969: checking for timezone" >&5
if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10975 "configure"
#include "confdefs.h"
extern int timezone;
int foo() { return timezone; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_var_timezone=yes
d29845 1
a29845 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_timezone=no
a29846 1
rm -f conftest*
d29848 97
a29944 1
fi
d29946 2
d29949 54
d30004 81
a30084 5
echo "$ac_t""`eval echo \\$ac_cv_var_timezone`" 1>&6
if test `eval echo \\$ac_cv_var_timezone` = yes; then
	cat >> confdefs.h <<EOF
#define HAVE_TIMEZONE 1
EOF
a30085 26
	
echo $ac_n "checking if timezone is properly declared""... $ac_c" 1>&6
echo "configure:11006: checking if timezone is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_timezone_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 11012 "configure"
#include "confdefs.h"
#include <time.h>
extern struct { int foo; } timezone;
int main() {
timezone.foo = 1;
; return 0; }
EOF
if { (eval echo configure:11020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_timezone_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_timezone_declaration=yes"
fi
rm -f conftest*
d30087 20
a30106 1
fi
d30108 21
d30130 18
d30149 6
d30156 25
a30180 5
echo "$ac_t""$ac_cv_var_timezone_declaration" 1>&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_TIMEZONE_DECLARATION 1
EOF
d30182 31
a30212 1
fi
d30215 16
a30230 1
fi
d30232 30
d30263 100
d30364 4
d30370 97
a30466 33
cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
echo "configure:11053: checking for sa_family_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11058 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int main() {
sa_family_t foo;
; return 0; }
EOF
if { (eval echo configure:11070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_type_$cv=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
if test `eval echo \\$ac_cv_type_$cv` = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d30468 5
a30472 3
: << END
@@@@@@funcs="$funcs sa_family_t"@@@@@@
END
d30474 39
a30512 3
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a30513 1
fi
d30515 2
d30518 1
d30520 3
d30524 2
a30525 33
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
echo "configure:11100: checking for socklen_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11105 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int main() {
socklen_t foo;
; return 0; }
EOF
if { (eval echo configure:11117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_type_$cv=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
if test `eval echo \\$ac_cv_type_$cv` = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d30527 2
a30528 3
: << END
@@@@@@funcs="$funcs socklen_t"@@@@@@
END
d30530 2
a30531 3
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d30533 2
a30534 1
fi
d30536 2
d30539 2
d30542 4
d30547 4
a30550 33
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for struct sockaddr""... $ac_c" 1>&6
echo "configure:11147: checking for struct sockaddr" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11152 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int main() {
struct sockaddr foo;
; return 0; }
EOF
if { (eval echo configure:11164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_type_$cv=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
if test `eval echo \\$ac_cv_type_$cv` = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d30552 2
a30553 3
: << END
@@@@@@funcs="$funcs struct_sockaddr"@@@@@@
END
d30555 2
a30556 3
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d30558 2
a30559 1
fi
d30561 2
d30564 2
d30567 2
d30570 2
a30571 33
cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
echo "configure:11194: checking for struct sockaddr_storage" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11199 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int main() {
struct sockaddr_storage foo;
; return 0; }
EOF
if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_type_$cv=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
if test `eval echo \\$ac_cv_type_$cv` = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d30573 2
a30574 3
: << END
@@@@@@funcs="$funcs struct_sockaddr_storage"@@@@@@
END
d30576 2
a30577 3
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d30579 2
a30580 1
fi
d30582 2
d30585 2
d30588 2
d30591 2
a30592 33
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
echo "configure:11241: checking for struct addrinfo" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11246 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
int main() {
struct addrinfo foo;
; return 0; }
EOF
if { (eval echo configure:11258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_type_$cv=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
if test `eval echo \\$ac_cv_type_$cv` = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d30594 2
a30595 3
: << END
@@@@@@funcs="$funcs struct_addrinfo"@@@@@@
END
d30597 2
a30598 3
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d30600 2
a30601 1
fi
d30603 2
d30606 2
d30609 2
d30612 2
a30613 20
echo $ac_n "checking for struct winsize""... $ac_c" 1>&6
echo "configure:11287: checking for struct winsize" >&5
if eval "test \"`echo '$''{'ac_cv_struct_winsize'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat > conftest.$ac_ext <<EOF
#line 11295 "configure"
#include "confdefs.h"
#include <$i>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_struct_winsize=yes; break
fi
rm -f conftest*
done
d30615 2
a30616 1
fi
d30618 2
a30619 4
if test "$ac_cv_struct_winsize" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_WINSIZE 1
EOF
d30621 2
a30622 13
fi
echo "$ac_t""$ac_cv_struct_winsize" 1>&6
cat > conftest.$ac_ext <<EOF
#line 11317 "configure"
#include "confdefs.h"
#include <termios.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_WS_XPIXEL 1
EOF
d30624 2
a30625 2
fi
rm -f conftest*
d30627 2
a30628 11
cat > conftest.$ac_ext <<EOF
#line 11332 "configure"
#include "confdefs.h"
#include <termios.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF
d30630 4
a30633 2
fi
rm -f conftest*
d30635 2
d30638 2
d30641 2
d30644 2
d30647 2
a30648 27
echo $ac_n "checking for struct spwd""... $ac_c" 1>&6
echo "configure:11351: checking for struct spwd" >&5
if eval "test \"`echo '$''{'ac_cv_struct_spwd'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 11357 "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int main() {
struct spwd foo;
; return 0; }
EOF
if { (eval echo configure:11367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_spwd=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_struct_spwd=no
fi
rm -f conftest*
d30650 2
a30651 1
fi
d30653 2
a30654 1
echo "$ac_t""$ac_cv_struct_spwd" 1>&6
d30656 2
a30657 4
if test "$ac_cv_struct_spwd" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_SPWD 1
EOF
d30659 2
a30660 1
fi
d30662 2
d30665 2
d30668 2
d30671 2
d30674 2
a30675 26
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:11394: checking for sa_len in struct sockaddr" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_sockaddr_sa_len'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 11400 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr x; x.sa_len;
; return 0; }
EOF
if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_sockaddr_sa_len=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_sockaddr_sa_len=no
fi
rm -f conftest*
fi
d30677 2
a30678 6
echo "$ac_t""$ac_cv_type_struct_sockaddr_sa_len" 1>&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
	
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
EOF
d30680 2
a30681 2
	
fi
d30683 2
d30686 2
d30689 2
d30692 2
d30695 2
a30696 10
for i in int8_t int16_t int32_t int64_t; do
	echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:11436: checking for $i" >&5
	
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11442 "configure"
#include "confdefs.h"
d30698 3
a30700 15
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
d30702 2
a30703 2
int main() {
$i x;
d30705 2
a30706 13
; return 0; }
EOF
if { (eval echo configure:11466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi
d30708 2
a30709 6
	eval ac_res=\$ac_cv_type_$i
	if test "$ac_res" = yes; then
		type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
		cat >> confdefs.h <<EOF
#define $type 1
EOF
d30711 2
a30712 3
	fi
	echo "$ac_t""$ac_res" 1>&6
done
d30714 2
d30717 2
a30718 10
for i in u_int8_t u_int16_t u_int32_t u_int64_t; do
	echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:11492: checking for $i" >&5
	
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11498 "configure"
#include "confdefs.h"
d30720 2
a30721 15
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
d30723 3
a30725 2
int main() {
$i x;
d30727 2
a30728 13
; return 0; }
EOF
if { (eval echo configure:11522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi
d30730 2
a30731 6
	eval ac_res=\$ac_cv_type_$i
	if test "$ac_res" = yes; then
		type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
		cat >> confdefs.h <<EOF
#define $type 1
EOF
d30733 2
a30734 3
	fi
	echo "$ac_t""$ac_res" 1>&6
done
d30736 2
d30739 2
d30742 3
d30746 2
d30749 2
d30752 2
d30755 2
a30756 18
echo $ac_n "checking for el_init""... $ac_c" 1>&6
echo "configure:11552: checking for el_init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_el_init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" edit; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 11567 "configure"
#include "confdefs.h"
d30758 2
a30759 16
int main() {
el_init()
; return 0; }
EOF
if { (eval echo configure:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
	LIBS="$ac_save_LIBS"
fi
d30761 2
a30762 1
fi
d30764 3
a30767 1
eval "ac_res=\$ac_cv_funclib_el_init"
d30769 2
a30770 4
: << END
@@@@@@funcs="$funcs el_init"@@@@@@
@@@@@@libs="$libs "" edit"@@@@@@
END
d30772 3
a30774 4
# el_init
eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_el_init=$ac_res"
d30776 2
a30777 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_el_init=yes"
	eval "LIB_el_init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d30779 2
a30780 13
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_el_init=no"
	eval "LIB_el_init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_el_init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d30782 2
a30783 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d30785 2
a30786 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d30788 2
d30791 2
a30792 27
if test "$ac_cv_func_el_init" = yes ; then
	echo $ac_n "checking for four argument el_init""... $ac_c" 1>&6
echo "configure:11635: checking for four argument el_init" >&5
if eval "test \"`echo '$''{'ac_cv_func_el_init_four'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
		cat > conftest.$ac_ext <<EOF
#line 11641 "configure"
#include "confdefs.h"
#include <stdio.h>
			#include <histedit.h>
int main() {
el_init("", NULL, NULL, NULL);
; return 0; }
EOF
if { (eval echo configure:11649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_el_init_four=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_el_init_four=no
fi
rm -f conftest*
fi
d30794 2
a30795 5
echo "$ac_t""$ac_cv_func_el_init_four" 1>&6
	if test "$ac_cv_func_el_init_four" = yes; then
		cat >> confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_EL_INIT 1
EOF
d30797 2
a30798 2
	fi
fi
d30800 2
d30803 2
a30804 11
ac_foo=no
if test "$with_readline" = yes; then
	:
elif test "$ac_cv_func_readline" = yes; then
	:
elif test "$ac_cv_func_el_init" = yes; then
	ac_foo=yes
	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.a $LIB_el_init"
else
	LIB_readline='$(top_builddir)/lib/editline/libeditline.a'
fi
d30806 2
d30809 2
a30810 14
if test "$ac_foo" = yes; then
  el_compat_TRUE=
  el_compat_FALSE='#'
else
  el_compat_TRUE='#'
  el_compat_FALSE=
fi
if test "$readline_libdir"; then
	LIB_readline="-rpath $readline_libdir $LIB_readline"
fi
LIB_readline="$LIB_readline \$(LIB_tgetent)"
cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF
d30812 2
d30815 2
a30816 19
cat >> confdefs.h <<\EOF
#define AUTHENTICATION 1
EOF
cat >> confdefs.h <<\EOF
#define ENCRYPTION 1
EOF
cat >> confdefs.h <<\EOF
#define DES_ENCRYPTION 1
EOF
cat >> confdefs.h <<\EOF
#define DIAGNOSTICS 1
EOF
cat >> confdefs.h <<\EOF
#define OLD_ENVIRON 1
EOF
if false; then
cat >> confdefs.h <<\EOF
#define ENV_HACK 1
EOF
d30818 2
a30819 1
fi
d30821 3
a30823 4
# Simple test for streamspty, based on the existance of getmsg(), alas
# this breaks on SunOS4 which have streams but BSD-like ptys
#
# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
d30825 4
a30828 14
echo $ac_n "checking for streamspty""... $ac_c" 1>&6
echo "configure:11728: checking for streamspty" >&5
case "$host" in
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux10*)
	krb_cv_sys_streamspty=no
	;;
*)
	krb_cv_sys_streamspty="$ac_cv_func_getmsg"
	;;
esac
if test "$krb_cv_sys_streamspty" = yes; then
	cat >> confdefs.h <<\EOF
#define STREAMSPTY 1
EOF
d30830 2
a30831 2
fi
echo "$ac_t""$krb_cv_sys_streamspty" 1>&6
d30833 2
d30836 2
a30837 2
echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6
echo "configure:11747: checking which authentication modules should be built" >&5
d30839 3
a30841 1
LIB_AUTH_SUBDIRS=
d30843 3
a30845 3
if test "$ac_cv_header_siad_h" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
fi
d30847 2
a30848 3
if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
fi
d30850 3
a30852 3
case "${host}" in
*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
esac
d30854 5
a30858 1
echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6
d30860 3
d30864 3
d30868 4
d30873 3
a30875 2
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d30877 2
a30878 12
for i in bin lib libexec sbin; do
	i=${i}dir
	foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
	x="\$${i}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done
	cat >> confdefs.h <<EOF
#define $foo "$x"
EOF
d30880 2
a30881 1
done
d30883 2
a30884 5
if false; then
	# hack to shut up automake
	LIBOBJS="$LIBOBJS make-print-version.o"
fi
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
d30886 2
a30887 47
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache
d30889 2
a30890 1
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
d30892 2
a30893 3
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d30895 2
a30896 6
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi
d30898 2
a30899 1
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
d30901 2
a30902 1
DEFS=-DHAVE_CONFIG_H
d30904 1
a30904 2
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
d30906 1
a30906 13
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
d30908 12
a30919 13
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
a30920 1
done
a30921 54
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "Makefile 			\
	include/Makefile		\
	include/kadm5/Makefile		\
	lib/Makefile			\
	lib/45/Makefile			\
	lib/auth/Makefile		\
	lib/auth/afskauthlib/Makefile	\
	lib/auth/pam/Makefile		\
	lib/auth/sia/Makefile		\
	lib/asn1/Makefile		\
	lib/com_err/Makefile		\
	lib/des/Makefile		\
	lib/editline/Makefile		\
	lib/gssapi/Makefile		\
	lib/hdb/Makefile		\
	lib/kadm5/Makefile		\
	lib/kafs/Makefile		\
	lib/krb5/Makefile		\
	lib/otp/Makefile		\
	lib/roken/Makefile		\
	lib/sl/Makefile			\
	kuser/Makefile			\
	kpasswd/Makefile		\
	kadmin/Makefile			\
	admin/Makefile			\
	kdc/Makefile			\
	appl/Makefile			\
	appl/afsutil/Makefile		\
	appl/ftp/Makefile		\
	appl/ftp/common/Makefile	\
	appl/ftp/ftp/Makefile		\
	appl/ftp/ftpd/Makefile		\
	appl/kauth/Makefile		\
	appl/kx/Makefile		\
	appl/login/Makefile		\
	appl/otp/Makefile		\
	appl/popper/Makefile		\
	appl/push/Makefile		\
	appl/rsh/Makefile		\
	appl/su/Makefile		\
	appl/xnlock/Makefile		\
	appl/telnet/Makefile		\
	appl/telnet/libtelnet/Makefile	\
	appl/telnet/telnet/Makefile	\
	appl/telnet/telnetd/Makefile	\
	appl/test/Makefile		\
	appl/kf/Makefile		\
	doc/Makefile			\
 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
d30923 2
a30924 140
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g\$/@@g/; /@@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@@@/%@@/; s/@@@@/@@%/; s/@@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@@SHELL@@%$SHELL%g
s%@@CFLAGS@@%$CFLAGS%g
s%@@CPPFLAGS@@%$CPPFLAGS%g
s%@@CXXFLAGS@@%$CXXFLAGS%g
s%@@FFLAGS@@%$FFLAGS%g
s%@@DEFS@@%$DEFS%g
s%@@LDFLAGS@@%$LDFLAGS%g
s%@@LIBS@@%$LIBS%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@prefix@@%$prefix%g
s%@@program_transform_name@@%$program_transform_name%g
s%@@bindir@@%$bindir%g
s%@@sbindir@@%$sbindir%g
s%@@libexecdir@@%$libexecdir%g
s%@@datadir@@%$datadir%g
s%@@sysconfdir@@%$sysconfdir%g
s%@@sharedstatedir@@%$sharedstatedir%g
s%@@localstatedir@@%$localstatedir%g
s%@@libdir@@%$libdir%g
s%@@includedir@@%$includedir%g
s%@@oldincludedir@@%$oldincludedir%g
s%@@infodir@@%$infodir%g
s%@@mandir@@%$mandir%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_SCRIPT@@%$INSTALL_SCRIPT%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
s%@@PACKAGE@@%$PACKAGE%g
s%@@VERSION@@%$VERSION%g
s%@@ACLOCAL@@%$ACLOCAL%g
s%@@AUTOCONF@@%$AUTOCONF%g
s%@@AUTOMAKE@@%$AUTOMAKE%g
s%@@AUTOHEADER@@%$AUTOHEADER%g
s%@@MAKEINFO@@%$MAKEINFO%g
s%@@SET_MAKE@@%$SET_MAKE%g
s%@@host@@%$host%g
s%@@host_alias@@%$host_alias%g
s%@@host_cpu@@%$host_cpu%g
s%@@host_vendor@@%$host_vendor%g
s%@@host_os@@%$host_os%g
s%@@CANONICAL_HOST@@%$CANONICAL_HOST%g
s%@@CC@@%$CC%g
s%@@OBJEXT@@%$OBJEXT%g
s%@@EXEEXT@@%$EXEEXT%g
s%@@YACC@@%$YACC%g
s%@@LEX@@%$LEX%g
s%@@LEXLIB@@%$LEXLIB%g
s%@@CPP@@%$CPP%g
s%@@LEX_OUTPUT_ROOT@@%$LEX_OUTPUT_ROOT%g
s%@@RANLIB@@%$RANLIB%g
s%@@AWK@@%$AWK%g
s%@@LN_S@@%$LN_S%g
s%@@LD@@%$LD%g
s%@@NM@@%$NM%g
s%@@LIBTOOL@@%$LIBTOOL%g
s%@@WFLAGS@@%$WFLAGS%g
s%@@WFLAGS_NOUNUSED@@%$WFLAGS_NOUNUSED%g
s%@@WFLAGS_NOIMPLICITINT@@%$WFLAGS_NOIMPLICITINT%g
s%@@INCLUDE_krb4@@%$INCLUDE_krb4%g
s%@@LIB_krb4@@%$LIB_krb4%g
s%@@EXTRA_LIB45@@%$EXTRA_LIB45%g
s%@@LIB_krb_enable_debug@@%$LIB_krb_enable_debug%g
s%@@LIB_krb_disable_debug@@%$LIB_krb_disable_debug%g
s%@@LIB_krb_get_our_ip_for_realm@@%$LIB_krb_get_our_ip_for_realm%g
s%@@KRB4_TRUE@@%$KRB4_TRUE%g
s%@@KRB4_FALSE@@%$KRB4_FALSE%g
s%@@KRB5_TRUE@@%$KRB5_TRUE%g
s%@@KRB5_FALSE@@%$KRB5_FALSE%g
s%@@LIB_kdb@@%$LIB_kdb%g
s%@@AIX_TRUE@@%$AIX_TRUE%g
s%@@AIX_FALSE@@%$AIX_FALSE%g
s%@@AIX4_TRUE@@%$AIX4_TRUE%g
s%@@AIX4_FALSE@@%$AIX4_FALSE%g
s%@@AIX_DYNAMIC_AFS_TRUE@@%$AIX_DYNAMIC_AFS_TRUE%g
s%@@AIX_DYNAMIC_AFS_FALSE@@%$AIX_DYNAMIC_AFS_FALSE%g
s%@@LIB_dlopen@@%$LIB_dlopen%g
s%@@HAVE_DLOPEN_TRUE@@%$HAVE_DLOPEN_TRUE%g
s%@@HAVE_DLOPEN_FALSE@@%$HAVE_DLOPEN_FALSE%g
s%@@AFS_EXTRA_LD@@%$AFS_EXTRA_LD%g
s%@@AIX_EXTRA_KAFS@@%$AIX_EXTRA_KAFS%g
s%@@LIB_otp@@%$LIB_otp%g
s%@@OTP_TRUE@@%$OTP_TRUE%g
s%@@OTP_FALSE@@%$OTP_FALSE%g
s%@@LIB_security@@%$LIB_security%g
s%@@NROFF@@%$NROFF%g
s%@@GROFF@@%$GROFF%g
s%@@CATMAN@@%$CATMAN%g
s%@@CATMAN_TRUE@@%$CATMAN_TRUE%g
s%@@CATMAN_FALSE@@%$CATMAN_FALSE%g
s%@@CATMANEXT@@%$CATMANEXT%g
s%@@INCLUDE_readline@@%$INCLUDE_readline%g
s%@@LIB_readline@@%$LIB_readline%g
s%@@INCLUDE_hesiod@@%$INCLUDE_hesiod%g
s%@@LIB_hesiod@@%$LIB_hesiod%g
s%@@X_CFLAGS@@%$X_CFLAGS%g
s%@@X_PRE_LIBS@@%$X_PRE_LIBS%g
s%@@X_LIBS@@%$X_LIBS%g
s%@@X_EXTRA_LIBS@@%$X_EXTRA_LIBS%g
s%@@MAKE_X_PROGS_BIN_PROGS@@%$MAKE_X_PROGS_BIN_PROGS%g
s%@@MAKE_X_PROGS_BIN_SCRPTS@@%$MAKE_X_PROGS_BIN_SCRPTS%g
s%@@MAKE_X_PROGS_LIBEXEC_PROGS@@%$MAKE_X_PROGS_LIBEXEC_PROGS%g
s%@@LIB_XauWriteAuth@@%$LIB_XauWriteAuth%g
s%@@LIB_XauReadAuth@@%$LIB_XauReadAuth%g
s%@@LIB_XauFileName@@%$LIB_XauFileName%g
s%@@NEED_WRITEAUTH_TRUE@@%$NEED_WRITEAUTH_TRUE%g
s%@@NEED_WRITEAUTH_FALSE@@%$NEED_WRITEAUTH_FALSE%g
s%@@have_err_h_TRUE@@%$have_err_h_TRUE%g
s%@@have_err_h_FALSE@@%$have_err_h_FALSE%g
s%@@have_fnmatch_h_TRUE@@%$have_fnmatch_h_TRUE%g
s%@@have_fnmatch_h_FALSE@@%$have_fnmatch_h_FALSE%g
s%@@LIB_socket@@%$LIB_socket%g
s%@@LIB_gethostbyname@@%$LIB_gethostbyname%g
s%@@LIB_syslog@@%$LIB_syslog%g
s%@@LIB_logwtmp@@%$LIB_logwtmp%g
s%@@LIB_tgetent@@%$LIB_tgetent%g
s%@@LIB_gethostbyname2@@%$LIB_gethostbyname2%g
s%@@LIB_res_search@@%$LIB_res_search%g
s%@@LIB_dn_expand@@%$LIB_dn_expand%g
s%@@have_glob_h_TRUE@@%$have_glob_h_TRUE%g
s%@@have_glob_h_FALSE@@%$have_glob_h_FALSE%g
s%@@LIB_dbopen@@%$LIB_dbopen%g
s%@@LIB_dbm_firstkey@@%$LIB_dbm_firstkey%g
s%@@DBLIB@@%$DBLIB%g
s%@@LIB_getpwnam_r@@%$LIB_getpwnam_r%g
s%@@LIB_getsockopt@@%$LIB_getsockopt%g
s%@@LIB_setsockopt@@%$LIB_setsockopt%g
s%@@VOID_RETSIGTYPE@@%$VOID_RETSIGTYPE%g
s%@@LIB_hstrerror@@%$LIB_hstrerror%g
s%@@LIBOBJS@@%$LIBOBJS%g
s%@@LIB_crypt@@%$LIB_crypt%g
s%@@LIB_roken@@%$LIB_roken%g
s%@@LIB_el_init@@%$LIB_el_init%g
s%@@el_compat_TRUE@@%$el_compat_TRUE%g
s%@@el_compat_FALSE@@%$el_compat_FALSE%g
s%@@LIB_AUTH_SUBDIRS@@%$LIB_AUTH_SUBDIRS%g
s%@@LTLIBOBJS@@%$LTLIBOBJS%g
d30926 169
a31094 2
CEOF
EOF
d31096 1
a31096 1
cat >> $CONFIG_STATUS <<\EOF
d31098 2
a31099 32
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF
a31100 1
cat >> $CONFIG_STATUS <<EOF
d31102 28
a31129 106
CONFIG_FILES=\${CONFIG_FILES-"Makefile 			\
	include/Makefile		\
	include/kadm5/Makefile		\
	lib/Makefile			\
	lib/45/Makefile			\
	lib/auth/Makefile		\
	lib/auth/afskauthlib/Makefile	\
	lib/auth/pam/Makefile		\
	lib/auth/sia/Makefile		\
	lib/asn1/Makefile		\
	lib/com_err/Makefile		\
	lib/des/Makefile		\
	lib/editline/Makefile		\
	lib/gssapi/Makefile		\
	lib/hdb/Makefile		\
	lib/kadm5/Makefile		\
	lib/kafs/Makefile		\
	lib/krb5/Makefile		\
	lib/otp/Makefile		\
	lib/roken/Makefile		\
	lib/sl/Makefile			\
	kuser/Makefile			\
	kpasswd/Makefile		\
	kadmin/Makefile			\
	admin/Makefile			\
	kdc/Makefile			\
	appl/Makefile			\
	appl/afsutil/Makefile		\
	appl/ftp/Makefile		\
	appl/ftp/common/Makefile	\
	appl/ftp/ftp/Makefile		\
	appl/ftp/ftpd/Makefile		\
	appl/kauth/Makefile		\
	appl/kx/Makefile		\
	appl/login/Makefile		\
	appl/otp/Makefile		\
	appl/popper/Makefile		\
	appl/push/Makefile		\
	appl/rsh/Makefile		\
	appl/su/Makefile		\
	appl/xnlock/Makefile		\
	appl/telnet/Makefile		\
	appl/telnet/libtelnet/Makefile	\
	appl/telnet/telnet/Makefile	\
	appl/telnet/telnetd/Makefile	\
	appl/test/Makefile		\
	appl/kf/Makefile		\
	doc/Makefile			\
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac

  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@@configure_input@@%$configure_input%g
s%@@srcdir@@%$srcdir%g
s%@@top_srcdir@@%$top_srcdir%g
s%@@INSTALL@@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
a31130 2
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
d31132 43
a31174 15
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
d31176 5
a31180 13
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
d31182 1
d31184 4
a31187 1
  echo creating $ac_file
d31189 16
a31204 3
  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
d31206 31
a31236 1
EOF
a31237 21
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
d31239 1
a31239 2
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
d31241 12
a31252 34
rm -f conftest.tail
while :
do
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
a31253 4
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done
d31255 8
a31262 2
EOF
cat >> $CONFIG_STATUS <<EOF
d31264 7
d31272 7
a31278 9
EOF
cat >> $CONFIG_STATUS <<\EOF
test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h

exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
a31280 1
HEIMDALVERSION="$PACKAGE-$VERSION"
d31283 5
a31287 2
char *heimdal_long_version = "@@(#)\$Version: $HEIMDALVERSION by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
char *heimdal_version = "$HEIMDALVERSION";
@


1.1.1.1
log
@Import KTH Heimdal, which will be the core of our Kerberos5.
Userland to follow.
@
text
@@


1.1.1.2
log
@Vendor import of Heimdal 0.2n
@
text
@d3 1
a3 1
# From configure.in Revision: 1.216 
d914 1
a914 1
VERSION=0.2n
a5186 46


cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for long long""... $ac_c" 1>&6
echo "configure:5192: checking for long long" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5197 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

int main() {
long long foo;
; return 0; }
EOF
if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_type_$cv=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
if test `eval echo \\$ac_cv_type_$cv` = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`

: << END
@@@@@@funcs="$funcs long_long"@@@@@@
END

  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

d5188 1
a5188 1
echo "configure:5235: checking whether time.h and sys/time.h may both be included" >&5
d5193 1
a5193 1
#line 5240 "configure"
d5202 1
a5202 1
if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5223 1
a5223 1
echo "configure:5270: checking whether struct tm is in sys/time.h or time.h" >&5
d5228 1
a5228 1
#line 5275 "configure"
d5236 1
a5236 1
if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5258 1
a5258 1
echo "configure:5305: checking for ANSI C header files" >&5
d5263 1
a5263 1
#line 5310 "configure"
d5271 1
a5271 1
{ (eval echo configure:5318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5288 1
a5288 1
#line 5335 "configure"
d5306 1
a5306 1
#line 5353 "configure"
d5327 1
a5327 1
#line 5374 "configure"
d5338 1
a5338 1
if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5370 1
a5370 1
echo "configure:5417: checking for $ac_hdr" >&5
d5375 1
a5375 1
#line 5422 "configure"
d5380 1
a5380 1
{ (eval echo configure:5427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5499 1
a5499 1
echo "configure:5546: checking for $ac_hdr" >&5
d5504 1
a5504 1
#line 5551 "configure"
d5509 1
a5509 1
{ (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5541 1
a5541 1
echo "configure:5588: checking for $ac_hdr" >&5
d5546 1
a5546 1
#line 5593 "configure"
d5551 1
a5551 1
{ (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5582 1
a5582 1
echo "configure:5629: checking for $i" >&5
d5587 1
a5587 1
#line 5634 "configure"
d5597 1
a5597 1
{ (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5678 1
a5678 1
echo "configure:5725: checking ipv6 stack type" >&5
d5683 1
a5683 1
#line 5730 "configure"
d5703 1
a5703 1
#line 5750 "configure"
d5723 1
a5723 1
#line 5770 "configure"
d5743 1
a5743 1
#line 5790 "configure"
d5761 1
a5761 1
#line 5808 "configure"
d5803 1
a5803 1
#line 5850 "configure"
d5833 1
a5833 1
if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5846 1
a5846 1
echo "configure:5893: checking for IPv6" >&5
d5862 1
a5862 1
echo "configure:5909: checking for socket" >&5
d5877 1
a5877 1
#line 5924 "configure"
d5884 1
a5884 1
if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5952 1
a5952 1
echo "configure:5999: checking for gethostbyname" >&5
d5967 1
a5967 1
#line 6014 "configure"
d5974 1
a5974 1
if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6042 1
a6042 1
echo "configure:6089: checking for syslog" >&5
d6057 1
a6057 1
#line 6104 "configure"
d6064 1
a6064 1
if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6132 1
a6132 1
echo "configure:6179: checking for logwtmp" >&5
d6147 1
a6147 1
#line 6194 "configure"
d6154 1
a6154 1
if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6217 1
a6217 1
echo "configure:6264: checking for tgetent" >&5
d6232 1
a6232 1
#line 6279 "configure"
d6239 1
a6239 1
if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6303 1
a6303 1
echo "configure:6350: checking for gethostbyname2" >&5
d6318 1
a6318 1
#line 6365 "configure"
d6325 1
a6325 1
if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6394 1
a6394 1
echo "configure:6441: checking for res_search" >&5
d6409 1
a6409 1
#line 6456 "configure"
d6430 1
a6430 1
if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6499 1
a6499 1
echo "configure:6546: checking for dn_expand" >&5
d6514 1
a6514 1
#line 6561 "configure"
d6535 1
a6535 1
if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6602 1
a6602 1
echo "configure:6649: checking for working snprintf" >&5
d6611 1
a6611 1
#line 6658 "configure"
d6623 1
a6623 1
if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6649 1
a6649 1
echo "configure:6696: checking if snprintf needs a prototype" >&5
d6654 1
a6654 1
#line 6701 "configure"
d6664 1
a6664 1
if { (eval echo configure:6711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6691 1
a6691 1
echo "configure:6738: checking for working vsnprintf" >&5
d6700 1
a6700 1
#line 6747 "configure"
d6723 1
a6723 1
if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6749 1
a6749 1
echo "configure:6796: checking if vsnprintf needs a prototype" >&5
d6754 1
a6754 1
#line 6801 "configure"
d6764 1
a6764 1
if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6792 1
a6792 1
echo "configure:6839: checking for working glob" >&5
d6798 1
a6798 1
#line 6845 "configure"
d6809 1
a6809 1
if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6833 1
a6833 1
echo "configure:6880: checking if glob needs a prototype" >&5
d6838 1
a6838 1
#line 6885 "configure"
d6849 1
a6849 1
if { (eval echo configure:6896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6893 1
a6893 1
echo "configure:6940: checking for dbopen" >&5
d6908 1
a6908 1
#line 6955 "configure"
d6915 1
a6915 1
if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6978 1
a6978 1
echo "configure:7025: checking for dbm_firstkey" >&5
d6993 1
a6993 1
#line 7040 "configure"
d7000 1
a7000 1
if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7068 1
a7068 1
echo "configure:7115: checking for $ac_func" >&5
d7073 1
a7073 1
#line 7120 "configure"
d7096 1
a7096 1
if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7123 1
a7123 1
echo "configure:7170: checking for $ac_func" >&5
d7128 1
a7128 1
#line 7175 "configure"
d7151 1
a7151 1
if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7178 1
a7178 1
echo "configure:7225: checking for $ac_func" >&5
d7183 1
a7183 1
#line 7230 "configure"
d7206 1
a7206 1
if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7233 1
a7233 1
echo "configure:7280: checking for $ac_func" >&5
d7238 1
a7238 1
#line 7285 "configure"
d7261 1
a7261 1
if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7288 1
a7288 1
echo "configure:7335: checking for $ac_func" >&5
d7293 1
a7293 1
#line 7340 "configure"
d7316 1
a7316 1
if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7343 1
a7343 1
echo "configure:7390: checking for $ac_func" >&5
d7348 1
a7348 1
#line 7395 "configure"
d7371 1
a7371 1
if { (eval echo configure:7418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7398 1
a7398 1
echo "configure:7445: checking for $ac_func" >&5
d7403 1
a7403 1
#line 7450 "configure"
d7426 1
a7426 1
if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7453 1
a7453 1
echo "configure:7500: checking for $ac_func" >&5
d7458 1
a7458 1
#line 7505 "configure"
d7481 1
a7481 1
if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7508 1
a7508 1
echo "configure:7555: checking for $ac_func" >&5
d7513 1
a7513 1
#line 7560 "configure"
d7536 1
a7536 1
if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7569 1
a7569 1
echo "configure:7616: checking for $ac_func" >&5
d7574 1
a7574 1
#line 7621 "configure"
d7597 1
a7597 1
if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7623 1
a7623 1
echo "configure:7670: checking if getlogin is posix" >&5
d7652 1
a7652 1
echo "configure:7699: checking for $ac_hdr" >&5
d7657 1
a7657 1
#line 7704 "configure"
d7662 1
a7662 1
{ (eval echo configure:7709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7692 1
a7692 1
echo "configure:7739: checking for $ac_func" >&5
d7697 1
a7697 1
#line 7744 "configure"
d7720 1
a7720 1
if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7751 1
a7751 1
echo "configure:7798: checking for getpwnam_r" >&5
d7766 1
a7766 1
#line 7813 "configure"
d7773 1
a7773 1
if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7834 1
a7834 1
echo "configure:7881: checking if getpwnam_r is posix" >&5
d7844 1
a7844 1
#line 7891 "configure"
d7855 1
a7855 1
if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d7884 1
a7884 1
echo "configure:7931: checking for getsockopt" >&5
d7899 1
a7899 1
#line 7946 "configure"
d7911 1
a7911 1
if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7974 1
a7974 1
echo "configure:8021: checking for setsockopt" >&5
d7989 1
a7989 1
#line 8036 "configure"
d8001 1
a8001 1
if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8064 1
a8064 1
echo "configure:8111: checking for $ac_func" >&5
d8069 1
a8069 1
#line 8116 "configure"
d8092 1
a8092 1
if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8118 1
a8118 1
echo "configure:8165: checking return type of signal handlers" >&5
d8123 1
a8123 1
#line 8170 "configure"
d8140 1
a8140 1
if { (eval echo configure:8187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8171 1
a8171 1
echo "configure:8218: checking for hstrerror" >&5
d8186 1
a8186 1
#line 8233 "configure"
d8195 1
a8195 1
if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8266 1
a8266 1
echo "configure:8313: checking if hstrerror needs a prototype" >&5
d8271 1
a8271 1
#line 8318 "configure"
d8284 1
a8284 1
if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8313 1
a8313 1
echo "configure:8360: checking if asprintf needs a prototype" >&5
d8318 1
a8318 1
#line 8365 "configure"
d8330 1
a8330 1
if { (eval echo configure:8377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8357 1
a8357 1
echo "configure:8404: checking if vasprintf needs a prototype" >&5
d8362 1
a8362 1
#line 8409 "configure"
d8374 1
a8374 1
if { (eval echo configure:8421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8401 1
a8401 1
echo "configure:8448: checking if asnprintf needs a prototype" >&5
d8406 1
a8406 1
#line 8453 "configure"
d8418 1
a8418 1
if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8445 1
a8445 1
echo "configure:8492: checking if vasnprintf needs a prototype" >&5
d8450 1
a8450 1
#line 8497 "configure"
d8462 1
a8462 1
if { (eval echo configure:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8489 1
a8489 1
echo "configure:8536: checking for $ac_func" >&5
d8494 1
a8494 1
#line 8541 "configure"
d8517 1
a8517 1
if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8550 1
a8550 1
echo "configure:8597: checking for $ac_func" >&5
d8555 1
a8555 1
#line 8602 "configure"
d8578 1
a8578 1
if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8611 1
a8611 1
echo "configure:8658: checking for $ac_func" >&5
d8616 1
a8616 1
#line 8663 "configure"
d8639 1
a8639 1
if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8672 1
a8672 1
echo "configure:8719: checking for $ac_func" >&5
d8677 1
a8677 1
#line 8724 "configure"
d8700 1
a8700 1
if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8733 1
a8733 1
echo "configure:8780: checking for $ac_func" >&5
d8738 1
a8738 1
#line 8785 "configure"
d8761 1
a8761 1
if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8794 1
a8794 1
echo "configure:8841: checking for $ac_func" >&5
d8799 1
a8799 1
#line 8846 "configure"
d8822 1
a8822 1
if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8855 1
a8855 1
echo "configure:8902: checking for $ac_func" >&5
d8860 1
a8860 1
#line 8907 "configure"
d8883 1
a8883 1
if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8916 1
a8916 1
echo "configure:8963: checking for $ac_func" >&5
d8921 1
a8921 1
#line 8968 "configure"
d8944 1
a8944 1
if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8977 1
a8977 1
echo "configure:9024: checking for $ac_func" >&5
d8982 1
a8982 1
#line 9029 "configure"
d9005 1
a9005 1
if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9038 1
a9038 1
echo "configure:9085: checking for $ac_func" >&5
d9043 1
a9043 1
#line 9090 "configure"
d9066 1
a9066 1
if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9099 1
a9099 1
echo "configure:9146: checking for $ac_func" >&5
d9104 1
a9104 1
#line 9151 "configure"
d9127 1
a9127 1
if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9160 1
a9160 1
echo "configure:9207: checking for $ac_func" >&5
d9165 1
a9165 1
#line 9212 "configure"
d9188 1
a9188 1
if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9221 1
a9221 1
echo "configure:9268: checking for $ac_func" >&5
d9226 1
a9226 1
#line 9273 "configure"
d9249 1
a9249 1
if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9283 1
a9283 1
echo "configure:9330: checking if setenv needs a prototype" >&5
d9288 1
a9288 1
#line 9335 "configure"
d9298 1
a9298 1
if { (eval echo configure:9345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9324 1
a9324 1
echo "configure:9371: checking if unsetenv needs a prototype" >&5
d9329 1
a9329 1
#line 9376 "configure"
d9339 1
a9339 1
if { (eval echo configure:9386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9365 1
a9365 1
echo "configure:9412: checking if gethostname needs a prototype" >&5
d9370 1
a9370 1
#line 9417 "configure"
d9380 1
a9380 1
if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9406 1
a9406 1
echo "configure:9453: checking if mkstemp needs a prototype" >&5
d9411 1
a9411 1
#line 9458 "configure"
d9421 1
a9421 1
if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9447 1
a9447 1
echo "configure:9494: checking if getusershell needs a prototype" >&5
d9452 1
a9452 1
#line 9499 "configure"
d9462 1
a9462 1
if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9489 1
a9489 1
echo "configure:9536: checking if inet_aton needs a prototype" >&5
d9494 1
a9494 1
#line 9541 "configure"
d9516 1
a9516 1
if { (eval echo configure:9563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9544 1
a9544 1
echo "configure:9591: checking for crypt" >&5
d9559 1
a9559 1
#line 9606 "configure"
d9566 1
a9566 1
if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9629 1
a9629 1
echo "configure:9676: checking if realloc if broken" >&5
d9639 1
a9639 1
#line 9686 "configure"
d9651 1
a9651 1
if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d9678 1
a9678 1
echo "configure:9725: checking if gethostbyname is compatible with system prototype" >&5
d9683 1
a9683 1
#line 9730 "configure"
d9706 1
a9706 1
if { (eval echo configure:9753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9731 1
a9731 1
echo "configure:9778: checking if gethostbyaddr is compatible with system prototype" >&5
d9736 1
a9736 1
#line 9783 "configure"
d9759 1
a9759 1
if { (eval echo configure:9806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9784 1
a9784 1
echo "configure:9831: checking if getservbyname is compatible with system prototype" >&5
d9789 1
a9789 1
#line 9836 "configure"
d9812 1
a9812 1
if { (eval echo configure:9859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9837 1
a9837 1
echo "configure:9884: checking if openlog is compatible with system prototype" >&5
d9842 1
a9842 1
#line 9889 "configure"
d9853 1
a9853 1
if { (eval echo configure:9900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9879 1
a9879 1
echo "configure:9926: checking if crypt needs a prototype" >&5
d9884 1
a9884 1
#line 9931 "configure"
d9901 1
a9901 1
if { (eval echo configure:9948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9928 1
a9928 1
echo "configure:9975: checking if strtok_r needs a prototype" >&5
d9933 1
a9933 1
#line 9980 "configure"
d9945 1
a9945 1
if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9972 1
a9972 1
echo "configure:10019: checking if strsep needs a prototype" >&5
d9977 1
a9977 1
#line 10024 "configure"
d9989 1
a9989 1
if { (eval echo configure:10036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10015 1
a10015 1
echo "configure:10062: checking for h_errno" >&5
d10021 1
a10021 1
#line 10068 "configure"
d10029 1
a10029 1
if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10052 1
a10052 1
echo "configure:10099: checking if h_errno is properly declared" >&5
d10058 1
a10058 1
#line 10105 "configure"
d10071 1
a10071 1
if { (eval echo configure:10118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10102 1
a10102 1
echo "configure:10149: checking for h_errlist" >&5
d10108 1
a10108 1
#line 10155 "configure"
d10116 1
a10116 1
if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10139 1
a10139 1
echo "configure:10186: checking if h_errlist is properly declared" >&5
d10145 1
a10145 1
#line 10192 "configure"
d10155 1
a10155 1
if { (eval echo configure:10202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10186 1
a10186 1
echo "configure:10233: checking for h_nerr" >&5
d10192 1
a10192 1
#line 10239 "configure"
d10200 1
a10200 1
if { (eval echo configure:10247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10223 1
a10223 1
echo "configure:10270: checking if h_nerr is properly declared" >&5
d10229 1
a10229 1
#line 10276 "configure"
d10239 1
a10239 1
if { (eval echo configure:10286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10270 1
a10270 1
echo "configure:10317: checking for __progname" >&5
d10276 1
a10276 1
#line 10323 "configure"
d10284 1
a10284 1
if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10307 1
a10307 1
echo "configure:10354: checking if __progname is properly declared" >&5
d10313 1
a10313 1
#line 10360 "configure"
d10323 1
a10323 1
if { (eval echo configure:10370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10354 1
a10354 1
echo "configure:10401: checking if optarg is properly declared" >&5
d10360 1
a10360 1
#line 10407 "configure"
d10371 1
a10371 1
if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10398 1
a10398 1
echo "configure:10445: checking if optind is properly declared" >&5
d10404 1
a10404 1
#line 10451 "configure"
d10415 1
a10415 1
if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10442 1
a10442 1
echo "configure:10489: checking if opterr is properly declared" >&5
d10448 1
a10448 1
#line 10495 "configure"
d10459 1
a10459 1
if { (eval echo configure:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10486 1
a10486 1
echo "configure:10533: checking if optopt is properly declared" >&5
d10492 1
a10492 1
#line 10539 "configure"
d10503 1
a10503 1
if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10531 1
a10531 1
echo "configure:10578: checking if environ is properly declared" >&5
d10537 1
a10537 1
#line 10584 "configure"
d10545 1
a10545 1
if { (eval echo configure:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10575 1
a10575 1
echo "configure:10622: checking for ut_addr in struct utmp" >&5
d10581 1
a10581 1
#line 10628 "configure"
d10588 1
a10588 1
if { (eval echo configure:10635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10614 1
a10614 1
echo "configure:10661: checking for ut_host in struct utmp" >&5
d10620 1
a10620 1
#line 10667 "configure"
d10627 1
a10627 1
if { (eval echo configure:10674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10653 1
a10653 1
echo "configure:10700: checking for ut_id in struct utmp" >&5
d10659 1
a10659 1
#line 10706 "configure"
d10666 1
a10666 1
if { (eval echo configure:10713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10692 1
a10692 1
echo "configure:10739: checking for ut_pid in struct utmp" >&5
d10698 1
a10698 1
#line 10745 "configure"
d10705 1
a10705 1
if { (eval echo configure:10752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10731 1
a10731 1
echo "configure:10778: checking for ut_type in struct utmp" >&5
d10737 1
a10737 1
#line 10784 "configure"
d10744 1
a10744 1
if { (eval echo configure:10791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10770 1
a10770 1
echo "configure:10817: checking for ut_user in struct utmp" >&5
d10776 1
a10776 1
#line 10823 "configure"
d10783 1
a10783 1
if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10809 1
a10809 1
echo "configure:10856: checking for ut_exit in struct utmpx" >&5
d10815 1
a10815 1
#line 10862 "configure"
d10822 1
a10822 1
if { (eval echo configure:10869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10848 1
a10848 1
echo "configure:10895: checking for ut_syslen in struct utmpx" >&5
d10854 1
a10854 1
#line 10901 "configure"
d10861 1
a10861 1
if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10889 1
a10889 1
echo "configure:10936: checking for tm_gmtoff in struct tm" >&5
d10895 1
a10895 1
#line 10942 "configure"
d10902 1
a10902 1
if { (eval echo configure:10949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10928 1
a10928 1
echo "configure:10975: checking for tm_zone in struct tm" >&5
d10934 1
a10934 1
#line 10981 "configure"
d10941 1
a10941 1
if { (eval echo configure:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10968 1
a10968 1
echo "configure:11015: checking for timezone" >&5
d10974 1
a10974 1
#line 11021 "configure"
d10982 1
a10982 1
if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d11005 1
a11005 1
echo "configure:11052: checking if timezone is properly declared" >&5
d11011 1
a11011 1
#line 11058 "configure"
d11019 1
a11019 1
if { (eval echo configure:11066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11052 1
a11052 1
echo "configure:11099: checking for sa_family_t" >&5
d11057 1
a11057 1
#line 11104 "configure"
d11069 1
a11069 1
if { (eval echo configure:11116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11099 1
a11099 1
echo "configure:11146: checking for socklen_t" >&5
d11104 1
a11104 1
#line 11151 "configure"
d11116 1
a11116 1
if { (eval echo configure:11163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11146 1
a11146 1
echo "configure:11193: checking for struct sockaddr" >&5
d11151 1
a11151 1
#line 11198 "configure"
d11163 1
a11163 1
if { (eval echo configure:11210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11193 1
a11193 1
echo "configure:11240: checking for struct sockaddr_storage" >&5
d11198 1
a11198 1
#line 11245 "configure"
d11210 1
a11210 1
if { (eval echo configure:11257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11240 1
a11240 1
echo "configure:11287: checking for struct addrinfo" >&5
d11245 1
a11245 1
#line 11292 "configure"
d11257 1
a11257 1
if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11286 1
a11286 1
echo "configure:11333: checking for struct winsize" >&5
d11294 1
a11294 1
#line 11341 "configure"
d11316 1
a11316 1
#line 11363 "configure"
d11331 1
a11331 1
#line 11378 "configure"
d11350 1
a11350 1
echo "configure:11397: checking for struct spwd" >&5
d11356 1
a11356 1
#line 11403 "configure"
d11366 1
a11366 1
if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11393 1
a11393 1
echo "configure:11440: checking for sa_len in struct sockaddr" >&5
d11399 1
a11399 1
#line 11446 "configure"
d11407 1
a11407 1
if { (eval echo configure:11454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11435 1
a11435 1
echo "configure:11482: checking for $i" >&5
d11441 1
a11441 1
#line 11488 "configure"
d11465 1
a11465 1
if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11491 1
a11491 1
echo "configure:11538: checking for $i" >&5
d11497 1
a11497 1
#line 11544 "configure"
d11521 1
a11521 1
if { (eval echo configure:11568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a11548 597
echo $ac_n "checking for MD4Init""... $ac_c" 1>&6
echo "configure:11597: checking for MD4Init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_MD4Init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_MD4Init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypto; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 11612 "configure"
#include "confdefs.h"

int main() {
MD4Init()
; return 0; }
EOF
if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4Init=$ac_lib; else ac_cv_funclib_MD4Init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_MD4Init=\${ac_cv_funclib_MD4Init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_MD4Init"

: << END
@@@@@@funcs="$funcs MD4Init"@@@@@@
@@@@@@libs="$libs "" crypto"@@@@@@
END

# MD4Init
eval "ac_tr_func=HAVE_`echo MD4Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD4Init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_MD4Init=yes"
	eval "LIB_MD4Init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_MD4Init=no"
	eval "LIB_MD4Init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_MD4Init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac





echo $ac_n "checking for MD4_Init""... $ac_c" 1>&6
echo "configure:11682: checking for MD4_Init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_MD4_Init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypto; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 11697 "configure"
#include "confdefs.h"

int main() {
MD4_Init()
; return 0; }
EOF
if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_MD4_Init"

: << END
@@@@@@funcs="$funcs MD4_Init"@@@@@@
@@@@@@libs="$libs "" crypto"@@@@@@
END

# MD4_Init
eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD4_Init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_MD4_Init=yes"
	eval "LIB_MD4_Init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_MD4_Init=no"
	eval "LIB_MD4_Init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_MD4_Init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac





echo $ac_n "checking for MD5Init""... $ac_c" 1>&6
echo "configure:11767: checking for MD5Init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_MD5Init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_MD5Init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypto; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 11782 "configure"
#include "confdefs.h"

int main() {
MD5Init()
; return 0; }
EOF
if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5Init=$ac_lib; else ac_cv_funclib_MD5Init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_MD5Init=\${ac_cv_funclib_MD5Init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_MD5Init"

: << END
@@@@@@funcs="$funcs MD5Init"@@@@@@
@@@@@@libs="$libs "" crypto"@@@@@@
END

# MD5Init
eval "ac_tr_func=HAVE_`echo MD5Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD5Init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_MD5Init=yes"
	eval "LIB_MD5Init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_MD5Init=no"
	eval "LIB_MD5Init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_MD5Init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac





echo $ac_n "checking for MD5_Init""... $ac_c" 1>&6
echo "configure:11852: checking for MD5_Init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_MD5_Init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypto; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 11867 "configure"
#include "confdefs.h"

int main() {
MD5_Init()
; return 0; }
EOF
if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_MD5_Init"

: << END
@@@@@@funcs="$funcs MD5_Init"@@@@@@
@@@@@@libs="$libs "" crypto"@@@@@@
END

# MD5_Init
eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD5_Init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_MD5_Init=yes"
	eval "LIB_MD5_Init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_MD5_Init=no"
	eval "LIB_MD5_Init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_MD5_Init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac





echo $ac_n "checking for SHA1Init""... $ac_c" 1>&6
echo "configure:11937: checking for SHA1Init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_SHA1Init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_SHA1Init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypto; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 11952 "configure"
#include "confdefs.h"

int main() {
SHA1Init()
; return 0; }
EOF
if { (eval echo configure:11959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1Init=$ac_lib; else ac_cv_funclib_SHA1Init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_SHA1Init=\${ac_cv_funclib_SHA1Init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_SHA1Init"

: << END
@@@@@@funcs="$funcs SHA1Init"@@@@@@
@@@@@@libs="$libs "" crypto"@@@@@@
END

# SHA1Init
eval "ac_tr_func=HAVE_`echo SHA1Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_SHA1Init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_SHA1Init=yes"
	eval "LIB_SHA1Init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_SHA1Init=no"
	eval "LIB_SHA1Init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_SHA1Init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac





echo $ac_n "checking for SHA1_Init""... $ac_c" 1>&6
echo "configure:12022: checking for SHA1_Init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_SHA1_Init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypto; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 12037 "configure"
#include "confdefs.h"

int main() {
SHA1_Init()
; return 0; }
EOF
if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_SHA1_Init"

: << END
@@@@@@funcs="$funcs SHA1_Init"@@@@@@
@@@@@@libs="$libs "" crypto"@@@@@@
END

# SHA1_Init
eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_SHA1_Init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_SHA1_Init=yes"
	eval "LIB_SHA1_Init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_SHA1_Init=no"
	eval "LIB_SHA1_Init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_SHA1_Init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac





echo $ac_n "checking for des_cbc_encrypt""... $ac_c" 1>&6
echo "configure:12107: checking for des_cbc_encrypt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_des_cbc_encrypt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypto des; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 12122 "configure"
#include "confdefs.h"

int main() {
des_cbc_encrypt()
; return 0; }
EOF
if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"

: << END
@@@@@@funcs="$funcs des_cbc_encrypt"@@@@@@
@@@@@@libs="$libs "" crypto des"@@@@@@
END

# des_cbc_encrypt
eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_des_cbc_encrypt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_des_cbc_encrypt=yes"
	eval "LIB_des_cbc_encrypt="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_des_cbc_encrypt=no"
	eval "LIB_des_cbc_encrypt="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_des_cbc_encrypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac







d11551 1
a11551 1
echo "configure:12195: checking for el_init" >&5
d11566 1
a11566 1
#line 12210 "configure"
d11573 1
a11573 1
if { (eval echo configure:12217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d11634 1
a11634 1
echo "configure:12278: checking for four argument el_init" >&5
d11640 1
a11640 1
#line 12284 "configure"
d11648 1
a11648 1
if { (eval echo configure:12292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d11727 1
a11727 1
echo "configure:12371: checking for streamspty" >&5
d11746 1
a11746 1
echo "configure:12390: checking which authentication modules should be built" >&5
a12078 7
s%@@LIB_MD4Init@@%$LIB_MD4Init%g
s%@@LIB_MD4_Init@@%$LIB_MD4_Init%g
s%@@LIB_MD5Init@@%$LIB_MD5Init%g
s%@@LIB_MD5_Init@@%$LIB_MD5_Init%g
s%@@LIB_SHA1Init@@%$LIB_SHA1Init%g
s%@@LIB_SHA1_Init@@%$LIB_SHA1_Init%g
s%@@LIB_des_cbc_encrypt@@%$LIB_des_cbc_encrypt%g
@


1.1.1.3
log
@Vendor import of Heimdal 0.2o
@
text
@d3 1
a3 1
# From configure.in Revision: 1.217 
d914 1
a914 1
VERSION=0.2o
@


1.1.1.4
log
@Vendor import of Heimdal 0.2p
@
text
@d3 1
a3 1
# From configure.in Revision: 1.218 
d914 1
a914 1
VERSION=0.2p
@


1.1.1.4.2.1
log
@MFC: Heimdal 0.3e (MIT mucho-compatible) upgrade.
@
text
@d2 20
a21 3
# From configure.in Revision: 1.270 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.49d for heimdal 0.3e.
d23 1
a23 1
# Report bugs to <heimdal-bugs@@pdc.kth.se>.
a24 4
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
a25 31
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conftest conftest.exe conftest.file
echo >conftest.file
if ln -s conftest.file conftest 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conftest.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conftest.file conftest 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conftest conftest.exe conftest.file
a26 24
# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conftest.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conftest.file
if test -x conftest.file >/dev/null 2>&1; then
  as_executable_p="test -x"
elif test -f conftest.file >/dev/null 2>&1; then
  as_executable_p="test -f"
else
  { { echo "$as_me:57: error: cannot check whether a file is executable on this system" >&5
echo "$as_me: error: cannot check whether a file is executable on this system" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.file

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi
a27 23
# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
a28 2
# Name of the executable.
as_me=`echo "$0" | sed 's,.*/,,'`
a29 3
cat >config.log <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
a30 2
It was created by $as_me (heimdal 0.3e) 2.49d, executed with
 > $0 $@@
a31 33
EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >>config.log

cat >>config.log <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##
a32 1
EOF
a33 8
# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 5 compiler messages saved in config.log
# 6 checking for... messages and results
exec 5>>config.log
exec 6>&1
d35 140
d176 5
a180 2
# Initializations.
#
d182 1
a182 20
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

# Avoid depending upon Character Ranges.
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ac_cr_09='0123456789'
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09

# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"

d184 46
a229 29
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
a231 2
ac_init_help=
ac_init_version=false
d234 2
a235 1
cache_file=/dev/null
d237 1
d239 1
d248 1
a251 6

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
d265 6
a270 6
# Identity of this package.
PACKAGE_NAME='heimdal'
PACKAGE_TARNAME='heimdal'
PACKAGE_VERSION='0.3e'
PACKAGE_STRING='heimdal 0.3e'
PACKAGE_BUGREPORT='heimdal-bugs@@pdc.kth.se'
d275 1
d283 4
a286 1
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d290 1
a290 1
  case $ac_option in
d295 1
a295 1
    bindir=$ac_optarg ;;
d298 1
a298 1
    ac_prev=build_alias ;;
d300 1
a300 1
    build_alias=$ac_optarg ;;
d307 1
a307 4
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;
d313 1
a313 1
    datadir=$ac_optarg ;;
d316 1
a316 1
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d318 5
a322 6
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:295: error: invalid feature name: $ac_feature" >&5
echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;
d325 1
a325 1
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d327 6
a332 7
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:305: error: invalid feature name: $ac_feature" >&5
echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d335 1
a335 1
    eval "enable_$ac_feature='$ac_optarg'" ;;
d344 1
a344 1
    exec_prefix=$ac_optarg ;;
d350 54
a403 6
  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;
d406 1
a406 1
    ac_prev=host_alias ;;
d408 1
a408 1
    host_alias=$ac_optarg ;;
d415 1
a415 1
    includedir=$ac_optarg ;;
d420 1
a420 1
    infodir=$ac_optarg ;;
d425 1
a425 1
    libdir=$ac_optarg ;;
d432 1
a432 1
    libexecdir=$ac_optarg ;;
d441 1
a441 1
    localstatedir=$ac_optarg ;;
d446 1
a446 1
    mandir=$ac_optarg ;;
d467 1
a467 1
    oldincludedir=$ac_optarg ;;
d472 1
a472 1
    prefix=$ac_optarg ;;
d479 1
a479 1
    program_prefix=$ac_optarg ;;
d486 1
a486 1
    program_suffix=$ac_optarg ;;
d503 1
a503 1
    program_transform_name=$ac_optarg ;;
d513 1
a513 1
    sbindir=$ac_optarg ;;
d524 1
a524 1
    sharedstatedir=$ac_optarg ;;
d529 1
a529 1
    site=$ac_optarg ;;
d534 1
a534 1
    srcdir=$ac_optarg ;;
d541 1
a541 1
    sysconfdir=$ac_optarg ;;
d544 1
a544 1
    ac_prev=target_alias ;;
d546 1
a546 1
    target_alias=$ac_optarg ;;
d551 3
a553 2
  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;
d556 1
a556 1
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d558 3
a560 4
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:488: error: invalid package name: $ac_package" >&5
echo "$as_me: error: invalid package name: $ac_package" >&2;}
   { (exit 1); exit 1; }; }
d562 2
a563 2
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d566 1
a566 1
    eval "with_$ac_package='$ac_optarg'" ;;
d569 1
a569 1
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d571 5
a575 6
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:502: error: invalid package name: $ac_package" >&5
echo "$as_me: error: invalid package name: $ac_package" >&2;}
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;
d586 1
a586 1
    x_includes=$ac_optarg ;;
d593 1
a593 1
    x_libraries=$ac_optarg ;;
d595 1
a595 5
  -*) { { echo "$as_me:526: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; }
a597 11
  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:537: error: invalid variable name: $ac_envvar" >&5
echo "$as_me: error: invalid variable name: $ac_envvar" >&2;}
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

d599 7
a605 7
    # FIXME: should be removed in autoconf 3.0.
    { echo "$as_me:546: WARNING: you should use --build, --host, --target" >&5
echo "$as_me: WARNING: you should use --build, --host, --target" >&2;}
    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me:549: WARNING: invalid host type: $ac_option" >&5
echo "$as_me: WARNING: invalid host type: $ac_option" >&2;}
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d612 17
a628 4
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { { echo "$as_me:559: error: missing argument to $ac_option" >&5
echo "$as_me: error: missing argument to $ac_option" >&2;}
   { (exit 1); exit 1; }; }
d630 6
d637 4
a640 4
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir \
              exec_prefix prefix
d642 8
a649 7
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    NONE ) ;;
    *)  { { echo "$as_me:573: error: expected an absolute path for --$ac_var: $ac_val" >&5
echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
   { (exit 1); exit 1; }; };;
d653 9
a661 18
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    { echo "$as_me:589: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&5
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2;}
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi
d663 4
a666 2
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
d668 3
a670 1
test "$silent" = yes && exec 6>/dev/null
d677 1
a677 1
  ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
d688 1
a688 3
    { { echo "$as_me:619: error: cannot find sources in $ac_confdir or .." >&5
echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;}
   { (exit 1); exit 1; }; }
d690 1
a690 3
    { { echo "$as_me:623: error: cannot find sources in $srcdir" >&5
echo "$as_me: error: cannot find sources in $srcdir" >&2;}
   { (exit 1); exit 1; }; }
d693 1
a693 33
srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
d695 14
a708 8
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures heimdal 0.3e to adapt to many kinds of systems.
d710 7
a716 1
Usage: $0 [OPTION]... [VAR=VALUE]...
d718 20
a737 2
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
a738 1
Defaults for the options are specified in brackets.
a739 10
Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
a740 1
EOF
a741 6
  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]
a742 38
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
EOF

  cat <<\EOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
EOF
fi
d744 14
a757 60
if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of heimdal 0.3e:";;
   esac
  cat <<\EOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking Speeds up one-time builds
  --enable-dependency-tracking  Do not reject slow dependency extractors
  --enable-shared=PKGS  build shared libraries default=no
  --enable-static=PKGS  build static libraries default=yes
  --enable-fast-install=PKGS  optimize for fast installation default=yes
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-dce	if you want support for DCE/DFS PAG's.
  --enable-kaserver	  if you want the KDC to try to emulate a kaserver
  --enable-kaserver-db	  if you want support for reading kaserver databases in hprop
  --disable-otp          if you don't want OTP support
  --enable-osfc2          enable some OSF C2 support
  --enable-bigendian	the target is big endian
  --enable-littleendian	the target is little endian
  --enable-netinfo      enable netinfo for configuration lookup

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-pic              try to use only PIC/non-PIC objects default=use both
  --without-berkeley-db   if you don't want berkeley db
  --without-ipv6	do not enable IPv6 support
  --with-openldap=dir                use openldap in dir
  --with-openldap-lib=dir            use openldap libraries in dir
  --with-openldap-include=dir        use openldap headers in dir
  --with-krb4=dir                use krb4 in dir
  --with-krb4-lib=dir            use krb4 libraries in dir
  --with-krb4-include=dir        use krb4 headers in dir
  --with-readline=dir                use readline in dir
  --with-readline-lib=dir            use readline libraries in dir
  --with-readline-include=dir        use readline headers in dir
  --with-hesiod=dir                use hesiod in dir
  --with-hesiod-lib=dir            use hesiod libraries in dir
  --with-hesiod-include=dir        use hesiod headers in dir
  --with-x                use the X Window System

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPP         C preprocessor
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <heimdal-bugs@@pdc.kth.se>.
EOF
d759 3
d763 39
a801 16
if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
d803 2
a805 17
    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      { echo "$as_me:829: WARNING: no configuration information is in $ac_subdir" >&5
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
    fi
    cd $ac_popdir
  done
d807 11
d819 3
a821 4
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF
configure (heimdal 0.3e) 2.49d
d823 1
a823 7
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
d825 1
a825 21
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done
d827 18
a844 45
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
done
ac_signal=0
d846 7
a852 4
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
d854 8
a861 8
# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
d863 4
a866 18
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:942: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
d868 6
a873 41
  { echo "$as_me:950: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_suggest_removing_cache=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:966: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,set)
      { echo "$as_me:970: WARNING: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:976: WARNING: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:978: WARNING:   former value:  $ac_old_val" >&5
echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:980: WARNING:   current value: $ac_new_val" >&5
echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
        ac_suggest_removing_cache=:
      fi;;
  esac
done
if $ac_suggest_removing_cache; then
  { echo "$as_me:987: WARNING: changes in the environment can compromise the build" >&5
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
  { echo "$as_me:989: WARNING: consider removing $cache_file and starting over" >&5
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
d875 5
d881 2
a882 12
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d884 5
a888 16
ac_config_headers="$ac_config_headers include/config.h"

ac_config_commands="$ac_config_commands default-1"

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1018: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d890 8
a897 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d899 1
a899 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
break
done

d901 1
d903 3
a905 4
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1040: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d907 2
a908 2
  echo "$as_me:1043: result: no" >&5
echo "${ECHO_T}no" >&6
d911 7
d919 9
a927 21
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:1052: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
break
done
d929 64
d994 9
d1004 42
a1045 7
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1074: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1077: result: no" >&5
echo "${ECHO_T}no" >&6
d1048 11
a1058 4
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi
d1060 6
a1065 8
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1090: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1070 10
a1079 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
break
done

d1082 1
a1082 1
CC=$ac_cv_prog_CC
d1084 1
a1084 36
  echo "$as_me:1112: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1115: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1124: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1146: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d1086 1
a1086 2
  echo "$as_me:1149: result: no" >&5
echo "${ECHO_T}no" >&6
a1088 6
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

fi
d1092 4
a1095 4
echo "$as_me:1162: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1100 1
d1102 13
a1114 14
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
break
done

d1119 1
a1119 1
  if test $# != 0; then
d1124 1
a1124 1
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
d1131 1
a1131 1
CC=$ac_cv_prog_CC
d1133 1
a1133 2
  echo "$as_me:1203: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1135 1
a1135 2
  echo "$as_me:1206: result: no" >&5
echo "${ECHO_T}no" >&6
d1138 9
a1146 11
fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1217: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1151 10
a1160 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
break
done

d1163 1
a1163 1
CC=$ac_cv_prog_CC
d1165 1
a1165 2
  echo "$as_me:1239: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1167 1
a1167 2
  echo "$as_me:1242: result: no" >&5
echo "${ECHO_T}no" >&6
d1169 4
a1172 3

    test -n "$CC" && break
  done
a1173 23
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1255: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
break
done
d1175 2
a1176 10
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1277: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1280: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d1178 6
a1183 5
  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
fi
d1185 1
a1185 5
fi

test -z "$CC" && { { echo "$as_me:1292: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d1187 1
a1187 7
echo "$as_me:1296: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1302 "configure"
d1190 10
a1199 21
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1314: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1317: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
d1201 3
a1203 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1329: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
d1205 7
d1213 3
a1215 1
rm -f conftest.$ac_cv_objext conftest.$ac_ext
d1217 4
a1220 16
echo "$as_me:1336: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1340: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if test "${ac_cv_exeext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1346 "configure"
#include "confdefs.h"

int
main ()
{
d1222 4
a1225 20
  ;
  return 0;
}
_ACEOF
# Try without -o first, disregard a.out.
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1359: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1362: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
d1227 7
a1233 26
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi

rm -f a.out a.exe conftest$ac_cv_exeext

# We have not set ac_exeext yet which is needed by `ac_link'.
ac_exeext=$ac_cv_exeext
if { (eval echo "$as_me:1382: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1385: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
d1235 1
a1235 3
  { { echo "$as_me:1401: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
a1236 3

rm -f conftest.$ac_ext conftest$ac_cv_exeext

a1237 9
echo "$as_me:1409: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1413: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 1416 "configure"
#include "confdefs.h"
d1239 1
a1239 3
int
main ()
{
d1241 4
a1244 35
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:1428: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1431: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1433: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:1436: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # FIXME: these cross compiler hacks should be removed for autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { (eval echo "$as_me:1441: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:1444: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
      cross_compiling=yes
    else
      { { echo "$as_me:1451: error: cannot run C compiled programs.
To enable cross compilation, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
To enable cross compilation, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
a1245 32
echo "$as_me:1459: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:1464: result: no" >&5
echo "${ECHO_T}no" >&6
{ { echo "$as_me:1466: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f conftest$ac_exeext conftest.$ac_ext
echo "$as_me:1471: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1473: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:1476: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1482 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
d1247 7
a1253 35
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1497: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1500: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1502: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1505: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:1517: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1523: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1255 2
a1256 23
  cat >conftest.$ac_ext <<_ACEOF
#line 1529 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1541: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1544: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1546: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1549: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d1259 1
a1259 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
d1261 2
a1262 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1264 2
a1265 2
echo "$as_me:1559: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d1267 1
a1267 1
  CFLAGS=$ac_save_CFLAGS
d1281 9
a1289 31
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1586: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1589: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1591: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1594: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 1606 "configure"
d1291 12
a1302 22
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1619: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1622: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1624: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1627: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d1304 7
a1310 32
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 1637 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1649: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1652: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1654: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1657: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a1311 5
rm -f conftest.$ac_objext conftest.$ac_ext
done
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration      >>confdefs.h
echo '#endif'             >>confdefs.h
d1313 17
d1331 3
a1333 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a1334 6
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d1336 8
a1343 14
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:1686: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1345 2
a1346 10
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      # Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
ac_c_preproc_warn_flag=maybe
cat >conftest.$ac_ext <<_ACEOF
#line 1705 "configure"
d1348 8
a1355 16
#include <assert.h>
Syntax error
_ACEOF
if { (eval echo "$as_me:1710: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1716: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d1357 4
a1360 1
  ac_cpp_err=yes
d1362 27
a1388 19
if test -z "$ac_cpp_err"; then
  # Now check whether non-existent headers can be detected and how
# Skip if ac_cpp_err is not empty - ac_cpp is broken
if test -z "$ac_cpp_err"; then
  cat >conftest.$ac_ext <<_ACEOF
#line 1731 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:1735: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1741: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
d1390 1
a1390 1
    ac_cpp_err=
d1392 19
d1412 2
a1413 5
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # cannot detect missing includes at all
ac_cpp_err=yes
d1415 7
a1421 6
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  if test "x$ac_cpp_err" = xmaybe; then
      ac_c_preproc_warn_flag=yes
    else
      ac_c_preproc_warn_flag=
d1423 2
a1424 1
    ac_cpp_err=
a1425 1
rm -f conftest.err conftest.$ac_ext
d1427 3
d1431 2
a1432 2
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1434 3
a1436 7
fi
rm -f conftest.err conftest.$ac_ext
      if test -z "$ac_cpp_err"; then
        break
      fi
    done
    ac_cv_prog_CPP=$CPP
d1438 5
d1444 37
a1480 1
  CPP=$ac_cv_prog_CPP
d1482 7
a1488 7
  # Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
ac_c_preproc_warn_flag=maybe
cat >conftest.$ac_ext <<_ACEOF
#line 1787 "configure"
d1491 7
a1497 15
Syntax error
_ACEOF
if { (eval echo "$as_me:1792: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1798: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d1499 7
a1505 1
  ac_cpp_err=yes
d1507 6
a1512 22
if test -z "$ac_cpp_err"; then
  # Now check whether non-existent headers can be detected and how
# Skip if ac_cpp_err is not empty - ac_cpp is broken
if test -z "$ac_cpp_err"; then
  cat >conftest.$ac_ext <<_ACEOF
#line 1813 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:1817: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1823: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d1514 1
a1514 1
  ac_cpp_err=yes
d1516 14
a1529 3
if test -z "$ac_cpp_err"; then
  # cannot detect missing includes at all
ac_cpp_err=yes
d1531 7
a1537 6
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  if test "x$ac_cpp_err" = xmaybe; then
      ac_c_preproc_warn_flag=yes
    else
      ac_c_preproc_warn_flag=
d1539 2
a1540 1
    ac_cpp_err=
a1541 1
rm -f conftest.err conftest.$ac_ext
d1543 3
d1547 6
a1552 2
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1554 21
a1575 2
rm -f conftest.err conftest.$ac_ext
  ac_cv_prog_CPP=$CPP
d1577 5
a1581 6
echo "$as_me:1856: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
if test -n "$ac_cpp_err"; then
  { { echo "$as_me:1859: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
d1583 17
a1599 15
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

echo "$as_me:1869: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 1877 "configure"
d1601 12
a1612 59
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:1926: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1929: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1931: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1934: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
d1614 4
a1617 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d1619 2
a1620 4
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC
d1623 6
d1630 1
a1630 9
case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:1951: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:1954: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac
d1632 13
a1644 42
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:1976: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:1996: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1646 1
a1646 32
    ac_save_IFS=$IFS; IFS=':'
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if test -f "$ac_dir/$ac_prog"; then
	  if test $ac_prog = install &&
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS=$ac_save_IFS

a1647 9
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL=$ac_install_sh
  fi
a1648 2
echo "$as_me:2045: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
d1650 20
a1669 3
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
d1671 12
a1682 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d1684 1
a1684 1
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
d1686 5
a1690 18
echo "$as_me:2056: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftestfile`
   fi
   if test "$*" != "X $srcdir/configure conftestfile" \
      && test "$*" != "X conftestfile $srcdir/configure"; then
d1692 1
a1692 10
      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      { { echo "$as_me:2079: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi
d1694 9
a1702 5
   test "$2" = conftestfile
   )
then
   # Ok.
   :
d1704 12
a1715 5
   { { echo "$as_me:2092: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
d1717 3
a1719 5
rm -f conftest*
echo "$as_me:2099: result: yes" >&5
echo "${ECHO_T}yes" >&6
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
d1721 1
a1721 25
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF >conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF
  program_transform_name=`echo $program_transform_name | sed -f conftestsed`
  rm -f conftestsed
fi
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"

# sed with no file args requires a program.
test -z "$program_transform_name" && program_transform_name="s,x,x,"

test x"${MISSING+set}" = xset || \
  MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
if eval "$MISSING --run :"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  am_backtick='`'
  { echo "$as_me:2127: WARNING: ${am_backtick}missing' script is too old or missing" >&5
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
d1726 1
a1726 1
  # Extract the first word of "$ac_prog", so it can be a program name with args.
d1728 4
a1731 4
echo "$as_me:2135: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1736 10
a1745 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
break
done

d1748 1
a1748 1
AWK=$ac_cv_prog_AWK
d1750 1
a1750 2
  echo "$as_me:2157: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
d1752 1
a1752 2
  echo "$as_me:2160: result: no" >&5
echo "${ECHO_T}no" >&6
d1755 1
a1755 1
  test -n "$AWK" && break
d1758 4
a1761 5
echo "$as_me:2167: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1763 5
a1767 8
  cat >conftestmake <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
d1769 4
a1772 25
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:2187: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:2191: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
  enableval="$enable_dependency_tracking"

fi;
if test "x$enable_dependency_tracking" = xno; then
  AMDEP="#"
else
  am_depcomp="$ac_aux_dir/depcomp"
  if test ! -f "$am_depcomp"; then
    AMDEP="#"
d1774 1
a1774 1
    AMDEP=
a1776 5

if test -z "$AMDEP"; then
  AMDEPBACKSLASH='\'
else
  AMDEPBACKSLASH=
d1778 2
a1780 5
if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
  DEPDIR=.deps
else
  DEPDIR=_deps
fi
a1781 1
ac_config_commands="$ac_config_commands default-2"
d1783 4
a1786 6
# test to see if srcdir already configured
if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
   test -f $srcdir/config.status; then
  { { echo "$as_me:2229: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
a1788 3
# Define the identity of the package.
PACKAGE=heimdal
VERSION=0.3e
d1790 4
a1793 3
cat >>confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
d1795 8
a1802 3
cat >>confdefs.h <<EOF
#define VERSION "$VERSION"
EOF
d1804 13
a1816 27
# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}

AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}

AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}

AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}

MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

AMTAR=${AMTAR-"${am_missing_run}tar"}

if test -z "$install_sh"; then
   install_sh="$ac_aux_dir/install-sh"
   test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
   test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
         install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
fi

depcc="$CC"
depcpp="$CPP"
echo "$as_me:2269: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1818 6
d1825 7
a1831 29
if test -z "$AMDEP"; then
  echo '#include "conftest.h"' > conftest.c
  echo 'int i;' > conftest.h

  am_cv_CC_dependencies_compiler_type=none
  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
    case "$depmode" in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    if depmode="$depmode" \
       source=conftest.c object=conftest.o \
       depfile=conftest.Po tmpdepfile=conftest.TPo \
       $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
       grep conftest.h conftest.Po > /dev/null 2>&1; then
      am_cv_CC_dependencies_compiler_type="$depmode"
      break
    fi
  done

  rm -f conftest.*
d1833 4
a1836 1
  am_cv_CC_dependencies_compiler_type=none
d1838 2
d1843 11
a1853 3
echo "$as_me:2310: result: $am_cv_CC_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
d1855 22
a1876 58
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:2316: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:2320: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:2329: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:2333: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:2338: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:2345: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:2354: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:2359: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

CANONICAL_HOST=$host

sunos=no
case "$host" in
*-*-sunos4*)
	sunos=40
d1878 9
a1886 8
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2.8)
	sunos=58
	;;
*-*-solaris2*)
	sunos=50
d1889 27
a1915 1
if test "$sunos" != no; then
d1917 1
a1917 3
cat >>confdefs.h <<EOF
#define SunOS $sunos
EOF
d1919 1
a1919 1
fi
d1921 1
a1921 9
aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*)
	aix=4
	;;
esac
d1923 5
a1927 1
#test -z "$CFLAGS" && CFLAGS="-g"
d1929 5
a1933 8
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2407: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_YACC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1935 4
a1938 13
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_YACC="$ac_prog"
break
done

d1940 1
d1942 6
a1947 7
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  echo "$as_me:2429: result: $YACC" >&5
echo "${ECHO_T}$YACC" >&6
else
  echo "$as_me:2432: result: no" >&5
echo "${ECHO_T}no" >&6
d1949 1
a1950 3
  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
d1952 19
a1970 8
for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2444: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1972 22
a1993 2
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
d1995 2
a1996 9
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LEX="$ac_prog"
break
done
d1998 4
a2001 6
fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  echo "$as_me:2466: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
d2003 1
a2003 2
  echo "$as_me:2469: result: no" >&5
echo "${ECHO_T}no" >&6
a2005 3
  test -n "$LEX" && break
done
test -n "$LEX" || LEX="${am_missing_run}flex"
d2007 29
a2035 8
for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2481: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2037 17
a2053 2
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
d2055 1
a2055 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LEX="$ac_prog"
break
done

d2058 4
a2061 4
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  echo "$as_me:2503: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
d2063 1
a2063 2
  echo "$as_me:2506: result: no" >&5
echo "${ECHO_T}no" >&6
d2065 1
d2067 12
a2078 3
  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"
d2080 1
a2080 12
if test -z "$LEXLIB"
then
  echo "$as_me:2516: checking for yywrap in -lfl" >&5
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 2524 "configure"
#include "confdefs.h"
a2081 50
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char yywrap ();
int
main ()
{
yywrap ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2543: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2546: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2548: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:2551: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_fl_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_fl_yywrap=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:2562: result: $ac_cv_lib_fl_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
if test $ac_cv_lib_fl_yywrap = yes; then
  LEXLIB="-lfl"
else
  echo "$as_me:2567: checking for yywrap in -ll" >&5
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
if test "${ac_cv_lib_l_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ll  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 2575 "configure"
#include "confdefs.h"
d2083 29
a2111 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char yywrap ();
int
main ()
{
yywrap ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2594: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2597: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2599: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:2602: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_l_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_l_yywrap=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:2613: result: $ac_cv_lib_l_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
if test $ac_cv_lib_l_yywrap = yes; then
  LEXLIB="-ll"
d2114 2
a2115 1
fi
a2116 1
fi
d2118 4
a2121 5
if test "x$LEX" != "x:"; then
  echo "$as_me:2624: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2123 5
a2127 8
  # The minimal lex program is just a single line: %%.  But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
echo '%%
%%' | $LEX
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
d2129 1
a2129 3
  { { echo "$as_me:2638: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
d2132 3
a2134 31
echo "$as_me:2643: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

echo "$as_me:2647: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS=$LIBS
LIBS="$LIBS $LEXLIB"
cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2663: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2666: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2668: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:2671: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_prog_lex_yytext_pointer=yes
d2136 1
a2136 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a2137 3
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS
rm -f "${LEX_OUTPUT_ROOT}.c"
d2139 38
a2176 4
fi
echo "$as_me:2683: result: $ac_cv_prog_lex_yytext_pointer" >&5
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
if test $ac_cv_prog_lex_yytext_pointer = yes; then
d2178 6
a2183 3
cat >>confdefs.h <<\EOF
#define YYTEXT_POINTER 1
EOF
d2185 3
a2187 1
fi
a2188 1
fi
a2189 20
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:2698: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
break
done
d2191 11
a2201 9
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:2720: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:2723: result: no" >&5
echo "${ECHO_T}no" >&6
d2204 8
a2212 21
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:2732: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
break
done
a2213 10
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:2755: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:2758: result: no" >&5
echo "${ECHO_T}no" >&6
a2215 4
  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi
a2216 21
for ac_prog in mawk gawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2771: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
break
done
d2218 4
d2223 8
a2231 7
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:2793: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
  echo "$as_me:2796: result: no" >&5
echo "${ECHO_T}no" >&6
d2234 7
a2240 21
  test -n "$AWK" && break
done

echo "$as_me:2803: checking for ln -s or something else" >&5
echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
if test "${ac_cv_prog_LN_S+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  touch conftestdata1
  if ln conftestdata1 conftestdata2; then
    rm -f conftestdata*
    ac_cv_prog_LN_S=ln
  else
    ac_cv_prog_LN_S=cp
  fi
a2242 3
LN_S="$ac_cv_prog_LN_S"
echo "$as_me:2824: result: $ac_cv_prog_LN_S" >&5
echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
a2243 3
# Check whether --with-mips_abi or --without-mips_abi was given.
if test "${with_mips_abi+set}" = set; then
  withval="$with_mips_abi"
d2245 2
a2246 1
fi;
d2248 19
a2266 4
case "$host_os" in
irix*)
with_mips_abi="${with_mips_abi:-yes}"
if test -n "$GCC"; then
d2268 9
a2276 17
# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
#
# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
# GCC and revert back to O32. The same goes if O32 is asked for - old
# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
#
# Don't you just love *all* the different SGI ABIs?

case "${with_mips_abi}" in
        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
        64) abi='-mabi=64';  abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { { echo "$as_me:2852: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
a2277 7
if test -n "$abi" ; then
ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
echo "$as_me:2858: checking if $CC supports the $abi option" >&5
echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
if eval "test \"\${$ac_foo+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d2280 25
a2304 3
CFLAGS="$CFLAGS $abi"
cat >conftest.$ac_ext <<_ACEOF
#line 2867 "configure"
d2306 2
d2309 5
a2313 20
int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2879: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2882: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2884: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:2887: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval $ac_foo=yes
d2315 2
a2316 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval $ac_foo=no
d2318 2
a2319 1
rm -f conftest.$ac_objext conftest.$ac_ext
d2321 1
d2323 16
d2341 5
a2345 7
ac_res=`eval echo \\\$$ac_foo`
echo "$as_me:2901: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6
if test $ac_res = no; then
# Try to figure out why that failed...
case $abi in
	-mabi=32)
d2347 12
a2358 3
	CFLAGS="$CFLAGS -mabi=n32"
	cat >conftest.$ac_ext <<_ACEOF
#line 2910 "configure"
d2360 2
d2363 7
a2369 20
int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2922: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2925: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2927: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:2930: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_res=yes
d2371 4
a2374 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_res=no
d2376 2
a2377 2679
rm -f conftest.$ac_objext conftest.$ac_ext
	CLAGS="$save_CFLAGS"
	if test $ac_res = yes; then
		# New GCC
		{ { echo "$as_me:2942: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
	fi
	# Old GCC
	abi=''
	abilibdirext=''
	;;
	-mabi=n32|-mabi=64)
		if test $with_mips_abi = yes; then
			# Old GCC, default to O32
			abi=''
			abilibdirext=''
		else
			# Some broken GCC
			{ { echo "$as_me:2957: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
		fi
	;;
esac
fi #if test $ac_res = no; then
fi #if test -n "$abi" ; then
else
case "${with_mips_abi}" in
        32|o32) abi='-32'; abilibdirext=''     ;;
       n32|yes) abi='-n32'; abilibdirext='32'  ;;
        64) abi='-64'; abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { { echo "$as_me:2971: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
fi #if test -n "$GCC"; then
;;
esac

CC="$CC $abi"
libdir="$libdir$abilibdirext"

echo "$as_me:2982: checking for __attribute__" >&5
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
if test "${ac_cv___attribute__+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 2989 "configure"
#include "confdefs.h"

#include <stdlib.h>

int
main ()
{

static void foo(void) __attribute__ ((noreturn));

static void
foo(void)
{
  exit(1);
}

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3011: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3014: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:3016: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:3019: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv___attribute__=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv___attribute__=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$ac_cv___attribute__" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE___ATTRIBUTE__ 1
EOF

fi
echo "$as_me:3037: result: $ac_cv___attribute__" >&5
echo "${ECHO_T}$ac_cv___attribute__" >&6

# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
  enable_shared=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_shared=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_shared=no
fi;
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
  enableval="$enable_static"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
  enable_static=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_static=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_static=yes
fi;
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval="$enable_fast_install"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
  enable_fast_install=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_fast_install=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_fast_install=yes
fi;

# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi;
ac_prog=ld
if test "$ac_cv_c_compiler_gnu" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo "$as_me:3117: checking for ld used by GCC" >&5
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case "$ac_prog" in
    # Accept absolute paths.
    [\\/]* | [A-Za-z]:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the path of ld
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo "$as_me:3147: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
else
  echo "$as_me:3150: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
fi
if test "${ac_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      ac_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some GNU ld's only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
	test "$with_gnu_ld" != no && break
      else
	test "$with_gnu_ld" != yes && break
      fi
    fi
  done
  IFS="$ac_save_ifs"
else
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$ac_cv_path_LD"
if test -n "$LD"; then
  echo "$as_me:3180: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:3183: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { { echo "$as_me:3186: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:3189: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${ac_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  ac_cv_prog_gnu_ld=yes
else
  ac_cv_prog_gnu_ld=no
fi
fi
echo "$as_me:3201: result: $ac_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
with_gnu_ld=$ac_cv_prog_gnu_ld

echo "$as_me:3205: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
echo "$as_me:3212: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
test -n "$reload_flag" && reload_flag=" $reload_flag"

echo "$as_me:3217: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
if test "${ac_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  ac_cv_path_NM="$NM"
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    test -z "$ac_dir" && ac_dir=.
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$tmp_nm -B"
	break
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$tmp_nm -p"
	break
      else
	ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
	continue # so that we can try to find one that supports BSD flags
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi

NM="$ac_cv_path_NM"
echo "$as_me:3252: result: $NM" >&5
echo "${ECHO_T}$NM" >&6

echo "$as_me:3255: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:3259: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:3262: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:3266: checking how to recognise dependant libraries" >&5
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='${MAGIC}'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [regex]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case "$host_os" in
aix4*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi4*)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
    lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin* | mingw*)
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='${OBJDUMP} -f'
  ;;

freebsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case "$host_cpu" in
    i*86 )
            lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
            lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20*)
  # TODO:  Does this work for hpux-11 too?
  lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
  ;;

irix5* | irix6*)
  case "$host_os" in
  irix5*)
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    ;;
  *)
    case "$LD" in
    *-32|*"-32 ") libmagic=32-bit;;
    *-n32|*"-n32 ") libmagic=N32;;
    *-64|*"-64 ") libmagic=64-bit;;
    *) libmagic=never-match;;
    esac
    # this will be overridden with pass_all, but let us keep it just in case
        lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
        ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux-gnu*)
  case "$host_cpu" in
  alpha* | i*86 | powerpc* | sparc* | ia64* )
    lt_cv_deplibs_check_method=pass_all ;;
  *)
    # glibc up to 2.1.1 does not perform some relocations on ARM
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
      esac
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
  else
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
        lt_cv_file_magic_cmd='/usr/bin/file -L'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  fi
  ;;

osf3* | osf4* | osf5*)
  # this will be overridden with pass_all, but let us keep it just in case
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  lt_cv_file_magic_test_file=/shlib/libc.so
  lt_cv_deplibs_check_method=pass_all
  ;;

sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_file_magic_test_file=/lib/libc.so
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  case "$host_vendor" in
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  motorola)
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  esac
  ;;
esac

fi
echo "$as_me:3402: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method

# Only perform the check for file, if the check method requires it
case "$deplibs_check_method" in
file_magic*)
  if test "$file_magic_cmd" = '${MAGIC}'; then
    echo "$as_me:3411: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case "$MAGIC" in
  /*)
  lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
  ;;
  ?:/*)
  ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC="$MAGIC"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case "$deplibs_check_method" in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC="$lt_cv_path_MAGIC"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC="$ac_save_MAGIC"
  ;;
esac
fi

MAGIC="$lt_cv_path_MAGIC"
if test -n "$MAGIC"; then
  echo "$as_me:3466: result: $MAGIC" >&5
echo "${ECHO_T}$MAGIC" >&6
else
  echo "$as_me:3469: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$lt_cv_path_MAGIC"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:3475: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case "$MAGIC" in
  /*)
  lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
  ;;
  ?:/*)
  ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC="$MAGIC"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case "$deplibs_check_method" in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC="$lt_cv_path_MAGIC"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC="$ac_save_MAGIC"
  ;;
esac
fi

MAGIC="$lt_cv_path_MAGIC"
if test -n "$MAGIC"; then
  echo "$as_me:3530: result: $MAGIC" >&5
echo "${ECHO_T}$MAGIC" >&6
else
  echo "$as_me:3533: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  else
    MAGIC=:
  fi
fi

  fi
  ;;
esac

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:3549: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
break
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:3571: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:3574: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:3583: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
break
done

  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:3606: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:3609: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:3621: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
break
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:3643: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:3646: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:3655: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_STRIP="strip"
break
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:3678: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:3681: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi

# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"

# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$host" in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 3721 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:3722: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3725: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:3746: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
#line 3759 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3771: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3774: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:3776: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:3779: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
lt_cv_cc_needs_belf=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
echo "$as_me:3795: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;

esac

# Save cache, so that ltconfig can load it
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# Actually configure libtool.  ac_aux_dir is where install-sh is found.
AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|| { { echo "$as_me:3870: error: libtool configure failed" >&5
echo "$as_me: error: libtool configure failed" >&2;}
   { (exit 1); exit 1; }; }

# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:3879: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:3887: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi

berkeley_db=db

# Check whether --with-berkeley-db or --without-berkeley-db was given.
if test "${with_berkeley_db+set}" = set; then
  withval="$with_berkeley_db"

if test "$withval" = no; then
	berkeley_db=""
fi

fi;
if test "$berkeley_db"; then

for ac_header in 				\
	db.h					\
	db_185.h				\

do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:3934: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 3940 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:3944: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:3950: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:3969: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

fi

echo "$as_me:3981: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $berkeley_db; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 3997 "configure"
#include "confdefs.h"

#include <stdio.h>
#if defined(HAVE_DB_185_H)
#include <db_185.h>
#elif defined(HAVE_DB_H)
#include <db.h>
#endif

int
main ()
{
dbopen(NULL, 0, 0, 0, NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4016: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4019: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4021: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4024: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_dbopen"

if false; then

for ac_func in dbopen
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:4046: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4052 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4083: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4086: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4088: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4091: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4101: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:4125: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:4131: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4145: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:4150: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" $berkeley_db gdbm ndbm; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4166 "configure"
#include "confdefs.h"

int
main ()
{
dbm_firstkey()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4178: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4181: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4183: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4186: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:4208: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4214 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4245: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4248: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4250: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4253: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4263: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:4287: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4293: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4307: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:4312: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" $berkeley_db; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4328 "configure"
#include "confdefs.h"

int
main ()
{
db_create()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4340: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4343: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4345: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4348: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_db_create"

if false; then

for ac_func in db_create
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:4370: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4376 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4407: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4410: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4412: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4415: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4425: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:4449: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:4455: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4469: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

DBLIB="$LIB_dbopen"
if test "$LIB_dbopen" != "$LIB_db_create"; then
        DBLIB="$DBLIB $LIB_db_create"
fi
if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
	DBLIB="$DBLIB $LIB_dbm_firstkey"
fi

echo "$as_me:4482: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line 4490 "configure"
#include "confdefs.h"
#ifndef __cplusplus
$ac_kw int foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4498: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4501: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4503: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4506: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:4517: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
EOF
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

echo "$as_me:4532: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4538 "configure"
#include "confdefs.h"

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4596: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4599: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4601: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4604: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4614: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
EOF

fi

echo "$as_me:4624: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4630 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:4638: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4644: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 4666 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 4684 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4705 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:4731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4734: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:4735: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4738: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
fi
fi
echo "$as_me:4751: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:4764: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4770 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:4774: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4780: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:4799: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

echo "$as_me:4809: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4815 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4830: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4833: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4835: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4838: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4848: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define size_t unsigned
EOF

fi

echo "$as_me:4860: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4866 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4884: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4886: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4889: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4899: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define pid_t int
EOF

fi

echo "$as_me:4911: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4917 "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
echo "$as_me:4931: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then

cat >>confdefs.h <<\EOF
#define uid_t int
EOF

cat >>confdefs.h <<\EOF
#define gid_t int
EOF

fi

echo "$as_me:4945: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4951 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4973: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4976: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4978: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4981: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_signal=void
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4991: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF

if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
EOF

fi

echo "$as_me:5006: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5012 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
struct tm *tp;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5027: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5030: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5032: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:5035: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:5045: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

for ac_header in standards.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5058: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5064 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5068: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5074: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5093: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:5107: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5113 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

_ACEOF
if { (eval echo "$as_me:5122: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5128: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5147: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi
done
if false;then

for ac_header in netinet/ip.h netinet/tcp.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5163: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5169 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5173: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5179: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5198: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

fi

for ac_func in getlogin setlogin
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:5213: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5219 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5250: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5253: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5255: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5258: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5268: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:5279: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi

fi
echo "$as_me:5292: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then

cat >>confdefs.h <<\EOF
#define POSIX_GETLOGIN 1
EOF

fi
fi

echo "$as_me:5303: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5314 "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>

int main()
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5327: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5330: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:5331: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5334: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_realloc_broken=yes
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi

fi
echo "$as_me:5347: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then

cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
EOF

fi

DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi

echo "$as_me:5374: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5380 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_ssize_t=yes
else
  ac_cv_type_ssize_t=no
fi
rm -f conftest*

fi
echo "$as_me:5398: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then

cat >>confdefs.h <<\EOF
#define ssize_t int
EOF

fi

cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:5409: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5415 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5432: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5435: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5437: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:5440: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:5451: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:5456: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5462 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5477: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5480: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5482: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:5485: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:5495: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
EOF

fi

fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dbm.h					\
	db.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	gdbm/ndbm.h				\
	grp.h					\
	ifaddrs.h				\
	ndbm.h					\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/dbm.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\
	winsock.h				\

do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5566: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5572 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5576: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5582: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5601: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
d2380 5
a2384 84
if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi

if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi

if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi

# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"

if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  v6type=unknown
v6lib=none

echo "$as_me:5657: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line 5663 "configure"
#include "confdefs.h"

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line 5682 "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line 5701 "configure"
#include "confdefs.h"
a2385 61
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line 5720 "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line 5737 "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
d2387 4
a2390 249
done
echo "$as_me:5767: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi
cat >conftest.$ac_ext <<_ACEOF
#line 5779 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5814: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5817: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5819: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5822: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ipv6=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi

echo "$as_me:5833: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "$as_me:5835: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_IPV6 1
EOF

fi

echo "$as_me:5845: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 5861 "configure"
#include "confdefs.h"

int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5873: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5876: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5878: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5881: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_socket"

if false; then

for ac_func in socket
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:5903: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5909 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5940: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5943: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5945: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5948: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5958: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:5982: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:5988: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:6002: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi

echo "$as_me:6011: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2392 2
a2393 12

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 6027 "configure"
d2395 2
d2398 6
a2403 20
int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6039: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6042: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6044: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6047: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d2405 4
a2408 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2410 2
a2411 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d2414 5
a2418 1
fi
d2420 3
a2422 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
d2424 5
a2428 9
if false; then

for ac_func in gethostbyname
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6069: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2430 2
a2431 2
  cat >conftest.$ac_ext <<_ACEOF
#line 6075 "configure"
d2433 2
a2434 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2436 2
a2437 40
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6106: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6109: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6111: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6114: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6124: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d2439 8
a2446 1

d2448 2
a2449 2
done

a2450 4
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"
d2452 4
a2455 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d2458 2
a2459 15
	echo "$as_me:6148: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:6154: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a2460 8
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:6168: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a2461 3
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi
d2463 4
a2466 4
echo "$as_me:6177: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2468 2
a2469 2

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
d2471 2
a2472 2
	for ac_lib in "" syslog; do
		if test -n "$ac_lib"; then
d2478 2
a2479 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6193 "configure"
d2482 7
a2488 20
int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6205: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6208: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6210: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6213: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d2490 2
a2491 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2493 1
a2493 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2495 1
a2495 1
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
a2500 1
eval "ac_res=\$ac_cv_funclib_syslog"
d2502 1
a2502 1
if false; then
d2504 4
a2507 22
for ac_func in syslog
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6235: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6241 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2509 2
a2510 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6272: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6275: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6277: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6280: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6290: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2512 1
a2512 1
eval "LIB_syslog=$ac_res"
d2516 3
a2518 3
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<EOF
d2522 1
a2522 2
	echo "$as_me:6314: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2525 3
a2527 4
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:6320: result: no" >&5
echo "${ECHO_T}no" >&6
d2530 1
a2530 1
	eval "ac_cv_func_syslog=yes"
d2532 1
a2532 1
	cat >>confdefs.h <<EOF
d2536 1
a2536 1
	cat >>confdefs.h <<EOF
d2540 1
a2540 2
	echo "$as_me:6334: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2544 3
a2546 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
d2549 8
a2556 4
echo "$as_me:6343: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2558 2
a2559 2

if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
d2561 2
a2562 2
	for ac_lib in "" inet6 ip6; do
		if test -n "$ac_lib"; then
d2568 2
a2569 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6359 "configure"
d2572 7
a2578 20
int
main ()
{
gethostbyname2()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6371: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6374: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6376: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6379: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d2580 2
a2581 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2583 1
a2583 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2585 1
a2585 1
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
a2590 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
d2592 1
a2592 1
if false; then
d2594 4
a2597 22
for ac_func in gethostbyname2
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6401: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6407 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2599 2
a2600 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6438: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6441: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6443: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6446: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6456: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2602 1
a2602 1
eval "LIB_gethostbyname2=$ac_res"
d2606 3
a2608 3
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<EOF
d2612 1
a2612 2
	echo "$as_me:6480: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2615 3
a2617 4
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:6486: result: no" >&5
echo "${ECHO_T}no" >&6
d2620 1
a2620 1
	eval "ac_cv_func_gethostbyname2=yes"
d2622 1
a2622 1
	cat >>confdefs.h <<EOF
d2626 1
a2626 1
	cat >>confdefs.h <<EOF
d2630 1
a2630 2
	echo "$as_me:6500: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2634 3
a2636 2
if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
d2639 8
a2646 4
echo "$as_me:6509: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2648 2
a2649 2

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
d2651 2
a2652 2
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
d2658 2
a2659 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6525 "configure"
d2662 7
a2668 34
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6551: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6554: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6556: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6559: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d2670 2
a2671 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2673 1
a2673 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2675 1
a2675 1
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
a2680 1
eval "ac_res=\$ac_cv_funclib_res_search"
d2682 1
a2682 1
if false; then
d2684 4
a2687 22
for ac_func in res_search
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6581: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6587 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2689 2
a2690 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6618: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6621: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6623: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6626: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6636: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2692 1
a2692 1
eval "LIB_res_search=$ac_res"
d2696 3
a2698 3
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<EOF
d2702 1
a2702 2
	echo "$as_me:6660: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2705 3
a2707 4
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:6666: result: no" >&5
echo "${ECHO_T}no" >&6
d2710 1
a2710 1
	eval "ac_cv_func_res_search=yes"
d2712 1
a2712 1
	cat >>confdefs.h <<EOF
d2716 1
a2716 1
	cat >>confdefs.h <<EOF
d2720 1
a2720 2
	echo "$as_me:6680: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2724 50
a2773 2
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
d2775 1
d2777 4
a2780 4
echo "$as_me:6689: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2782 4
d2787 8
a2794 1
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
d2796 2
a2797 2
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
d2803 2
a2804 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6705 "configure"
d2807 7
a2813 34
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6734: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6736: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6739: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d2815 2
a2816 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2818 1
a2818 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2820 1
a2820 1
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
a2825 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d2827 1
a2827 1
if false; then
d2829 4
a2832 22
for ac_func in dn_expand
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6761: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6767 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2834 2
a2835 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6798: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6801: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6803: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6806: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6816: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2837 1
a2837 1
eval "LIB_dn_expand=$ac_res"
d2841 3
a2843 3
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<EOF
d2847 1
a2847 2
	echo "$as_me:6840: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2850 3
a2852 4
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:6846: result: no" >&5
echo "${ECHO_T}no" >&6
d2855 1
a2855 1
	eval "ac_cv_func_dn_expand=yes"
d2857 1
a2857 1
	cat >>confdefs.h <<EOF
d2861 1
a2861 1
	cat >>confdefs.h <<EOF
d2865 1
a2865 2
	echo "$as_me:6860: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2869 14
a2882 2
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d2885 5
a2889 4
echo "$as_me:6869: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2891 6
a2896 2
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
d2898 12
a2909 4
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6879 "configure"
#include "confdefs.h"
d2911 3
a2913 19
#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:6892: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6895: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:6896: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6899: \$? = $ac_status" >&5
  (exit $ac_status); }; then
a2914 5
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_snprintf_working=no
d2916 10
a2925 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2927 8
a2935 2
echo "$as_me:6911: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
d2937 1
a2937 1
if test "$ac_cv_func_snprintf_working" = yes; then
d2939 3
a2941 2
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
d2944 1
a2945 1
if test "$ac_cv_func_snprintf_working" = yes; then
a2946 16
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:6924: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6930 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
d2948 4
a2951 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6945: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6948: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6950: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:6953: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_snprintf_noproto=yes"
d2953 2
a2954 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
d2956 5
a2960 1
rm -f conftest.$ac_objext conftest.$ac_ext
a2961 2
echo "$as_me:6963: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
d2963 4
a2966 4
if test "$ac_cv_func_snprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
d2969 1
d2972 29
d3002 5
a3006 1

d3009 6
a3014 4
echo "$as_me:6978: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3016 24
a3039 3
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
d3041 2
a3042 3
  cat >conftest.$ac_ext <<_ACEOF
#line 6988 "configure"
#include "confdefs.h"
d3044 13
a3056 3
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
d3058 8
a3065 31
int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}

int main()
{
	return foo(0, "12");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:7011: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7014: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:7015: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7018: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_vsnprintf_working=no
d3067 8
a3074 1
rm -f conftest$ac_exeext conftest.$ac_ext
d3076 2
a3078 2
echo "$as_me:7030: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
d3080 1
a3080 5
if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
EOF
d3082 4
a3086 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
a3087 16
if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:7043: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7049 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);
d3089 3
a3091 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7064: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7067: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7069: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7072: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
d3093 2
a3094 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
d3096 9
a3104 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3105 8
echo "$as_me:7082: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6

if test "$ac_cv_func_vsnprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_VSNPRINTF_PROTO 1
EOF
d3109 5
a3115 1
fi
a3116 9
echo "$as_me:7097: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line 7104 "configure"
#include "confdefs.h"
a3117 5
#include <stdio.h>
#include <glob.h>
int
main ()
{
a3118 1
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
d3120 3
a3122 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7120: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7123: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7125: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7128: \$? = $ac_status" >&5
  (exit $ac_status); }; then
a3123 4
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
d3125 8
a3132 1
rm -f conftest$ac_exeext conftest.$ac_ext
a3133 9
echo "$as_me:7138: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6

if test "$ac_cv_func_glob_working" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_GLOB 1
EOF

a3134 1
if test "$ac_cv_func_glob_working" = yes; then
d3136 7
a3142 38
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:7151: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7157 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <glob.h>
int
main ()
{
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7173: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7176: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7178: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7181: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_glob_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_glob_noproto=no"
a3143 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3144 2
echo "$as_me:7191: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
a3145 1
if test "$ac_cv_func_glob_noproto" = yes; then
d3147 2
a3148 3
cat >>confdefs.h <<\EOF
#define NEED_GLOB_PROTO 1
EOF
d3150 19
a3168 1
fi
d3170 10
a3179 1
fi
d3181 11
a3191 1
fi
d3193 5
a3197 7
if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.o"
fi

if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
d3199 2
a3200 2
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
d3202 6
a3207 30

for ac_func in 				\
	asnprintf				\
	asprintf				\
	cgetent					\
	getconfattr				\
	getrlimit				\
	getspnam				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\

do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7240: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7246 "configure"
d3209 3
a3211 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d3213 1
a3213 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7277: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7280: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7282: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7285: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7295: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3215 6
a3220 1

d3222 1
d3224 2
d3227 8
a3234 3
if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.o"
fi
d3236 2
a3237 4
echo "$as_me:7309: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3239 4
a3242 47

if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7325 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7342: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7345: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7347: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7350: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
a3244 1
fi
a3245 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
a3246 1
if false; then
a3247 22
for ac_func in getsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7372: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7378 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d3249 5
a3253 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d3255 9
a3263 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7409: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7412: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7414: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7417: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7427: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
d3265 7
a3272 2
done

a3273 12
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a3274 15
	echo "$as_me:7451: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:7457: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d3276 2
a3277 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d3279 10
a3288 2
	echo "$as_me:7471: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d3291 7
d3299 10
a3308 5
echo "$as_me:7476: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d3310 7
a3316 11
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7492 "configure"
d3318 8
a3325 26
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7509: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7512: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7514: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7517: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d3327 2
a3328 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3330 6
a3335 22
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_setsockopt"

if false; then

for ac_func in setsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7539: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7545 "configure"
d3337 2
a3338 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d3340 1
a3340 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7576: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7579: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7581: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7584: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7594: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3342 6
a3347 1

d3349 1
d3351 2
d3354 7
a3360 12
fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d3363 9
a3371 15
	echo "$as_me:7618: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:7624: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a3372 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a3373 4
	echo "$as_me:7638: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a3374 5
echo "$as_me:7643: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d3376 4
a3379 43
if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7659 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
hstrerror(17)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7673: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7676: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7678: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7681: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
d3382 4
d3388 4
a3391 11
eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then

for ac_func in hstrerror
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7703: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3393 2
a3394 2
  cat >conftest.$ac_ext <<_ACEOF
#line 7709 "configure"
a3395 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d3397 6
a3402 10
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d3404 1
a3404 29

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7740: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7743: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7745: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7748: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7758: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3406 10
a3415 1

a3416 1
done
d3418 14
a3431 5
fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"
d3433 3
a3435 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d3437 4
a3440 14
	echo "$as_me:7782: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:7788: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d3442 27
a3468 3

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
d3470 11
d3482 3
a3484 4
	echo "$as_me:7802: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d3486 6
a3491 2
if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
d3493 4
a3496 3

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
LIBOBJS="$LIBOBJS hstrerror.o"
d3499 4
a3502 7
if test "$ac_cv_func_hstrerror" = yes; then

if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:7818: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3504 4
a3507 2
  cat >conftest.$ac_ext <<_ACEOF
#line 7824 "configure"
d3510 7
a3516 26
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7842: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7845: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7847: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7850: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_hstrerror_noproto=yes"
d3518 2
a3519 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_hstrerror_noproto=no"
d3521 3
a3523 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3524 2
echo "$as_me:7860: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
d3526 12
a3537 1
if test "$ac_cv_func_hstrerror_noproto" = yes; then
a3538 3
cat >>confdefs.h <<\EOF
#define NEED_HSTRERROR_PROTO 1
EOF
d3540 6
a3545 1
fi
d3547 4
d3553 46
d3601 3
a3603 1
if test "$ac_cv_func_asprintf" = yes; then
d3605 13
a3617 5
if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:7878: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3619 50
a3668 3
  cat >conftest.$ac_ext <<_ACEOF
#line 7884 "configure"
#include "confdefs.h"
d3670 2
a3671 8
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d3673 2
a3674 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7901: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7904: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7906: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7909: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_asprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7919: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
d3676 7
a3682 1
if test "$ac_cv_func_asprintf_noproto" = yes; then
d3684 3
a3686 2
cat >>confdefs.h <<\EOF
#define NEED_ASPRINTF_PROTO 1
d3688 56
a3743 1

d3745 2
d3748 7
d3757 3
a3759 1
if test "$ac_cv_func_vasprintf" = yes; then
d3761 3
a3763 5
if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:7935: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3765 7
a3771 33
  cat >conftest.$ac_ext <<_ACEOF
#line 7941 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7958: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7961: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7963: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7966: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vasprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasprintf_noproto=no"
a3772 4
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7976: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
a3773 1
if test "$ac_cv_func_vasprintf_noproto" = yes; then
d3775 4
a3778 2
cat >>confdefs.h <<\EOF
#define NEED_VASPRINTF_PROTO 1
d3781 5
a3785 1
fi
d3787 12
a3798 12
fi
fi
if test "$ac_cv_func_asnprintf" = yes; then

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:7992: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7998 "configure"
d3801 1
a3801 8
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
d3803 5
a3807 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8015: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8020: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:8023: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_asnprintf_noproto=yes"
d3809 4
a3812 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asnprintf_noproto=no"
d3814 9
a3822 4
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8033: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
d3824 1
a3824 1
if test "$ac_cv_func_asnprintf_noproto" = yes; then
d3826 1
a3826 2
cat >>confdefs.h <<\EOF
#define NEED_ASNPRINTF_PROTO 1
d3828 8
a3835 1

d3837 11
d3849 3
a3851 3
fi
fi
if test "$ac_cv_func_vasnprintf" = yes; then
d3853 11
a3863 5
if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:8049: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3865 4
a3868 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8055 "configure"
d3870 4
d3875 7
a3881 25
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8072: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8075: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8077: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:8080: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vasnprintf_noproto=yes"
d3883 4
a3886 15
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8090: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6

if test "$ac_cv_func_vasnprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_VASNPRINTF_PROTO 1
EOF

d3888 2
d3892 5
d3899 6
a3904 4
echo "$as_me:8104: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3906 9
d3916 7
a3922 35
if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8120 "configure"
#include "confdefs.h"
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
int
main ()
{
pidfile(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8134: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8137: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8139: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8142: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d3924 4
a3927 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3929 3
a3931 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d3933 5
a3937 1

d3940 1
a3940 1
eval "ac_res=\$ac_cv_funclib_pidfile"
d3942 10
a3951 9
if false; then

for ac_func in pidfile
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8164: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3953 2
a3954 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8170 "configure"
d3957 1
a3957 1
    which can conflict with char $ac_func (); below.  */
a3959 3
#ifdef __cplusplus
extern "C"
#endif
d3961 4
a3964 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a3965 3
int
main ()
{
d3969 1
a3969 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3972 1
a3972 1
f = $ac_func;
d3975 1
a3975 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8201: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8204: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8206: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8209: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8219: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3977 10
a3986 1

a3987 1
done
d3989 5
a3994 4
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"
d3996 6
a4001 106
case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:8243: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:8249: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8263: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

for ac_func in 					\
	chown					\
	copyhostent				\
	daemon					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freeaddrinfo				\
	freehostent				\
	gai_strerror				\
	getaddrinfo				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getnameinfo				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\

do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8337: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4003 4
a4006 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8343 "configure"
a4007 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
a4008 3
#ifdef __cplusplus
extern "C"
#endif
d4010 2
a4011 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4013 3
a4015 42
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8374: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8377: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8379: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8382: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8392: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then

ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d4017 11
d4029 4
d4034 1
a4034 1
  LIBOBJS="$LIBOBJS ${ac_func}.o"
d4037 1
a4037 68
if false; then

for ac_func in \
	chown					\
	copyhostent				\
	daemon					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freeaddrinfo				\
	freehostent				\
	gai_strerror				\
	getaddrinfo				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getnameinfo				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\
d4039 11
a4049 6
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8476: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4051 2
a4052 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8482 "configure"
d4055 1
a4055 1
    which can conflict with char $ac_func (); below.  */
a4057 3
#ifdef __cplusplus
extern "C"
#endif
d4059 4
a4062 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a4063 3
int
main ()
{
d4067 1
a4067 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4070 1
a4070 1
f = $ac_func;
d4073 1
a4073 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8513: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8516: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8518: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8521: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8531: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4075 10
a4084 1

a4085 1
done
d4087 5
a4092 1
done
d4094 6
a4099 6
for ac_func in inet_aton
do
echo "$as_me:8546: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4101 4
a4104 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8552 "configure"
d4106 4
a4109 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
d4111 7
a4117 25
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
$ac_func(0,0)
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8584: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8587: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8589: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8592: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_$ac_func=yes"
d4119 4
a4122 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
d4124 3
a4126 1
rm -f conftest$ac_exeext conftest.$ac_ext
d4128 3
a4130 9

if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

  echo "$as_me:8609: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4132 1
a4132 3
  echo "$as_me:8612: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a4133 2
done
if false; then
d4135 7
a4141 7
for ac_func in inet_aton
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8622: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4143 2
a4144 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8628 "configure"
d4147 1
a4147 1
    which can conflict with char $ac_func (); below.  */
a4149 3
#ifdef __cplusplus
extern "C"
#endif
d4151 4
a4154 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a4155 3
int
main ()
{
d4159 1
a4159 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4162 1
a4162 1
f = $ac_func;
d4165 1
a4165 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8659: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8662: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8664: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8667: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8677: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4167 10
a4176 1

a4177 1
done
d4179 5
d4186 6
a4191 6
for ac_func in inet_ntop
do
echo "$as_me:8691: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4193 4
a4196 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8697 "configure"
d4198 4
a4201 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
d4203 7
a4209 25
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
$ac_func(0, 0, 0, 0)
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8729: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8732: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8734: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8737: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_$ac_func=yes"
d4211 4
a4214 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
d4216 3
a4218 1
rm -f conftest$ac_exeext conftest.$ac_ext
d4220 3
a4222 9

if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

  echo "$as_me:8754: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4224 1
a4224 3
  echo "$as_me:8757: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a4225 2
done
if false; then
d4227 7
a4233 7
for ac_func in inet_ntop
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8767: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4235 2
a4236 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8773 "configure"
d4239 1
a4239 1
    which can conflict with char $ac_func (); below.  */
a4241 3
#ifdef __cplusplus
extern "C"
#endif
d4243 4
a4246 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a4247 3
int
main ()
{
d4251 1
a4251 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4254 1
a4254 1
f = $ac_func;
d4257 1
a4257 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8804: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8807: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8809: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8812: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8822: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4259 10
a4268 1

a4269 1
done
d4271 5
d4278 6
a4283 6
for ac_func in inet_pton
do
echo "$as_me:8836: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4285 4
a4288 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8842 "configure"
d4290 4
a4293 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
d4295 15
a4309 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
$ac_func(0,0,0)
#endif
d4311 4
a4314 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8874: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8877: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8879: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8882: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_$ac_func=yes"
d4316 1
a4316 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
d4319 31
a4349 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d4351 11
d4363 4
a4366 2
  echo "$as_me:8899: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4368 5
a4372 3
  echo "$as_me:8902: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a4373 2
done
if false; then
d4375 34
a4408 7
for ac_func in inet_pton
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8912: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4410 2
a4411 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8918 "configure"
a4412 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4414 10
a4423 40
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8949: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8954: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8957: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8967: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4425 11
d4437 4
a4441 1
done
d4443 2
a4446 5
echo "$as_me:8979: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d4448 8
a4455 29
cat >conftest.$ac_ext <<_ACEOF
#line 8986 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr x; x.sa_len;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8999: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9002: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9004: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9007: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr_sa_len=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
a4456 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9017: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
a4457 3
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
EOF
d4459 6
a4464 1
fi
a4465 1
if test "$ac_cv_func_getnameinfo" = "yes"; then
a4466 18
echo "$as_me:9029: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:9035: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9040 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
a4467 15
int
main(int argc, char **argv)
{
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
}
a4468 27
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9066: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9069: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:9070: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:9073: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getnameinfo_broken=no
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getnameinfo_broken=yes
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
fi
echo "$as_me:9085: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
    LIBOBJS="$LIBOBJS getnameinfo.o"
  fi
fi
d4470 4
a4473 5
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:9093: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4475 12
a4486 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9099 "configure"
a4487 7
#include <stdlib.h>
int
main ()
{
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);
d4489 7
a4495 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9114: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9117: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9119: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9122: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_setenv_noproto=yes"
d4497 2
a4498 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_setenv_noproto=no"
d4500 4
a4503 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4504 8
echo "$as_me:9132: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6

if test "$ac_cv_func_setenv_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_SETENV_PROTO 1
EOF
a4507 1
fi
d4509 1
a4509 16
if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:9146: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9152 "configure"
#include "confdefs.h"
#include <stdlib.h>
int
main ()
{
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);
d4511 4
a4514 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9167: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9170: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9172: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9175: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_unsetenv_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_unsetenv_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9185: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
d4516 4
a4519 1
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d4521 6
a4526 2
cat >>confdefs.h <<\EOF
#define NEED_UNSETENV_PROTO 1
d4529 13
a4541 1
fi
d4543 3
a4545 1
fi
d4547 3
a4549 42
if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:9199: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9205 "configure"
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9220: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9223: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9225: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9228: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_gethostname_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostname_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9238: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
a4550 1
if test "$ac_cv_func_gethostname_noproto" = yes; then
d4552 2
a4553 3
cat >>confdefs.h <<\EOF
#define NEED_GETHOSTNAME_PROTO 1
EOF
a4554 1
fi
a4555 1
fi
d4557 4
a4560 5
if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:9252: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4562 12
a4573 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9258 "configure"
a4574 7
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);
d4576 7
a4582 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9273: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9276: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9278: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9281: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_mkstemp_noproto=yes"
d4584 2
a4585 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_mkstemp_noproto=no"
d4587 4
a4590 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4591 8
echo "$as_me:9291: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6

if test "$ac_cv_func_mkstemp_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_MKSTEMP_PROTO 1
EOF
a4594 1
fi
d4596 1
a4596 16
if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:9305: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9311 "configure"
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);
d4598 4
a4601 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9326: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9329: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9331: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9334: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_getusershell_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getusershell_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9344: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
d4603 4
a4606 1
if test "$ac_cv_func_getusershell_noproto" = yes; then
d4608 6
a4613 2
cat >>confdefs.h <<\EOF
#define NEED_GETUSERSHELL_PROTO 1
d4616 13
a4628 1
fi
d4630 3
a4632 1
fi
d4634 3
a4636 54
if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:9358: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9364 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9391: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9394: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9396: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9399: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_inet_aton_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_inet_aton_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9409: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
a4637 1
if test "$ac_cv_func_inet_aton_noproto" = yes; then
d4639 1
a4639 3
cat >>confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
EOF
a4640 1
fi
a4641 1
fi
d4643 4
a4646 4
echo "$as_me:9422: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4648 2
a4649 2

if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
d4651 2
a4652 2
	for ac_lib in "" crypt; do
		if test -n "$ac_lib"; then
d4658 2
a4659 2
		cat >conftest.$ac_ext <<_ACEOF
#line 9438 "configure"
d4662 7
a4668 20
int
main ()
{
crypt()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9450: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9453: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9455: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:9458: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d4670 2
a4671 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d4673 1
a4673 1
rm -f conftest$ac_exeext conftest.$ac_ext
d4675 1
a4675 1
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
a4680 1
eval "ac_res=\$ac_cv_funclib_crypt"
d4682 1
a4682 1
if false; then
d4684 4
a4687 22
for ac_func in crypt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:9480: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9486 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4689 2
a4690 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9517: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9520: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9522: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:9525: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:9535: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d4692 1
a4692 1
eval "LIB_crypt=$ac_res"
d4696 3
a4698 3
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<EOF
d4702 1
a4702 2
	echo "$as_me:9559: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4705 3
a4707 4
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:9565: result: no" >&5
echo "${ECHO_T}no" >&6
d4710 1
a4710 1
	eval "ac_cv_func_crypt=yes"
d4712 1
a4712 1
	cat >>confdefs.h <<EOF
d4716 1
a4716 1
	cat >>confdefs.h <<EOF
d4720 1
a4720 2
	echo "$as_me:9579: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a4723 8
echo "$as_me:9584: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9590 "configure"
#include "confdefs.h"
d4725 1
a4725 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d4727 18
a4744 29
int
main ()
{
struct hostent *gethostbyname(const char *);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9618: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9621: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9623: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9626: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyname_proto_compat=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9636: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
d4746 2
a4747 5
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
EOF
d4749 6
a4755 5

echo "$as_me:9647: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4757 9
a4765 44
  cat >conftest.$ac_ext <<_ACEOF
#line 9653 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct hostent *gethostbyaddr(const void *, size_t, int);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9681: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9684: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9686: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9689: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d4767 3
a4769 6
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9699: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6

if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
a4770 3
cat >>confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
EOF
a4771 1
fi
d4773 51
a4823 31
echo "$as_me:9710: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9716 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct servent *getservbyname(const char *, const char *);
  ;
  return 0;
a4824 24
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9749: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9752: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_getservbyname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getservbyname_proto_compat=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9762: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
d4826 1
a4826 2
cat >>confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
d4828 3
a4830 7

fi

echo "$as_me:9773: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4832 4
a4835 35
  cat >conftest.$ac_ext <<_ACEOF
#line 9779 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{
int getsockname(int, struct sockaddr*, socklen_t*);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9798: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9801: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9803: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9806: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_getsockname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getsockname_proto_compat=no"
d4837 1
a4837 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4838 2
echo "$as_me:9816: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
d4840 4
a4843 4
if test "$ac_cv_func_getsockname_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
d4848 4
a4851 4
echo "$as_me:9827: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4853 2
a4854 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9833 "configure"
d4856 11
a4866 25

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

int
main ()
{
void openlog(const char *, int, int);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9849: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9852: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9854: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9857: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_openlog_proto_compat=yes"
d4868 5
a4872 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_openlog_proto_compat=no"
d4874 1
a4874 4
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9867: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
d4876 6
a4881 4
if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define OPENLOG_PROTO_COMPATIBLE 1
d4883 3
a4885 8

fi

if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:9879: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4887 2
a4888 38
  cat >conftest.$ac_ext <<_ACEOF
#line 9885 "configure"
#include "confdefs.h"

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int
main ()
{
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9907: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9910: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9912: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9915: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_crypt_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_crypt_noproto=no"
d4890 2
a4891 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4892 2
echo "$as_me:9925: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
d4894 6
a4899 4
if test "$ac_cv_func_crypt_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_CRYPT_PROTO 1
d4901 6
a4906 1

d4908 1
d4912 4
a4915 5
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:9939: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4917 2
a4918 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9945 "configure"
d4920 7
d4928 4
a4931 25
#include <string.h>

int
main ()
{
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9962: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9965: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9967: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9970: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_strtok_r_noproto=yes"
d4933 4
a4936 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_strtok_r_noproto=no"
d4938 1
a4938 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4939 2
echo "$as_me:9980: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
d4941 2
a4942 1
if test "$ac_cv_func_strtok_r_noproto" = yes; then
d4944 4
a4947 2
cat >>confdefs.h <<\EOF
#define NEED_STRTOK_R_PROTO 1
d4952 4
a4955 7
fi

if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:9994: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4957 2
a4958 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10000 "configure"
d4960 10
a4969 26

#include <string.h>

int
main ()
{
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10017: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10020: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10022: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10025: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_strsep_noproto=yes"
d4971 2
a4972 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_strsep_noproto=no"
d4974 2
a4975 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4977 4
a4980 7
echo "$as_me:10035: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6

if test "$ac_cv_func_strsep_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_STRSEP_PROTO 1
d4985 4
a4988 6
fi

echo "$as_me:10048: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4990 2
a4991 3

cat >conftest.$ac_ext <<_ACEOF
#line 10055 "configure"
d4993 10
a5002 22
extern int h_errno;
int foo() { return h_errno; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10068: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10071: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10073: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10076: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_h_errno=yes
d5004 2
a5005 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errno=no
d5007 1
a5007 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5010 5
d5016 1
a5016 8
ac_foo=`eval echo \\$ac_cv_var_h_errno`
echo "$as_me:10089: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<EOF
#define HAVE_H_ERRNO 1
EOF
d5018 4
a5021 4
echo "$as_me:10097: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5023 2
a5024 3

cat >conftest.$ac_ext <<_ACEOF
#line 10104 "configure"
a5025 1
#ifdef HAVE_SYS_TYPES_H
d5027 3
d5031 6
a5036 24
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
int
main ()
{
h_errno.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10122: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10125: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10127: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10130: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_h_errno_declaration=no"
d5038 2
a5039 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errno_declaration=yes"
d5041 1
a5041 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5044 4
a5047 7

echo "$as_me:10142: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_H_ERRNO_DECLARATION 1
d5052 4
a5055 6
fi

echo "$as_me:10154: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5057 2
a5058 3

cat >conftest.$ac_ext <<_ACEOF
#line 10161 "configure"
d5060 10
a5069 22
extern int h_errlist;
int foo() { return h_errlist; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10174: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10177: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10179: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10182: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_h_errlist=yes
d5071 2
a5072 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errlist=no
d5074 1
a5074 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5077 5
d5083 1
a5083 8
ac_foo=`eval echo \\$ac_cv_var_h_errlist`
echo "$as_me:10195: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<EOF
#define HAVE_H_ERRLIST 1
EOF
d5085 4
a5088 4
echo "$as_me:10203: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5090 2
a5091 3

cat >conftest.$ac_ext <<_ACEOF
#line 10210 "configure"
d5093 6
a5098 24
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
int
main ()
{
h_errlist.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10225: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10228: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10230: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10233: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_h_errlist_declaration=no"
d5100 2
a5101 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errlist_declaration=yes"
d5103 1
a5103 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5107 5
a5111 3
echo "$as_me:10245: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
d5113 2
a5114 2
cat >>confdefs.h <<\EOF
#define HAVE_H_ERRLIST_DECLARATION 1
d5119 4
a5122 6
fi

echo "$as_me:10257: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5124 8
d5133 5
a5137 25
cat >conftest.$ac_ext <<_ACEOF
#line 10264 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10277: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10280: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10282: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10285: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_h_nerr=yes
d5139 2
a5140 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_nerr=no
d5142 1
a5142 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5145 5
d5151 1
a5151 4
ac_foo=`eval echo \\$ac_cv_var_h_nerr`
echo "$as_me:10298: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d5153 4
a5156 8
cat >>confdefs.h <<EOF
#define HAVE_H_NERR 1
EOF

echo "$as_me:10306: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5158 2
a5159 3

cat >conftest.$ac_ext <<_ACEOF
#line 10313 "configure"
d5161 4
a5164 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d5166 6
a5171 21
extern struct { int foo; } h_nerr;
int
main ()
{
h_nerr.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10328: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10331: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10333: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10336: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_h_nerr_declaration=no"
d5173 2
a5174 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_nerr_declaration=yes"
d5176 1
a5176 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5179 4
a5182 7

echo "$as_me:10348: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_H_NERR_DECLARATION 1
a5186 1
fi
d5188 6
a5193 4
echo "$as_me:10360: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5195 8
d5204 7
a5210 25
cat >conftest.$ac_ext <<_ACEOF
#line 10367 "configure"
#include "confdefs.h"
extern int __progname;
int foo() { return __progname; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10380: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10383: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10385: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10388: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var___progname=yes
d5212 4
a5215 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var___progname=no
d5217 1
a5217 2
rm -f conftest$ac_exeext conftest.$ac_ext

d5219 3
d5223 3
a5225 4
ac_foo=`eval echo \\$ac_cv_var___progname`
echo "$as_me:10401: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d5227 2
a5228 2
cat >>confdefs.h <<EOF
#define HAVE___PROGNAME 1
d5231 6
a5236 4
echo "$as_me:10409: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5238 2
a5239 3

cat >conftest.$ac_ext <<_ACEOF
#line 10416 "configure"
d5241 10
a5250 24
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
int
main ()
{
__progname.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10431: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10434: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10436: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10439: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var___progname_declaration=no"
d5252 4
a5255 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var___progname_declaration=yes"
d5257 1
a5257 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5260 4
a5263 6
echo "$as_me:10451: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE___PROGNAME_DECLARATION 1
d5268 4
a5271 6
fi

echo "$as_me:10463: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5273 2
a5274 3

cat >conftest.$ac_ext <<_ACEOF
#line 10470 "configure"
d5276 9
a5284 25
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optarg;
int
main ()
{
optarg.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10486: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10489: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10491: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10494: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_optarg_declaration=no"
d5286 4
a5289 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optarg_declaration=yes"
d5291 1
a5291 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5294 4
a5297 6
echo "$as_me:10506: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTARG_DECLARATION 1
d5302 5
a5306 4
echo "$as_me:10516: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5308 2
a5309 3

cat >conftest.$ac_ext <<_ACEOF
#line 10523 "configure"
d5312 10
a5321 24
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
int
main ()
{
optind.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10539: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10544: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10547: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_optind_declaration=no"
d5323 5
a5327 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optind_declaration=yes"
d5329 1
a5329 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5331 13
d5345 1
d5347 1
a5347 3
echo "$as_me:10559: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
d5349 6
a5354 2
cat >>confdefs.h <<\EOF
#define HAVE_OPTIND_DECLARATION 1
d5356 8
d5367 4
a5370 4
echo "$as_me:10569: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5372 10
d5383 4
a5386 28
cat >conftest.$ac_ext <<_ACEOF
#line 10576 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
int
main ()
{
opterr.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10592: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10595: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10597: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10600: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_opterr_declaration=no"
d5388 6
a5393 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_opterr_declaration=yes"
a5394 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5397 1
d5399 4
a5402 6
echo "$as_me:10612: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTERR_DECLARATION 1
d5407 24
a5430 4
echo "$as_me:10622: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5432 15
a5446 29

cat >conftest.$ac_ext <<_ACEOF
#line 10629 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
int
main ()
{
optopt.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10645: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10648: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10650: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10653: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_optopt_declaration=no"
d5448 1
a5448 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optopt_declaration=yes"
d5450 1
a5450 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5454 87
a5540 7
echo "$as_me:10665: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTOPT_DECLARATION 1
EOF
d5542 18
a5559 6
fi

echo "$as_me:10675: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5561 5
a5565 30

cat >conftest.$ac_ext <<_ACEOF
#line 10682 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } environ;
int
main ()
{
environ.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10695: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10698: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10700: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10703: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_environ_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_environ_declaration=yes"
d5567 1
a5567 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5569 5
a5573 7

echo "$as_me:10715: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_ENVIRON_DECLARATION 1
d5575 1
a5575 33

fi

echo "$as_me:10725: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 10732 "configure"
#include "confdefs.h"
#include <time.h>
int
main ()
{
struct tm x; x.tm_gmtoff;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10749: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10752: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_tm_tm_gmtoff=yes
d5577 1
a5577 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
d5579 1
a5579 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10762: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
a5580 3
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
EOF
a5581 1
fi
d5583 7
a5589 4
echo "$as_me:10772: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5591 2
a5592 3

cat >conftest.$ac_ext <<_ACEOF
#line 10779 "configure"
d5594 8
a5601 21
#include <time.h>
int
main ()
{
struct tm x; x.tm_zone;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10791: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10794: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10796: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10799: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_tm_tm_zone=yes
d5603 5
a5607 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
d5609 1
a5609 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5611 5
a5615 6
echo "$as_me:10809: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_ZONE 1
d5617 1
a5617 34

fi

echo "$as_me:10819: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 10826 "configure"
#include "confdefs.h"
extern int timezone;
int foo() { return timezone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10839: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10842: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10844: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10847: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_timezone=yes
d5619 1
a5619 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
d5621 1
a5621 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5623 1
a5623 1
fi
d5625 1
a5625 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:10860: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d5627 4
a5630 8
cat >>confdefs.h <<EOF
#define HAVE_TIMEZONE 1
EOF

echo "$as_me:10868: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5632 8
d5641 7
a5647 25
cat >conftest.$ac_ext <<_ACEOF
#line 10875 "configure"
#include "confdefs.h"
#include <time.h>
extern struct { int foo; } timezone;
int
main ()
{
timezone.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10888: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10891: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10893: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10896: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_timezone_declaration=no"
d5649 5
a5653 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
d5655 1
a5655 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5658 5
a5662 6
echo "$as_me:10908: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_TIMEZONE_DECLARATION 1
d5666 4
a5670 1
fi
a5671 90
cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:10921: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10927 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
sa_family_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10944: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10947: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10949: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10952: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:10963: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:10968: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10974 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10989: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10992: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10994: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10997: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11007: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then
a5672 3
cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
EOF
d5674 4
a5679 1
fi
d5681 3
a5683 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d5688 5
a5692 5
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:11026: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5694 2
a5695 78
  cat >conftest.$ac_ext <<_ACEOF
#line 11032 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
socklen_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11049: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11052: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11054: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11057: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11068: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11073: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11079 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11094: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11097: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11099: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11102: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_socklen_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
a5696 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11112: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
a5697 3
cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
EOF
d5699 6
d5707 7
a5714 5

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

d5717 2
a5718 5
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:11131: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5720 10
a5729 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11137 "configure"
d5731 4
a5734 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
a5735 79
#include <sys/socket.h>
int
main ()
{
struct sockaddr foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11154: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11157: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11159: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11162: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11173: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11178: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11184 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11199: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11202: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11204: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11207: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11217: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
d5737 6
a5742 1

d5744 1
d5746 4
a5749 16
fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:11236: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11242 "configure"
d5751 4
a5754 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
a5755 79
#include <sys/socket.h>
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11259: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11262: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11264: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11267: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11278: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11283: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11289 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11304: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11307: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11309: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11312: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11322: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
d5757 6
a5762 3

fi

d5764 1
d5766 10
a5775 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d5777 6
a5782 1

d5784 1
d5786 4
a5789 8
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:11341: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11347 "configure"
d5791 4
a5794 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d5796 5
a5800 70
#include <netdb.h>
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11364: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11367: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11369: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11372: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11383: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11388: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11394 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11409: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11412: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11414: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11417: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
d5802 1
a5802 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11427: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then
d5804 10
a5813 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
d5815 6
a5820 1

d5822 1
d5824 15
a5838 5
fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d5840 7
d5848 3
d5852 1
a5852 9
cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:11446: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11452 "configure"
#include "confdefs.h"
a5853 3
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d5855 11
a5865 76
#include <ifaddrs.h>
int
main ()
{
struct ifaddrs foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11469: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11472: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11474: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11477: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11488: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11493: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11499 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11514: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11517: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11519: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11522: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_ifaddrs=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_ifaddrs=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11532: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then
d5867 2
a5868 3
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_IFADDRS 1
EOF
d5870 1
a5870 1
fi
d5872 4
a5875 1
fi
d5877 1
a5877 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d5879 3
a5881 7

fi

echo "$as_me:11550: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5883 4
a5886 12

ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line 11559 "configure"
#include "confdefs.h"
#include <$i>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
a5888 2
done

d5891 6
a5896 4
if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_WINSIZE 1
a5899 6
echo "$as_me:11580: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 11583 "configure"
#include "confdefs.h"
#include <termios.h>
a5900 7
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\EOF
#define HAVE_WS_XPIXEL 1
EOF
a5901 2
fi
rm -f conftest*
a5902 4
cat >conftest.$ac_ext <<_ACEOF
#line 11599 "configure"
#include "confdefs.h"
#include <termios.h>
a5903 3
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then
a5904 3
cat >>confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF
a5905 2
fi
rm -f conftest*
d5907 4
a5910 4
echo "$as_me:11614: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5912 13
d5926 7
a5932 27
cat >conftest.$ac_ext <<_ACEOF
#line 11621 "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11636: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11639: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11641: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11644: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_struct_spwd=yes
d5934 7
a5940 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
a5941 1
rm -f conftest.$ac_objext conftest.$ac_ext
a5944 2
echo "$as_me:11656: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6
d5946 11
a5956 1
if test "$ac_cv_struct_spwd" = "yes"; then
d5958 6
a5963 2
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SPWD 1
d5966 13
a5978 1
fi
d5980 3
a5982 1
LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
d5984 3
a5986 1
LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
a5987 3
# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"
d5989 2
a5990 23
fi;

# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11681: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;

# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11693: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
a5991 1
fi;
a5992 22
echo "$as_me:11701: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6

case "$with_openldap" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openldap_include" = ""; then
		with_openldap_include="$with_openldap/include"
	fi
	if test "$with_openldap_lib" = ""; then
		with_openldap_lib="$with_openldap/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
a5993 10
case "$with_openldap_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_openldap_include $header_dirs";;
esac
case "$with_openldap_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_openldap_lib $lib_dirs";;
esac
a5994 12
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11741 "configure"
#include "confdefs.h"
#include <ldap.h>
int
main ()
{
a5995 31
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11753: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11756: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11758: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11761: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lldap -llber  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11773 "configure"
#include "confdefs.h"
#include <ldap.h>
int
main ()
{
d5997 4
a6000 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11785: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11788: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11790: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:11793: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
d6002 13
a6014 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
d6016 3
a6018 8
if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
	openldap_includedir="$ires"
	openldap_libdir="$lres"
	INCLUDE_openldap="-I$openldap_includedir"
	LIB_openldap="-L$openldap_libdir -lldap -llber"

cat >>confdefs.h <<EOF
#define OPENLDAP 1
d6020 3
a6022 4

	with_openldap=yes
	echo "$as_me:11816: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
d6024 7
a6030 5
	INCLUDE_openldap=
	LIB_openldap=
	with_openldap=no
	echo "$as_me:11822: result: $with_openldap" >&5
echo "${ECHO_T}$with_openldap" >&6
a6032 2
if test "$openldap_libdir"; then
	LIB_openldap="-R $openldap_libdir $LIB_openldap"
a6034 3
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"
d6036 1
a6036 1
fi;
d6038 4
a6041 11
# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11840: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
d6043 4
a6046 11
# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11852: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
d6048 7
a6054 2
echo "$as_me:11860: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6
d6056 6
a6061 10
case "$with_krb4" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_krb4_include" = ""; then
		with_krb4_include="$with_krb4/include"
	fi
	if test "$with_krb4_lib" = ""; then
		with_krb4_lib="$with_krb4/lib$abilibdirext"
	fi
d6063 10
a6072 8
esac
header_dirs=
lib_dirs=
d='/usr/athena'
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
d6074 2
a6075 9
case "$with_krb4_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_krb4_include $header_dirs";;
esac
case "$with_krb4_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_krb4_lib $lib_dirs";;
a6077 44
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11900 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11912: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11915: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11917: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11920: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lkrb -ldes $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11932 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
d6079 2
a6080 19
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11944: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11947: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11949: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:11952: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a6081 4
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
a6082 5
if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
	krb4_includedir="$ires"
	krb4_libdir="$lres"
	INCLUDE_krb4="-I$krb4_includedir"
	LIB_krb4="-L$krb4_libdir -lkrb"
a6083 3
cat >>confdefs.h <<EOF
#define KRB4 1
EOF
a6084 10
	with_krb4=yes
	echo "$as_me:11975: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_krb4=
	LIB_krb4=
	with_krb4=no
	echo "$as_me:11981: result: $with_krb4" >&5
echo "${ECHO_T}$with_krb4" >&6
fi
a6085 7
LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 -ldes $LIBS"
	EXTRA_LIB45=lib45.a
d6087 4
a6090 4
	echo "$as_me:11993: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6092 12
a6103 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11999 "configure"
a6104 4
#include <krb.h>
int
main ()
{
d6106 7
a6112 18
		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12013: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12016: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12018: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12021: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_put_int_four=yes
d6114 7
a6120 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_put_int_four=no
a6121 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6123 3
echo "$as_me:12032: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then
a6124 3
cat >>confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
EOF
d6126 1
a6126 1
	fi
d6128 4
a6131 12
	echo "$as_me:12042: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12048 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
d6133 4
a6136 23
		int x = KRB_VERIFY_SECURE
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12061: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12064: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12066: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12069: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_verify_secure=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_secure=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d6138 7
a6144 4
fi
echo "$as_me:12080: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then
d6146 12
a6157 2
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE 1
d6160 2
a6161 2
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE_FAIL 2
d6164 4
a6167 13
	fi
	echo "$as_me:12093: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12099 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
d6169 2
a6170 21
		int x = KRB_VERIFY_NOT_SECURE
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12112: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12115: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12117: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12120: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_verify_not_secure=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_not_secure=no
a6171 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6172 4
fi
echo "$as_me:12131: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
a6173 3
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_NOT_SECURE 0
EOF
a6174 1
	fi
d6176 5
a6180 4
echo "$as_me:12141: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6182 2
a6183 2

if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
d6185 2
a6186 2
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
d6192 2
a6193 2
		cat >conftest.$ac_ext <<_ACEOF
#line 12157 "configure"
d6196 7
a6202 20
int
main ()
{
krb_enable_debug()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12169: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12172: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12174: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12177: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
d6204 2
a6205 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6207 1
a6207 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6209 1
a6209 1
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
d6213 1
a6213 28
fi

eval "ac_res=\$ac_cv_funclib_krb_enable_debug"

if false; then

for ac_func in krb_enable_debug
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12199: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12205 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a6214 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d6216 1
a6216 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12236: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12239: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12241: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12244: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12254: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
d6218 4
a6221 2
fi
done
d6223 2
a6224 3
fi
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6226 1
a6226 1
eval "LIB_krb_enable_debug=$ac_res"
d6230 3
a6232 3
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
	cat >>confdefs.h <<EOF
d6236 1
a6236 2
	echo "$as_me:12278: result: yes" >&5
echo "${ECHO_T}yes" >&6
d6239 3
a6241 4
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
	echo "$as_me:12284: result: no" >&5
echo "${ECHO_T}no" >&6
d6244 1
a6244 1
	eval "ac_cv_func_krb_enable_debug=yes"
d6246 1
a6246 1
	cat >>confdefs.h <<EOF
d6250 1
a6250 1
	cat >>confdefs.h <<EOF
d6254 1
a6254 2
	echo "$as_me:12298: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a6257 3
if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
fi
d6259 7
a6265 4
echo "$as_me:12307: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6267 2
a6268 2

if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
d6270 2
a6271 2
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
d6277 2
a6278 2
		cat >conftest.$ac_ext <<_ACEOF
#line 12323 "configure"
d6281 7
a6287 20
int
main ()
{
krb_disable_debug()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12335: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12338: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12340: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12343: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d6289 2
a6290 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6292 1
a6292 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6294 1
a6294 1
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
a6299 1
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
d6301 1
a6301 1
if false; then
d6303 4
a6306 22
for ac_func in krb_disable_debug
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12365: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12371 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d6308 2
a6309 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12402: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12405: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12407: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12410: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12420: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6311 1
a6311 1
eval "LIB_krb_disable_debug=$ac_res"
d6315 3
a6317 3
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
	cat >>confdefs.h <<EOF
d6321 1
a6321 2
	echo "$as_me:12444: result: yes" >&5
echo "${ECHO_T}yes" >&6
d6324 3
a6326 4
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
	echo "$as_me:12450: result: no" >&5
echo "${ECHO_T}no" >&6
d6329 1
a6329 1
	eval "ac_cv_func_krb_disable_debug=yes"
d6331 1
a6331 1
	cat >>confdefs.h <<EOF
d6335 1
a6335 1
	cat >>confdefs.h <<EOF
d6339 1
a6339 2
	echo "$as_me:12464: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a6342 3
if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
fi
d6344 8
a6351 4
echo "$as_me:12473: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6353 2
a6354 2

if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
d6356 2
a6357 2
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
d6363 2
a6364 2
		cat >conftest.$ac_ext <<_ACEOF
#line 12489 "configure"
d6367 7
a6373 20
int
main ()
{
krb_get_our_ip_for_realm()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12501: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12504: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12506: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12509: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
d6375 2
a6376 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6378 1
a6378 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6380 1
a6380 1
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
a6385 1
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
d6387 1
a6387 1
if false; then
d6389 4
a6392 22
for ac_func in krb_get_our_ip_for_realm
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12531: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12537 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d6394 2
a6395 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12568: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12571: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12573: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12576: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12586: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6397 1
a6397 1
eval "LIB_krb_get_our_ip_for_realm=$ac_res"
d6401 3
a6403 3
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<EOF
d6407 1
a6407 2
	echo "$as_me:12610: result: yes" >&5
echo "${ECHO_T}yes" >&6
d6410 3
a6412 4
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:12616: result: no" >&5
echo "${ECHO_T}no" >&6
d6415 1
a6415 1
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
d6417 1
a6417 1
	cat >>confdefs.h <<EOF
d6421 1
a6421 1
	cat >>confdefs.h <<EOF
d6425 1
a6425 2
	echo "$as_me:12630: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d6429 3
a6431 2
if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
a6433 47
	echo "$as_me:12639: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12645 "configure"
#include "confdefs.h"
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12660: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12663: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12665: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12668: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_mk_req_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_mk_req_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:12679: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then

cat >>confdefs.h <<\EOF
#define KRB_MK_REQ_CONST 1
EOF
a6434 1
	fi
a6435 8
	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
	if test "$krb4_libdir"; then
		LIB_krb4="-R $krb4_libdir $LIB_krb4"
		LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
	fi
fi
a6436 7
if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi
a6437 7
if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
fi
d6439 4
a6442 3
if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
d6444 13
a6456 3
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi
d6458 13
a6470 3
cat >>confdefs.h <<\EOF
#define KRB5 1
EOF
d6472 3
a6474 9
# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\EOF
#define DCE 1
d6476 3
a6478 6

fi

if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
d6480 2
a6481 2
  DCE_TRUE='#'
  DCE_FALSE=
d6483 4
a6486 8

## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^^=*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^^=*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
else
	dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
d6489 1
a6489 6
# Check whether --enable-kaserver or --disable-kaserver was given.
if test "${enable_kaserver+set}" = set; then
  enableval="$enable_kaserver"

fi;
if test "$enable_kaserver" = yes; then
a6490 3
cat >>confdefs.h <<\EOF
#define KASERVER 1
EOF
d6492 1
a6492 7
	if test "$with_krb4" = "no"; then
		{ { echo "$as_me:12768: error: kaserver requires krb4" >&5
echo "$as_me: error: kaserver requires krb4" >&2;}
   { (exit 1); exit 1; }; }
		exit 1
	fi
fi
d6494 4
a6497 3
# Check whether --enable-kaserver-db or --disable-kaserver-db was given.
if test "${enable_kaserver_db+set}" = set; then
  enableval="$enable_kaserver_db"
d6499 4
a6502 2
fi;
if test "$enable_kaserver_db" = yes; then
d6504 6
a6509 2
cat >>confdefs.h <<\EOF
#define KASERVER_DB 1
d6512 13
a6524 7
	if test "$with_krb4" = "no"; then
		{ { echo "$as_me:12787: error: kaserver-db requires krb4" >&5
echo "$as_me: error: kaserver-db requires krb4" >&2;}
   { (exit 1); exit 1; }; }
		exit 1
	fi
fi
d6526 3
a6528 4
otp=yes
# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval="$enable_otp"
d6530 3
a6532 3
if test "$enableval" = "no"; then
	otp=no
fi
a6533 2
fi;
if test "$otp" = "yes"; then
d6535 2
a6536 5
cat >>confdefs.h <<\EOF
#define OTP 1
EOF

	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
a6538 7
if test "$otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi
a6539 3
# Check whether --enable-osfc2 or --disable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
  enableval="$enable_osfc2"
a6540 3
fi;
LIB_security=
if test "$enable_osfc2" = yes; then
a6541 3
cat >>confdefs.h <<\EOF
#define HAVE_OSFC2 1
EOF
a6542 2
	LIB_security=-lsecurity
fi
d6544 4
a6547 6
# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo "$as_me:12838: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_NROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6549 13
a6561 15
  case $NROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_NROFF="$ac_dir/$ac_word"
   break
fi
done
d6563 13
a6575 4
  ;;
esac
fi
NROFF=$ac_cv_path_NROFF
d6577 7
a6583 3
if test -n "$NROFF"; then
  echo "$as_me:12865: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6
d6585 7
a6591 2
  echo "$as_me:12868: result: no" >&5
echo "${ECHO_T}no" >&6
a6593 20
# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
echo "$as_me:12874: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_GROFF="$ac_dir/$ac_word"
   break
a6594 1
done
a6595 4
  ;;
esac
fi
GROFF=$ac_cv_path_GROFF
d6597 1
a6597 7
if test -n "$GROFF"; then
  echo "$as_me:12901: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6
else
  echo "$as_me:12904: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d6599 3
a6601 12
echo "$as_me:12908: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
if test "${ac_cv_sys_man_format+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
d6604 4
a6607 21
if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
fi
d6609 7
a6615 5
fi
echo "$as_me:12945: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"
d6617 13
a6629 1
fi
d6631 3
a6633 17
if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
else
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi
echo "$as_me:12959: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
if test "${ac_cv_sys_catman_ext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
fi
d6635 3
a6637 12
fi
echo "$as_me:12971: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$section'
else
	CATMANEXT=0
fi

# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
  withval="$with_readline"
a6638 1
fi;
d6640 2
a6641 9
# Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval="$with_readline_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:12989: error: No argument for --with-readline-lib" >&5
echo "$as_me: error: No argument for --with-readline-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
a6642 1
fi;
a6643 11
# Check whether --with-readline-include or --without-readline-include was given.
if test "${with_readline_include+set}" = set; then
  withval="$with_readline_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13001: error: No argument for --with-readline-include" >&5
echo "$as_me: error: No argument for --with-readline-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi;
a6644 2
echo "$as_me:13009: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6
a6645 19
case "$with_readline" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_readline_include" = ""; then
		with_readline_include="$with_readline/include"
	fi
	if test "$with_readline_lib" = ""; then
		with_readline_lib="$with_readline/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
d6647 12
a6658 10
case "$with_readline_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_readline_include $header_dirs";;
esac
case "$with_readline_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_readline_lib $lib_dirs";;
esac
a6659 8
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13049 "configure"
#include "confdefs.h"
d6661 2
a6662 3
 #include <readline.h>
int
main ()
d6664 3
a6666 3

  ;
  return 0;
d6668 4
a6671 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13062: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13065: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13067: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13070: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
d6673 8
a6680 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6682 19
a6700 6
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lreadline  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13082 "configure"
d6703 4
a6706 4
 #include <readline.h>
int
main ()
{
d6708 5
a6712 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13095: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13098: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13100: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13103: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
d6714 6
a6719 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a6720 4
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
d6722 1
a6722 5
if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
	readline_includedir="$ires"
	readline_libdir="$lres"
	INCLUDE_readline="-I$readline_includedir"
	LIB_readline="-L$readline_libdir -lreadline"
d6724 3
a6726 2
cat >>confdefs.h <<EOF
#define READLINE 1
a6728 9
	with_readline=yes
	echo "$as_me:13126: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_readline=
	LIB_readline=
	with_readline=no
	echo "$as_me:13132: result: $with_readline" >&5
echo "${ECHO_T}$with_readline" >&6
a6730 15
# Check whether --with-hesiod or --without-hesiod was given.
if test "${with_hesiod+set}" = set; then
  withval="$with_hesiod"

fi;

# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
  withval="$with_hesiod_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13146: error: No argument for --with-hesiod-lib" >&5
echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
a6731 1
fi;
a6732 9
# Check whether --with-hesiod-include or --without-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
  withval="$with_hesiod_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13158: error: No argument for --with-hesiod-include" >&5
echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
a6733 1
fi;
a6734 2
echo "$as_me:13166: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
d6736 12
a6747 19
case "$with_hesiod" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_hesiod_include" = ""; then
		with_hesiod_include="$with_hesiod/include"
	fi
	if test "$with_hesiod_lib" = ""; then
		with_hesiod_lib="$with_hesiod/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
d6749 3
a6751 10
case "$with_hesiod_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_hesiod_include $header_dirs";;
esac
case "$with_hesiod_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_hesiod_lib $lib_dirs";;
esac
d6753 1
a6753 11
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13206 "configure"
#include "confdefs.h"
#include <hesiod.h>
int
main ()
d6755 8
d6764 3
a6766 2
  ;
  return 0;
d6768 4
a6771 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13218: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13221: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13223: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13226: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
d6773 17
a6789 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6791 10
a6800 6
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lhesiod  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13238 "configure"
d6802 5
a6806 4
#include <hesiod.h>
int
main ()
{
d6808 5
a6812 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13250: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13253: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13255: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13258: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
d6814 6
a6819 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a6820 4
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
d6822 1
a6822 5
if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
	hesiod_includedir="$ires"
	hesiod_libdir="$lres"
	INCLUDE_hesiod="-I$hesiod_includedir"
	LIB_hesiod="-L$hesiod_libdir -lhesiod"
d6824 3
a6826 2
cat >>confdefs.h <<EOF
#define HESIOD 1
a6828 9
	with_hesiod=yes
	echo "$as_me:13281: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_hesiod=
	LIB_hesiod=
	with_hesiod=no
	echo "$as_me:13287: result: $with_hesiod" >&5
echo "${ECHO_T}$with_hesiod" >&6
d6831 10
a6840 14
# Check whether --enable-bigendian or --disable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
  enableval="$enable_bigendian"
  krb_cv_c_bigendian=yes
fi;
# Check whether --enable-littleendian or --disable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
  enableval="$enable_littleendian"
  krb_cv_c_bigendian=no
fi;
echo "$as_me:13301: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
if test "${krb_cv_c_bigendian_compile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6842 3
a6844 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13307 "configure"
d6847 5
a6851 5
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
d6853 5
a6857 19
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13324: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13327: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13329: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13332: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_c_bigendian_compile=yes
d6859 9
a6867 18
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian_compile=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:13342: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
echo "$as_me:13344: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${krb_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  if test "$krb_cv_c_bigendian_compile" = "yes"; then
    cat >conftest.$ac_ext <<_ACEOF
#line 13352 "configure"
#include "confdefs.h"
d6869 4
a6872 5
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
a6873 23
#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13369: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13372: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13374: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13377: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_c_bigendian=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=no
d6875 7
a6881 6
rm -f conftest.$ac_objext conftest.$ac_ext
  else
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:13388: error: specify either --enable-bigendian or --enable-littleendian" >&5
echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
   { (exit 1); exit 1; }; }
d6883 2
a6884 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13393 "configure"
d6886 12
a6897 22
main () {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
    } u;
    u.l = 1;
    exit (u.c[sizeof (long) - 1] == 1);
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13407: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13410: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:13411: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13414: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_c_bigendian=no
d6899 4
a6902 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=yes
d6904 1
a6904 1
rm -f conftest$ac_exeext conftest.$ac_ext
a6905 1
  fi
d6907 1
a6907 4
fi
echo "$as_me:13428: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6
if test "$krb_cv_c_bigendian" = "yes"; then
d6909 3
a6911 2
cat >>confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
d6913 1
a6914 1
if test "$krb_cv_c_bigendian_compile" = "yes"; then
a6915 3
cat >>confdefs.h <<\EOF
#define ENDIANESS_IN_SYS_PARAM_H 1
EOF
d6918 1
a6918 13
echo "$as_me:13443: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line 13451 "configure"
#include "confdefs.h"
#ifndef __cplusplus
$ac_kw int foo () {return 0; }
#endif
a6919 19
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13459: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13462: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13464: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13467: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
d6921 2
a6923 14
echo "$as_me:13478: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
EOF
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac
a6924 9
aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*)
	aix=4
	;;
esac
d6926 3
a6928 3
if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
d6930 2
a6931 2
  AIX_TRUE='#'
  AIX_FALSE=
a6933 8
if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
else
  AIX4_TRUE='#'
  AIX4_FALSE=
fi
aix_dynamic_afs=yes
a6934 7
if test "$aix_dynamic_afs" = yes; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi
d6936 6
a6941 4
echo "$as_me:13528: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6943 2
a6944 2

if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
d6946 2
a6947 2
	for ac_lib in "" dl; do
		if test -n "$ac_lib"; then
d6953 2
a6954 2
		cat >conftest.$ac_ext <<_ACEOF
#line 13544 "configure"
d6957 7
a6963 20
int
main ()
{
dlopen()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13556: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13559: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13561: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13564: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
d6965 2
a6966 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6968 1
a6968 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6970 1
a6970 1
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
a6975 1
eval "ac_res=\$ac_cv_funclib_dlopen"
d6977 1
a6977 1
if false; then
d6979 4
a6982 22
for ac_func in dlopen
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13586: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13592 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d6984 2
a6985 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13623: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13626: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13628: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13631: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13641: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6987 1
a6987 1
eval "LIB_dlopen=$ac_res"
d6991 3
a6993 3
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >>confdefs.h <<EOF
d6997 1
a6997 2
	echo "$as_me:13665: result: yes" >&5
echo "${ECHO_T}yes" >&6
d7000 3
a7002 4
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	echo "$as_me:13671: result: no" >&5
echo "${ECHO_T}no" >&6
d7005 1
a7005 1
	eval "ac_cv_func_dlopen=yes"
d7007 1
a7007 1
	cat >>confdefs.h <<EOF
d7011 1
a7011 1
	cat >>confdefs.h <<EOF
d7015 1
a7015 2
	echo "$as_me:13685: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d7019 15
a7033 6
if test "$aix" != no; then
	if test "$aix_dynamic_afs" = yes; then
		if test "$ac_cv_funclib_dlopen" = yes; then
			AIX_EXTRA_KAFS=
		elif test "$ac_cv_funclib_dlopen" != no; then
			AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
d7035 1
a7035 1
			AIX_EXTRA_KAFS=-lld
d7037 20
a7056 3
	else
		AIX_EXTRA_KAFS=
	fi
a7058 6
if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
d7061 41
a7101 3
irix=no
case "$host_os" in
irix*) irix=yes ;;
a7103 7
if test "$irix" != no; then
  IRIX_TRUE=
  IRIX_FALSE='#'
else
  IRIX_TRUE='#'
  IRIX_FALSE=
fi
a7104 2
echo "$as_me:13725: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6
d7106 4
a7109 3
# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"
d7111 6
a7116 5
fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
d7118 10
a7127 42
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
    if test "${ac_cv_have_x+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat >Imakefile <<'EOF'
acfindx:
	@@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
         test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi
d7129 1
a7129 33
# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include
d7131 8
a7138 2
/usr/openwin/include
/usr/openwin/share/include'
d7140 5
a7144 21
if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Intrinsic.h.
  # First, try using that file with no special directory specified.
  cat >conftest.$ac_ext <<_ACEOF
#line 13822 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
_ACEOF
if { (eval echo "$as_me:13826: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13832: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d7146 6
a7151 1
  ac_cpp_err=yes
d7153 8
a7160 3
if test -z "$ac_cpp_err"; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
d7162 2
a7163 7
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Intrinsic.h"; then
    ac_x_includes=$ac_dir
    break
  fi
a7164 3
fi
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no
d7166 6
a7171 32
if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lXt $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
#line 13865 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
int
main ()
{
XtMalloc (0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13877: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13880: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13882: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13885: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
d7173 21
a7193 16
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl; do
    if test -r $ac_dir/libXt.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no
d7195 5
a7199 3
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
d7201 4
a7204 3
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
d7206 1
d7209 11
a7219 3
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no
d7221 6
a7226 4
if test "$have_x" != yes; then
  echo "$as_me:13923: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
  no_x=yes
d7228 12
a7239 9
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$as_me:13933: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi
d7241 8
a7248 2
if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.
d7250 1
a7250 2
cat >>confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1
d7252 11
d7264 7
a7270 1
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
d7272 3
a7274 3
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi
d7276 9
a7284 12
  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case `(uname -sr) 2>/dev/null` in
    "SunOS 5"*)
      echo "$as_me:13957: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
      cat >conftest.$ac_ext <<_ACEOF
#line 13961 "configure"
d7286 7
d7294 10
a7303 3
int
main ()
{
d7305 5
a7309 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13973: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13976: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13978: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13981: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_R_nospace=yes
d7311 6
a7316 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_nospace=no
a7317 10
rm -f conftest$ac_exeext conftest.$ac_ext
      if test $ac_R_nospace = yes; then
	echo "$as_me:13991: result: no" >&5
echo "${ECHO_T}no" >&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat >conftest.$ac_ext <<_ACEOF
#line 13997 "configure"
#include "confdefs.h"
d7319 7
a7325 20
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14009: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14012: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14014: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14017: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_R_space=yes
d7327 1
a7327 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_space=no
d7329 1
a7329 13
rm -f conftest$ac_exeext conftest.$ac_ext
	if test $ac_R_space = yes; then
	  echo "$as_me:14027: result: yes" >&5
echo "${ECHO_T}yes" >&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$as_me:14031: result: neither works" >&5
echo "${ECHO_T}neither works" >&6
	fi
      fi
      LIBS=$ac_xsave_LIBS
    esac
  fi
d7331 6
a7336 14
  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    echo "$as_me:14049: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7338 2
a7339 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14057 "configure"
d7341 3
a7343 1

a7344 3
#ifdef __cplusplus
extern "C"
#endif
d7346 2
a7347 35
   builtin and then its argument prototype would still apply.  */
char dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14076: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14079: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14081: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14084: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_dnet_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_dnet_ntoa=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14095: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi
d7349 1
a7349 11
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo "$as_me:14102: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14110 "configure"
#include "confdefs.h"
d7351 7
a7357 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7359 13
a7371 35
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14129: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14132: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14134: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14137: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14148: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
d7374 11
a7384 1
    fi
d7386 6
a7391 12
    # msh@@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    echo "$as_me:14164: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7393 2
a7394 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14170 "configure"
d7397 1
a7397 1
    which can conflict with char gethostbyname (); below.  */
a7399 3
#ifdef __cplusplus
extern "C"
#endif
d7401 4
a7404 3
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
char (*f) ();
a7405 3
int
main ()
{
d7409 1
a7409 1
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
d7412 1
a7412 1
f = gethostbyname;
d7415 12
a7426 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14201: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14204: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14206: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14209: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gethostbyname=no
d7428 10
a7437 1
rm -f conftest$ac_exeext conftest.$ac_ext
d7439 1
a7439 2
echo "$as_me:14219: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
d7441 6
a7446 5
    if test $ac_cv_func_gethostbyname = no; then
      echo "$as_me:14223: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7448 2
a7449 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14231 "configure"
d7451 3
a7453 1

a7454 3
#ifdef __cplusplus
extern "C"
#endif
d7456 2
a7457 35
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14250: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14253: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14255: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14258: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_nsl_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_gethostbyname=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14269: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi
d7459 1
a7459 11
      if test $ac_cv_lib_nsl_gethostbyname = no; then
        echo "$as_me:14276: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14284 "configure"
#include "confdefs.h"
d7461 7
a7467 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7469 13
a7481 35
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14303: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14306: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14308: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14311: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_bsd_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gethostbyname=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14322: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test $ac_cv_lib_bsd_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
d7484 11
a7494 2
      fi
    fi
d7496 6
a7501 11
    # lieder@@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the nameserver (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    echo "$as_me:14338: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7503 2
a7504 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14344 "configure"
d7507 1
a7507 1
    which can conflict with char connect (); below.  */
a7509 3
#ifdef __cplusplus
extern "C"
#endif
d7511 4
a7514 3
   builtin and then its argument prototype would still apply.  */
char connect ();
char (*f) ();
a7515 3
int
main ()
{
d7519 1
a7519 1
#if defined (__stub_connect) || defined (__stub___connect)
d7522 1
a7522 1
f = connect;
d7525 10
a7534 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14378: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14380: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14383: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_connect=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_connect=no
d7536 1
a7536 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7537 2
echo "$as_me:14393: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6
d7539 7
a7545 5
    if test $ac_cv_func_connect = no; then
      echo "$as_me:14397: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7547 1
a7547 45
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14405 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char connect ();
int
main ()
{
connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14424: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14427: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14429: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14432: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_socket_connect=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_socket_connect=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14443: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test $ac_cv_lib_socket_connect = yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
d7549 1
d7551 6
a7556 7
    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    echo "$as_me:14452: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7558 2
a7559 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14458 "configure"
d7562 1
a7562 1
    which can conflict with char remove (); below.  */
a7564 3
#ifdef __cplusplus
extern "C"
#endif
d7566 4
a7569 3
   builtin and then its argument prototype would still apply.  */
char remove ();
char (*f) ();
a7570 3
int
main ()
{
d7574 1
a7574 1
#if defined (__stub_remove) || defined (__stub___remove)
d7577 1
a7577 1
f = remove;
d7580 10
a7589 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14489: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14492: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14494: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14497: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_remove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_remove=no
d7591 1
a7591 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7592 2
echo "$as_me:14507: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6
d7594 7
a7600 5
    if test $ac_cv_func_remove = no; then
      echo "$as_me:14511: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7602 4
a7605 5
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14519 "configure"
#include "confdefs.h"
d7607 2
a7608 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char remove ();
int
main ()
{
remove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14538: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14541: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14543: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14546: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_posix_remove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_posix_remove=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14557: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test $ac_cv_lib_posix_remove = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a7610 1
    fi
d7612 6
a7617 5
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo "$as_me:14566: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7619 2
a7620 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14572 "configure"
d7623 1
a7623 1
    which can conflict with char shmat (); below.  */
a7625 3
#ifdef __cplusplus
extern "C"
#endif
d7627 4
a7630 3
   builtin and then its argument prototype would still apply.  */
char shmat ();
char (*f) ();
a7631 3
int
main ()
{
d7635 1
a7635 1
#if defined (__stub_shmat) || defined (__stub___shmat)
d7638 1
a7638 1
f = shmat;
d7641 10
a7650 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14603: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14606: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14608: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14611: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_shmat=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shmat=no
d7652 1
a7652 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7653 2
echo "$as_me:14621: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6
d7655 7
a7661 5
    if test $ac_cv_func_shmat = no; then
      echo "$as_me:14625: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7663 3
a7665 5
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14633 "configure"
#include "confdefs.h"
d7667 11
a7677 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shmat ();
int
main ()
{
shmat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14652: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14655: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14657: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14660: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ipc_shmat=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipc_shmat=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14671: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test $ac_cv_lib_ipc_shmat = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d7680 1
a7680 2
    fi
  fi
d7682 5
a7686 19
  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  echo "$as_me:14689: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14697 "configure"
#include "confdefs.h"
d7688 1
a7688 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char IceConnectionNumber ();
int
main ()
{
IceConnectionNumber ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14716: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14719: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14721: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14724: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ICE_IceConnectionNumber=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ICE_IceConnectionNumber=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14735: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a7690 1
  LDFLAGS=$ac_save_LDFLAGS
d7692 39
d7732 1
a7733 8
# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
	echo "$as_me:14748: checking for special X linker flags" >&5
echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d7735 6
a7740 26
	ac_save_libs="$LIBS"
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS $X_CFLAGS"
	krb_cv_sys_x_libs_rpath=""
	krb_cv_sys_x_libs=""
	for rflag in "" "-R" "-R " "-rpath "; do
		if test "$rflag" = ""; then
			foo="$X_LIBS"
		else
			foo=""
			for flag in $X_LIBS; do
			case $flag in
			-L*)
				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
				;;
			*)
				foo="$foo $flag"
				;;
			esac
			done
		fi
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
		if test "$cross_compiling" = yes; then
  { { echo "$as_me:14777: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d7742 2
a7743 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14782 "configure"
d7745 9
d7755 8
a7762 9
		#include <X11/Xlib.h>
		foo()
		{
		XOpenDisplay(NULL);
		}
		main()
		{
		return 0;
		}
d7764 5
a7768 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14797: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14800: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:14801: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14804: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
d7770 4
a7773 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
:
d7775 1
a7775 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7776 3
	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"
d7778 9
d7788 5
a7792 4
echo "$as_me:14820: result: $krb_cv_sys_x_libs_rpath" >&5
echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
	X_LIBS="$krb_cv_sys_x_libs"
fi
a7793 7
if test "$no_x" != yes; then
  HAVE_X_TRUE=
  HAVE_X_FALSE='#'
else
  HAVE_X_TRUE='#'
  HAVE_X_FALSE=
fi
a7794 6
save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"
d7796 4
a7799 4
echo "$as_me:14840: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7801 2
a7802 2

if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
d7804 2
a7805 2
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then
d7811 2
a7812 2
		cat >conftest.$ac_ext <<_ACEOF
#line 14856 "configure"
d7815 7
a7821 20
int
main ()
{
XauWriteAuth()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14868: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14871: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14873: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14876: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
d7823 2
a7824 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d7826 1
a7826 1
rm -f conftest$ac_exeext conftest.$ac_ext
d7828 1
a7828 1
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
a7833 1
eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
d7835 1
a7835 1
if false; then
d7837 4
a7840 22
for ac_func in XauWriteAuth
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:14898: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14904 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d7842 2
a7843 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14935: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14938: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14940: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14943: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:14953: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d7845 1
a7845 1
eval "LIB_XauWriteAuth=$ac_res"
d7849 3
a7851 3
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >>confdefs.h <<EOF
d7855 1
a7855 2
	echo "$as_me:14977: result: yes" >&5
echo "${ECHO_T}yes" >&6
d7858 3
a7860 4
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	echo "$as_me:14983: result: no" >&5
echo "${ECHO_T}no" >&6
d7863 1
a7863 1
	eval "ac_cv_func_XauWriteAuth=yes"
d7865 1
a7865 1
	cat >>confdefs.h <<EOF
d7869 1
a7869 1
	cat >>confdefs.h <<EOF
d7873 1
a7873 2
	echo "$as_me:14997: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a7876 2
ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"
d7878 10
a7887 4
echo "$as_me:15005: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7889 2
a7890 12

if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 15021 "configure"
d7893 2
a7894 2
int
main ()
d7896 2
a7897 3
XauReadAuth()
  ;
  return 0;
d7899 5
a7903 13
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15033: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15036: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15038: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15041: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
d7905 6
a7910 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d7912 2
a7913 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
	LIBS="$ac_save_LIBS"
d7916 7
a7924 1
eval "ac_res=\$ac_cv_funclib_XauReadAuth"
a7925 1
if false; then
d7927 6
a7932 7
for ac_func in XauReadAuth
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:15063: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7934 12
a7945 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15069 "configure"
d7947 2
a7948 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7950 2
a7951 15
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d7953 3
a7955 29

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15100: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15103: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15105: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15108: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:15118: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d7957 12
a7970 1
done
d7972 10
a7981 3
fi
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d7983 1
a7983 1
eval "LIB_XauReadAuth=$ac_res"
d7987 3
a7989 3
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >>confdefs.h <<EOF
d7993 1
a7993 2
	echo "$as_me:15142: result: yes" >&5
echo "${ECHO_T}yes" >&6
d7996 3
a7998 4
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	echo "$as_me:15148: result: no" >&5
echo "${ECHO_T}no" >&6
d8001 1
a8001 1
	eval "ac_cv_func_XauReadAuth=yes"
d8003 1
a8003 1
	cat >>confdefs.h <<EOF
d8007 1
a8007 1
	cat >>confdefs.h <<EOF
d8011 1
a8011 2
	echo "$as_me:15162: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a8014 1
LIBS="$LIB_XauReadAauth $LIBS"
d8016 7
a8022 4
echo "$as_me:15169: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
if test "${ac_cv_funclib_XauFileName+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8024 2
a8025 2

if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
d8027 2
a8028 2
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then
d8034 2
a8035 2
		cat >conftest.$ac_ext <<_ACEOF
#line 15185 "configure"
d8037 13
a8049 21

int
main ()
{
XauFileName()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15197: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15200: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15202: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15205: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
d8051 2
a8052 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d8054 1
a8054 1
rm -f conftest$ac_exeext conftest.$ac_ext
d8056 1
a8056 1
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
a8061 1
eval "ac_res=\$ac_cv_funclib_XauFileName"
d8063 1
a8063 1
if false; then
d8065 4
a8068 22
for ac_func in XauFileName
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:15227: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15233 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d8070 2
a8071 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15264: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15267: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15269: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15272: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:15282: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d8073 1
a8073 1
eval "LIB_XauFileName=$ac_res"
d8077 3
a8079 3
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
	cat >>confdefs.h <<EOF
d8083 1
a8083 2
	echo "$as_me:15306: result: yes" >&5
echo "${ECHO_T}yes" >&6
d8086 3
a8088 4
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	echo "$as_me:15312: result: no" >&5
echo "${ECHO_T}no" >&6
d8091 1
a8091 1
	eval "ac_cv_func_XauFileName=yes"
d8093 1
a8093 1
	cat >>confdefs.h <<EOF
d8097 1
a8097 1
	cat >>confdefs.h <<EOF
d8101 1
a8101 23
	echo "$as_me:15326: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

LIBS="$ac_xxx"

case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
	fi
a8104 1
if test "$AUTOMAKE" != ""; then
a8105 8
if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
else
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
fi
else
d8107 6
a8112 16
	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS

echo "$as_me:15375: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8114 2
a8115 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15381 "configure"
d8117 9
d8127 7
a8133 48
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
d8136 5
a8140 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15439: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15442: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15444: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15447: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_const=yes
d8142 4
a8145 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d8147 1
a8147 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8148 3
echo "$as_me:15457: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
d8150 5
a8154 2
cat >>confdefs.h <<\EOF
#define const
d8156 5
a8161 1
fi
d8163 4
a8166 4
echo "$as_me:15467: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8168 2
a8169 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15473 "configure"
d8171 18
a8188 35
$ac_includes_default
int
main ()
{
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15488: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15491: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15493: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15496: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_off_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_off_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:15506: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
d8190 13
d8204 3
a8206 2
cat >>confdefs.h <<EOF
#define off_t long
a8210 44
echo "$as_me:15518: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15524 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15539: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15544: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15547: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:15557: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
a8211 3
cat >>confdefs.h <<EOF
#define size_t unsigned
EOF
a8212 1
fi
d8214 6
a8219 4
echo "$as_me:15569: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8221 12
a8232 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15575 "configure"
d8234 2
a8235 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d8237 7
a8243 5
#include <unistd.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_ssize_t=yes
d8245 2
a8246 1
  ac_cv_type_ssize_t=no
d8249 4
a8254 3
echo "$as_me:15593: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then
d8256 19
a8274 2
cat >>confdefs.h <<\EOF
#define ssize_t int
d8277 13
a8289 1
fi
d8291 2
a8292 47
echo "$as_me:15603: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15609 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15624: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15627: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15629: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15632: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:15642: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define pid_t int
d8295 3
a8297 1
fi
a8298 9
echo "$as_me:15654: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15660 "configure"
#include "confdefs.h"
#include <sys/types.h>
d8300 2
a8301 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
a8302 1
rm -f conftest*
d8304 2
a8306 3
echo "$as_me:15674: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
d8308 1
a8308 3
cat >>confdefs.h <<\EOF
#define uid_t int
EOF
d8310 5
a8314 10
cat >>confdefs.h <<\EOF
#define gid_t int
EOF

fi

echo "$as_me:15688: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8316 2
a8317 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15694 "configure"
d8319 3
a8321 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d8323 4
d8328 5
a8332 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_mode_t=yes
d8334 4
a8337 1
  ac_cv_type_mode_t=no
d8340 1
d8342 1
a8342 4
fi
echo "$as_me:15712: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = no; then
d8344 3
a8346 2
cat >>confdefs.h <<\EOF
#define mode_t unsigned short
a8350 20
echo "$as_me:15722: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15728 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_sig_atomic_t=yes
else
  ac_cv_type_sig_atomic_t=no
a8351 1
rm -f conftest*
a8353 3
echo "$as_me:15746: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
if test $ac_cv_type_sig_atomic_t = no; then
d8355 1
a8355 3
cat >>confdefs.h <<\EOF
#define sig_atomic_t int
EOF
d8357 5
a8361 7
fi

cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:15757: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8363 2
a8364 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15763 "configure"
a8365 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d8367 12
a8378 65
int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15780: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15783: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15785: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15788: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:15799: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:15804: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15810 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15825: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15828: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15830: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15833: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_long_long=yes
d8380 4
a8383 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
d8385 1
a8385 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8386 3
echo "$as_me:15843: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
d8388 5
a8392 2
cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
a8397 5

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

d8399 1
d8401 5
a8405 4
echo "$as_me:15861: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8407 2
a8408 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15867 "configure"
a8409 3
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
d8411 12
a8422 20
int
main ()
{
struct tm *tp;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15882: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15885: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15887: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15890: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_header_time=yes
d8424 4
a8427 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
d8429 1
a8429 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8430 3
echo "$as_me:15900: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
d8432 5
a8436 2
cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
d8441 9
a8449 4
echo "$as_me:15910: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8451 2
a8452 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15916 "configure"
a8453 2
#include <sys/types.h>
#include <time.h>
d8455 12
a8466 20
int
main ()
{
struct tm *tp; tp->tm_sec;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15930: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15933: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15935: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15938: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_struct_tm=time.h
d8468 4
a8471 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_tm=sys/time.h
d8473 1
a8473 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8474 3
echo "$as_me:15948: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then
d8476 5
a8480 2
cat >>confdefs.h <<\EOF
#define TM_IN_SYS_TIME 1
d8485 9
a8493 4
echo "$as_me:15958: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8495 2
a8496 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15964 "configure"
d8498 2
a8499 2
#include <stdlib.h>
#include <stdarg.h>
d8501 4
a8504 1
#include <float.h>
d8506 5
a8510 14
_ACEOF
if { (eval echo "$as_me:15972: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15978: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8512 4
a8515 1
  ac_cpp_err=yes
d8517 1
a8517 6
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
a8518 1
rm -f conftest.err conftest.$ac_ext
d8520 6
a8525 6
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 16000 "configure"
#include "confdefs.h"
#include <string.h>
a8526 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
a8527 1
rm -f conftest*
d8530 1
d8532 9
a8540 4
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 16018 "configure"
d8542 18
a8559 1
#include <stdlib.h>
d8561 5
a8565 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
d8567 4
a8570 1
  ac_cv_header_stdc=no
d8573 9
d8583 3
d8588 11
a8598 4
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
d8600 2
a8601 2
  cat >conftest.$ac_ext <<_ACEOF
#line 16039 "configure"
d8603 15
a8617 4
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
d8619 1
a8619 4
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
d8622 5
a8626 23
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:16065: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16068: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:16069: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16072: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d8628 4
a8631 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
d8633 1
a8634 3
echo "$as_me:16085: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
d8636 6
a8641 2
cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
d8644 3
d8649 4
a8652 90
for ac_header in \
	arpa/ftp.h				\
	arpa/inet.h				\
	arpa/nameser.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	crypt.h					\
	curses.h				\
	dbm.h					\
	dirent.h				\
	dlfcn.h					\
	err.h					\
	errno.h					\
	fcntl.h					\
	fnmatch.h				\
	gdbm/ndbm.h				\
	grp.h					\
	inttypes.h				\
	io.h					\
	limits.h				\
	maillock.h				\
	ndbm.h					\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in6_machtypes.h			\
	netinet/in6_var.h			\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinfo/ni.h				\
	paths.h					\
	pthread.h				\
	pty.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/dbm.h				\
	sac.h					\
	security/pam_modules.h			\
	sgtty.h					\
	shadow.h				\
	siad.h					\
	signal.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/ptyvar.h				\
	sys/resource.h				\
	sys/select.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/strtty.h				\
	sys/syscall.h				\
	sys/sysctl.h				\
	sys/termio.h				\
	sys/time.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/un.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	term.h					\
	termio.h				\
	termios.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	utmp.h					\
	utmpx.h					\
d8654 1
d8656 4
a8659 24
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:16188: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16194 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:16198: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16204: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8661 27
a8687 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d8689 1
a8689 1
  echo "$as_me: failed program was:" >&5
d8691 2
a8692 1
  eval "$ac_ac_Header=no"
d8694 1
a8694 1
rm -f conftest.err conftest.$ac_ext
d8696 7
a8702 5
echo "$as_me:16223: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d8705 3
d8709 4
d8715 1
a8715 1
for ac_header in standards.h
d8717 4
a8720 24
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:16236: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16242 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:16246: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16252: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8722 27
a8748 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d8750 1
a8750 1
  echo "$as_me: failed program was:" >&5
d8752 2
a8753 1
  eval "$ac_ac_Header=no"
d8755 1
a8755 1
rm -f conftest.err conftest.$ac_ext
d8757 7
a8763 5
echo "$as_me:16271: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d8766 3
d8770 4
d8776 17
a8792 1
for i in netinet/ip.h netinet/tcp.h; do
d8794 1
a8794 1
cv=`echo "$i" | sed 'y%./+-%__p_%'`
d8796 7
a8802 11
echo "$as_me:16285: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16291 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
a8803 1
#include <$i>
d8805 5
a8809 19
_ACEOF
if { (eval echo "$as_me:16300: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16306: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
d8811 1
a8811 1
  echo "$as_me: failed program was:" >&5
d8813 2
a8814 1
  eval "ac_cv_header_$cv=no"
d8816 1
a8816 1
rm -f conftest.err conftest.$ac_ext
d8818 7
a8824 7
echo "$as_me:16325: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d8827 3
d8831 4
a8835 1
if false;then
d8837 1
a8837 1
for ac_header in netinet/ip.h netinet/tcp.h
d8839 4
a8842 24
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:16341: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16347 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:16351: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16357: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8844 27
a8870 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d8872 1
a8872 1
  echo "$as_me: failed program was:" >&5
d8874 2
a8875 1
  eval "$ac_ac_Header=no"
d8877 1
a8877 1
rm -f conftest.err conftest.$ac_ext
d8879 7
a8885 5
echo "$as_me:16376: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d8888 3
d8892 4
d8898 17
a8914 1
fi
d8916 1
a8916 3
# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval="$enable_netinfo"
d8918 8
a8925 3
fi;

if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
d8927 1
a8927 2
cat >>confdefs.h <<\EOF
#define HAVE_NETINFO 1
d8929 10
a8938 1

d8941 7
a8947 7
if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi
a8948 3
if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
d8950 2
a8951 2
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
d8954 4
a8957 3
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"
d8959 6
a8964 6
if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8966 10
a8975 2
  v6type=unknown
v6lib=none
d8977 1
a8977 8
echo "$as_me:16432: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line 16438 "configure"
#include "confdefs.h"
d8979 7
a8985 3
#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
d8987 11
a8997 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
d9000 14
d9015 14
a9028 4
		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line 16457 "configure"
d9030 9
d9040 7
a9046 3
#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
d9048 11
a9058 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
d9061 1
d9063 7
a9069 5
		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line 16476 "configure"
#include "confdefs.h"
d9071 3
a9073 10
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
a9074 1
rm -f conftest*
d9076 14
a9089 4
		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line 16495 "configure"
d9091 7
d9099 9
a9107 3
#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
d9109 11
a9119 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
d9122 1
d9124 7
a9130 5
		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line 16512 "configure"
#include "confdefs.h"
d9132 3
a9134 10
#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
a9135 1
rm -f conftest*
d9137 3
a9139 13
		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
a9140 2
echo "$as_me:16542: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6
d9142 9
a9150 10
if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi
cat >conftest.$ac_ext <<_ACEOF
#line 16554 "configure"
d9152 7
d9160 9
a9168 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
d9171 5
a9175 30
int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16589: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16592: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16594: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16597: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ipv6=yes
d9177 4
a9180 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
d9182 1
a9182 1
rm -f conftest$ac_exeext conftest.$ac_ext
d9185 6
a9190 8
echo "$as_me:16608: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "$as_me:16610: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_IPV6 1
d9193 3
d9198 11
a9208 4
echo "$as_me:16620: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9210 12
d9223 8
a9230 12
if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 16636 "configure"
#include "confdefs.h"
d9232 5
a9236 20
int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16648: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16651: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16653: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16656: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d9238 4
a9241 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9243 1
a9243 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d9246 11
d9259 4
a9262 3
eval "ac_res=\$ac_cv_funclib_socket"

if false; then
d9264 1
a9264 1
for ac_func in socket
d9266 4
a9269 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:16678: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9271 2
a9272 2
  cat >conftest.$ac_ext <<_ACEOF
#line 16684 "configure"
d9275 1
a9275 1
    which can conflict with char $ac_func (); below.  */
a9277 3
#ifdef __cplusplus
extern "C"
#endif
d9279 4
a9282 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a9283 3
int
main ()
{
d9290 1
a9290 1
f = $ac_func;
d9293 1
a9293 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16715: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16718: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16720: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16723: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:16733: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9295 8
a9302 1

d9304 1
a9304 2
done

a9305 4
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"
d9307 5
a9311 5
case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<EOF
d9315 4
a9318 15
	echo "$as_me:16757: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:16763: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9320 4
a9323 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9324 4
	echo "$as_me:16777: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9325 3
if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi
d9327 5
a9331 4
echo "$as_me:16786: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9333 2
a9334 12

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 16802 "configure"
d9336 5
d9342 5
a9346 20
int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16814: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16817: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16819: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16822: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d9348 4
a9351 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9353 1
a9353 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d9356 7
d9365 1
a9365 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
a9366 1
if false; then
d9368 5
a9372 7
for ac_func in gethostbyname
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:16844: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9374 2
a9375 2
  cat >conftest.$ac_ext <<_ACEOF
#line 16850 "configure"
d9377 5
a9381 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9383 1
a9383 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16881: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16884: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16886: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16889: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:16899: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9385 8
a9392 1

d9394 1
a9394 2
done

a9395 4
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"
d9397 1
a9397 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9399 3
a9401 14
	echo "$as_me:16923: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:16929: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9404 1
a9404 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d9406 1
a9406 4
	echo "$as_me:16943: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9407 3
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi
d9409 5
a9413 4
echo "$as_me:16952: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9415 2
a9416 12

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 16968 "configure"
d9418 5
d9424 5
a9428 20
int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16980: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16983: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16985: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16988: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d9430 4
a9433 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9435 1
a9435 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
d9438 7
d9447 1
a9447 1
eval "ac_res=\$ac_cv_funclib_syslog"
a9448 1
if false; then
d9450 5
a9454 7
for ac_func in syslog
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17010: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9456 2
a9457 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17016 "configure"
d9459 5
a9463 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9465 1
a9465 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17047: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17050: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17052: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17055: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17065: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9467 8
a9474 1

d9476 1
a9476 2
done

a9477 4
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"
d9479 1
a9479 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9481 3
a9483 14
	echo "$as_me:17089: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:17095: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9486 1
a9486 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d9488 1
a9488 4
	echo "$as_me:17109: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9489 3
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi
d9491 5
a9495 4
echo "$as_me:17118: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
if test "${ac_cv_funclib_logwtmp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9497 2
a9498 12

if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17134 "configure"
d9500 5
d9506 5
a9510 20
int
main ()
{
logwtmp()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17146: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17149: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17151: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17154: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d9512 4
a9515 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9517 10
a9526 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
	LIBS="$ac_save_LIBS"
a9530 1
eval "ac_res=\$ac_cv_funclib_logwtmp"
a9531 1
if false; then
d9533 5
a9537 7
for ac_func in logwtmp
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17176: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9539 2
a9540 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17182 "configure"
d9542 9
a9550 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d9552 2
a9553 15
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d9555 4
d9560 1
a9560 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17213: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17216: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17218: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17221: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17231: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9562 10
a9571 1

a9572 1
done
d9574 1
a9574 5
fi
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logwtmp=$ac_res"
d9576 3
a9578 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9581 5
a9585 15
	echo "$as_me:17255: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	echo "$as_me:17261: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_logwtmp=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a9586 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9587 4
	echo "$as_me:17275: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d9589 4
a9592 4
echo "$as_me:17280: checking for tgetent" >&5
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
if test "${ac_cv_funclib_tgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9594 2
a9595 2

if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
d9597 2
a9598 2
	for ac_lib in "" termcap ncurses curses; do
		if test -n "$ac_lib"; then
d9604 2
a9605 2
		cat >conftest.$ac_ext <<_ACEOF
#line 17296 "configure"
d9608 7
a9614 20
int
main ()
{
tgetent()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17308: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17311: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17313: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17316: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
d9616 2
a9617 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9619 1
a9619 1
rm -f conftest$ac_exeext conftest.$ac_ext
d9621 1
a9621 1
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
a9626 1
eval "ac_res=\$ac_cv_funclib_tgetent"
d9628 1
a9628 1
if false; then
d9630 4
a9633 22
for ac_func in tgetent
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17338: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17344 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9635 2
a9636 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17378: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17380: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17383: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17393: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d9638 1
a9638 1
eval "LIB_tgetent=$ac_res"
d9642 3
a9644 3
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >>confdefs.h <<EOF
d9648 1
a9648 2
	echo "$as_me:17417: result: yes" >&5
echo "${ECHO_T}yes" >&6
d9651 3
a9653 4
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	echo "$as_me:17423: result: no" >&5
echo "${ECHO_T}no" >&6
d9656 1
a9656 1
	eval "ac_cv_func_tgetent=yes"
d9658 1
a9658 1
	cat >>confdefs.h <<EOF
d9662 1
a9662 1
	cat >>confdefs.h <<EOF
d9666 1
a9666 2
	echo "$as_me:17437: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d9670 13
a9682 4
echo "$as_me:17442: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9684 3
d9688 2
a9689 12
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17458 "configure"
#include "confdefs.h"
d9691 1
a9691 2
int
main ()
d9693 1
a9693 3
gethostbyname2()
  ;
  return 0;
d9695 5
a9699 13
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17470: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17473: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17475: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17478: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d9701 6
a9706 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9708 2
a9709 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
d9712 6
a9719 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
a9720 1
if false; then
d9722 5
a9726 7
for ac_func in gethostbyname2
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17500: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9728 2
a9729 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17506 "configure"
d9731 15
a9745 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a9746 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9748 17
a9764 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9766 3
a9768 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17537: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17540: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17542: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17545: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17555: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a9771 1
done
d9773 42
a9815 4
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"
d9817 5
a9821 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9824 1
a9824 15
	echo "$as_me:17579: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:17585: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a9825 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9826 4
	echo "$as_me:17599: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9827 3
if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
fi
d9829 4
a9832 4
echo "$as_me:17608: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9834 2
a9835 12

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17624 "configure"
a9837 1
#include <stdio.h>
d9841 3
d9847 2
a9848 2
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
d9850 2
a9851 2
#ifdef HAVE_RESOLV_H
#include <resolv.h>
d9854 7
a9860 20
int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17650: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17653: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17655: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17658: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d9862 4
a9865 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9867 1
a9867 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
d9870 7
a9878 1
eval "ac_res=\$ac_cv_funclib_res_search"
a9879 1
if false; then
d9881 5
a9885 7
for ac_func in res_search
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17680: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9887 2
a9888 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17686 "configure"
a9889 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9891 2
a9892 10
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d9895 3
a9897 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17717: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17720: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17722: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17725: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17735: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9899 10
a9908 1

a9909 1
done
d9911 1
a9911 5
fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"
d9913 3
a9915 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9918 1
a9918 15
	echo "$as_me:17759: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:17765: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a9919 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9920 4
	echo "$as_me:17779: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9921 3
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi
d9923 5
a9927 4
echo "$as_me:17788: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9929 2
a9930 12

if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17804 "configure"
d9933 2
a9934 3
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d9936 2
a9937 8
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
d9940 10
a9949 20
int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17830: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17833: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17835: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17838: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d9951 6
a9956 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9958 8
a9965 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
a9969 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
a9970 1
if false; then
d9972 5
a9976 7
for ac_func in dn_expand
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17860: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9978 2
a9979 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17866 "configure"
a9980 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9982 22
a10003 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10005 3
a10007 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17897: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17900: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17902: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17905: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17915: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a10010 1
done
a10012 4
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"
d10014 20
a10033 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d10035 11
d10047 1
a10047 15
	echo "$as_me:17939: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:17945: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d10049 3
a10051 2
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
d10054 1
a10054 4
	echo "$as_me:17959: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10055 2
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d10058 10
a10067 11
echo "$as_me:17968: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17978 "configure"
d10069 9
a10077 21

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:17991: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17994: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:17995: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17998: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d10079 4
a10082 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_snprintf_working=no
d10084 2
a10085 1
rm -f conftest$ac_exeext conftest.$ac_ext
a10086 3
fi
echo "$as_me:18010: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
a10087 1
if test "$ac_cv_func_snprintf_working" = yes; then
d10089 38
a10126 3
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
EOF
a10128 1
if test "$ac_cv_func_snprintf_working" = yes; then
a10129 16
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:18023: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18029 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
a10130 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:18044: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:18047: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18049: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:18052: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_snprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:18062: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
a10131 1
if test "$ac_cv_func_snprintf_noproto" = yes; then
d10133 4
a10136 2
cat >>confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
a10140 1
fi
a10143 12
echo "$as_me:18077: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18087 "configure"
#include "confdefs.h"
a10144 3
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
a10145 9
int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}
d10147 18
a10164 16
int main()
{
	return foo(0, "12");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:18110: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18113: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:18114: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18117: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d10166 4
a10169 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_vsnprintf_working=no
d10171 2
a10172 1
rm -f conftest$ac_exeext conftest.$ac_ext
a10173 3
fi
echo "$as_me:18129: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
a10174 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
d10176 5
a10180 2
cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
d10183 9
a10191 11
fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:18142: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18148 "configure"
d10193 11
a10203 24
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:18163: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:18166: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18168: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:18171: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
d10205 4
a10208 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
d10210 2
a10211 1
rm -f conftest.$ac_objext conftest.$ac_ext
a10212 2
echo "$as_me:18181: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
a10213 1
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
d10215 6
a10220 2
cat >>confdefs.h <<\EOF
#define NEED_VSNPRINTF_PROTO 1
a10224 1
fi
a10227 32
for ac_func in 				\
	_getpty					\
	_scrsize				\
	fcntl					\
	gettimeofday				\
	getuid					\
	grantpt					\
	mktime					\
	ptsname					\
	rand					\
	random					\
	revoke					\
	select					\
	setitimer				\
	setpcred				\
	setpgid					\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	strstr					\
	timegm					\
	ttyname					\
	ttyslot					\
	umask					\
	unlockpt				\
	vhangup					\
	yp_get_default_domain			\
a10228 21
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18231: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18237 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10229 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10231 14
a10244 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18268: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18271: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18273: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18276: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18286: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10246 3
a10248 35

fi
done

for ac_header in capability.h sys/capability.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:18299: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18305 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:18309: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:18315: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d10250 1
a10250 1
  echo "$as_me: failed program was:" >&5
d10252 2
a10253 1
  eval "$ac_ac_Header=no"
d10255 1
a10255 8
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:18334: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
a10257 1
done
a10258 22
for ac_func in sgi_getcapabilitybyname cap_set_proc
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18347: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18353 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10259 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10261 4
a10264 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18384: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18387: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18389: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18392: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18402: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10267 9
a10275 20
fi
done

echo "$as_me:18412: checking for getpwnam_r" >&5
echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" c_r; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18428 "configure"
d10277 11
a10287 21

int
main ()
{
getpwnam_r()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18440: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18443: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18445: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18448: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
d10289 4
a10292 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
d10294 1
a10297 3
eval "ac_res=\$ac_cv_funclib_getpwnam_r"

if false; then
a10298 22
for ac_func in getpwnam_r
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18470: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18476 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10299 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10301 4
a10304 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18507: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18510: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18512: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18515: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18525: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10308 1
a10308 1
done
a10310 12
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a10311 15
	echo "$as_me:18549: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	echo "$as_me:18555: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a10312 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a10313 4
	echo "$as_me:18569: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d10315 8
a10322 13
if test "$ac_cv_func_getpwnam_r" = yes; then
	echo "$as_me:18575: checking if getpwnam_r is posix" >&5
echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18586 "configure"
d10324 9
a10332 20

#include <pwd.h>
int main()
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:18598: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18601: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:18602: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18605: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getpwnam_r_posix=yes
d10334 4
a10337 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getpwnam_r_posix=no
d10339 2
a10340 3
rm -f conftest$ac_exeext conftest.$ac_ext
fi
LIBS="$ac_libs"
a10341 3
echo "$as_me:18618: result: $ac_cv_func_getpwnam_r_posix" >&5
echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
if test "$ac_cv_func_getpwnam_r_posix" = yes; then
a10342 3
cat >>confdefs.h <<\EOF
#define POSIX_GETPWNAM_R 1
EOF
a10343 2
fi
fi
d10345 5
a10349 5
echo "$as_me:18629: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10351 9
a10359 11
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18645 "configure"
d10361 2
a10362 2
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d10364 8
a10371 23
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18662: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18665: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18667: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18670: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d10373 7
a10379 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10381 10
a10390 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
d10393 1
a10395 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
a10396 1
if false; then
d10398 9
a10406 10
for ac_func in getsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18692: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18698 "configure"
d10408 3
a10410 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10412 4
a10415 45
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18729: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18732: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18734: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18737: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18747: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10417 10
a10428 1
done
a10429 5
fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"
a10430 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d10432 5
a10436 14
	echo "$as_me:18771: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:18777: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d10439 1
a10439 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a10440 4
	echo "$as_me:18791: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10441 5
echo "$as_me:18796: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10443 8
a10450 11
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18812 "configure"
d10452 3
a10454 2
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d10456 8
a10463 23
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18829: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18832: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18834: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18837: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d10465 4
a10468 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
d10470 1
a10473 1
eval "ac_res=\$ac_cv_funclib_setsockopt"
a10474 1
if false; then
a10475 22
for ac_func in setsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18859: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18865 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d10477 4
a10480 40
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18896: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18899: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18901: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18904: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18914: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a10483 1
done
a10484 5
fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"
a10485 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d10487 17
a10503 14
	echo "$as_me:18938: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:18944: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d10505 10
d10516 1
a10516 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a10517 4
	echo "$as_me:18958: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10518 22
for ac_func in getudbnam setlim
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18966: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18972 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10519 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10521 4
a10524 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:19003: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19006: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19008: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:19011: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:19021: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a10527 1
done
d10529 10
a10538 7
echo "$as_me:19031: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19037 "configure"
d10540 3
a10542 4
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
d10544 8
a10551 26
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19064: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19067: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_signal=void
d10553 4
a10556 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
d10558 2
a10559 1
rm -f conftest.$ac_objext conftest.$ac_ext
a10560 2
echo "$as_me:19077: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6
a10561 3
cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
a10562 1
if test "$ac_cv_type_signal" = "void" ; then
d10564 5
a10568 2
cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
a10572 5
echo "$as_me:19092: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10574 10
a10583 6
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19103 "configure"
a10584 2

#include <stddef.h>
d10586 8
a10593 18

int main()
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:19116: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19119: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:19120: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:19123: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d10595 4
a10598 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_realloc_broken=yes
d10600 2
a10601 1
rm -f conftest$ac_exeext conftest.$ac_ext
a10603 4
fi
echo "$as_me:19136: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then
d10605 6
a10610 2
cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
a10614 5
echo "$as_me:19146: checking for ut_addr in struct utmp" >&5
echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10616 12
a10627 2
cat >conftest.$ac_ext <<_ACEOF
#line 19153 "configure"
d10630 1
a10630 3
int
main ()
{
d10632 4
a10635 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19165: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19168: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19170: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19173: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10638 4
a10641 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_addr=no
d10643 1
a10643 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10645 2
a10646 2
echo "$as_me:19183: result: $ac_cv_type_struct_utmp_ut_addr" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
d10648 2
a10649 2

cat >>confdefs.h <<\EOF
d10653 1
d10656 7
a10662 4
echo "$as_me:19193: checking for ut_host in struct utmp" >&5
echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10664 3
a10666 3

cat >conftest.$ac_ext <<_ACEOF
#line 19200 "configure"
d10669 1
a10669 3
int
main ()
{
d10671 4
a10674 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19212: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19215: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19217: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19220: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10677 4
a10680 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_host=no
d10682 1
a10682 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10684 2
a10685 2
echo "$as_me:19230: result: $ac_cv_type_struct_utmp_ut_host" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
d10687 2
a10688 2

cat >>confdefs.h <<\EOF
d10692 1
d10695 7
a10701 4
echo "$as_me:19240: checking for ut_id in struct utmp" >&5
echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10703 3
a10705 3

cat >conftest.$ac_ext <<_ACEOF
#line 19247 "configure"
d10708 1
a10708 3
int
main ()
{
d10710 4
a10713 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19259: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19262: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19264: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19267: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10716 4
a10719 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_id=no
d10721 1
a10721 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10723 2
a10724 2
echo "$as_me:19277: result: $ac_cv_type_struct_utmp_ut_id" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
d10726 2
a10727 2

cat >>confdefs.h <<\EOF
d10731 1
d10734 7
a10740 4
echo "$as_me:19287: checking for ut_pid in struct utmp" >&5
echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10742 3
a10744 3

cat >conftest.$ac_ext <<_ACEOF
#line 19294 "configure"
d10747 1
a10747 3
int
main ()
{
d10749 4
a10752 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19306: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19309: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19311: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19314: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10755 4
a10758 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_pid=no
d10760 1
a10760 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10762 2
a10763 2
echo "$as_me:19324: result: $ac_cv_type_struct_utmp_ut_pid" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
d10765 2
a10766 2

cat >>confdefs.h <<\EOF
d10770 1
d10773 7
a10779 4
echo "$as_me:19334: checking for ut_type in struct utmp" >&5
echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10781 3
a10783 3

cat >conftest.$ac_ext <<_ACEOF
#line 19341 "configure"
d10786 1
a10786 3
int
main ()
{
d10788 4
a10791 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19353: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19356: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19358: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19361: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10794 4
a10797 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_type=no
d10799 1
a10799 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10801 2
a10802 2
echo "$as_me:19371: result: $ac_cv_type_struct_utmp_ut_type" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
d10804 2
a10805 2

cat >>confdefs.h <<\EOF
d10809 1
d10812 7
a10818 4
echo "$as_me:19381: checking for ut_user in struct utmp" >&5
echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10820 3
a10822 3

cat >conftest.$ac_ext <<_ACEOF
#line 19388 "configure"
d10825 1
a10825 3
int
main ()
{
d10827 4
a10830 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19400: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19403: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19405: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19408: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10833 4
a10836 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_user=no
d10838 1
a10838 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10840 2
a10841 2
echo "$as_me:19418: result: $ac_cv_type_struct_utmp_ut_user" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
d10843 2
a10844 2

cat >>confdefs.h <<\EOF
d10848 1
d10851 7
a10857 4
echo "$as_me:19428: checking for ut_exit in struct utmpx" >&5
echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10859 3
a10861 3

cat >conftest.$ac_ext <<_ACEOF
#line 19435 "configure"
d10864 1
a10864 3
int
main ()
{
d10866 4
a10869 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19447: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19450: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19452: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19455: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10872 4
a10875 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_exit=no
d10877 1
a10877 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10879 2
a10880 2
echo "$as_me:19465: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
d10882 2
a10883 2

cat >>confdefs.h <<\EOF
d10887 1
d10890 7
a10896 4
echo "$as_me:19475: checking for ut_syslen in struct utmpx" >&5
echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10898 3
a10900 3

cat >conftest.$ac_ext <<_ACEOF
#line 19482 "configure"
d10903 1
a10903 3
int
main ()
{
d10905 4
a10908 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19494: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19497: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19499: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19502: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10911 4
a10914 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_syslen=no
d10916 1
a10916 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10918 2
a10919 2
echo "$as_me:19512: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
d10921 2
a10922 2

cat >>confdefs.h <<\EOF
d10926 1
d10929 9
a10937 4
echo "$as_me:19522: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10939 3
a10941 3

cat >conftest.$ac_ext <<_ACEOF
#line 19529 "configure"
d10944 1
a10944 3
int
main ()
{
d10946 4
a10949 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19541: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19544: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19546: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19549: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10952 4
a10955 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
d10957 1
a10957 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10959 2
a10960 2
echo "$as_me:19559: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
d10962 2
a10963 2

cat >>confdefs.h <<\EOF
d10967 1
d10970 7
a10976 4
echo "$as_me:19569: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10978 3
a10980 3

cat >conftest.$ac_ext <<_ACEOF
#line 19576 "configure"
d10983 1
a10983 3
int
main ()
{
d10985 4
a10988 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19588: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19591: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19593: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19596: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10991 4
a10994 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
d10996 1
a10996 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10998 2
a10999 2
echo "$as_me:19606: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
d11001 2
a11002 2

cat >>confdefs.h <<\EOF
d11006 1
d11009 8
a11016 4
echo "$as_me:19616: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11018 3
a11020 3

cat >conftest.$ac_ext <<_ACEOF
#line 19623 "configure"
d11024 1
a11024 3
int
main ()
{
d11026 4
a11029 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:19636: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19639: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19641: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:19644: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11032 4
a11035 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
d11037 1
a11037 1
rm -f conftest$ac_exeext conftest.$ac_ext
a11040 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:19657: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d11042 4
a11045 1
cat >>confdefs.h <<EOF
d11049 9
a11057 8
echo "$as_me:19665: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 19672 "configure"
d11061 1
a11061 3
int
main ()
{
d11063 4
a11066 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19685: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19688: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19690: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19693: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11069 4
a11072 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
d11074 1
a11074 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11078 4
a11081 2
echo "$as_me:19705: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
d11083 1
a11083 2

cat >>confdefs.h <<\EOF
d11089 1
d11092 4
d11097 4
a11100 4
echo "$as_me:19718: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11102 2
a11103 2
  cat >conftest.$ac_ext <<_ACEOF
#line 19724 "configure"
d11111 1
a11111 3
int
main ()
{
d11113 4
a11116 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19741: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19744: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19746: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19749: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11119 4
a11122 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:19760: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:19765: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19771 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19786: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19789: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19791: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19794: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
d11124 1
a11124 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11126 7
a11132 3
echo "$as_me:19804: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then
d11134 2
a11135 2
cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
a11139 1
fi
a11140 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11141 1
fi
d11144 4
a11147 4
echo "$as_me:19823: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11149 2
a11150 2
  cat >conftest.$ac_ext <<_ACEOF
#line 19829 "configure"
d11158 1
a11158 3
int
main ()
{
d11160 4
a11163 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19846: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19849: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19851: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19854: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11166 4
a11169 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:19865: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:19870: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19876 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19891: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19894: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19896: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19899: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_socklen_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
d11171 1
a11171 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11173 3
a11175 3
echo "$as_me:19909: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
d11177 6
a11182 2
cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
a11186 1
fi
a11187 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11188 1
fi
d11191 4
a11194 4
echo "$as_me:19928: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11196 2
a11197 2
  cat >conftest.$ac_ext <<_ACEOF
#line 19934 "configure"
d11205 1
a11205 3
int
main ()
{
d11207 4
a11210 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19951: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19954: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19956: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19959: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11213 4
a11216 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:19970: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:19975: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19981 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19996: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19999: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20001: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20004: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
d11218 1
a11218 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11220 7
a11226 3
echo "$as_me:20014: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then
d11228 2
a11229 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
a11233 1
fi
a11234 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11235 1
fi
d11238 4
a11241 4
echo "$as_me:20033: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11243 2
a11244 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20039 "configure"
d11252 1
a11252 3
int
main ()
{
d11254 4
a11257 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20056: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20059: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20061: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20064: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11260 4
a11263 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:20075: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:20080: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20086 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20101: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20104: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20106: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20109: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
d11265 1
a11265 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11267 7
a11273 3
echo "$as_me:20119: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then
d11275 2
a11276 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
a11280 1
fi
a11281 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11282 1
fi
d11285 4
a11288 4
echo "$as_me:20138: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11290 2
a11291 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20144 "configure"
d11299 1
a11299 3
int
main ()
{
d11301 4
a11304 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20161: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20164: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20166: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20169: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11307 4
a11310 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:20180: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:20185: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20191 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20206: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20209: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20211: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20214: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
d11312 1
a11312 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11314 7
a11320 3
echo "$as_me:20224: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then
d11322 2
a11323 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
a11327 1
fi
a11328 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11329 1
fi
d11331 4
a11334 4
echo "$as_me:20242: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11336 1
a11336 1

d11339 2
a11340 2
cat >conftest.$ac_ext <<_ACEOF
#line 20251 "configure"
d11343 1
a11343 2

_ACEOF
d11346 1
d11355 1
a11355 2

cat >>confdefs.h <<\EOF
d11360 3
a11362 4
echo "$as_me:20272: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 20275 "configure"
d11365 1
a11365 2

_ACEOF
d11368 2
a11369 2

cat >>confdefs.h <<\EOF
d11376 2
a11377 2
cat >conftest.$ac_ext <<_ACEOF
#line 20291 "configure"
d11380 1
a11380 2

_ACEOF
d11383 2
a11384 2

cat >>confdefs.h <<\EOF
a11390 5
echo "$as_me:20306: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11392 11
a11402 2
cat >conftest.$ac_ext <<_ACEOF
#line 20313 "configure"
d11408 1
a11408 3
int
main ()
{
d11410 4
a11413 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20328: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20331: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20333: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20336: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11416 4
a11419 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
d11421 1
a11421 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11425 1
a11425 2
echo "$as_me:20348: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6
d11428 1
a11428 2

cat >>confdefs.h <<\EOF
a11433 5
echo "$as_me:20359: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11435 11
a11445 2
cat >conftest.$ac_ext <<_ACEOF
#line 20366 "configure"
d11449 1
a11449 3
int
main ()
{
d11451 4
a11454 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20379: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20382: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20384: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20387: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11457 4
a11460 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
d11462 1
a11462 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11464 2
a11465 2
echo "$as_me:20397: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
d11467 2
a11468 2

cat >>confdefs.h <<\EOF
d11472 1
a11474 5
for i in int8_t int16_t int32_t int64_t \
	u_int8_t u_int16_t u_int32_t u_int64_t \
	uint8_t uint16_t uint32_t uint64_t; do
	echo "$as_me:20410: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
d11476 9
a11484 2
if eval "test \"\${ac_cv_type_$i+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11486 2
a11487 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20417 "configure"
d11506 1
a11506 3
int
main ()
{
d11509 4
a11512 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20446: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20449: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20451: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20454: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11515 4
a11518 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval ac_cv_type_$i=no
d11520 1
a11520 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11526 1
a11526 1
		cat >>confdefs.h <<EOF
d11531 1
a11531 2
	echo "$as_me:20473: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6
a11533 6
for ac_header in 				\
	openssl/md4.h				\
	openssl/md5.h				\
	openssl/sha.h				\
	openssl/des.h				\
	openssl/rc4.h				\
d11535 6
a11540 25
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:20486: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20492 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:20496: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:20502: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d11542 28
a11569 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d11571 1
a11571 1
  echo "$as_me: failed program was:" >&5
d11573 2
a11574 1
  eval "$ac_ac_Header=no"
d11576 1
a11576 1
rm -f conftest.err conftest.$ac_ext
d11578 6
a11583 5
echo "$as_me:20521: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d11586 2
a11587 1
fi
d11590 31
a11620 4
echo "$as_me:20531: checking for MD4_Init" >&5
echo $ECHO_N "checking for MD4_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD4_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11622 54
d11677 9
d11688 2
a11689 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d11694 3
a11696 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 20547 "configure"
d11699 1
a11699 3
int
main ()
{
d11701 4
a11704 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20559: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20562: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20564: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20567: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11707 2
a11708 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d11710 1
a11710 1
rm -f conftest$ac_exeext conftest.$ac_ext
d11718 1
d11721 43
a11763 1
if false; then
d11765 4
a11768 7
for ac_func in MD4_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:20589: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11770 12
a11781 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20595 "configure"
a11782 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d11784 3
a11786 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20626: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20629: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20631: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20634: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:20644: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d11788 12
a11801 1
done
d11803 10
a11812 3
fi
# MD4_Init
eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11814 1
a11814 1
eval "LIB_MD4_Init=$ac_res"
d11818 3
a11820 3
	eval "ac_cv_func_MD4_Init=yes"
	eval "LIB_MD4_Init="
	cat >>confdefs.h <<EOF
d11824 1
a11824 2
	echo "$as_me:20668: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11827 3
a11829 4
	eval "ac_cv_func_MD4_Init=no"
	eval "LIB_MD4_Init="
	echo "$as_me:20674: result: no" >&5
echo "${ECHO_T}no" >&6
d11832 1
a11832 1
	eval "ac_cv_func_MD4_Init=yes"
d11834 1
a11834 1
	cat >>confdefs.h <<EOF
d11838 1
a11838 1
	cat >>confdefs.h <<EOF
d11842 1
a11842 2
	echo "$as_me:20688: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d11846 8
a11853 4
echo "$as_me:20693: checking for MD5_Init" >&5
echo $ECHO_N "checking for MD5_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD5_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11855 1
a11855 1

d11858 2
a11859 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d11864 3
a11866 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 20709 "configure"
d11869 1
a11869 3
int
main ()
{
d11871 4
a11874 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20721: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20724: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20726: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20729: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11877 2
a11878 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d11880 1
a11880 1
rm -f conftest$ac_exeext conftest.$ac_ext
d11888 1
d11891 4
a11894 69
if false; then

for ac_func in MD5_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:20751: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20757 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20788: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20791: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20793: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20796: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:20806: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done
a11895 1
fi
d11905 1
a11905 1
	cat >>confdefs.h <<EOF
d11909 1
a11909 2
	echo "$as_me:20830: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11914 1
a11914 2
	echo "$as_me:20836: result: no" >&5
echo "${ECHO_T}no" >&6
d11919 1
a11919 1
	cat >>confdefs.h <<EOF
d11923 1
a11923 1
	cat >>confdefs.h <<EOF
d11927 1
a11927 2
	echo "$as_me:20850: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d11931 8
a11938 4
echo "$as_me:20855: checking for SHA1_Init" >&5
echo $ECHO_N "checking for SHA1_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_SHA1_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11940 2
a11941 2

if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
d11943 2
a11944 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d11949 3
a11951 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 20871 "configure"
d11954 7
a11960 20
int
main ()
{
SHA1_Init()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20883: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20886: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20888: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20891: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
d11962 2
a11963 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d11965 1
a11965 1
rm -f conftest$ac_exeext conftest.$ac_ext
d11967 1
a11967 1
	eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
a11972 1
eval "ac_res=\$ac_cv_funclib_SHA1_Init"
d11974 1
a11974 1
if false; then
d11976 4
a11979 67
for ac_func in SHA1_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:20913: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20919 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20950: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20953: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20955: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20958: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:20968: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done
d11981 2
a11982 3
fi
# SHA1_Init
eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11984 1
a11984 1
eval "LIB_SHA1_Init=$ac_res"
d11988 3
a11990 3
	eval "ac_cv_func_SHA1_Init=yes"
	eval "LIB_SHA1_Init="
	cat >>confdefs.h <<EOF
d11994 1
a11994 2
	echo "$as_me:20992: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11997 3
a11999 4
	eval "ac_cv_func_SHA1_Init=no"
	eval "LIB_SHA1_Init="
	echo "$as_me:20998: result: no" >&5
echo "${ECHO_T}no" >&6
d12002 1
a12002 1
	eval "ac_cv_func_SHA1_Init=yes"
d12004 1
a12004 1
	cat >>confdefs.h <<EOF
d12008 1
a12008 1
	cat >>confdefs.h <<EOF
d12012 1
a12012 2
	echo "$as_me:21012: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12016 8
a12023 4
echo "$as_me:21017: checking for des_cbc_encrypt" >&5
echo $ECHO_N "checking for des_cbc_encrypt... $ECHO_C" >&6
if test "${ac_cv_funclib_des_cbc_encrypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12025 2
a12026 2

if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
d12028 2
a12029 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d12034 3
a12036 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 21033 "configure"
d12039 7
a12045 20
int
main ()
{
des_cbc_encrypt()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21045: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21048: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21050: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21053: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break
d12047 2
a12048 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d12050 1
a12050 1
rm -f conftest$ac_exeext conftest.$ac_ext
d12052 1
a12052 1
	eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
a12057 1
eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
d12059 1
a12059 1
if false; then
d12061 4
a12064 22
for ac_func in des_cbc_encrypt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:21075: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21081 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12066 2
a12067 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21112: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21115: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21117: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21120: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21130: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# des_cbc_encrypt
eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d12069 1
a12069 1
eval "LIB_des_cbc_encrypt=$ac_res"
d12073 3
a12075 3
	eval "ac_cv_func_des_cbc_encrypt=yes"
	eval "LIB_des_cbc_encrypt="
	cat >>confdefs.h <<EOF
d12079 1
a12079 2
	echo "$as_me:21154: result: yes" >&5
echo "${ECHO_T}yes" >&6
d12082 3
a12084 4
	eval "ac_cv_func_des_cbc_encrypt=no"
	eval "LIB_des_cbc_encrypt="
	echo "$as_me:21160: result: no" >&5
echo "${ECHO_T}no" >&6
d12087 1
a12087 1
	eval "ac_cv_func_des_cbc_encrypt=yes"
d12089 1
a12089 1
	cat >>confdefs.h <<EOF
d12093 1
a12093 1
	cat >>confdefs.h <<EOF
d12097 1
a12097 2
	echo "$as_me:21174: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12101 8
a12108 4
echo "$as_me:21179: checking for RC4" >&5
echo $ECHO_N "checking for RC4... $ECHO_C" >&6
if test "${ac_cv_funclib_RC4+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12110 2
a12111 2

if eval "test \"\$ac_cv_func_RC4\" != yes" ; then
d12113 2
a12114 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d12119 3
a12121 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 21195 "configure"
d12124 7
a12130 20
int
main ()
{
RC4()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21207: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21210: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21212: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21215: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_RC4=$ac_lib; else ac_cv_funclib_RC4=yes; fi";break
d12132 2
a12133 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d12135 1
a12135 1
rm -f conftest$ac_exeext conftest.$ac_ext
d12137 1
a12137 1
	eval "ac_cv_funclib_RC4=\${ac_cv_funclib_RC4-no}"
a12142 1
eval "ac_res=\$ac_cv_funclib_RC4"
d12144 1
a12144 1
if false; then
d12146 4
a12149 22
for ac_func in RC4
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:21237: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21243 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12151 2
a12152 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21274: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21277: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21279: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21282: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21292: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# RC4
eval "ac_tr_func=HAVE_`echo RC4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d12154 1
a12154 1
eval "LIB_RC4=$ac_res"
d12158 3
a12160 3
	eval "ac_cv_func_RC4=yes"
	eval "LIB_RC4="
	cat >>confdefs.h <<EOF
d12164 1
a12164 2
	echo "$as_me:21316: result: yes" >&5
echo "${ECHO_T}yes" >&6
d12167 3
a12169 4
	eval "ac_cv_func_RC4=no"
	eval "LIB_RC4="
	echo "$as_me:21322: result: no" >&5
echo "${ECHO_T}no" >&6
d12172 1
a12172 1
	eval "ac_cv_func_RC4=yes"
d12174 1
a12174 1
	cat >>confdefs.h <<EOF
d12178 1
a12178 1
	cat >>confdefs.h <<EOF
d12182 1
a12182 2
	echo "$as_me:21336: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12186 11
a12196 18
if test "$ac_cv_func_des_cbc_encrypt" = "yes" -a \
"$ac_cv_func_MD4_Init"  = "yes" -a \
"$ac_cv_func_MD5_Init"  = "yes" -a \
"$ac_cv_func_SHA1_Init" = "yes" -a \
"$ac_cv_func_RC4" = "yes"; then
  DIR_des=''
  LIB_des="-R $krb4_libdir -L$krb4_libdir $ac_cv_funclib_MD4_Init"
  LIB_des_appl="$LIB_des"
else
  DIR_des='des'
  LIB_des='$(top_builddir)/lib/des/libdes.la'
  LIB_des_appl="-ldes"
fi

echo "$as_me:21355: checking for el_init" >&5
echo $ECHO_N "checking for el_init... $ECHO_C" >&6
if test "${ac_cv_funclib_el_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12198 1
a12198 1

d12202 1
a12202 1
		if test -n "$ac_lib"; then
d12208 2
a12209 2
		cat >conftest.$ac_ext <<_ACEOF
#line 21371 "configure"
d12212 1
a12212 3
int
main ()
{
d12214 4
a12217 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21383: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21386: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21388: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21391: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d12220 2
a12221 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d12223 1
a12223 1
rm -f conftest$ac_exeext conftest.$ac_ext
d12229 1
a12229 5
fi

eval "ac_res=\$ac_cv_funclib_el_init"

if false; then
a12230 22
for ac_func in el_init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:21413: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21419 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12232 1
a12232 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d12234 4
a12237 32
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21450: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21453: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21455: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21458: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21468: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done
a12238 1
fi
d12248 1
a12248 1
	cat >>confdefs.h <<EOF
d12252 1
a12252 2
	echo "$as_me:21492: result: yes" >&5
echo "${ECHO_T}yes" >&6
d12257 1
a12257 2
	echo "$as_me:21498: result: no" >&5
echo "${ECHO_T}no" >&6
d12262 1
a12262 1
	cat >>confdefs.h <<EOF
d12266 1
a12266 1
	cat >>confdefs.h <<EOF
d12270 1
a12270 2
	echo "$as_me:21512: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12274 1
d12276 8
a12283 8
	echo "$as_me:21518: checking for four argument el_init" >&5
echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
if test "${ac_cv_func_el_init_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cat >conftest.$ac_ext <<_ACEOF
#line 21525 "configure"
d12287 1
a12287 3
int
main ()
{
d12289 4
a12292 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:21538: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21541: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21543: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:21546: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d12295 4
a12298 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_el_init_four=no
d12300 1
a12300 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12302 2
a12303 2
echo "$as_me:21556: result: $ac_cv_func_el_init_four" >&5
echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
d12305 1
a12305 2

cat >>confdefs.h <<\EOF
d12312 1
d12320 1
a12320 1
	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la $LIB_el_init"
d12322 1
a12322 1
	LIB_readline='$(top_builddir)/lib/editline/libeditline.la'
d12325 1
d12337 1
a12337 2

cat >>confdefs.h <<\EOF
d12341 2
a12342 1
cat >>confdefs.h <<\EOF
d12345 1
a12345 2

cat >>confdefs.h <<\EOF
d12348 1
a12348 2

cat >>confdefs.h <<\EOF
d12351 1
a12351 2

cat >>confdefs.h <<\EOF
d12354 1
a12354 2

cat >>confdefs.h <<\EOF
d12358 1
a12358 2

cat >>confdefs.h <<\EOF
d12369 2
a12370 118
echo "$as_me:21627: checking for getmsg" >&5
echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
if test "${ac_cv_func_getmsg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21633 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getmsg (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getmsg ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getmsg) || defined (__stub___getmsg)
choke me
#else
f = getmsg;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21664: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21667: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21669: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21672: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getmsg=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getmsg=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21682: result: $ac_cv_func_getmsg" >&5
echo "${ECHO_T}$ac_cv_func_getmsg" >&6

if test "$ac_cv_func_getmsg" = "yes"; then

echo "$as_me:21687: checking for working getmsg" >&5
echo $ECHO_N "checking for working getmsg... $ECHO_C" >&6
if test "${ac_cv_func_getmsg_work+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_getmsg_work=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21696 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <errno.h>

int main()
{
  int ret;
  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
  if(ret < 0 && errno == ENOSYS)
    return 1;
  return 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:21713: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21716: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:21717: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21720: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getmsg_work=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getmsg_work=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
fi
echo "$as_me:21732: result: $ac_cv_func_getmsg_work" >&5
echo "${ECHO_T}$ac_cv_func_getmsg_work" >&6
test "$ac_cv_func_getmsg_work" = "yes" &&

cat >>confdefs.h <<\EOF
#define HAVE_GETMSG 1
EOF

fi

if test "$ac_cv_func_getmsg_work" = yes; then
echo "$as_me:21743: checking for streamspty" >&5
echo $ECHO_N "checking for streamspty... $ECHO_C" >&6
d12372 1
a12372 1
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
d12376 1
a12376 1
	krb_cv_sys_streamspty=yes
a12378 3
echo "$as_me:21753: result: $krb_cv_sys_streamspty" >&5
echo "${ECHO_T}$krb_cv_sys_streamspty" >&6
fi
d12380 1
a12380 2

cat >>confdefs.h <<\EOF
d12385 2
d12388 2
a12389 2
echo "$as_me:21764: checking which authentication modules should be built" >&5
echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
d12405 4
a12408 2
echo "$as_me:21781: result: $LIB_AUTH_SUBDIRS" >&5
echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
d12422 1
a12422 1
	cat >>confdefs.h <<EOF
d12434 2
a12435 3
ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"

cat >confcache <<\_ACEOF
d12438 2
a12439 3
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
d12441 8
a12448 2
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
d12450 1
a12450 6
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

d12456 17
a12472 25
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
d12474 2
a12475 2
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
d12482 2
d12488 3
a12490 2
# VPATH is dangerous, but if there is a colon in the path, we need to
# keep it.
d12495 2
d12499 1
d12501 4
a12504 5
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:21880: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<\_ACEOF
d12508 5
d12514 1
a12514 1
# configure, is in config.log if it exists.
d12516 2
a12517 163
debug=false
as_me=`echo "$0" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conftest conftest.exe conftest.file
echo >conftest.file
if ln -s conftest.file conftest 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conftest.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conftest.file conftest 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conftest conftest.exe conftest.file

# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conftest.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conftest.file
if test -x conftest.file >/dev/null 2>&1; then
  as_executable_p="test -x"
elif test -f conftest.file >/dev/null 2>&1; then
  as_executable_p="test -f"
else
  { { echo "$as_me:21937: error: cannot check whether a file is executable on this system" >&5
echo "$as_me: error: cannot check whether a file is executable on this system" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.file

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 5 compiler messages saved in config.log
# 6 checking for... messages and results
exec 5>>config.log
exec 6>&1

cat >&5 << EOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me (heimdal 0.3e) 2.49d, executed with
 > $0 $@@
on `(hostname || uname -n) 2>/dev/null | sed 1q`

EOF

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
$CONFIG_STATUS generated by $as_me (Autoconf 2.49d).
Configured on host $ac_hostname by
  `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
d12519 1
a12519 18
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
d12521 8
a12528 92
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:22080: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # Handling of arguments.
  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  'include/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
  'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  'lib/45/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
  'lib/auth/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
  'lib/auth/afskauthlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
  'lib/auth/pam/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
  'lib/auth/sia/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
  'lib/asn1/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
  'lib/com_err/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
  'lib/des/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
  'lib/editline/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
  'lib/gssapi/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
  'lib/hdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
  'lib/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
  'lib/kafs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
  'lib/kdfs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
  'lib/krb5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
  'lib/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
  'lib/roken/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
  'lib/sl/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
  'lib/vers/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
  'kuser/Makefile' ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
  'kpasswd/Makefile' ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
  'kadmin/Makefile' ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
  'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
  'kdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
  'appl/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
  'appl/afsutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
  'appl/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
  'appl/ftp/common/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
  'appl/ftp/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
  'appl/ftp/ftpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
  'appl/kx/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
  'appl/login/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
  'appl/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
  'appl/popper/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
  'appl/push/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
  'appl/rsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
  'appl/rcp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
  'appl/su/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
  'appl/xnlock/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
  'appl/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
  'appl/telnet/libtelnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
  'appl/telnet/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
  'appl/telnet/telnetd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
  'appl/test/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
  'appl/kf/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
  'appl/dceutils/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
  'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  'tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
  'include/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;

  # This is an error.
  -*) { { echo "$as_me:22156: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;
  *) { { echo "$as_me:22161: error: invalid argument: $1" >&5
echo "$as_me: error: invalid argument: $1" >&2;}
   { (exit 1); exit 1; }; };;
a12529 1
  shift
d12532 2
a12533 1
EOF
d12535 199
a12733 32
cat >>$CONFIG_STATUS <<\EOF
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit $?); exit $?; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}
d12735 1
d12738 1
a12738 4
cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#
d12740 20
a12759 214
AMDEP="$AMDEP"
ac_aux_dir="$ac_aux_dir"

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@CC@@,$CC,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@CPP@@,$CPP,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@PACKAGE@@,$PACKAGE,;t t
s,@@VERSION@@,$VERSION,;t t
s,@@ACLOCAL@@,$ACLOCAL,;t t
s,@@AUTOCONF@@,$AUTOCONF,;t t
s,@@AUTOMAKE@@,$AUTOMAKE,;t t
s,@@AUTOHEADER@@,$AUTOHEADER,;t t
s,@@MAKEINFO@@,$MAKEINFO,;t t
s,@@AMTAR@@,$AMTAR,;t t
s,@@install_sh@@,$install_sh,;t t
s,@@AWK@@,$AWK,;t t
s,@@SET_MAKE@@,$SET_MAKE,;t t
s,@@AMDEP@@,$AMDEP,;t t
s,@@AMDEPBACKSLASH@@,$AMDEPBACKSLASH,;t t
s,@@DEPDIR@@,$DEPDIR,;t t
s,@@CCDEPMODE@@,$CCDEPMODE,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@CANONICAL_HOST@@,$CANONICAL_HOST,;t t
s,@@YACC@@,$YACC,;t t
s,@@LEX@@,$LEX,;t t
s,@@LEXLIB@@,$LEXLIB,;t t
s,@@LEX_OUTPUT_ROOT@@,$LEX_OUTPUT_ROOT,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@STRIP@@,$STRIP,;t t
s,@@ac_ct_STRIP@@,$ac_ct_STRIP,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@WFLAGS@@,$WFLAGS,;t t
s,@@WFLAGS_NOUNUSED@@,$WFLAGS_NOUNUSED,;t t
s,@@WFLAGS_NOIMPLICITINT@@,$WFLAGS_NOIMPLICITINT,;t t
s,@@LIB_dbopen@@,$LIB_dbopen,;t t
s,@@LIB_dbm_firstkey@@,$LIB_dbm_firstkey,;t t
s,@@LIB_db_create@@,$LIB_db_create,;t t
s,@@DBLIB@@,$DBLIB,;t t
s,@@VOID_RETSIGTYPE@@,$VOID_RETSIGTYPE,;t t
s,@@have_err_h_TRUE@@,$have_err_h_TRUE,;t t
s,@@have_err_h_FALSE@@,$have_err_h_FALSE,;t t
s,@@have_fnmatch_h_TRUE@@,$have_fnmatch_h_TRUE,;t t
s,@@have_fnmatch_h_FALSE@@,$have_fnmatch_h_FALSE,;t t
s,@@have_ifaddrs_h_TRUE@@,$have_ifaddrs_h_TRUE,;t t
s,@@have_ifaddrs_h_FALSE@@,$have_ifaddrs_h_FALSE,;t t
s,@@have_vis_h_TRUE@@,$have_vis_h_TRUE,;t t
s,@@have_vis_h_FALSE@@,$have_vis_h_FALSE,;t t
s,@@LIB_socket@@,$LIB_socket,;t t
s,@@LIB_gethostbyname@@,$LIB_gethostbyname,;t t
s,@@LIB_syslog@@,$LIB_syslog,;t t
s,@@LIB_gethostbyname2@@,$LIB_gethostbyname2,;t t
s,@@LIB_res_search@@,$LIB_res_search,;t t
s,@@LIB_dn_expand@@,$LIB_dn_expand,;t t
s,@@have_glob_h_TRUE@@,$have_glob_h_TRUE,;t t
s,@@have_glob_h_FALSE@@,$have_glob_h_FALSE,;t t
s,@@LIB_getsockopt@@,$LIB_getsockopt,;t t
s,@@LIB_setsockopt@@,$LIB_setsockopt,;t t
s,@@LIB_hstrerror@@,$LIB_hstrerror,;t t
s,@@LIBOBJS@@,$LIBOBJS,;t t
s,@@LIB_pidfile@@,$LIB_pidfile,;t t
s,@@LIB_crypt@@,$LIB_crypt,;t t
s,@@DIR_roken@@,$DIR_roken,;t t
s,@@LIB_roken@@,$LIB_roken,;t t
s,@@INCLUDES_roken@@,$INCLUDES_roken,;t t
s,@@INCLUDE_openldap@@,$INCLUDE_openldap,;t t
s,@@LIB_openldap@@,$LIB_openldap,;t t
s,@@INCLUDE_krb4@@,$INCLUDE_krb4,;t t
s,@@LIB_krb4@@,$LIB_krb4,;t t
s,@@EXTRA_LIB45@@,$EXTRA_LIB45,;t t
s,@@LIB_krb_enable_debug@@,$LIB_krb_enable_debug,;t t
s,@@LIB_krb_disable_debug@@,$LIB_krb_disable_debug,;t t
s,@@LIB_krb_get_our_ip_for_realm@@,$LIB_krb_get_our_ip_for_realm,;t t
s,@@KRB4_TRUE@@,$KRB4_TRUE,;t t
s,@@KRB4_FALSE@@,$KRB4_FALSE,;t t
s,@@KRB5_TRUE@@,$KRB5_TRUE,;t t
s,@@KRB5_FALSE@@,$KRB5_FALSE,;t t
s,@@do_roken_rename_TRUE@@,$do_roken_rename_TRUE,;t t
s,@@do_roken_rename_FALSE@@,$do_roken_rename_FALSE,;t t
s,@@LIB_kdb@@,$LIB_kdb,;t t
s,@@DCE_TRUE@@,$DCE_TRUE,;t t
s,@@DCE_FALSE@@,$DCE_FALSE,;t t
s,@@dpagaix_CFLAGS@@,$dpagaix_CFLAGS,;t t
s,@@dpagaix_LDADD@@,$dpagaix_LDADD,;t t
s,@@LIB_otp@@,$LIB_otp,;t t
s,@@OTP_TRUE@@,$OTP_TRUE,;t t
s,@@OTP_FALSE@@,$OTP_FALSE,;t t
s,@@LIB_security@@,$LIB_security,;t t
s,@@NROFF@@,$NROFF,;t t
s,@@GROFF@@,$GROFF,;t t
s,@@CATMAN@@,$CATMAN,;t t
s,@@CATMAN_TRUE@@,$CATMAN_TRUE,;t t
s,@@CATMAN_FALSE@@,$CATMAN_FALSE,;t t
s,@@CATMANEXT@@,$CATMANEXT,;t t
s,@@INCLUDE_readline@@,$INCLUDE_readline,;t t
s,@@LIB_readline@@,$LIB_readline,;t t
s,@@INCLUDE_hesiod@@,$INCLUDE_hesiod,;t t
s,@@LIB_hesiod@@,$LIB_hesiod,;t t
s,@@AIX_TRUE@@,$AIX_TRUE,;t t
s,@@AIX_FALSE@@,$AIX_FALSE,;t t
s,@@AIX4_TRUE@@,$AIX4_TRUE,;t t
s,@@AIX4_FALSE@@,$AIX4_FALSE,;t t
s,@@AIX_DYNAMIC_AFS_TRUE@@,$AIX_DYNAMIC_AFS_TRUE,;t t
s,@@AIX_DYNAMIC_AFS_FALSE@@,$AIX_DYNAMIC_AFS_FALSE,;t t
s,@@LIB_dlopen@@,$LIB_dlopen,;t t
s,@@HAVE_DLOPEN_TRUE@@,$HAVE_DLOPEN_TRUE,;t t
s,@@HAVE_DLOPEN_FALSE@@,$HAVE_DLOPEN_FALSE,;t t
s,@@AIX_EXTRA_KAFS@@,$AIX_EXTRA_KAFS,;t t
s,@@IRIX_TRUE@@,$IRIX_TRUE,;t t
s,@@IRIX_FALSE@@,$IRIX_FALSE,;t t
s,@@X_CFLAGS@@,$X_CFLAGS,;t t
s,@@X_PRE_LIBS@@,$X_PRE_LIBS,;t t
s,@@X_LIBS@@,$X_LIBS,;t t
s,@@X_EXTRA_LIBS@@,$X_EXTRA_LIBS,;t t
s,@@HAVE_X_TRUE@@,$HAVE_X_TRUE,;t t
s,@@HAVE_X_FALSE@@,$HAVE_X_FALSE,;t t
s,@@LIB_XauWriteAuth@@,$LIB_XauWriteAuth,;t t
s,@@LIB_XauReadAuth@@,$LIB_XauReadAuth,;t t
s,@@LIB_XauFileName@@,$LIB_XauFileName,;t t
s,@@NEED_WRITEAUTH_TRUE@@,$NEED_WRITEAUTH_TRUE,;t t
s,@@NEED_WRITEAUTH_FALSE@@,$NEED_WRITEAUTH_FALSE,;t t
s,@@LIB_logwtmp@@,$LIB_logwtmp,;t t
s,@@LIB_tgetent@@,$LIB_tgetent,;t t
s,@@LIB_getpwnam_r@@,$LIB_getpwnam_r,;t t
s,@@LIB_MD4_Init@@,$LIB_MD4_Init,;t t
s,@@LIB_MD5_Init@@,$LIB_MD5_Init,;t t
s,@@LIB_SHA1_Init@@,$LIB_SHA1_Init,;t t
s,@@LIB_des_cbc_encrypt@@,$LIB_des_cbc_encrypt,;t t
s,@@LIB_RC4@@,$LIB_RC4,;t t
s,@@DIR_des@@,$DIR_des,;t t
s,@@LIB_des@@,$LIB_des,;t t
s,@@LIB_des_appl@@,$LIB_des_appl,;t t
s,@@LIB_el_init@@,$LIB_el_init,;t t
s,@@el_compat_TRUE@@,$el_compat_TRUE,;t t
s,@@el_compat_FALSE@@,$el_compat_FALSE,;t t
s,@@LIB_AUTH_SUBDIRS@@,$LIB_AUTH_SUBDIRS,;t t
s,@@LTLIBOBJS@@,$LTLIBOBJS,;t t
CEOF

EOF

  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
d12761 1
a12761 14
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
d12763 61
a12823 6
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

d12825 2
a12826 2
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
d12828 4
a12831 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d12834 4
a12837 12
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d12839 3
a12841 17
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
d12843 1
a12843 1
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
d12848 5
a12852 10
  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
d12854 2
a12855 2
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
d12858 3
a12860 3
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
d12863 8
a12870 58
  if test x"$ac_file" != x-; then
    { echo "$as_me:22517: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { { echo "$as_me:22535: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:22548: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi
d12872 9
a12880 7
done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_HEADER section.
#
d12886 7
a12892 7
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
d12894 6
a12899 1
ac_uD=',;t'
d12901 8
a12908 1
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d12910 4
a12913 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d12916 1
a12916 2
  test x"$ac_file" != x- && { echo "$as_me:22609: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d12918 3
a12920 29
  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { { echo "$as_me:22620: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:22633: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
d12924 14
a12937 30
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# And first: Protect against being on the right side of a sed subst in
# config.status.  Protect against being in an unquoted here document
# in config.status.
rm -f conftest.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\EOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
t end
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
EOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
d12942 2
a12943 2
cat >>conftest.undefs <<\EOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
d12946 3
a12948 33
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo '  fi # egrep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
d12950 1
a12950 1
while grep . conftest.undefs >/dev/null
d12952 6
a12957 8
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
d12959 18
a12976 16
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs

cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
d12978 2
a12979 20
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:22750: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d12981 2
a12982 19
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
d12984 2
a12985 3
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
d12987 2
a12988 1
done
d12990 2
a12991 1
cat >>$CONFIG_STATUS <<\EOF
a12992 50
#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`

  case $ac_dest in
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
    default-2 )
test x"$AMDEP" != x"" ||
for mf in $CONFIG_FILES; do
  case "$mf" in
  Makefile) dirpart=.;;
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
  *) continue;;
  esac
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  # Extract the definition of DEP_FILES from the Makefile without
  # running `make'.
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  test -z "$DEPDIR" && continue
  # When using ansi2knr, U may be empty or an underscore; expand it
  U=`sed -n -e '/^U = / s///p' < "$mf"`
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  # We invoke sed twice because it is the simplest approach to
  # changing $(DEPDIR) to its actual value in the expansion.
  for file in `sed -n -e '
    /^DEP_FILES = .*\\\\$/ {
      s/^DEP_FILES = //
      :loop
	s/\\\\$//
	p
	n
	/\\\\$/ b loop
      p
    }
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    # Make sure the directory exists.
    test -f "$dirpart/$file" && continue
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
  esac
done
d12994 2
a12995 2

cat >>$CONFIG_STATUS <<\EOF
d13000 2
a13001 1
ac_clean_files=$ac_clean_files_save
a13002 1
test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; }
d13007 2
a13008 2
const char *heimdal_long_version = "@@(#)\$Version: $HEIMDALVERSION by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
const char *heimdal_version = "$HEIMDALVERSION";
@


1.1.1.4.2.2
log
@MFC: Update Heimdal Kerberos to 0.4e around 2002/02/17.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.304 .
d4 1
a4 1
# Generated by Autoconf 2.52 for heimdal 0.4e.
d8 1
a8 1
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
a12 13
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

a20 3
# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

d27 3
a29 3
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
d32 1
a32 1
  if test -f conf$$.exe; then
d38 1
a38 1
elif ln conf$$.file conf$$ 2>/dev/null; then
d43 1
a43 1
rm -f conf$$ conf$$.exe conf$$.file
d45 17
a61 1
as_executable_p="test -f"
d94 53
d163 10
d177 2
a178 6
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
d192 4
a195 3
#endif
#if HAVE_STRINGS_H
# include <strings.h>
a198 4
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
d245 2
a246 2
PACKAGE_VERSION='0.4e'
PACKAGE_STRING='heimdal 0.4e'
d294 3
a296 2
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
d304 3
a306 2
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
d487 3
a489 2
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
d501 3
a503 2
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
d526 4
a529 2
  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
d536 3
a538 2
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d546 5
a550 3
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d559 2
a560 1
  { echo "$as_me: error: missing argument to $ac_option" >&2
a564 11
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
d566 2
a567 1
              localstatedir libdir includedir oldincludedir infodir mandir
d572 3
a574 1
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
d589 4
a592 2
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
d608 1
a608 1
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
d619 2
a620 1
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
d623 2
a624 1
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
d628 1
a628 1
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
d653 4
a660 4
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
d669 1
a669 1
\`configure' configures heimdal 0.4e to adapt to many kinds of systems.
d739 1
a739 1
     short | recursive ) echo "Configuration of heimdal 0.4e:";;
d753 2
d766 1
a781 4
  --with-openssl=dir      use openssl in dir
  --with-openssl-lib=dir  use openssl libraries in dir
  --with-openssl-include=dir
                          use openssl headers in dir
d788 1
a790 1
  CPP         C preprocessor
d829 2
a830 1
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
d839 1
a839 2
heimdal configure 0.4e
generated by GNU Autoconf 2.52
d841 1
a841 1
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
a847 45
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by heimdal $as_me 0.4e, which was
generated by GNU Autoconf 2.52.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF
d888 1
a888 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
d892 1
a892 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d909 1
a909 1
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
d913 1
a913 1
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
d933 1
a933 3
    { echo "$as_me:917: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
d942 1
a942 1
    { echo "$as_me:928: loading cache $cache_file" >&5
d950 1
a950 1
  { echo "$as_me:936: creating cache $cache_file" >&5
d957 1
a957 1
ac_cache_corrupted=false
d966 3
a968 3
      { echo "$as_me:952: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d970 3
a972 3
      { echo "$as_me:956: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d976 7
a982 7
        { echo "$as_me:962: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:964:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:966:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
a984 12
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
d986 5
a990 6
if $ac_cache_corrupted; then
  { echo "$as_me:985: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:987: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
a1004 14
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1007: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1010: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
else
  ac_path_separator=:
fi
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh
d1006 3
a1008 1
		    		    		    ac_config_headers="$ac_config_headers include/config.h"
d1018 1
a1018 1
echo "$as_me:1029: checking for $ac_word" >&5
d1026 1
a1026 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a1032 1
echo "$as_me:1044: found $ac_dir/$ac_word" >&5
d1040 1
a1040 1
  echo "$as_me:1052: result: $CC" >&5
d1043 1
a1043 1
  echo "$as_me:1055: result: no" >&5
d1052 1
a1052 1
echo "$as_me:1064: checking for $ac_word" >&5
d1060 1
a1060 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a1066 1
echo "$as_me:1079: found $ac_dir/$ac_word" >&5
d1074 1
a1074 1
  echo "$as_me:1087: result: $ac_ct_CC" >&5
d1077 1
a1077 1
  echo "$as_me:1090: result: no" >&5
d1090 1
a1090 1
echo "$as_me:1103: checking for $ac_word" >&5
d1098 1
a1098 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a1104 1
echo "$as_me:1118: found $ac_dir/$ac_word" >&5
d1112 1
a1112 1
  echo "$as_me:1126: result: $CC" >&5
d1115 1
a1115 1
  echo "$as_me:1129: result: no" >&5
d1124 1
a1124 1
echo "$as_me:1138: checking for $ac_word" >&5
d1132 1
a1132 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a1138 1
echo "$as_me:1153: found $ac_dir/$ac_word" >&5
d1146 1
a1146 1
  echo "$as_me:1161: result: $ac_ct_CC" >&5
d1149 1
a1149 1
  echo "$as_me:1164: result: no" >&5
d1162 1
a1162 1
echo "$as_me:1177: checking for $ac_word" >&5
d1171 1
a1171 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a1181 1
echo "$as_me:1197: found $ac_dir/$ac_word" >&5
d1203 1
a1203 1
  echo "$as_me:1219: result: $CC" >&5
d1206 1
a1206 1
  echo "$as_me:1222: result: no" >&5
d1217 1
a1217 1
echo "$as_me:1233: checking for $ac_word" >&5
d1225 1
a1225 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a1231 1
echo "$as_me:1248: found $ac_dir/$ac_word" >&5
d1239 1
a1239 1
  echo "$as_me:1256: result: $CC" >&5
d1242 1
a1242 1
  echo "$as_me:1259: result: no" >&5
d1255 1
a1255 1
echo "$as_me:1272: checking for $ac_word" >&5
d1263 1
a1263 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a1269 1
echo "$as_me:1287: found $ac_dir/$ac_word" >&5
d1277 1
a1277 1
  echo "$as_me:1295: result: $ac_ct_CC" >&5
d1280 1
a1280 1
  echo "$as_me:1298: result: no" >&5
d1292 1
a1292 1
test -z "$CC" && { { echo "$as_me:1310: error: no acceptable cc found in \$PATH" >&5
d1296 20
a1315 16
# Provide some information about the compiler.
echo "$as_me:1315:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:1318: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1321: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1323: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1326: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1328: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
d1317 16
a1332 2
  echo "$as_me:1331: \$? = $ac_status" >&5
  (exit $ac_status); }
d1334 13
a1346 2
cat >conftest.$ac_ext <<_ACEOF
#line 1335 "configure"
d1357 1
a1357 7
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:1351: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
d1359 1
a1359 1
if { (eval echo "$as_me:1354: \"$ac_link_default\"") >&5
d1362 1
a1362 1
  echo "$as_me:1357: \$? = $ac_status" >&5
d1364 1
a1364 6
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
d1366 1
a1366 4
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
a1367 1
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
a1375 34
{ { echo "$as_me:1380: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:1386: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1391: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:1397: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1400: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:1407: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
a1376 2
echo "$as_me:1415: result: yes" >&5
echo "${ECHO_T}yes" >&6
a1378 7
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1422: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1424: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6
d1380 3
a1382 3
echo "$as_me:1427: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1429: \"$ac_link\"") >&5
d1385 1
a1385 1
  echo "$as_me:1432: \$? = $ac_status" >&5
d1401 1
a1401 1
  { { echo "$as_me:1448: error: cannot compute EXEEXT: cannot compile and link" >&5
d1406 4
a1409 2
rm -f conftest$ac_cv_exeext
echo "$as_me:1454: result: $ac_cv_exeext" >&5
a1410 2

rm -f conftest.$ac_ext
d1413 4
a1416 7
echo "$as_me:1460: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1466 "configure"
d1427 16
a1442 3
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1478: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d1444 1
a1444 1
  echo "$as_me:1481: \$? = $ac_status" >&5
d1446 15
a1460 7
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
d1464 5
a1468 3
{ { echo "$as_me:1493: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
d1470 5
d1476 1
a1476 7
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:1500: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1504: checking whether we are using the GNU C compiler" >&5
d1482 1
a1482 1
#line 1510 "configure"
d1497 1
a1497 1
if { (eval echo "$as_me:1525: \"$ac_compile\"") >&5
d1500 1
a1500 1
  echo "$as_me:1528: \$? = $ac_status" >&5
d1502 2
a1503 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1531: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d1505 2
a1506 2
  echo "$as_me:1534: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1517 1
a1517 1
echo "$as_me:1546: result: $ac_cv_c_compiler_gnu" >&5
d1523 1
a1523 1
echo "$as_me:1552: checking whether $CC accepts -g" >&5
d1529 1
a1529 1
#line 1558 "configure"
d1541 1
a1541 1
if { (eval echo "$as_me:1570: \"$ac_compile\"") >&5
d1544 1
a1544 1
  echo "$as_me:1573: \$? = $ac_status" >&5
d1546 2
a1547 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1576: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d1549 2
a1550 2
  echo "$as_me:1579: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1559 1
a1559 1
echo "$as_me:1589: result: $ac_cv_prog_cc_g" >&5
d1586 1
a1586 1
if { (eval echo "$as_me:1616: \"$ac_compile\"") >&5
d1589 1
a1589 1
  echo "$as_me:1619: \$? = $ac_status" >&5
d1591 2
a1592 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1622: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d1594 2
a1595 2
  echo "$as_me:1625: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1606 1
a1606 1
#line 1637 "configure"
d1619 1
a1619 1
if { (eval echo "$as_me:1650: \"$ac_compile\"") >&5
d1622 1
a1622 1
  echo "$as_me:1653: \$? = $ac_status" >&5
d1624 2
a1625 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1656: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d1627 2
a1628 2
  echo "$as_me:1659: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1637 1
a1637 1
#line 1669 "configure"
d1649 1
a1649 1
if { (eval echo "$as_me:1681: \"$ac_compile\"") >&5
d1652 1
a1652 1
  echo "$as_me:1684: \$? = $ac_status" >&5
d1654 2
a1655 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1687: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d1657 2
a1658 2
  echo "$as_me:1690: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1666 3
a1668 6
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi
d1686 1
a1686 1
echo "$as_me:1722: checking how to run the C preprocessor" >&5
d1699 7
a1705 9
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 1743 "configure"
d1708 1
a1708 1
                     Syntax error
d1710 2
a1711 2
if { (eval echo "$as_me:1748: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d1716 2
a1717 2
  echo "$as_me:1754: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d1727 3
a1729 11
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
d1731 1
a1731 1
#line 1777 "configure"
d1735 2
a1736 2
if { (eval echo "$as_me:1781: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d1741 2
a1742 2
  echo "$as_me:1787: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d1752 2
a1753 2
  # Broken: success on invalid input.
continue
d1757 6
a1762 3
  # Passes both tests.
ac_preproc_ok=:
break
d1765 4
d1770 1
a1770 2
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d1772 3
a1774 4
if $ac_preproc_ok; then
  break
fi

a1780 7
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:1824: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
d1782 6
a1787 5
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 1834 "configure"
d1790 1
a1790 1
                     Syntax error
d1792 2
a1793 2
if { (eval echo "$as_me:1839: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d1798 2
a1799 2
  echo "$as_me:1845: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d1809 3
a1811 11
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
d1813 1
a1813 1
#line 1868 "configure"
d1817 2
a1818 2
if { (eval echo "$as_me:1872: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d1823 2
a1824 2
  echo "$as_me:1878: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d1834 2
a1835 2
  # Broken: success on invalid input.
continue
d1839 6
a1844 3
  # Passes both tests.
ac_preproc_ok=:
break
d1847 4
d1852 1
a1852 2
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d1854 6
a1859 4
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:1906: error: C preprocessor \"$CPP\" fails sanity check" >&5
a1862 1

d1869 1
a1869 1
echo "$as_me:1917: checking for $CC option to accept ANSI C" >&5
d1877 1
a1877 1
#line 1925 "configure"
d1926 1
a1926 1
if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
d1929 1
a1929 1
  echo "$as_me:1977: \$? = $ac_status" >&5
d1931 2
a1932 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1980: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d1934 2
a1935 2
  echo "$as_me:1983: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1951 1
a1951 1
    echo "$as_me:2000: result: none needed" >&5
d1954 1
a1954 1
    echo "$as_me:2003: result: $ac_cv_prog_cc_stdc" >&5
d1976 1
a1976 1
  { { echo "$as_me:2025: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1996 1
a1996 1
echo "$as_me:2045: checking for a BSD compatible install" >&5
d2002 1
a2002 1
    ac_save_IFS=$IFS; IFS=$ac_path_separator
a2003 1
    IFS=$ac_save_IFS
d2014 1
a2014 1
        if $as_executable_p "$ac_dir/$ac_prog"; then
d2032 1
d2045 1
a2045 1
echo "$as_me:2094: result: $INSTALL" >&5
d2056 1
a2056 1
echo "$as_me:2105: checking whether build environment is sane" >&5
d2060 1
a2060 1
echo timestamp > conftest.file
d2067 1
a2067 1
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
d2070 1
a2070 1
      set X `ls -t $srcdir/configure conftest.file`
d2072 2
a2073 3
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then
d2079 1
a2079 1
      { { echo "$as_me:2129: error: ls -t appears to fail.  Make sure there is not a broken
d2086 1
a2086 1
   test "$2" = conftest.file
d2092 1
a2092 1
   { { echo "$as_me:2142: error: newly created file is older than distributed files!
d2098 2
a2099 1
echo "$as_me:2148: result: yes" >&5
d2101 10
d2112 1
a2112 1
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
d2115 8
a2122 15
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed

# expand $ac_aux_dir to an absolute path
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`

test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
d2127 1
a2127 1
  { echo "$as_me:2173: WARNING: ${am_backtick}missing' script is too old or missing" >&5
d2135 1
a2135 1
echo "$as_me:2181: checking for $ac_word" >&5
d2143 1
a2143 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a2149 1
echo "$as_me:2196: found $ac_dir/$ac_word" >&5
d2157 1
a2157 1
  echo "$as_me:2204: result: $AWK" >&5
d2160 1
a2160 1
  echo "$as_me:2207: result: no" >&5
d2167 1
a2167 1
echo "$as_me:2214: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2173 1
a2173 1
  cat >conftest.make <<\EOF
d2178 1
a2178 1
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
d2184 1
a2184 1
rm -f conftest.make
d2187 1
a2187 1
  echo "$as_me:2234: result: yes" >&5
d2191 1
a2191 1
  echo "$as_me:2238: result: no" >&5
d2201 3
a2203 1
if test "x$enable_dependency_tracking" != xno; then
d2205 5
a2209 1
  AMDEPBACKSLASH='\'
d2212 2
a2213 3
if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
d2215 1
a2215 2
  AMDEP_TRUE='#'
  AMDEP_FALSE=
d2218 1
a2218 3
rm -f .deps 2>/dev/null
mkdir .deps 2>/dev/null
if test -d .deps; then
a2220 1
  # MS-DOS does not allow filenames that begin with a dot.
a2222 36
rmdir .deps 2>/dev/null

ac_config_commands="$ac_config_commands default-1"

am_make=${MAKE-make}
cat > confinc << 'END'
doit:
	@@echo done
END
# If we don't find an include directive, just comment out the code.
echo "$as_me:2279: checking for style of include used by $am_make" >&5
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
am__include='#'
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
   am__include=include
   am__quote=
   _am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
      am__include=.include
      am__quote='"'
      _am_result=BSD
   fi
fi
d2224 1
a2224 3
echo "$as_me:2306: result: $_am_result" >&5
echo "${ECHO_T}$_am_result" >&6
rm -f confinc confmf
d2227 1
a2227 1
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
d2229 1
a2229 1
  { { echo "$as_me:2313: error: source directory already configured; run \"make distclean\" there first" >&5
d2236 1
a2236 1
VERSION=0.4e
a2245 11
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
# the ones we care about.

# Autoconf 2.50 always computes EXEEXT.  However we need to be
# compatible with 2.13, for now.  So we always define EXEEXT, but we
# don't compute it.

# Similar for OBJEXT -- only we only use OBJEXT if the user actually
# requests that it be used.  This is a bit dumb.
: ${OBJEXT=o}

d2260 6
a2265 8
install_sh=${install_sh-"$am_aux_dir/install-sh"}

INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.

depcc="$CC"   am_compiler_list=
d2267 3
a2269 1
echo "$as_me:2364: checking dependency style of $depcc" >&5
d2274 4
a2277 11
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
d2280 2
a2281 12
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    echo '#include "conftest.h"' > conftest.c
    echo 'int i;' > conftest.h
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf

    case $depmode in
d2293 1
a2293 4
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
d2296 3
a2298 4
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      am_cv_CC_dependencies_compiler_type=$depmode
d2303 1
a2303 2
  cd ..
  rm -rf conftest.dir
d2309 2
a2310 1
echo "$as_me:2426: result: $am_cv_CC_dependencies_compiler_type" >&5
d2316 1
a2316 1
  { { echo "$as_me:2432: error: cannot run $ac_config_sub" >&5
d2320 1
a2320 1
echo "$as_me:2436: checking build system type" >&5
d2329 1
a2329 1
  { { echo "$as_me:2445: error: cannot guess build type; you must specify one" >&5
d2333 1
a2333 1
  { { echo "$as_me:2449: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d2338 1
a2338 1
echo "$as_me:2454: result: $ac_cv_build" >&5
d2345 1
a2345 1
echo "$as_me:2461: checking host system type" >&5
d2354 1
a2354 1
  { { echo "$as_me:2470: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d2359 1
a2359 1
echo "$as_me:2475: result: $ac_cv_host" >&5
d2407 1
a2407 1
echo "$as_me:2523: checking for $ac_word" >&5
d2415 1
a2415 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a2421 1
echo "$as_me:2538: found $ac_dir/$ac_word" >&5
d2429 1
a2429 1
  echo "$as_me:2546: result: $YACC" >&5
d2432 1
a2432 1
  echo "$as_me:2549: result: no" >&5
d2444 1
a2444 1
echo "$as_me:2561: checking for $ac_word" >&5
d2452 1
a2452 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a2458 1
echo "$as_me:2576: found $ac_dir/$ac_word" >&5
d2466 1
a2466 1
  echo "$as_me:2584: result: $LEX" >&5
d2469 1
a2469 1
  echo "$as_me:2587: result: no" >&5
d2481 1
a2481 1
echo "$as_me:2599: checking for $ac_word" >&5
d2489 1
a2489 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a2495 1
echo "$as_me:2614: found $ac_dir/$ac_word" >&5
d2503 1
a2503 1
  echo "$as_me:2622: result: $LEX" >&5
d2506 1
a2506 1
  echo "$as_me:2625: result: no" >&5
d2516 1
a2516 1
  echo "$as_me:2635: checking for yywrap in -lfl" >&5
d2524 1
a2524 1
#line 2643 "configure"
d2543 1
a2543 1
if { (eval echo "$as_me:2662: \"$ac_link\"") >&5
d2546 1
a2546 1
  echo "$as_me:2665: \$? = $ac_status" >&5
d2548 2
a2549 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2668: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d2551 2
a2552 2
  echo "$as_me:2671: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2559 1
a2559 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2562 1
a2562 1
echo "$as_me:2682: result: $ac_cv_lib_fl_yywrap" >&5
d2567 1
a2567 1
  echo "$as_me:2687: checking for yywrap in -ll" >&5
d2575 1
a2575 1
#line 2695 "configure"
d2594 1
a2594 1
if { (eval echo "$as_me:2714: \"$ac_link\"") >&5
d2597 1
a2597 1
  echo "$as_me:2717: \$? = $ac_status" >&5
d2599 2
a2600 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2720: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d2602 2
a2603 2
  echo "$as_me:2723: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2610 1
a2610 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2613 1
a2613 1
echo "$as_me:2734: result: $ac_cv_lib_l_yywrap" >&5
d2624 1
a2624 1
  echo "$as_me:2745: checking lex output file root" >&5
d2638 1
a2638 1
  { { echo "$as_me:2759: error: cannot find output from $LEX; giving up" >&5
d2643 1
a2643 1
echo "$as_me:2764: result: $ac_cv_prog_lex_root" >&5
d2647 1
a2647 1
echo "$as_me:2768: checking whether yytext is a pointer" >&5
d2663 1
a2663 1
if { (eval echo "$as_me:2784: \"$ac_link\"") >&5
d2666 1
a2666 1
  echo "$as_me:2787: \$? = $ac_status" >&5
d2668 2
a2669 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2790: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d2671 2
a2672 2
  echo "$as_me:2793: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2678 1
a2678 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2683 1
a2683 1
echo "$as_me:2805: result: $ac_cv_prog_lex_yytext_pointer" >&5
d2698 1
a2698 1
echo "$as_me:2820: checking for $ac_word" >&5
d2706 1
a2706 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a2712 1
echo "$as_me:2835: found $ac_dir/$ac_word" >&5
d2720 1
a2720 1
  echo "$as_me:2843: result: $RANLIB" >&5
d2723 1
a2723 1
  echo "$as_me:2846: result: no" >&5
d2732 1
a2732 1
echo "$as_me:2855: checking for $ac_word" >&5
d2740 1
a2740 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a2746 1
echo "$as_me:2870: found $ac_dir/$ac_word" >&5
d2755 1
a2755 1
  echo "$as_me:2879: result: $ac_ct_RANLIB" >&5
d2758 1
a2758 1
  echo "$as_me:2882: result: no" >&5
d2771 1
a2771 1
echo "$as_me:2895: checking for $ac_word" >&5
d2779 1
a2779 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a2785 1
echo "$as_me:2910: found $ac_dir/$ac_word" >&5
d2793 1
a2793 1
  echo "$as_me:2918: result: $AWK" >&5
d2796 1
a2796 1
  echo "$as_me:2921: result: no" >&5
d2803 1
a2803 1
echo "$as_me:2928: checking for ln -s or something else" >&5
d2824 1
a2824 1
echo "$as_me:2949: result: $ac_cv_prog_LN_S" >&5
d2852 1
a2852 1
         *) { { echo "$as_me:2977: error: \"Invalid ABI specified\"" >&5
d2858 1
a2858 1
echo "$as_me:2983: checking if $CC supports the $abi option" >&5
d2867 1
a2867 1
#line 2992 "configure"
d2879 1
a2879 1
if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5
d2882 1
a2882 1
  echo "$as_me:3007: \$? = $ac_status" >&5
d2884 2
a2885 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3010: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d2887 2
a2888 2
  echo "$as_me:3013: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2901 1
a2901 1
echo "$as_me:3027: result: $ac_res" >&5
d2910 1
a2910 1
#line 3036 "configure"
d2922 1
a2922 1
if { (eval echo "$as_me:3048: \"$ac_compile\"") >&5
d2925 1
a2925 1
  echo "$as_me:3051: \$? = $ac_status" >&5
d2927 2
a2928 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3054: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d2930 2
a2931 2
  echo "$as_me:3057: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2942 1
a2942 1
		{ { echo "$as_me:3069: error: $CC does not support the $with_mips_abi ABI" >&5
d2957 1
a2957 1
			{ { echo "$as_me:3084: error: $CC does not support the $with_mips_abi ABI" >&5
d2971 1
a2971 1
         *) { { echo "$as_me:3098: error: \"Invalid ABI specified\"" >&5
d2982 1
a2982 1
echo "$as_me:3109: checking for __attribute__" >&5
d2989 1
a2989 1
#line 3116 "configure"
d3011 1
a3011 1
if { (eval echo "$as_me:3138: \"$ac_compile\"") >&5
d3014 1
a3014 1
  echo "$as_me:3141: \$? = $ac_status" >&5
d3016 2
a3017 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3144: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d3019 2
a3020 2
  echo "$as_me:3147: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3037 1
a3037 1
echo "$as_me:3165: result: $ac_cv___attribute__" >&5
d3117 1
a3117 1
  echo "$as_me:3245: checking for ld used by GCC" >&5
d3119 7
a3125 1
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
d3147 1
a3147 1
  echo "$as_me:3269: checking for GNU ld" >&5
d3150 1
a3150 1
  echo "$as_me:3272: checking for non-GNU ld" >&5
d3180 1
a3180 1
  echo "$as_me:3302: result: $LD" >&5
d3183 1
a3183 1
  echo "$as_me:3305: result: no" >&5
d3186 1
a3186 1
test -z "$LD" && { { echo "$as_me:3308: error: no acceptable ld found in \$PATH" >&5
d3189 1
a3189 1
echo "$as_me:3311: checking if the linker ($LD) is GNU ld" >&5
d3201 1
a3201 1
echo "$as_me:3323: result: $ac_cv_prog_gnu_ld" >&5
d3203 13
d3217 1
a3217 1
echo "$as_me:3326: checking for BSD-compatible nm" >&5
d3229 2
a3230 1
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
d3234 2
a3235 2
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -B"
d3237 2
a3238 2
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -p"
d3241 1
a3241 1
	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
d3252 1
a3252 1
echo "$as_me:3360: result: $NM" >&5
d3255 1
a3255 1
echo "$as_me:3363: checking whether ln -s works" >&5
d3259 1
a3259 1
  echo "$as_me:3367: result: yes" >&5
d3262 1
a3262 1
  echo "$as_me:3370: result: no, using $LN_S" >&5
d3266 23
a3288 4
case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac
d3290 3
a3292 7
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
d3294 5
a3298 3
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"
d3300 4
a3303 3
fi;
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
d3305 7
a3311 20
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$lt_target" in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 3400 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3404: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
d3314 55
a3369 1
  rm -rf conftest*
d3372 106
a3477 7
*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:3425: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
d3480 34
a3513 3
  cat >conftest.$ac_ext <<_ACEOF
#line 3431 "configure"
#include "confdefs.h"
d3515 12
a3526 3
int
main ()
{
d3528 4
a3531 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3443: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3446: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3449: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3452: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_cc_needs_belf=yes
d3533 2
a3534 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
lt_cv_cc_needs_belf=no
d3536 4
a3539 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3541 1
a3541 5
echo "$as_me:3462: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
d3544 259
a3802 1

d3835 1
a3835 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d3840 1
a3840 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d3862 6
a3867 4
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
d3869 2
a3870 2
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| { { echo "$as_me:3535: error: libtool configure failed" >&5
d3879 1
a3879 1
    { echo "$as_me:3544: loading cache $cache_file" >&5
d3887 1
a3887 1
  { echo "$as_me:3552: creating cache $cache_file" >&5
a3925 4

have_ndbm=no
db_type=unknown

d3933 2
a3934 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:3603: checking for $ac_header" >&5
d3936 1
a3936 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d3940 1
a3940 1
#line 3609 "configure"
d3944 2
a3945 2
if { (eval echo "$as_me:3613: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d3950 2
a3951 2
  echo "$as_me:3619: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d3961 1
a3961 1
  eval "$as_ac_Header=yes"
d3965 1
a3965 1
  eval "$as_ac_Header=no"
d3969 3
a3971 3
echo "$as_me:3638: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d3973 1
a3973 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d3979 5
a3983 3
echo "$as_me:3648: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
d3987 1
a3987 1
if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
d3989 6
a3994 8
	for ac_lib in "" $berkeley_db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d3997 1
a3997 1
#line 3666 "configure"
d4000 6
a4005 2
  #include <stdio.h>
  #include <db.h>
d4010 1
a4010 1
db_create(NULL, NULL, 0)
d4016 1
a4016 1
if { (eval echo "$as_me:3681: \"$ac_link\"") >&5
d4019 1
a4019 1
  echo "$as_me:3684: \$? = $ac_status" >&5
d4021 2
a4022 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3687: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4024 3
a4026 3
  echo "$as_me:3690: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
d4031 1
a4031 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4033 1
a4033 1
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
d4039 1
a4039 1
eval "ac_res=\$ac_cv_funclib_db_create"
d4043 1
a4043 1
for ac_func in db_create
d4045 2
a4046 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:3712: checking for $ac_func" >&5
d4048 1
a4048 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4052 1
a4052 1
#line 3718 "configure"
d4083 1
a4083 1
if { (eval echo "$as_me:3749: \"$ac_link\"") >&5
d4086 1
a4086 1
  echo "$as_me:3752: \$? = $ac_status" >&5
d4088 2
a4089 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3755: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4091 3
a4093 3
  echo "$as_me:3758: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4097 1
a4097 1
eval "$as_ac_var=no"
d4099 1
a4099 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4101 3
a4103 3
echo "$as_me:3768: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d4105 1
a4105 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d4112 2
a4113 2
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d4115 1
a4115 1
eval "LIB_db_create=$ac_res"
d4119 2
a4120 2
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
d4125 1
a4125 1
	echo "$as_me:3792: result: yes" >&5
d4129 3
a4131 3
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:3798: result: no" >&5
d4135 1
a4135 1
	eval "ac_cv_func_db_create=yes"
d4145 1
a4145 1
	echo "$as_me:3812: result: yes, in $ac_res" >&5
d4150 3
a4152 17
  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi

cat >>confdefs.h <<\EOF
#define HAVE_DB3 1
EOF

  else

echo "$as_me:3831: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
d4156 1
a4156 1
if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
d4158 6
a4163 8
	for ac_lib in "" $berkeley_db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d4166 1
a4166 1
#line 3849 "configure"
a4168 9
    #include <stdio.h>
    #if defined(HAVE_DB_185_H)
    #include <db_185.h>
    #elif defined(HAVE_DB_H)
    #include <db.h>
    #else
    #error no db.h
    #endif

d4172 1
a4172 1
dbopen(NULL, 0, 0, 0, NULL)
d4178 1
a4178 1
if { (eval echo "$as_me:3870: \"$ac_link\"") >&5
d4181 1
a4181 1
  echo "$as_me:3873: \$? = $ac_status" >&5
d4183 2
a4184 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3876: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4186 3
a4188 3
  echo "$as_me:3879: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
d4193 1
a4193 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4195 1
a4195 1
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
d4201 1
a4201 1
eval "ac_res=\$ac_cv_funclib_dbopen"
d4205 1
a4205 1
for ac_func in dbopen
d4207 2
a4208 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:3901: checking for $ac_func" >&5
d4210 1
a4210 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4214 1
a4214 1
#line 3907 "configure"
d4245 1
a4245 1
if { (eval echo "$as_me:3938: \"$ac_link\"") >&5
d4248 1
a4248 1
  echo "$as_me:3941: \$? = $ac_status" >&5
d4250 2
a4251 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3944: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4253 3
a4255 3
  echo "$as_me:3947: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4259 1
a4259 1
eval "$as_ac_var=no"
d4261 1
a4261 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4263 3
a4265 3
echo "$as_me:3957: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d4267 1
a4267 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d4274 2
a4275 2
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d4277 1
a4277 1
eval "LIB_dbopen=$ac_res"
d4281 2
a4282 2
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
d4287 1
a4287 1
	echo "$as_me:3981: result: yes" >&5
d4291 3
a4293 3
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:3987: result: no" >&5
d4297 1
a4297 1
	eval "ac_cv_func_dbopen=yes"
d4307 1
a4307 1
	echo "$as_me:4001: result: yes, in $ac_res" >&5
d4312 3
a4314 18
    if test "$ac_cv_func_dbopen" = "yes"; then
      db_type=db1
      if test "$ac_cv_funclib_dbopen" != "yes"; then
        DBLIB="$ac_cv_funclib_dbopen"
      else
        DBLIB=""
      fi

cat >>confdefs.h <<\EOF
#define HAVE_DB1 1
EOF

    fi
  fi

echo "$as_me:4021: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d4318 1
a4318 1
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
d4320 6
a4325 8
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d4328 1
a4328 1
#line 4039 "configure"
a4330 5
  #include <stdio.h>
  #define DB_DBM_HSEARCH 1
  #include <db.h>
  DBM *dbm;

d4334 1
a4334 1
dbm_firstkey(NULL)
d4340 1
a4340 1
if { (eval echo "$as_me:4056: \"$ac_link\"") >&5
d4343 1
a4343 1
  echo "$as_me:4059: \$? = $ac_status" >&5
d4345 2
a4346 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4062: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4348 3
a4350 3
  echo "$as_me:4065: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d4355 1
a4355 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4357 1
a4357 1
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
d4363 1
a4363 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d4367 1
a4367 1
for ac_func in dbm_firstkey
d4369 2
a4370 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:4087: checking for $ac_func" >&5
d4372 1
a4372 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4376 1
a4376 1
#line 4093 "configure"
d4407 1
a4407 1
if { (eval echo "$as_me:4124: \"$ac_link\"") >&5
d4410 1
a4410 1
  echo "$as_me:4127: \$? = $ac_status" >&5
d4412 2
a4413 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4130: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4415 3
a4417 3
  echo "$as_me:4133: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4421 1
a4421 1
eval "$as_ac_var=no"
d4423 1
a4423 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4425 3
a4427 3
echo "$as_me:4143: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d4429 1
a4429 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d4436 2
a4437 2
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d4439 1
a4439 1
eval "LIB_dbm_firstkey=$ac_res"
d4443 2
a4444 2
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
d4449 1
a4449 1
	echo "$as_me:4167: result: yes" >&5
d4453 3
a4455 3
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4173: result: no" >&5
d4459 1
a4459 1
	eval "ac_cv_func_dbm_firstkey=yes"
d4469 1
a4469 1
	echo "$as_me:4187: result: yes, in $ac_res" >&5
d4474 3
a4476 62
  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi

cat >>confdefs.h <<\EOF
#define HAVE_DB_NDBM 1
EOF

cat >>confdefs.h <<\EOF
#define HAVE_NEW_DB 1
EOF

  else
    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey
  fi

fi # berkeley db

if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then

for ac_header in 				\
	dbm.h					\
	ndbm.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:4222: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4228 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:4232: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4238: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
d4478 2
a4479 1
rm -f conftest.err conftest.$ac_ext
a4480 6
echo "$as_me:4257: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF
d4482 3
a4484 6
fi
done

echo "$as_me:4267: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d4487 4
a4490 14

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ndbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4285 "configure"
d4492 3
a4495 17
  #include <stdio.h>
  #if defined(HAVE_NDBM_H)
  #include <ndbm.h>
  #elif defined(HAVE_DBM_H)
  #include <dbm.h>
  #else
  #error no ndbm.h
  #endif
  DBM *dbm;

int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
d4497 3
a4499 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4307: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d4501 1
a4501 1
  echo "$as_me:4310: \$? = $ac_status" >&5
d4503 2
a4504 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4313: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4506 3
a4508 3
  echo "$as_me:4316: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d4513 2
a4514 5
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi
d4517 14
d4532 3
a4534 10
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:4338: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4538 1
a4538 1
#line 4344 "configure"
a4539 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4544 45
a4588 7
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d4595 3
a4597 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d4599 1
a4599 1
  echo "$as_me:4378: \$? = $ac_status" >&5
d4601 2
a4602 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4381: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4604 3
a4606 3
  echo "$as_me:4384: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4610 1
a4610 1
eval "$as_ac_var=no"
d4612 1
a4612 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4614 6
a4619 5
echo "$as_me:4394: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d4623 55
a4677 1
done
a4679 4
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"
d4681 6
a4686 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d4688 8
a4695 15
	echo "$as_me:4418: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4424: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d4697 1
a4697 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d4699 18
a4716 4
	echo "$as_me:4438: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d4718 36
a4753 6
  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi
d4756 1
a4756 1
#define HAVE_NDBM 1
a4757 6
    have_ndbm=yes
    if test "$db_type" = "unknown"; then
      db_type=ndbm
      DBLIB="$LIB_NDBM"
    fi
  else
d4759 1
a4759 5
    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey

for ac_header in 				\
	  gdbm/ndbm.h				\
d4761 1
d4763 2
a4764 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:4468: checking for $ac_header" >&5
d4766 1
a4766 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d4770 1
a4770 1
#line 4474 "configure"
d4774 2
a4775 2
if { (eval echo "$as_me:4478: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d4780 2
a4781 2
  echo "$as_me:4484: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d4791 1
a4791 1
  eval "$as_ac_Header=yes"
d4795 1
a4795 1
  eval "$as_ac_Header=no"
d4799 3
a4801 3
echo "$as_me:4503: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d4803 1
a4803 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d4809 3
a4811 3
echo "$as_me:4513: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d4814 2
a4815 14

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" gdbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4531 "configure"
d4817 1
a4817 5

    #include <stdio.h>
    #include <gdbm/ndbm.h>
    DBM *dbm;

d4821 4
a4824 1
dbm_firstkey(NULL)
d4829 3
a4831 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4547: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d4833 1
a4833 1
  echo "$as_me:4550: \$? = $ac_status" >&5
d4835 2
a4836 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4553: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4838 3
a4840 3
  echo "$as_me:4556: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d4844 1
d4846 1
a4846 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
d4848 9
d4860 3
a4862 10
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:4578: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4866 1
a4866 1
#line 4584 "configure"
d4868 1
a4868 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d4872 4
a4875 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d4880 3
a4882 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4615: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d4884 1
a4884 1
  echo "$as_me:4618: \$? = $ac_status" >&5
d4886 2
a4887 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4621: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4889 3
a4891 3
  echo "$as_me:4624: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4895 1
a4895 1
eval "$as_ac_var=no"
d4897 1
a4897 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4899 8
a4906 5
echo "$as_me:4634: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a4909 1
done
d4911 16
d4928 1
a4928 4
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"
d4930 4
a4933 39
case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:4658: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4664: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4678: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
	LIB_NDBM=""
      fi
d4936 1
a4936 1
#define HAVE_NDBM 1
a4937 57
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
	db_type=ndbm
	DBLIB="$LIB_NDBM"
      fi
    fi
  fi

fi # unknown

if test "$have_ndbm" = "yes"; then
  echo "$as_me:4704: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:4707: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4712 "configure"
#include "confdefs.h"

#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#endif
int main()
{
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:4736: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4739: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:4741: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4744: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

    if test -f conftest.db; then
      echo "$as_me:4748: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4940 1
a4940 1
#define HAVE_NEW_DB 1
a4942 13
    else
      echo "$as_me:4756: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:4763: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d4945 3
a4947 3
echo "$as_me:4770: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
a4949 2
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
d4951 1
a4951 1
#line 4778 "configure"
d4953 9
a4961 3
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
d4964 7
d4973 1
a4973 1
if { (eval echo "$as_me:4787: \"$ac_compile\"") >&5
d4976 1
a4976 1
  echo "$as_me:4790: \$? = $ac_status" >&5
d4978 2
a4979 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4793: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d4981 3
a4983 3
  echo "$as_me:4796: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
d4987 1
d4990 9
a4998 1
done
a4999 6
fi
echo "$as_me:4807: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
d5001 1
a5001 1
#define inline
a5002 6
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac
d5004 5
a5008 3
echo "$as_me:4822: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
d5012 1
a5012 1
#line 4828 "configure"
d5014 3
d5021 1
a5021 47
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

d5027 1
a5027 1
if { (eval echo "$as_me:4886: \"$ac_compile\"") >&5
d5030 1
a5030 1
  echo "$as_me:4889: \$? = $ac_status" >&5
d5032 2
a5033 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4892: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5035 3
a5037 3
  echo "$as_me:4895: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
d5041 1
a5041 1
ac_cv_c_const=no
d5045 3
a5047 3
echo "$as_me:4905: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
d5050 1
a5050 1
#define const
d5055 6
a5060 3
echo "$as_me:4915: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
d5064 1
a5064 1
#line 4921 "configure"
d5066 1
a5066 5
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

d5068 2
a5069 2
if { (eval echo "$as_me:4929: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d5074 2
a5075 2
  echo "$as_me:4935: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d5085 1
a5085 1
  ac_cv_header_stdc=yes
d5089 1
a5089 1
  ac_cv_header_stdc=no
d5092 7
d5100 2
a5101 6
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 4957 "configure"
#include "confdefs.h"
#include <string.h>
d5103 1
a5103 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*
d5105 1
a5105 1
fi
d5107 5
a5111 2
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
d5113 1
a5113 1
#line 4975 "configure"
d5115 5
a5119 1
#include <stdlib.h>
d5122 13
a5134 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
d5136 1
a5136 1
  ac_cv_header_stdc=no
d5138 2
a5139 8
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
d5141 3
a5143 43
  cat >conftest.$ac_ext <<_ACEOF
#line 4996 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5022: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5025: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5027: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5030: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
d5145 1
a5145 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d5147 7
a5153 8
fi
fi
echo "$as_me:5043: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
d5157 2
d5160 1
a5160 4
# On IRIX 5.3, sys/types and inttypes.h are conflicting.

for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
d5162 2
a5163 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5059: checking for $ac_header" >&5
d5165 1
a5165 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d5169 1
a5169 1
#line 5065 "configure"
a5170 1
$ac_includes_default
d5173 2
a5174 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5071: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d5176 15
a5190 9
  echo "$as_me:5074: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5077: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5080: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
d5193 2
a5194 2
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
d5196 1
a5196 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5198 3
a5200 3
echo "$as_me:5090: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d5202 1
a5202 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d5208 8
a5215 3
echo "$as_me:5100: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
d5219 1
a5219 1
#line 5106 "configure"
d5221 12
a5232 1
$ac_includes_default
d5236 9
a5244 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d5249 3
a5251 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5121: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d5253 1
a5253 1
  echo "$as_me:5124: \$? = $ac_status" >&5
d5255 2
a5256 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5127: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5258 3
a5260 3
  echo "$as_me:5130: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
d5264 3
a5266 1
ac_cv_type_size_t=no
d5268 7
a5274 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5276 11
a5286 4
echo "$as_me:5140: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
d5288 7
d5296 2
a5297 2
cat >>confdefs.h <<EOF
#define size_t unsigned
d5301 1
d5303 3
a5305 3
echo "$as_me:5152: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
d5308 5
d5314 1
a5314 1
#line 5158 "configure"
d5316 5
a5320 3
$ac_includes_default
int
main ()
d5322 1
a5322 6
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
d5324 1
d5326 3
a5328 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5173: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d5330 3
a5332 5
  echo "$as_me:5176: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5179: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5334 3
a5336 3
  echo "$as_me:5182: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_pid_t=yes
d5338 2
a5339 1
  echo "$as_me: failed program was:" >&5
d5341 3
a5343 1
ac_cv_type_pid_t=no
d5345 1
a5345 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5347 3
a5349 5
echo "$as_me:5192: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else
d5351 2
a5352 2
cat >>confdefs.h <<EOF
#define pid_t int
d5357 20
a5376 3
echo "$as_me:5204: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
d5380 1
a5380 1
#line 5210 "configure"
d5383 5
a5387 1

d5390 2
a5391 2
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
d5393 1
a5393 1
  ac_cv_type_uid_t=no
d5398 3
a5400 3
echo "$as_me:5224: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
d5403 1
a5403 5
#define uid_t int
EOF

cat >>confdefs.h <<\EOF
#define gid_t int
d5408 4
a5411 3
echo "$as_me:5238: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
d5415 1
a5415 1
#line 5244 "configure"
d5418 3
a5420 8
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
d5426 1
a5426 1
int i;
d5432 1
a5432 1
if { (eval echo "$as_me:5266: \"$ac_compile\"") >&5
d5435 1
a5435 1
  echo "$as_me:5269: \$? = $ac_status" >&5
d5437 2
a5438 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5272: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5440 3
a5442 3
  echo "$as_me:5275: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signal=void
d5446 1
a5446 1
ac_cv_type_signal=int
d5450 9
a5458 18
echo "$as_me:5285: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF

if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
EOF

fi

echo "$as_me:5300: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
d5462 1
a5462 1
#line 5306 "configure"
d5464 1
a5464 4
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

d5468 4
a5471 2
if ((struct tm *) 0)
return 0;
d5477 1
a5477 1
if { (eval echo "$as_me:5322: \"$ac_compile\"") >&5
d5480 1
a5480 1
  echo "$as_me:5325: \$? = $ac_status" >&5
d5482 2
a5483 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5328: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5485 3
a5487 3
  echo "$as_me:5331: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
d5491 1
a5491 1
ac_cv_header_time=no
d5495 11
a5505 3
echo "$as_me:5341: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
d5507 2
a5508 2
cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
d5513 51
a5563 1
for ac_header in standards.h
d5565 2
a5566 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5354: checking for $ac_header" >&5
d5568 1
a5568 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d5572 1
a5572 1
#line 5360 "configure"
d5576 2
a5577 2
if { (eval echo "$as_me:5364: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d5582 2
a5583 2
  echo "$as_me:5370: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d5593 1
a5593 1
  eval "$as_ac_Header=yes"
d5597 1
a5597 1
  eval "$as_ac_Header=no"
d5601 3
a5603 3
echo "$as_me:5389: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d5605 1
a5605 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d5611 7
a5617 1
for i in netinet/ip.h netinet/tcp.h; do
d5619 3
a5621 6
cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:5403: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5623 3
a5625 8
  cat >conftest.$ac_ext <<_ACEOF
#line 5409 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>
d5627 3
a5629 14
_ACEOF
if { (eval echo "$as_me:5418: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5424: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d5631 2
a5632 1
  ac_cpp_err=yes
d5634 4
a5637 2
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
d5639 2
a5640 3
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
a5641 10
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5443: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d5643 6
d5650 2
a5651 9
done
if false;then

for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5459: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d5654 10
a5663 2
  cat >conftest.$ac_ext <<_ACEOF
#line 5465 "configure"
d5665 5
a5669 1
#include <$ac_header>
d5671 5
a5675 15
if { (eval echo "$as_me:5469: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5475: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d5677 1
a5677 15
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5494: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF
d5679 5
a5683 2
fi
done
d5685 10
d5696 1
d5698 203
a5900 1
for ac_func in getlogin setlogin
d5902 2
a5903 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5509: checking for $ac_func" >&5
d5905 1
a5905 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5909 1
a5909 1
#line 5515 "configure"
d5940 1
a5940 1
if { (eval echo "$as_me:5546: \"$ac_link\"") >&5
d5943 1
a5943 1
  echo "$as_me:5549: \$? = $ac_status" >&5
d5945 2
a5946 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5552: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d5948 3
a5950 3
  echo "$as_me:5555: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d5954 1
a5954 1
eval "$as_ac_var=no"
d5956 1
a5956 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5958 3
a5960 3
echo "$as_me:5565: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d5962 1
a5962 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d5968 5
a5972 6
if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:5576: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d5974 7
a5980 5
if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi
d5982 15
a5996 4
fi
echo "$as_me:5589: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then
d5998 2
a5999 2
cat >>confdefs.h <<\EOF
#define POSIX_GETLOGIN 1
d6002 7
a6008 1
fi
d6011 3
a6013 3
echo "$as_me:5600: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
d6017 11
a6027 6
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5611 "configure"
d6030 2
a6031 4
#include <stddef.h>
#include <stdlib.h>

int main()
d6033 3
a6035 1
	return realloc(NULL, 17) == NULL;
a6036 1

d6038 2
a6039 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5624: \"$ac_link\"") >&5
d6042 4
a6045 4
  echo "$as_me:5627: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5629: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6047 3
a6049 3
  echo "$as_me:5632: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d6051 1
a6051 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a6052 1
ac_cv_func_realloc_broken=yes
d6054 4
a6057 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a6060 3
echo "$as_me:5645: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then
d6062 1
a6062 3
cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
EOF
d6064 1
a6064 1
fi
d6066 6
a6071 20
DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi

echo "$as_me:5672: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
d6075 1
a6075 1
#line 5678 "configure"
d6077 22
a6098 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d6100 4
a6103 1
#include <unistd.h>
d6105 12
a6116 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_ssize_t=yes
d6118 13
a6130 1
  ac_cv_type_ssize_t=no
d6132 1
a6132 1
rm -f conftest*
d6135 28
a6162 3
echo "$as_me:5696: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then
d6164 2
a6165 2
cat >>confdefs.h <<\EOF
#define ssize_t int
d6168 7
d6177 3
a6179 4
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:5707: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d6182 12
a6193 2
  cat >conftest.$ac_ext <<_ACEOF
#line 5713 "configure"
a6194 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d6199 1
a6199 1
long long foo;
d6204 3
a6206 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5730: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d6208 1
a6208 1
  echo "$as_me:5733: \$? = $ac_status" >&5
d6210 2
a6211 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5736: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6213 3
a6215 3
  echo "$as_me:5739: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
a6218 1
eval "ac_cv_type_$cv=no"
d6220 6
a6225 1
rm -f conftest.$ac_objext conftest.$ac_ext
d6227 3
a6229 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:5750: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d6231 7
a6237 3
	echo "$as_me:5755: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d6241 1
a6241 1
#line 5761 "configure"
d6243 12
a6254 1
$ac_includes_default
d6258 9
a6266 4
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
d6271 3
a6273 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5776: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d6275 1
a6275 1
  echo "$as_me:5779: \$? = $ac_status" >&5
d6277 2
a6278 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5782: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6280 3
a6282 3
  echo "$as_me:5785: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
d6286 1
a6286 1
ac_cv_type_long_long=no
d6288 1
a6288 1
rm -f conftest.$ac_objext conftest.$ac_ext
d6290 5
a6294 6
echo "$as_me:5795: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
d6298 1
d6301 4
d6306 26
a6331 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d6334 7
d6343 3
a6345 128
for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	grp.h					\
	ifaddrs.h				\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5861: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5867 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5871: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5877: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5896: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi

if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi

if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi

if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi

echo "$as_me:5938: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
d6349 1
a6349 1
if eval "test \"\$ac_cv_func_socket\" != yes" ; then
d6351 6
a6356 8
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d6359 1
a6359 1
#line 5956 "configure"
d6365 1
a6365 1
socket()
d6371 1
a6371 1
if { (eval echo "$as_me:5968: \"$ac_link\"") >&5
d6374 1
a6374 1
  echo "$as_me:5971: \$? = $ac_status" >&5
d6376 2
a6377 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5974: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6379 3
a6381 3
  echo "$as_me:5977: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d6386 1
a6386 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6388 1
a6388 1
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
d6394 1
a6394 1
eval "ac_res=\$ac_cv_funclib_socket"
d6398 1
a6398 1
for ac_func in socket
d6400 2
a6401 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5999: checking for $ac_func" >&5
d6403 1
a6403 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d6407 1
a6407 1
#line 6005 "configure"
d6438 1
a6438 1
if { (eval echo "$as_me:6036: \"$ac_link\"") >&5
d6441 1
a6441 1
  echo "$as_me:6039: \$? = $ac_status" >&5
d6443 2
a6444 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6042: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6446 3
a6448 3
  echo "$as_me:6045: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d6452 1
a6452 1
eval "$as_ac_var=no"
d6454 1
a6454 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6456 3
a6458 3
echo "$as_me:6055: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d6460 1
a6460 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d6467 2
a6468 2
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6470 1
a6470 1
eval "LIB_socket=$ac_res"
d6474 2
a6475 2
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
d6480 1
a6480 1
	echo "$as_me:6079: result: yes" >&5
d6484 3
a6486 3
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:6085: result: no" >&5
d6490 1
a6490 1
	eval "ac_cv_func_socket=yes"
d6500 1
a6500 1
	echo "$as_me:6099: result: yes, in $ac_res" >&5
d6505 2
a6506 2
if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d6509 3
a6511 3
echo "$as_me:6108: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
d6515 1
a6515 1
if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
d6517 6
a6522 8
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d6525 1
a6525 1
#line 6126 "configure"
d6528 14
d6545 1
a6545 1
gethostbyname()
d6551 1
a6551 1
if { (eval echo "$as_me:6138: \"$ac_link\"") >&5
d6554 1
a6554 1
  echo "$as_me:6141: \$? = $ac_status" >&5
d6556 2
a6557 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6144: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6559 3
a6561 3
  echo "$as_me:6147: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d6566 1
a6566 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6568 1
a6568 1
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
d6574 1
a6574 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
d6578 1
a6578 1
for ac_func in gethostbyname
d6580 2
a6581 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6169: checking for $ac_func" >&5
d6583 1
a6583 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d6587 1
a6587 1
#line 6175 "configure"
d6618 1
a6618 1
if { (eval echo "$as_me:6206: \"$ac_link\"") >&5
d6621 1
a6621 1
  echo "$as_me:6209: \$? = $ac_status" >&5
d6623 2
a6624 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6212: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6626 3
a6628 3
  echo "$as_me:6215: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d6632 1
a6632 1
eval "$as_ac_var=no"
d6634 1
a6634 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6636 3
a6638 3
echo "$as_me:6225: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d6640 1
a6640 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d6647 2
a6648 2
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6650 1
a6650 1
eval "LIB_gethostbyname=$ac_res"
d6654 2
a6655 2
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
d6660 1
a6660 1
	echo "$as_me:6249: result: yes" >&5
d6664 3
a6666 3
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:6255: result: no" >&5
d6670 1
a6670 1
	eval "ac_cv_func_gethostbyname=yes"
d6680 1
a6680 1
	echo "$as_me:6269: result: yes, in $ac_res" >&5
d6685 2
a6686 2
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
d6689 3
a6691 3
echo "$as_me:6278: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
d6695 1
a6695 1
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
d6697 6
a6702 8
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d6705 1
a6705 1
#line 6296 "configure"
d6708 14
d6725 1
a6725 1
syslog()
d6731 1
a6731 1
if { (eval echo "$as_me:6308: \"$ac_link\"") >&5
d6734 1
a6734 1
  echo "$as_me:6311: \$? = $ac_status" >&5
d6736 2
a6737 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6314: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6739 3
a6741 3
  echo "$as_me:6317: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d6746 1
a6746 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6748 1
a6748 1
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
d6754 1
a6754 1
eval "ac_res=\$ac_cv_funclib_syslog"
d6758 1
a6758 1
for ac_func in syslog
d6760 2
a6761 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6339: checking for $ac_func" >&5
d6763 1
a6763 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d6767 1
a6767 1
#line 6345 "configure"
d6798 1
a6798 1
if { (eval echo "$as_me:6376: \"$ac_link\"") >&5
d6801 1
a6801 1
  echo "$as_me:6379: \$? = $ac_status" >&5
d6803 2
a6804 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6382: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6806 3
a6808 3
  echo "$as_me:6385: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d6812 1
a6812 1
eval "$as_ac_var=no"
d6814 1
a6814 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6816 3
a6818 3
echo "$as_me:6395: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d6820 1
a6820 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d6827 2
a6828 2
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6830 1
a6830 1
eval "LIB_syslog=$ac_res"
d6834 2
a6835 2
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
d6840 1
a6840 1
	echo "$as_me:6419: result: yes" >&5
d6844 3
a6846 3
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:6425: result: no" >&5
d6850 1
a6850 1
	eval "ac_cv_func_syslog=yes"
d6860 1
a6860 1
	echo "$as_me:6439: result: yes, in $ac_res" >&5
d6865 2
a6866 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
d6869 3
a6871 10
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"

if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
save_CFLAGS="${CFLAGS}"
if test "${ac_cv_lib_ipv6+set}" = set; then
d6874 6
a6879 10
  v6type=unknown
v6lib=none

echo "$as_me:6463: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line 6469 "configure"
d6882 3
a6884 131
#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line 6488 "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line 6507 "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line 6526 "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line 6543 "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done
echo "$as_me:6573: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi
cat >conftest.$ac_ext <<_ACEOF
#line 6585 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

int
main ()
d6886 3
a6888 13

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
d6891 2
a6892 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6620: \"$ac_link\"") >&5
d6895 3
a6897 5
  echo "$as_me:6623: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6626: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6899 3
a6901 3
  echo "$as_me:6629: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ipv6=yes
d6903 2
a6904 1
  echo "$as_me: failed program was:" >&5
d6906 3
a6908 1
ac_cv_lib_ipv6=no
a6909 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6911 2
d6914 1
a6914 5
echo "$as_me:6640: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "$as_me:6642: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then
d6916 2
a6917 2
cat >>confdefs.h <<\EOF
#define HAVE_IPV6 1
a6919 2
else
  CFLAGS="${save_CFLAGS}"
d6921 1
d6923 4
a6926 4
if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:6655: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
d6929 2
a6930 3

	cat >conftest.$ac_ext <<_ACEOF
#line 6662 "configure"
d6932 1
a6932 13

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
d6936 3
a6938 3

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;
d6944 3
a6946 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6689: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d6948 1
a6948 1
  echo "$as_me:6692: \$? = $ac_status" >&5
d6950 2
a6951 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6695: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d6953 3
a6955 3
  echo "$as_me:6698: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_in6addr_loopback=yes
d6959 1
a6959 1
ac_cv_var_in6addr_loopback=no
d6961 1
a6961 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6963 4
a6966 3
echo "$as_me:6708: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then
d6969 1
a6969 1
#define HAVE_IN6ADDR_LOOPBACK 1
a6971 1
	fi
d6974 7
a6980 3
echo "$as_me:6719: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
d6983 7
d6991 59
a7049 13
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 6737 "configure"
d7051 1
a7051 1

d7055 4
a7058 1
gethostbyname2()
d7063 3
a7065 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6749: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7067 1
a7067 1
  echo "$as_me:6752: \$? = $ac_status" >&5
d7069 2
a7070 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6755: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7072 3
a7074 3
  echo "$as_me:6758: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d7078 1
d7080 1
a7080 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
d7082 8
d7093 1
a7093 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
d7095 1
a7095 1
if false; then
d7097 3
a7099 6
for ac_func in gethostbyname2
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6780: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d7102 3
a7104 2
  cat >conftest.$ac_ext <<_ACEOF
#line 6786 "configure"
a7105 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d7107 2
d7112 2
a7113 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d7120 1
a7120 1
if { (eval echo "$as_me:6817: \"$ac_link\"") >&5
d7123 1
a7123 1
  echo "$as_me:6820: \$? = $ac_status" >&5
d7125 2
a7126 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6823: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7128 3
a7130 3
  echo "$as_me:6826: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d7134 1
a7134 1
eval "$as_ac_var=no"
d7136 1
a7136 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7138 2
a7139 6
echo "$as_me:6836: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d7141 1
a7141 2
fi
done
d7143 2
a7144 32
fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:6860: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:6866: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
a7146 7
	echo "$as_me:6880: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
d7148 1
d7150 4
a7153 3
echo "$as_me:6889: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
d7156 2
a7157 14

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 6907 "configure"
a7158 1

d7160 1
a7160 13
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

d7164 4
a7167 1
res_search(0,0,0,0,0)
d7172 3
a7174 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6933: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7176 1
a7176 1
  echo "$as_me:6936: \$? = $ac_status" >&5
d7178 2
a7179 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6939: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7181 3
a7183 3
  echo "$as_me:6942: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d7187 15
d7203 1
a7203 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
d7206 2
d7210 7
a7216 1
eval "ac_res=\$ac_cv_funclib_res_search"
d7218 19
a7236 1
if false; then
a7237 1
for ac_func in res_search
d7239 2
a7240 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6964: checking for $ac_func" >&5
d7242 1
a7242 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d7246 1
a7246 1
#line 6970 "configure"
d7277 1
a7277 1
if { (eval echo "$as_me:7001: \"$ac_link\"") >&5
d7280 1
a7280 1
  echo "$as_me:7004: \$? = $ac_status" >&5
d7282 2
a7283 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7007: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7285 3
a7287 3
  echo "$as_me:7010: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d7291 1
a7291 1
eval "$as_ac_var=no"
d7293 1
a7293 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7295 3
a7297 3
echo "$as_me:7020: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d7299 1
a7299 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d7305 2
d7308 134
a7441 4
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"
d7445 2
a7446 2
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
d7451 1
a7451 1
	echo "$as_me:7044: result: yes" >&5
d7455 3
a7457 3
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:7050: result: no" >&5
d7461 1
a7461 1
	eval "ac_cv_func_res_search=yes"
d7471 1
a7471 1
	echo "$as_me:7064: result: yes, in $ac_res" >&5
d7476 3
a7478 7
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi

echo "$as_me:7073: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
d7482 1
a7482 1
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
d7484 6
a7489 8
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d7492 1
a7492 1
#line 7091 "configure"
a7493 2

#include <stdio.h>
d7497 2
a7498 5
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
a7499 4
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

d7503 1
a7503 1
dn_expand(0,0,0,0,0)
d7509 1
a7509 1
if { (eval echo "$as_me:7117: \"$ac_link\"") >&5
d7512 1
a7512 1
  echo "$as_me:7120: \$? = $ac_status" >&5
d7514 2
a7515 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7123: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7517 3
a7519 3
  echo "$as_me:7126: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d7524 1
a7524 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7526 1
a7526 1
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
d7532 1
a7532 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d7536 1
a7536 1
for ac_func in dn_expand
d7538 2
a7539 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7148: checking for $ac_func" >&5
d7541 1
a7541 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d7545 1
a7545 1
#line 7154 "configure"
d7576 1
a7576 1
if { (eval echo "$as_me:7185: \"$ac_link\"") >&5
d7579 1
a7579 1
  echo "$as_me:7188: \$? = $ac_status" >&5
d7581 2
a7582 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7191: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7584 3
a7586 3
  echo "$as_me:7194: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d7590 1
a7590 1
eval "$as_ac_var=no"
d7592 1
a7592 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7594 3
a7596 3
echo "$as_me:7204: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d7598 1
a7598 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d7605 2
a7606 2
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d7608 1
a7608 1
eval "LIB_dn_expand=$ac_res"
d7612 2
a7613 2
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
d7618 1
a7618 1
	echo "$as_me:7228: result: yes" >&5
d7622 3
a7624 3
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:7234: result: no" >&5
d7628 1
a7628 1
	eval "ac_cv_func_dn_expand=yes"
d7638 1
a7638 1
	echo "$as_me:7248: result: yes, in $ac_res" >&5
d7643 3
a7645 7
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi

echo "$as_me:7257: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
d7648 12
a7659 6
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7267 "configure"
d7661 5
a7665 4

#include <stdio.h>
#include <string.h>
int main()
d7667 3
a7669 3
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
d7672 2
a7673 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:7280: \"$ac_link\"") >&5
d7676 4
a7679 4
  echo "$as_me:7283: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:7285: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7681 3
a7683 3
  echo "$as_me:7288: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d7685 1
a7685 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a7686 1
ac_cv_func_snprintf_working=no
d7688 4
a7691 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7693 1
a7694 2
echo "$as_me:7300: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
d7696 1
a7696 1
if test "$ac_cv_func_snprintf_working" = yes; then
d7698 1
a7698 3
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
EOF
d7700 6
a7705 7
fi
if test "$ac_cv_func_snprintf_working" = yes; then

if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:7313: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
d7709 1
a7709 1
#line 7319 "configure"
d7711 119
a7829 1
#include <stdio.h>
d7834 2
a7835 2
extern int snprintf (struct foo*);
snprintf(&xx);
d7842 1
a7842 1
if { (eval echo "$as_me:7334: \"$ac_compile\"") >&5
d7845 1
a7845 1
  echo "$as_me:7337: \$? = $ac_status" >&5
d7847 2
a7848 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7340: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7850 3
a7852 3
  echo "$as_me:7343: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_snprintf_noproto=yes"
d7856 1
a7856 1
eval "ac_cv_func_snprintf_noproto=no"
d7860 2
a7861 2
echo "$as_me:7353: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
d7863 1
a7863 1
if test "$ac_cv_func_snprintf_noproto" = yes; then
d7866 1
a7866 1
#define NEED_SNPRINTF_PROTO 1
d7875 6
a7880 3
echo "$as_me:7368: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
a7882 4
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
d7884 1
a7884 1
#line 7378 "configure"
d7889 2
a7890 3
#include <stdarg.h>

int foo(int num, ...)
d7892 3
a7894 7
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}
d7896 2
a7897 3
int main()
{
	return foo(0, "12");
d7900 3
a7902 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7904 4
a7907 4
  echo "$as_me:7404: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:7406: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7909 3
a7911 3
  echo "$as_me:7409: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d7913 1
a7913 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d7915 1
a7915 1
ac_cv_func_vsnprintf_working=no
d7917 1
a7917 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7919 2
a7920 3
fi
echo "$as_me:7421: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
d7922 1
a7922 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
d7924 2
a7925 2
cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
a7928 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
d7930 8
a7937 4
if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:7434: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
d7941 1
a7941 1
#line 7440 "configure"
d7943 1
d7945 1
d7950 2
a7951 2
extern int vsnprintf (struct foo*);
vsnprintf(&xx);
d7958 1
a7958 1
if { (eval echo "$as_me:7455: \"$ac_compile\"") >&5
d7961 1
a7961 1
  echo "$as_me:7458: \$? = $ac_status" >&5
d7963 2
a7964 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7461: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d7966 3
a7968 3
  echo "$as_me:7464: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
d7972 1
a7972 1
eval "ac_cv_func_vsnprintf_noproto=no"
d7976 2
a7977 2
echo "$as_me:7474: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
d7979 1
a7979 1
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
d7982 1
a7982 1
#define NEED_VSNPRINTF_PROTO 1
a7987 1

d7989 1
d7991 4
a7994 3
echo "$as_me:7489: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
d7997 2
a7998 3
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line 7496 "configure"
d8002 1
a8002 1
#include <glob.h>
d8006 3
a8008 9

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);
d8014 3
a8016 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7519: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8018 1
a8018 1
  echo "$as_me:7522: \$? = $ac_status" >&5
d8020 2
a8021 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7525: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8023 3
a8025 3
  echo "$as_me:7528: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d8029 1
a8029 1
ac_cv_func_glob_working=no
d8031 1
a8031 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8033 2
a8034 2
echo "$as_me:7538: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6
d8036 1
a8036 1
if test "$ac_cv_func_glob_working" = yes; then
d8039 1
a8039 1
#define HAVE_GLOB 1
a8042 1
if test "$ac_cv_func_glob_working" = yes; then
d8044 8
a8051 4
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:7551: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
d8055 1
a8055 1
#line 7557 "configure"
d8057 1
d8059 1
a8059 1
#include <glob.h>
d8064 2
a8065 2
extern int glob (struct foo*);
glob(&xx);
d8072 1
a8072 1
if { (eval echo "$as_me:7573: \"$ac_compile\"") >&5
d8075 1
a8075 1
  echo "$as_me:7576: \$? = $ac_status" >&5
d8077 2
a8078 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7579: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8080 3
a8082 3
  echo "$as_me:7582: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_glob_noproto=yes"
d8086 1
a8086 1
eval "ac_cv_func_glob_noproto=no"
d8090 2
a8091 2
echo "$as_me:7592: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
d8093 1
a8093 1
if test "$ac_cv_func_glob_noproto" = yes; then
d8096 1
a8096 1
#define NEED_GLOB_PROTO 1
a8101 1

d8104 5
a8108 3
if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.o"
fi
d8110 8
a8117 124
if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi

for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	initstate				\
	issetugid				\
	on_exit					\
	random					\
	setprogname				\
	setstate				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7649: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7655 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7686: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7689: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7692: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7695: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7705: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.o"
fi

echo "$as_me:7719: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d8120 1
a8120 1
#line 7737 "configure"
d8122 2
a8123 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d8128 1
a8128 1
getsockopt(0,0,0,0,0)
d8134 1
a8134 1
if { (eval echo "$as_me:7754: \"$ac_link\"") >&5
d8137 1
a8137 1
  echo "$as_me:7757: \$? = $ac_status" >&5
d8139 2
a8140 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7760: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8142 3
a8144 3
  echo "$as_me:7763: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d8149 1
a8149 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8151 1
a8151 1
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
d8157 1
a8157 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
d8161 1
a8161 1
for ac_func in getsockopt
d8163 2
a8164 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7785: checking for $ac_func" >&5
d8166 1
a8166 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8170 1
a8170 1
#line 7791 "configure"
d8201 1
a8201 1
if { (eval echo "$as_me:7822: \"$ac_link\"") >&5
d8204 1
a8204 1
  echo "$as_me:7825: \$? = $ac_status" >&5
d8206 2
a8207 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7828: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8209 3
a8211 3
  echo "$as_me:7831: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8215 1
a8215 1
eval "$as_ac_var=no"
d8217 1
a8217 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8219 3
a8221 3
echo "$as_me:7841: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d8223 1
a8223 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d8230 2
a8231 2
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d8233 1
a8233 1
eval "LIB_getsockopt=$ac_res"
d8237 2
a8238 2
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
d8243 1
a8243 1
	echo "$as_me:7865: result: yes" >&5
d8247 3
a8249 3
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:7871: result: no" >&5
d8253 1
a8253 1
	eval "ac_cv_func_getsockopt=yes"
d8263 1
a8263 1
	echo "$as_me:7885: result: yes, in $ac_res" >&5
d8268 66
a8333 58
echo "$as_me:7890: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7908 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7925: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7928: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7931: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7934: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi
a8334 5
eval "ac_res=\$ac_cv_funclib_setsockopt"

if false; then

for ac_func in setsockopt
d8336 2
a8337 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7956: checking for $ac_func" >&5
d8339 1
a8339 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8343 1
a8343 1
#line 7962 "configure"
d8374 1
a8374 1
if { (eval echo "$as_me:7993: \"$ac_link\"") >&5
d8377 1
a8377 1
  echo "$as_me:7996: \$? = $ac_status" >&5
d8379 2
a8380 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7999: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8382 3
a8384 3
  echo "$as_me:8002: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8388 1
a8388 1
eval "$as_ac_var=no"
d8390 1
a8390 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8392 7
a8398 5
echo "$as_me:8012: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d8401 2
a8403 1
done
d8405 1
a8405 5
fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"
d8407 100
a8506 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d8508 28
a8535 14
	echo "$as_me:8036: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:8042: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d8538 2
a8539 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d8541 2
a8542 4
	echo "$as_me:8056: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d8544 5
a8548 3
echo "$as_me:8061: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
d8551 2
a8552 14

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8079 "configure"
d8554 11
a8564 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d8569 10
a8578 1
hstrerror(17)
d8584 1
a8584 1
if { (eval echo "$as_me:8093: \"$ac_link\"") >&5
d8587 1
a8587 1
  echo "$as_me:8096: \$? = $ac_status" >&5
d8589 2
a8590 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8099: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8592 3
a8594 3
  echo "$as_me:8102: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
d8598 1
d8600 1
a8600 6
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
fi

d8603 5
a8607 1
eval "ac_res=\$ac_cv_funclib_hstrerror"
d8609 8
d8619 1
a8619 1
for ac_func in hstrerror
d8621 2
a8622 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8124: checking for $ac_func" >&5
d8624 1
a8624 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8628 1
a8628 1
#line 8130 "configure"
d8659 1
a8659 1
if { (eval echo "$as_me:8161: \"$ac_link\"") >&5
d8662 1
a8662 1
  echo "$as_me:8164: \$? = $ac_status" >&5
d8664 2
a8665 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8167: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8667 3
a8669 3
  echo "$as_me:8170: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8673 1
a8673 1
eval "$as_ac_var=no"
d8675 1
a8675 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8677 3
a8679 3
echo "$as_me:8180: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d8681 1
a8681 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a8687 4
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"
d8689 5
a8693 47
case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:8204: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:8210: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8224: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
fi

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
LIBOBJS="$LIBOBJS hstrerror.o"
fi

if test "$ac_cv_func_hstrerror" = yes; then

if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:8240: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
d8697 1
a8697 1
#line 8246 "configure"
d8699 11
a8709 3

#ifdef HAVE_NETDB_H
#include <netdb.h>
d8714 9
a8722 3
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);
d8728 3
a8730 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8264: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8732 1
a8732 1
  echo "$as_me:8267: \$? = $ac_status" >&5
d8734 2
a8735 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8270: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8737 3
a8739 3
  echo "$as_me:8273: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_hstrerror_noproto=yes"
d8743 1
a8743 1
eval "ac_cv_func_hstrerror_noproto=no"
d8745 1
a8745 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8746 2
echo "$as_me:8283: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
d8748 4
a8751 4
if test "$ac_cv_func_hstrerror_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_HSTRERROR_PROTO 1
d8754 6
d8761 2
d8764 6
a8769 10
fi

fi

if test "$ac_cv_func_asprintf" = yes; then

if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:8301: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
d8773 1
a8773 1
#line 8307 "configure"
d8775 11
a8786 2
#include <stdio.h>
#include <string.h>
d8790 8
a8797 3
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d8803 3
a8805 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8324: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8807 1
a8807 1
  echo "$as_me:8327: \$? = $ac_status" >&5
d8809 2
a8810 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8330: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8812 3
a8814 3
  echo "$as_me:8333: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_asprintf_noproto=yes"
d8818 1
a8818 1
eval "ac_cv_func_asprintf_noproto=no"
d8820 1
a8820 1
rm -f conftest.$ac_objext conftest.$ac_ext
d8822 5
a8826 7
echo "$as_me:8343: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6

if test "$ac_cv_func_asprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_ASPRINTF_PROTO 1
d8830 1
a8832 2
fi
if test "$ac_cv_func_vasprintf" = yes; then
d8834 5
a8838 4
if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:8359: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
d8842 1
a8842 1
#line 8365 "configure"
d8844 12
a8855 3

#include <stdio.h>
#include <string.h>
d8859 9
a8867 3
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);
d8873 3
a8875 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8382: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8877 1
a8877 1
  echo "$as_me:8385: \$? = $ac_status" >&5
d8879 2
a8880 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8388: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8882 3
a8884 3
  echo "$as_me:8391: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasprintf_noproto=yes"
d8888 1
a8888 1
eval "ac_cv_func_vasprintf_noproto=no"
d8890 1
a8890 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8891 2
echo "$as_me:8401: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
d8893 4
a8896 4
if test "$ac_cv_func_vasprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_VASPRINTF_PROTO 1
d8899 6
d8906 2
d8909 6
a8914 8
fi
fi
if test "$ac_cv_func_asnprintf" = yes; then

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:8417: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
d8918 1
a8918 1
#line 8423 "configure"
d8920 11
a8931 2
#include <stdio.h>
#include <string.h>
d8935 8
a8942 3
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
d8948 3
a8950 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8440: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8952 1
a8952 1
  echo "$as_me:8443: \$? = $ac_status" >&5
d8954 2
a8955 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8446: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d8957 3
a8959 3
  echo "$as_me:8449: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_asnprintf_noproto=yes"
d8963 1
a8963 1
eval "ac_cv_func_asnprintf_noproto=no"
d8965 1
a8965 1
rm -f conftest.$ac_objext conftest.$ac_ext
d8967 5
a8971 7
echo "$as_me:8459: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6

if test "$ac_cv_func_asnprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_ASNPRINTF_PROTO 1
d8975 1
a8977 2
fi
if test "$ac_cv_func_vasnprintf" = yes; then
d8979 3
a8981 4
if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:8475: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
d8984 3
a8986 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8481 "configure"
d8988 2
a8989 3

#include <stdio.h>
#include <string.h>
d8993 1
a8993 4
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);

d8999 1
a8999 1
if { (eval echo "$as_me:8498: \"$ac_compile\"") >&5
d9002 1
a9002 1
  echo "$as_me:8501: \$? = $ac_status" >&5
d9004 2
a9005 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8504: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9007 3
a9009 3
  echo "$as_me:8507: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasnprintf_noproto=yes"
d9013 1
a9013 1
eval "ac_cv_func_vasnprintf_noproto=no"
d9017 3
a9019 4
echo "$as_me:8517: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6

if test "$ac_cv_func_vasnprintf_noproto" = yes; then
d9022 1
a9022 1
#define NEED_VASNPRINTF_PROTO 1
d9027 1
a9027 2
fi
fi
d9029 3
a9031 3
echo "$as_me:8531: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap16+set}" = set; then
d9034 13
d9048 8
a9055 16
if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8549 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
d9057 5
a9061 6
int
main ()
{
bswap16(0)
  ;
  return 0;
d9063 1
d9065 2
a9066 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8563: \"$ac_link\"") >&5
d9069 3
a9071 5
  echo "$as_me:8566: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8569: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9073 3
a9075 3
  echo "$as_me:8572: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
d9077 2
a9078 1
  echo "$as_me: failed program was:" >&5
d9080 3
a9083 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
d9085 5
a9089 1

d9092 4
a9095 10
eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then

for ac_func in bswap16
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8594: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9099 1
a9099 1
#line 8600 "configure"
d9101 1
a9101 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9105 3
a9107 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9113 3
a9115 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8631: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9117 1
a9117 1
  echo "$as_me:8634: \$? = $ac_status" >&5
d9119 2
a9120 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9122 3
a9124 3
  echo "$as_me:8640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9128 1
a9128 1
eval "$as_ac_var=no"
d9130 1
a9130 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9132 7
a9138 5
echo "$as_me:8650: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9141 1
done
a9143 4
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"
d9145 4
a9148 36
case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:8674: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	echo "$as_me:8680: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8694: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:8699: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap32+set}" = set; then
d9151 2
a9152 14

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8717 "configure"
d9154 1
a9154 3
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
d9158 4
a9161 1
bswap32(0)
d9166 3
a9168 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9170 1
a9170 1
  echo "$as_me:8734: \$? = $ac_status" >&5
d9172 2
a9173 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8737: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9175 3
a9177 3
  echo "$as_me:8740: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
d9181 1
d9183 1
a9183 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
d9185 8
d9196 1
a9196 1
eval "ac_res=\$ac_cv_funclib_bswap32"
d9198 4
a9201 8
if false; then

for ac_func in bswap32
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8762: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9205 1
a9205 1
#line 8768 "configure"
d9207 1
a9207 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9211 3
a9213 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9219 3
a9221 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8799: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9223 1
a9223 1
  echo "$as_me:8802: \$? = $ac_status" >&5
d9225 2
a9226 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8805: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9228 3
a9230 3
  echo "$as_me:8808: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9234 1
a9234 1
eval "$as_ac_var=no"
d9236 1
a9236 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9238 7
a9244 5
echo "$as_me:8818: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9247 1
done
a9249 4
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"
d9251 4
a9254 36
case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:8842: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	echo "$as_me:8848: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8862: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:8867: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
d9257 2
a9258 14

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8885 "configure"
d9260 1
a9260 3
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
d9264 4
a9267 1
pidfile(0)
d9272 3
a9274 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8899: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9276 1
a9276 1
  echo "$as_me:8902: \$? = $ac_status" >&5
d9278 2
a9279 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8905: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9281 3
a9283 3
  echo "$as_me:8908: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d9287 1
d9289 1
a9289 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d9291 8
d9302 1
a9302 1
eval "ac_res=\$ac_cv_funclib_pidfile"
d9304 4
a9307 8
if false; then

for ac_func in pidfile
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8930: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9311 1
a9311 1
#line 8936 "configure"
d9313 1
a9313 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9317 3
a9319 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9325 3
a9327 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8967: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9329 1
a9329 1
  echo "$as_me:8970: \$? = $ac_status" >&5
d9331 2
a9332 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8973: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9334 3
a9336 3
  echo "$as_me:8976: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9340 1
a9340 1
eval "$as_ac_var=no"
d9342 1
a9342 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9344 7
a9350 5
echo "$as_me:8986: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9353 1
done
a9355 4
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"
d9357 56
a9412 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9414 2
a9415 14
	echo "$as_me:9010: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:9016: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9418 1
a9418 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d9420 1
a9420 4
	echo "$as_me:9030: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d9422 3
a9424 3
echo "$as_me:9035: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
d9428 1
a9428 1
if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
d9430 6
a9435 8
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d9438 1
a9438 1
#line 9053 "configure"
d9440 1
a9440 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d9444 1
a9444 1
getaddrinfo(0,0,0,0)
d9450 1
a9450 1
if { (eval echo "$as_me:9067: \"$ac_link\"") >&5
d9453 1
a9453 1
  echo "$as_me:9070: \$? = $ac_status" >&5
d9455 2
a9456 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9073: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9458 3
a9460 3
  echo "$as_me:9076: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
d9465 1
a9465 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9467 1
a9467 1
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
d9473 1
a9473 1
eval "ac_res=\$ac_cv_funclib_getaddrinfo"
d9477 1
a9477 1
for ac_func in getaddrinfo
d9479 2
a9480 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9098: checking for $ac_func" >&5
d9482 1
a9482 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9486 1
a9486 1
#line 9104 "configure"
d9517 1
a9517 1
if { (eval echo "$as_me:9135: \"$ac_link\"") >&5
d9520 1
a9520 1
  echo "$as_me:9138: \$? = $ac_status" >&5
d9522 2
a9523 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9141: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9525 3
a9527 3
  echo "$as_me:9144: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9531 1
a9531 1
eval "$as_ac_var=no"
d9533 1
a9533 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9535 3
a9537 3
echo "$as_me:9154: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d9539 1
a9539 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9546 2
a9547 2
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d9549 1
a9549 1
eval "LIB_getaddrinfo=$ac_res"
d9553 2
a9554 2
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
d9559 1
a9559 1
	echo "$as_me:9178: result: yes" >&5
d9563 3
a9565 3
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	echo "$as_me:9184: result: no" >&5
d9569 1
a9569 1
	eval "ac_cv_func_getaddrinfo=yes"
d9579 1
a9579 1
	echo "$as_me:9198: result: yes, in $ac_res" >&5
d9584 3
a9586 11
if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
fi

if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
LIBOBJS="$LIBOBJS getaddrinfo.o"
fi

echo "$as_me:9211: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getnameinfo+set}" = set; then
d9589 3
d9593 12
a9604 14
if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 9229 "configure"
#include "confdefs.h"
d9608 1
d9612 1
a9612 1
getnameinfo(0,0,0,0,0,0,0)
d9617 3
a9619 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9243: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9621 1
a9621 1
  echo "$as_me:9246: \$? = $ac_status" >&5
d9623 2
a9624 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9249: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9626 3
a9628 3
  echo "$as_me:9252: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
d9632 1
d9634 1
a9634 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
	LIBS="$ac_save_LIBS"
d9636 2
d9639 1
a9639 1
fi
d9641 3
a9643 1
eval "ac_res=\$ac_cv_funclib_getnameinfo"
d9645 1
a9645 1
if false; then
d9647 3
a9649 6
for ac_func in getnameinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9274: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9653 1
a9653 1
#line 9280 "configure"
d9655 15
a9669 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a9670 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9675 1
a9675 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9680 3
a9682 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9311: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9684 1
a9684 1
  echo "$as_me:9314: \$? = $ac_status" >&5
d9686 2
a9687 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9317: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9689 3
a9691 3
  echo "$as_me:9320: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9695 1
a9695 1
eval "$as_ac_var=no"
d9697 1
a9697 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9699 7
a9705 5
echo "$as_me:9330: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9708 1
done
d9710 3
a9712 50
fi
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getnameinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:9354: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	echo "$as_me:9360: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getnameinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:9374: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
fi

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
LIBOBJS="$LIBOBJS getnameinfo.o"
fi

echo "$as_me:9387: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
d9715 3
d9719 12
a9730 14
if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 9405 "configure"
#include "confdefs.h"
d9734 1
d9738 1
a9738 1
freeaddrinfo(0)
d9743 3
a9745 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9419: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9747 1
a9747 1
  echo "$as_me:9422: \$? = $ac_status" >&5
d9749 2
a9750 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9425: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9752 3
a9754 3
  echo "$as_me:9428: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
d9758 1
d9760 1
a9760 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d9762 2
d9765 1
a9765 1
fi
d9767 3
a9769 1
eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
d9771 1
a9771 1
if false; then
d9773 3
a9775 6
for ac_func in freeaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9450: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9779 1
a9779 1
#line 9456 "configure"
d9781 6
a9786 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a9787 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9792 1
a9792 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9797 3
a9799 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9487: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9801 1
a9801 1
  echo "$as_me:9490: \$? = $ac_status" >&5
d9803 2
a9804 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9493: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9806 3
a9808 3
  echo "$as_me:9496: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9812 1
a9812 1
eval "$as_ac_var=no"
d9814 1
a9814 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9816 2
a9817 6
echo "$as_me:9506: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d9819 1
a9819 2
fi
done
d9821 2
a9822 32
fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:9530: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	echo "$as_me:9536: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
a9824 7
	echo "$as_me:9550: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
d9827 3
a9829 7
if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
LIBOBJS="$LIBOBJS freeaddrinfo.o"
fi

echo "$as_me:9563: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
if test "${ac_cv_funclib_gai_strerror+set}" = set; then
d9832 3
d9836 2
a9837 16
if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 9581 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
d9839 1
d9843 1
a9843 1
gai_strerror(0)
d9848 3
a9850 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9595: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9852 1
a9852 1
  echo "$as_me:9598: \$? = $ac_status" >&5
d9854 2
a9855 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9601: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9857 3
a9859 3
  echo "$as_me:9604: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
d9863 1
d9865 1
a9865 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
d9867 2
d9870 1
a9870 1
fi
d9872 3
a9874 1
eval "ac_res=\$ac_cv_funclib_gai_strerror"
d9876 1
a9876 1
if false; then
d9878 4
a9881 6
for ac_func in gai_strerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9626: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9885 1
a9885 1
#line 9632 "configure"
d9887 6
a9892 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a9893 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9898 3
a9900 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9906 3
a9908 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9663: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9910 1
a9910 1
  echo "$as_me:9666: \$? = $ac_status" >&5
d9912 2
a9913 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9669: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d9915 3
a9917 3
  echo "$as_me:9672: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9921 1
a9921 1
eval "$as_ac_var=no"
d9923 1
a9923 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9925 7
a9931 5
echo "$as_me:9682: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9934 1
done
a9936 4
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"
d9938 9
a9946 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9948 1
a9948 15
	echo "$as_me:9706: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	echo "$as_me:9712: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9950 37
a9986 2
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
a9988 7
	echo "$as_me:9726: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
a9990 2
if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
LIBOBJS="$LIBOBJS gai_strerror.o"
d9993 4
a9996 73
for ac_func in 					\
	chown					\
	copyhostent				\
	daemon					\
	ecalloc					\
	emalloc					\
	erealloc				\
	estrdup					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freehostent				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	localtime_r				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9809: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10000 1
a10000 1
#line 9815 "configure"
d10002 2
a10003 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d10008 3
a10010 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10016 3
a10018 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9846: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10020 1
a10020 1
  echo "$as_me:9849: \$? = $ac_status" >&5
d10022 2
a10023 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9852: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10025 3
a10027 3
  echo "$as_me:9855: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d10031 1
a10031 1
eval "$as_ac_var=no"
d10033 1
a10033 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10035 4
a10038 3
echo "$as_me:9865: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d10040 2
a10041 3
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
a10043 2
else
  LIBOBJS="$LIBOBJS ${ac_func}.o"
d10046 1
a10046 1
if false; then
d10048 3
a10050 73
for ac_func in \
	chown					\
	copyhostent				\
	daemon					\
	ecalloc					\
	emalloc					\
	erealloc				\
	estrdup					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freehostent				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	localtime_r				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9950: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10053 3
a10055 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9956 "configure"
d10057 2
a10058 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10062 1
a10062 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10068 1
a10068 1
if { (eval echo "$as_me:9987: \"$ac_link\"") >&5
d10071 1
a10071 1
  echo "$as_me:9990: \$? = $ac_status" >&5
d10073 2
a10074 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9993: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10076 3
a10078 3
  echo "$as_me:9996: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d10082 1
a10082 1
eval "$as_ac_var=no"
d10084 2
a10085 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10086 6
echo "$as_me:10006: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d10088 4
a10091 2
fi
done
d10093 3
a10095 2
fi
done
d10097 3
a10099 5
for ac_func in inet_aton
do
echo "$as_me:10021: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
d10102 3
a10104 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10027 "configure"
d10109 2
a10110 8
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d10112 1
d10116 1
a10116 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
$ac_func(0,0)
#endif

d10121 3
a10123 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10059: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10125 1
a10125 1
  echo "$as_me:10062: \$? = $ac_status" >&5
d10127 2
a10128 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10130 3
a10132 3
  echo "$as_me:10068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_$ac_func=yes"
d10136 1
a10136 1
eval "ac_cv_func_$ac_func=no"
d10138 2
a10139 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10142 6
a10147 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
a10149 6
  echo "$as_me:10085: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:10088: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a10150 2
done
if false; then
d10152 5
a10156 6
for ac_func in inet_aton
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:10098: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10159 3
a10161 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10104 "configure"
d10163 2
a10164 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10168 1
a10168 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10174 1
a10174 1
if { (eval echo "$as_me:10135: \"$ac_link\"") >&5
d10177 1
a10177 1
  echo "$as_me:10138: \$? = $ac_status" >&5
d10179 2
a10180 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10141: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10182 3
a10184 3
  echo "$as_me:10144: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d10188 1
a10188 1
eval "$as_ac_var=no"
d10190 2
a10191 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10192 6
echo "$as_me:10154: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d10194 4
a10197 2
fi
done
d10199 3
a10201 1
fi
d10203 3
a10205 5
for ac_func in inet_ntop
do
echo "$as_me:10168: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
d10208 3
a10210 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10174 "configure"
d10212 2
a10213 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d10215 1
d10219 1
a10219 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
$ac_func(0, 0, 0, 0)
#endif

d10224 3
a10226 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10206: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10228 1
a10228 1
  echo "$as_me:10209: \$? = $ac_status" >&5
d10230 2
a10231 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10212: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10233 3
a10235 3
  echo "$as_me:10215: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_$ac_func=yes"
d10239 1
a10239 1
eval "ac_cv_func_$ac_func=no"
d10241 2
a10242 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10245 6
a10250 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
a10252 6
  echo "$as_me:10232: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:10235: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a10253 2
done
if false; then
d10255 5
a10259 6
for ac_func in inet_ntop
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:10245: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10262 3
a10264 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10251 "configure"
d10266 2
a10267 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10271 1
a10271 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10277 1
a10277 1
if { (eval echo "$as_me:10282: \"$ac_link\"") >&5
d10280 1
a10280 1
  echo "$as_me:10285: \$? = $ac_status" >&5
d10282 2
a10283 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10288: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10285 3
a10287 3
  echo "$as_me:10291: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d10291 1
a10291 1
eval "$as_ac_var=no"
d10293 2
a10294 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10295 6
echo "$as_me:10301: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d10297 4
a10300 2
fi
done
d10302 3
a10304 1
fi
d10306 3
a10308 5
for ac_func in inet_pton
do
echo "$as_me:10315: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
d10311 3
a10313 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10321 "configure"
d10315 2
a10316 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d10318 1
d10322 1
a10322 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
$ac_func(0,0,0)
#endif

d10327 5
a10331 5
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10353: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10356: \$? = $ac_status" >&5
d10333 2
a10334 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10359: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10336 3
a10338 3
  echo "$as_me:10362: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_$ac_func=yes"
d10342 1
a10342 1
eval "ac_cv_func_$ac_func=no"
d10344 2
a10345 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10348 6
a10353 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
a10355 6
  echo "$as_me:10379: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:10382: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a10356 2
done
if false; then
d10358 5
a10362 6
for ac_func in inet_pton
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:10392: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10365 3
a10367 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10398 "configure"
d10369 2
a10370 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10374 1
a10374 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10380 1
a10380 1
if { (eval echo "$as_me:10429: \"$ac_link\"") >&5
d10383 1
a10383 1
  echo "$as_me:10432: \$? = $ac_status" >&5
d10385 2
a10386 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10435: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10388 3
a10390 3
  echo "$as_me:10438: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d10394 1
a10394 1
eval "$as_ac_var=no"
d10396 2
a10397 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a10398 6
echo "$as_me:10448: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d10400 4
a10403 2
fi
done
d10405 3
a10407 1
fi
d10409 3
a10411 3
echo "$as_me:10460: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
d10416 1
a10416 1
#line 10467 "configure"
d10418 4
a10421 2
#include <sys/types.h>
#include <sys/socket.h>
d10425 1
a10425 1
struct sockaddr x; x.sa_len;
d10431 1
a10431 1
if { (eval echo "$as_me:10480: \"$ac_compile\"") >&5
d10434 1
a10434 1
  echo "$as_me:10483: \$? = $ac_status" >&5
d10436 2
a10437 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10486: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10439 3
a10441 3
  echo "$as_me:10489: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr_sa_len=yes
d10445 1
a10445 1
ac_cv_type_struct_sockaddr_sa_len=no
d10448 1
d10450 4
a10453 3
echo "$as_me:10499: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
d10456 1
a10456 1
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
d10461 1
a10461 1
if test "$ac_cv_func_getnameinfo" = "yes"; then
d10463 3
a10465 3
echo "$as_me:10511: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
d10468 3
a10470 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:10517: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10522 "configure"
d10472 5
a10476 6
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

d10478 1
a10478 1
main(int argc, char **argv)
d10480 3
a10482 11
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
a10483 1

d10485 3
a10487 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10548: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10489 4
a10492 4
  echo "$as_me:10551: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10553: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10494 3
a10496 3
  echo "$as_me:10556: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getnameinfo_broken=no
d10498 1
a10498 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d10500 1
a10500 1
ac_cv_func_getnameinfo_broken=yes
d10502 2
a10503 8
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:10568: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
    LIBOBJS="$LIBOBJS getnameinfo.o"
  fi
d10506 3
a10508 1
if test "$ac_cv_func_getaddrinfo" = "yes"; then
d10510 3
a10512 30
echo "$as_me:10577: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:10583: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10588 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

int
main(int argc, char **argv)
{
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) == EAI_SERVICE)
		return 1;
	return 0;
}
a10513 27
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10610: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10613: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10615: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10618: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getaddrinfo_numserv=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getaddrinfo_numserv=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:10630: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
    LIBOBJS="$LIBOBJS getaddrinfo.o freeaddrinfo.o"
  fi
d10516 3
a10518 4
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:10638: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
d10521 3
a10523 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10644 "configure"
d10526 4
d10533 1
a10533 4
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);

d10539 1
a10539 1
if { (eval echo "$as_me:10659: \"$ac_compile\"") >&5
d10542 1
a10542 1
  echo "$as_me:10662: \$? = $ac_status" >&5
d10544 2
a10545 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10665: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10547 3
a10549 3
  echo "$as_me:10668: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_setenv_noproto=yes"
d10553 1
a10553 1
eval "ac_cv_func_setenv_noproto=no"
d10556 1
a10557 2
echo "$as_me:10678: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
d10559 3
a10561 1
if test "$ac_cv_func_setenv_noproto" = yes; then
d10564 1
a10564 1
#define NEED_SETENV_PROTO 1
d10569 3
a10571 6
fi

if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:10692: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
d10574 3
a10576 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10698 "configure"
d10579 4
d10586 1
a10586 4
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);

d10592 1
a10592 1
if { (eval echo "$as_me:10713: \"$ac_compile\"") >&5
d10595 1
a10595 1
  echo "$as_me:10716: \$? = $ac_status" >&5
d10597 2
a10598 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10719: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10600 3
a10602 3
  echo "$as_me:10722: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_unsetenv_noproto=yes"
d10606 1
a10606 1
eval "ac_cv_func_unsetenv_noproto=no"
d10609 1
a10610 2
echo "$as_me:10732: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
d10612 3
a10614 1
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d10617 1
a10617 1
#define NEED_UNSETENV_PROTO 1
d10622 3
a10624 6
fi

if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:10746: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
d10627 3
a10629 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10752 "configure"
d10631 2
d10634 2
d10639 1
a10639 4
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

d10645 1
a10645 1
if { (eval echo "$as_me:10767: \"$ac_compile\"") >&5
d10648 1
a10648 1
  echo "$as_me:10770: \$? = $ac_status" >&5
d10650 2
a10651 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10773: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10653 3
a10655 3
  echo "$as_me:10776: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_gethostname_noproto=yes"
d10659 1
a10659 1
eval "ac_cv_func_gethostname_noproto=no"
d10662 1
a10663 2
echo "$as_me:10786: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
d10665 3
a10667 1
if test "$ac_cv_func_gethostname_noproto" = yes; then
d10670 1
a10670 1
#define NEED_GETHOSTNAME_PROTO 1
d10675 3
a10677 6
fi

if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:10800: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
d10680 3
a10682 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10806 "configure"
d10684 2
a10685 1
#include <unistd.h>
d10689 1
a10689 4
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

d10695 1
a10695 1
if { (eval echo "$as_me:10821: \"$ac_compile\"") >&5
d10698 1
a10698 1
  echo "$as_me:10824: \$? = $ac_status" >&5
d10700 2
a10701 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10827: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10703 3
a10705 3
  echo "$as_me:10830: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_mkstemp_noproto=yes"
d10709 1
a10709 1
eval "ac_cv_func_mkstemp_noproto=no"
d10712 1
a10713 2
echo "$as_me:10840: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
d10715 3
a10717 1
if test "$ac_cv_func_mkstemp_noproto" = yes; then
d10720 1
a10720 1
#define NEED_MKSTEMP_PROTO 1
d10725 3
a10727 6
fi

if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:10854: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
d10730 3
a10732 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10860 "configure"
d10734 1
a10734 1
#include <unistd.h>
d10738 1
a10738 4
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);

d10744 1
a10744 1
if { (eval echo "$as_me:10875: \"$ac_compile\"") >&5
d10747 1
a10747 1
  echo "$as_me:10878: \$? = $ac_status" >&5
d10749 2
a10750 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10881: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10752 3
a10754 3
  echo "$as_me:10884: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_getusershell_noproto=yes"
d10758 1
a10758 1
eval "ac_cv_func_getusershell_noproto=no"
d10762 3
a10764 4
echo "$as_me:10894: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6

if test "$ac_cv_func_getusershell_noproto" = yes; then
d10767 1
a10767 1
#define NEED_GETUSERSHELL_PROTO 1
d10772 3
a10774 6
fi

if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:10908: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
d10777 3
a10779 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10914 "configure"
d10781 1
a10781 13

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d10785 1
a10785 4
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

d10791 1
a10791 1
if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5
d10794 1
a10794 1
  echo "$as_me:10944: \$? = $ac_status" >&5
d10796 2
a10797 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10947: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10799 3
a10801 3
  echo "$as_me:10950: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_inet_aton_noproto=yes"
d10805 1
a10805 1
eval "ac_cv_func_inet_aton_noproto=no"
d10809 3
a10811 4
echo "$as_me:10960: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6

if test "$ac_cv_func_inet_aton_noproto" = yes; then
d10814 1
a10814 1
#define NEED_INET_ATON_PROTO 1
d10819 3
a10821 5
fi

echo "$as_me:10973: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
d10825 2
a10826 13
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 10991 "configure"
d10828 2
a10829 1

d10833 1
a10833 1
crypt()
d10839 1
a10839 1
if { (eval echo "$as_me:11003: \"$ac_link\"") >&5
d10842 1
a10842 1
  echo "$as_me:11006: \$? = $ac_status" >&5
d10844 2
a10845 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11009: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10847 3
a10849 3
  echo "$as_me:11012: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d10853 1
d10855 1
a10855 5
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
fi
d10859 4
a10862 1
eval "ac_res=\$ac_cv_funclib_crypt"
d10864 3
a10866 1
if false; then
d10868 3
a10870 6
for ac_func in crypt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:11034: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10873 3
a10875 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11040 "configure"
d10877 2
a10878 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10882 1
a10882 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10887 3
a10889 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11071: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10891 1
a10891 1
  echo "$as_me:11074: \$? = $ac_status" >&5
d10893 2
a10894 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11077: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10896 3
a10898 3
  echo "$as_me:11080: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d10902 1
a10902 1
eval "$as_ac_var=no"
d10904 1
a10904 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11090: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
a10906 1
done
d10908 3
a10910 5
fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"
d10912 2
a10913 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d10916 1
a10916 15
	echo "$as_me:11114: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:11120: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d10918 1
a10918 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d10920 4
a10923 8
	echo "$as_me:11134: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:11139: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
d10927 1
a10927 1
#line 11145 "configure"
a10928 2

#ifdef HAVE_SYS_TYPES_H
d10930 3
a10933 1
#ifdef HAVE_SYS_SOCKET_H
a10934 11
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d10938 1
a10938 1
struct hostent *gethostbyname(const char *);
d10944 1
a10944 1
if { (eval echo "$as_me:11173: \"$ac_compile\"") >&5
d10947 1
a10947 1
  echo "$as_me:11176: \$? = $ac_status" >&5
d10949 2
a10950 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11179: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10952 3
a10954 3
  echo "$as_me:11182: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
d10958 1
a10958 1
eval "ac_cv_func_gethostbyname_proto_compat=no"
d10962 9
a10970 14
echo "$as_me:11192: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6

if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
EOF

fi

echo "$as_me:11203: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
d10974 1
a10974 1
#line 11209 "configure"
d10976 1
a10976 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d10980 4
a10983 1
struct hostent *gethostbyaddr(const void *, size_t, int);
d10989 1
a10989 1
if { (eval echo "$as_me:11237: \"$ac_compile\"") >&5
d10992 1
a10992 1
  echo "$as_me:11240: \$? = $ac_status" >&5
d10994 2
a10995 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11243: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d10997 3
a10999 3
  echo "$as_me:11246: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
d11003 1
a11003 1
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d11007 9
a11015 2
echo "$as_me:11256: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
d11017 1
a11017 1
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
d11019 2
a11020 2
cat >>confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
d11025 4
a11028 3
echo "$as_me:11267: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
d11032 1
a11032 1
#line 11273 "configure"
a11033 2

#ifdef HAVE_SYS_TYPES_H
d11035 3
a11038 1
#ifdef HAVE_SYS_SOCKET_H
a11039 11
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d11043 1
a11043 1
struct servent *getservbyname(const char *, const char *);
d11049 1
a11049 1
if { (eval echo "$as_me:11301: \"$ac_compile\"") >&5
d11052 1
a11052 1
  echo "$as_me:11304: \$? = $ac_status" >&5
d11054 2
a11055 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11307: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11057 3
a11059 3
  echo "$as_me:11310: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_getservbyname_proto_compat=yes"
d11063 1
a11063 1
eval "ac_cv_func_getservbyname_proto_compat=no"
d11067 9
a11075 14
echo "$as_me:11320: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
EOF

fi

echo "$as_me:11331: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
d11079 1
a11079 1
#line 11337 "configure"
d11081 1
a11081 8

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

d11085 4
a11088 1
int getsockname(int, struct sockaddr*, socklen_t*);
d11094 1
a11094 1
if { (eval echo "$as_me:11356: \"$ac_compile\"") >&5
d11097 1
a11097 1
  echo "$as_me:11359: \$? = $ac_status" >&5
d11099 2
a11100 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11362: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11102 3
a11104 3
  echo "$as_me:11365: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_getsockname_proto_compat=yes"
d11108 1
a11108 1
eval "ac_cv_func_getsockname_proto_compat=no"
d11112 9
a11120 2
echo "$as_me:11375: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
d11122 1
a11122 1
if test "$ac_cv_func_getsockname_proto_compat" = yes; then
d11124 2
a11125 2
cat >>confdefs.h <<\EOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
d11130 4
a11133 3
echo "$as_me:11386: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
d11137 1
a11137 1
#line 11392 "configure"
d11139 4
a11142 3

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
d11144 1
a11144 1

d11148 1
a11148 1
void openlog(const char *, int, int);
d11154 1
a11154 1
if { (eval echo "$as_me:11408: \"$ac_compile\"") >&5
d11157 1
a11157 1
  echo "$as_me:11411: \$? = $ac_status" >&5
d11159 2
a11160 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11414: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11162 3
a11164 3
  echo "$as_me:11417: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_openlog_proto_compat=yes"
d11168 1
a11168 1
eval "ac_cv_func_openlog_proto_compat=no"
d11172 9
a11180 15
echo "$as_me:11427: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6

if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define OPENLOG_PROTO_COMPATIBLE 1
EOF

fi

if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:11439: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
d11184 1
a11184 1
#line 11445 "configure"
d11186 1
a11186 8

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

d11190 4
a11193 4
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

d11199 1
a11199 1
if { (eval echo "$as_me:11467: \"$ac_compile\"") >&5
d11202 1
a11202 1
  echo "$as_me:11470: \$? = $ac_status" >&5
d11204 2
a11205 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11473: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11207 3
a11209 3
  echo "$as_me:11476: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_crypt_noproto=yes"
d11213 1
a11213 1
eval "ac_cv_func_crypt_noproto=no"
d11217 3
a11219 2
echo "$as_me:11486: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
d11221 3
a11223 1
if test "$ac_cv_func_crypt_noproto" = yes; then
d11225 1
a11225 3
cat >>confdefs.h <<\EOF
#define NEED_CRYPT_PROTO 1
EOF
d11229 4
d11235 4
a11238 4
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:11500: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
d11242 1
a11242 1
#line 11506 "configure"
d11244 7
a11250 4

#include <string.h>

int
d11253 1
a11253 4
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

d11259 1
a11259 1
if { (eval echo "$as_me:11523: \"$ac_compile\"") >&5
d11262 1
a11262 1
  echo "$as_me:11526: \$? = $ac_status" >&5
d11264 2
a11265 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11529: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11267 3
a11269 3
  echo "$as_me:11532: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_strtok_r_noproto=yes"
d11273 1
a11273 1
eval "ac_cv_func_strtok_r_noproto=no"
d11277 9
a11285 17
echo "$as_me:11542: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6

if test "$ac_cv_func_strtok_r_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_STRTOK_R_PROTO 1
EOF

fi

fi

if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:11556: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
d11289 1
a11289 1
#line 11562 "configure"
d11291 1
a11291 3

#include <string.h>

d11295 4
a11298 4
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);

d11304 1
a11304 1
if { (eval echo "$as_me:11579: \"$ac_compile\"") >&5
d11307 1
a11307 1
  echo "$as_me:11582: \$? = $ac_status" >&5
d11309 2
a11310 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11585: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11312 3
a11314 3
  echo "$as_me:11588: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_strsep_noproto=yes"
d11318 1
a11318 1
eval "ac_cv_func_strsep_noproto=no"
d11322 3
a11324 2
echo "$as_me:11598: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
d11326 3
a11328 1
if test "$ac_cv_func_strsep_noproto" = yes; then
d11330 1
a11330 3
cat >>confdefs.h <<\EOF
#define NEED_STRSEP_PROTO 1
EOF
d11334 4
d11340 4
a11343 3
echo "$as_me:11611: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
d11346 2
a11347 3

cat >conftest.$ac_ext <<_ACEOF
#line 11618 "configure"
d11349 6
a11354 2
extern int h_errno;
int foo() { return h_errno; }
d11358 1
a11358 1
foo()
d11363 3
a11365 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11631: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11367 1
a11367 1
  echo "$as_me:11634: \$? = $ac_status" >&5
d11369 2
a11370 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11372 3
a11374 3
  echo "$as_me:11640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_errno=yes
d11378 1
a11378 1
ac_cv_var_h_errno=no
d11380 1
a11380 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d11382 2
a11383 3

ac_foo=`eval echo \\$ac_cv_var_h_errno`
echo "$as_me:11653: result: $ac_foo" >&5
d11386 5
a11390 8

cat >>confdefs.h <<EOF
#define HAVE_H_ERRNO 1
EOF

echo "$as_me:11661: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
d11393 2
a11394 3

cat >conftest.$ac_ext <<_ACEOF
#line 11668 "configure"
d11396 1
a11396 7
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
d11400 4
a11403 1
h_errno.foo = 1;
d11409 1
a11409 1
if { (eval echo "$as_me:11686: \"$ac_compile\"") >&5
d11412 1
a11412 1
  echo "$as_me:11689: \$? = $ac_status" >&5
d11414 2
a11415 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11692: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11417 3
a11419 3
  echo "$as_me:11695: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_h_errno_declaration=no"
d11423 1
a11423 1
eval "ac_cv_var_h_errno_declaration=yes"
d11426 8
d11437 1
a11437 3
echo "$as_me:11707: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
d11439 2
a11440 2
cat >>confdefs.h <<\EOF
#define HAVE_H_ERRNO_DECLARATION 1
d11445 4
a11448 5
fi

echo "$as_me:11719: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
d11451 2
a11452 3

cat >conftest.$ac_ext <<_ACEOF
#line 11726 "configure"
d11454 6
a11459 2
extern int h_errlist;
int foo() { return h_errlist; }
d11463 1
a11463 1
foo()
d11468 3
a11470 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11739: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11472 1
a11472 1
  echo "$as_me:11742: \$? = $ac_status" >&5
d11474 2
a11475 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11745: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11477 3
a11479 3
  echo "$as_me:11748: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_errlist=yes
d11483 1
a11483 1
ac_cv_var_h_errlist=no
d11485 1
a11485 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d11487 2
a11488 3

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
echo "$as_me:11761: result: $ac_foo" >&5
d11491 5
a11495 8

cat >>confdefs.h <<EOF
#define HAVE_H_ERRLIST 1
EOF

echo "$as_me:11769: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
d11498 2
a11499 3

cat >conftest.$ac_ext <<_ACEOF
#line 11776 "configure"
d11501 1
a11501 4
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
d11505 4
a11508 1
h_errlist.foo = 1;
d11514 1
a11514 1
if { (eval echo "$as_me:11791: \"$ac_compile\"") >&5
d11517 1
a11517 1
  echo "$as_me:11794: \$? = $ac_status" >&5
d11519 2
a11520 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11797: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11522 3
a11524 3
  echo "$as_me:11800: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_h_errlist_declaration=no"
d11528 1
a11528 1
eval "ac_cv_var_h_errlist_declaration=yes"
d11531 8
d11542 1
a11542 3
echo "$as_me:11812: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
d11544 2
a11545 2
cat >>confdefs.h <<\EOF
#define HAVE_H_ERRLIST_DECLARATION 1
d11550 3
a11552 5
fi

echo "$as_me:11824: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
d11556 2
d11559 1
a11559 1
#line 11831 "configure"
d11561 2
a11562 9
extern int h_nerr;
int foo() { return h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
d11564 3
a11566 17
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11844: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11847: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11850: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11853: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_nerr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_nerr=no
d11568 2
a11569 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d11573 1
a11573 4
ac_foo=`eval echo \\$ac_cv_var_h_nerr`
echo "$as_me:11866: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d11575 2
a11576 2
cat >>confdefs.h <<EOF
#define HAVE_H_NERR 1
d11579 3
a11581 6
echo "$as_me:11874: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

d11583 1
a11583 1
#line 11881 "configure"
d11585 2
a11586 11
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
int
main ()
{
h_nerr.foo = 1;
  ;
  return 0;
}
d11588 2
a11589 25
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11896: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11899: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11902: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11905: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_h_nerr_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_nerr_declaration=yes"
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:11917: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
d11592 1
a11592 1
#define HAVE_H_NERR_DECLARATION 1
d11596 1
a11596 8

fi

echo "$as_me:11929: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11599 1
a11599 1
#line 11936 "configure"
d11601 2
a11602 9
extern int __progname;
int foo() { return __progname; }
int
main ()
{
foo()
  ;
  return 0;
}
d11604 6
a11609 19
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11949: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11955: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11958: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var___progname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var___progname=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d11612 1
d11614 3
a11616 12
ac_foo=`eval echo \\$ac_cv_var___progname`
echo "$as_me:11971: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<EOF
#define HAVE___PROGNAME 1
EOF

echo "$as_me:11979: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
d11621 1
a11621 1
#line 11986 "configure"
d11623 3
a11625 2
#ifdef HAVE_ERR_H
#include <err.h>
a11626 1
extern struct { int foo; } __progname;
d11630 1
a11630 1
__progname.foo = 1;
d11636 1
a11636 1
if { (eval echo "$as_me:12001: \"$ac_compile\"") >&5
d11639 1
a11639 1
  echo "$as_me:12004: \$? = $ac_status" >&5
d11641 2
a11642 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12007: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11644 3
a11646 3
  echo "$as_me:12010: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var___progname_declaration=no"
d11650 1
a11650 1
eval "ac_cv_var___progname_declaration=yes"
d11656 4
a11659 3
echo "$as_me:12022: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
d11662 1
a11662 1
#define HAVE___PROGNAME_DECLARATION 1
d11667 31
d11699 24
d11724 10
a11733 5
echo "$as_me:12034: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11735 7
a11741 2
cat >conftest.$ac_ext <<_ACEOF
#line 12041 "configure"
d11743 1
a11743 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optarg;
d11747 1
a11747 1
optarg.foo = 1;
d11753 1
a11753 1
if { (eval echo "$as_me:12057: \"$ac_compile\"") >&5
d11756 1
a11756 1
  echo "$as_me:12060: \$? = $ac_status" >&5
d11758 2
a11759 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12063: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11761 3
a11763 3
  echo "$as_me:12066: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_optarg_declaration=no"
a11766 1
eval "ac_cv_var_optarg_declaration=yes"
d11769 5
a11773 21

fi

echo "$as_me:12078: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTARG_DECLARATION 1
EOF

fi

echo "$as_me:12088: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 12095 "configure"
d11775 1
a11775 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
d11779 1
a11779 1
optind.foo = 1;
d11784 3
a11786 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12111: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11788 1
a11788 1
  echo "$as_me:12114: \$? = $ac_status" >&5
d11790 2
a11791 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12117: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11793 3
a11795 3
  echo "$as_me:12120: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_optind_declaration=no"
a11798 1
eval "ac_cv_var_optind_declaration=yes"
d11800 4
a11803 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11805 5
a11809 1
fi
d11811 24
a11834 3
echo "$as_me:12132: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
d11836 11
a11846 3
cat >>confdefs.h <<\EOF
#define HAVE_OPTIND_DECLARATION 1
EOF
d11848 9
d11858 24
d11883 10
a11892 5
echo "$as_me:12142: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11894 7
a11900 2
cat >conftest.$ac_ext <<_ACEOF
#line 12149 "configure"
d11902 1
a11902 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
d11906 1
a11906 1
opterr.foo = 1;
d11912 1
a11912 1
if { (eval echo "$as_me:12165: \"$ac_compile\"") >&5
d11915 1
a11915 1
  echo "$as_me:12168: \$? = $ac_status" >&5
d11917 2
a11918 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12171: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11920 3
a11922 3
  echo "$as_me:12174: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_opterr_declaration=no"
a11925 1
eval "ac_cv_var_opterr_declaration=yes"
d11928 5
a11932 21

fi

echo "$as_me:12186: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTERR_DECLARATION 1
EOF

fi

echo "$as_me:12196: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 12203 "configure"
d11934 1
a11934 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
d11938 1
a11938 1
optopt.foo = 1;
d11943 3
a11945 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12219: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11947 1
a11947 1
  echo "$as_me:12222: \$? = $ac_status" >&5
d11949 2
a11950 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12225: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d11952 3
a11954 3
  echo "$as_me:12228: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_optopt_declaration=no"
a11957 1
eval "ac_cv_var_optopt_declaration=yes"
d11959 4
a11962 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11964 5
a11968 1
fi
d11970 2
a11971 6
echo "$as_me:12240: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTOPT_DECLARATION 1
d11974 9
d11985 11
a11995 3
echo "$as_me:12250: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
d11998 2
a11999 3

cat >conftest.$ac_ext <<_ACEOF
#line 12257 "configure"
d12001 1
a12001 2
#include <stdlib.h>
extern struct { int foo; } environ;
d12005 3
a12007 1
environ.foo = 1;
d12013 1
a12013 1
if { (eval echo "$as_me:12270: \"$ac_compile\"") >&5
d12016 1
a12016 1
  echo "$as_me:12273: \$? = $ac_status" >&5
d12018 2
a12019 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12276: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12021 3
a12023 3
  echo "$as_me:12279: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_environ_declaration=no"
d12027 1
a12027 1
eval "ac_cv_var_environ_declaration=yes"
d12032 3
a12034 4

echo "$as_me:12291: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
d12037 1
a12037 1
#define HAVE_ENVIRON_DECLARATION 1
d12040 1
a12040 1
fi
d12042 3
a12044 3
echo "$as_me:12301: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
d12047 2
a12048 3

cat >conftest.$ac_ext <<_ACEOF
#line 12308 "configure"
d12050 1
a12050 1
#include <time.h>
d12054 2
a12055 1
struct tm x; x.tm_gmtoff;
d12061 1
a12061 1
if { (eval echo "$as_me:12320: \"$ac_compile\"") >&5
d12064 1
a12064 1
  echo "$as_me:12323: \$? = $ac_status" >&5
d12066 2
a12067 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12326: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12069 3
a12071 3
  echo "$as_me:12329: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_tm_tm_gmtoff=yes
d12075 1
a12075 1
ac_cv_type_struct_tm_tm_gmtoff=no
d12078 1
d12080 3
a12082 3
echo "$as_me:12339: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
d12085 1
a12085 1
#define HAVE_STRUCT_TM_TM_GMTOFF 1
d12088 3
a12090 1
fi
d12092 4
a12095 3
echo "$as_me:12349: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
d12098 2
a12099 3

cat >conftest.$ac_ext <<_ACEOF
#line 12356 "configure"
d12101 1
a12101 1
#include <time.h>
d12105 2
a12106 1
struct tm x; x.tm_zone;
d12112 1
a12112 1
if { (eval echo "$as_me:12368: \"$ac_compile\"") >&5
d12115 1
a12115 1
  echo "$as_me:12371: \$? = $ac_status" >&5
d12117 2
a12118 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12374: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12120 3
a12122 3
  echo "$as_me:12377: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_tm_tm_zone=yes
d12126 1
a12126 1
ac_cv_type_struct_tm_tm_zone=no
d12129 1
d12131 3
a12133 3
echo "$as_me:12387: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
d12136 1
a12136 1
#define HAVE_STRUCT_TM_TM_ZONE 1
d12139 1
a12139 1
fi
d12141 3
a12143 3
echo "$as_me:12397: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
d12147 11
a12157 2
cat >conftest.$ac_ext <<_ACEOF
#line 12404 "configure"
d12159 1
a12159 2
extern int timezone;
int foo() { return timezone; }
d12163 1
a12163 1
foo()
d12169 1
a12169 1
if { (eval echo "$as_me:12417: \"$ac_link\"") >&5
d12172 1
a12172 1
  echo "$as_me:12420: \$? = $ac_status" >&5
d12174 2
a12175 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12423: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12177 3
a12179 3
  echo "$as_me:12426: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_timezone=yes
a12182 1
ac_cv_var_timezone=no
d12184 5
a12188 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12192 1
a12192 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:12439: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d12194 1
a12194 3
cat >>confdefs.h <<EOF
#define HAVE_TIMEZONE 1
EOF
d12196 6
a12201 3
echo "$as_me:12447: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
d12204 14
a12218 5
cat >conftest.$ac_ext <<_ACEOF
#line 12454 "configure"
#include "confdefs.h"
#include <time.h>
extern struct { int foo; } timezone;
d12222 9
a12230 1
timezone.foo = 1;
d12235 3
a12237 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12467: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12239 1
a12239 1
  echo "$as_me:12470: \$? = $ac_status" >&5
d12241 2
a12242 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12473: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12244 3
a12246 3
  echo "$as_me:12476: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_timezone_declaration=no"
d12250 11
a12260 1
eval "ac_cv_var_timezone_declaration=yes"
d12262 1
a12262 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12265 12
d12278 15
a12292 3
echo "$as_me:12488: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
d12294 2
a12295 2
cat >>confdefs.h <<\EOF
#define HAVE_TIMEZONE_DECLARATION 1
d12298 4
a12301 1
fi
d12303 2
d12307 3
a12309 4
cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:12501: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d12312 12
a12323 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12507 "configure"
d12325 1
a12325 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d12329 1
a12329 1
sa_family_t foo;
d12334 3
a12336 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12524: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12338 1
a12338 1
  echo "$as_me:12527: \$? = $ac_status" >&5
d12340 2
a12341 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12530: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12343 3
a12345 3
  echo "$as_me:12533: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
a12348 1
eval "ac_cv_type_$cv=no"
d12350 6
a12355 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12357 3
a12359 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12544: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d12361 7
a12367 3
	echo "$as_me:12549: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
d12371 1
a12371 1
#line 12555 "configure"
d12373 12
a12384 1
$ac_includes_default
d12388 9
a12396 4
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
d12401 3
a12403 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12570: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12405 1
a12405 1
  echo "$as_me:12573: \$? = $ac_status" >&5
d12407 2
a12408 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12576: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12410 3
a12412 3
  echo "$as_me:12579: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_sa_family_t=yes
d12416 1
a12416 1
ac_cv_type_sa_family_t=no
d12418 1
a12418 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12420 5
a12424 6
echo "$as_me:12589: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
d12428 1
d12431 28
d12460 2
a12461 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d12464 7
d12473 3
a12475 4
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:12608: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d12478 12
a12489 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12614 "configure"
d12491 1
a12491 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d12495 1
a12495 1
socklen_t foo;
d12500 3
a12502 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12631: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12504 1
a12504 1
  echo "$as_me:12634: \$? = $ac_status" >&5
d12506 2
a12507 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12509 3
a12511 3
  echo "$as_me:12640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
a12514 1
eval "ac_cv_type_$cv=no"
d12516 6
a12521 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12523 3
a12525 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12651: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d12527 7
a12533 3
	echo "$as_me:12656: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
d12537 1
a12537 1
#line 12662 "configure"
d12539 12
a12550 1
$ac_includes_default
d12554 9
a12562 4
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
d12567 3
a12569 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12677: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12571 1
a12571 1
  echo "$as_me:12680: \$? = $ac_status" >&5
d12573 2
a12574 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12683: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12576 3
a12578 3
  echo "$as_me:12686: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_socklen_t=yes
d12582 1
a12582 1
ac_cv_type_socklen_t=no
d12584 1
a12584 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12586 5
a12590 6
echo "$as_me:12696: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
d12594 1
d12597 28
d12626 2
a12627 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d12630 7
d12639 3
a12641 4
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:12715: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d12645 1
a12645 1
#line 12721 "configure"
d12647 4
a12650 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d12654 1
a12654 1
struct sockaddr foo;
d12660 1
a12660 1
if { (eval echo "$as_me:12738: \"$ac_compile\"") >&5
d12663 1
a12663 1
  echo "$as_me:12741: \$? = $ac_status" >&5
d12665 2
a12666 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12744: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12668 3
a12670 3
  echo "$as_me:12747: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d12674 1
a12674 1
eval "ac_cv_type_$cv=no"
d12677 19
d12697 4
a12700 10
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12758: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:12763: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12702 7
a12708 28
  cat >conftest.$ac_ext <<_ACEOF
#line 12769 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12784: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12787: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12790: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12793: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr=yes
d12710 2
a12711 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
d12713 7
a12719 1
rm -f conftest.$ac_objext conftest.$ac_ext
a12720 3
echo "$as_me:12803: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then
d12722 13
a12734 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
d12739 34
d12775 9
a12783 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d12786 6
d12794 3
a12796 1554
cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:12822: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12828 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12845: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12848: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12851: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12854: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12865: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:12870: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12876 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12891: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12894: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12897: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12900: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:12910: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
EOF

fi

fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:12929: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12935 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12952: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12955: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12958: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12961: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12972: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:12977: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12983 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12998: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13001: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13004: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13007: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:13017: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
EOF

fi

fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:13036: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13042 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
int
main ()
{
struct ifaddrs foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:13079: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:13084: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13090 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13105: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13108: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13111: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13114: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_ifaddrs=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_ifaddrs=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:13124: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_IFADDRS 1
EOF

fi

fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

echo "$as_me:13142: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line 13151 "configure"
#include "confdefs.h"
#include <$i>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
fi
rm -f conftest*
done

fi

if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_WINSIZE 1
EOF

fi
echo "$as_me:13172: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 13175 "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\EOF
#define HAVE_WS_XPIXEL 1
EOF

fi
rm -f conftest*

cat >conftest.$ac_ext <<_ACEOF
#line 13191 "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF

fi
rm -f conftest*

echo "$as_me:13206: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 13213 "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13228: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13231: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13234: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13237: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_struct_spwd=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:13249: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6

if test "$ac_cv_struct_spwd" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SPWD 1
EOF

fi

LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"

LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"

# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"

fi;

# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13274: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;

# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13286: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;

echo "$as_me:13294: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6

case "$with_openldap" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openldap_include" = ""; then
		with_openldap_include="$with_openldap/include"
	fi
	if test "$with_openldap_lib" = ""; then
		with_openldap_lib="$with_openldap/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done

case "$with_openldap_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_openldap_include $header_dirs";;
esac
case "$with_openldap_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_openldap_lib $lib_dirs";;
esac

save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13334 "configure"
#include "confdefs.h"
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13347: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13350: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13353: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13356: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lldap -llber  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13368 "configure"
#include "confdefs.h"
#include <lber.h>
#include <ldap.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13381: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13384: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13387: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13390: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"

if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
	openldap_includedir="$ires"
	openldap_libdir="$lres"
	INCLUDE_openldap="-I$openldap_includedir"
	LIB_openldap="-L$openldap_libdir -lldap -llber"

cat >>confdefs.h <<EOF
#define OPENLDAP 1
EOF

	with_openldap=yes
	echo "$as_me:13413: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_openldap=
	LIB_openldap=
	with_openldap=no
	echo "$as_me:13419: result: $with_openldap" >&5
echo "${ECHO_T}$with_openldap" >&6
fi

if test "$openldap_libdir"; then
	LIB_openldap="-R $openldap_libdir $LIB_openldap"
fi

# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"

fi;

# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13437: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;

# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13449: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;

echo "$as_me:13457: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6

case "$with_krb4" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_krb4_include" = ""; then
		with_krb4_include="$with_krb4/include"
	fi
	if test "$with_krb4_lib" = ""; then
		with_krb4_lib="$with_krb4/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d='/usr/athena'
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done

case "$with_krb4_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_krb4_include $header_dirs";;
esac
case "$with_krb4_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_krb4_lib $lib_dirs";;
esac

save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13497 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13509: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13512: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13515: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13518: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lkrb -ldes $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13530 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13542: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13545: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13548: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13551: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"

if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
	krb4_includedir="$ires"
	krb4_libdir="$lres"
	INCLUDE_krb4="-I$krb4_includedir"
	LIB_krb4="-L$krb4_libdir -lkrb"

cat >>confdefs.h <<EOF
#define KRB4 1
EOF

	with_krb4=yes
	echo "$as_me:13574: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_krb4=
	LIB_krb4=
	with_krb4=no
	echo "$as_me:13580: result: $with_krb4" >&5
echo "${ECHO_T}$with_krb4" >&6
fi

LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 -ldes $LIBS"
	EXTRA_LIB45=lib45.a

	echo "$as_me:13592: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13598 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{

		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13612: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13615: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13618: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13621: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_put_int_four=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_put_int_four=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:13632: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
EOF

	fi

	echo "$as_me:13642: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13648 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{

		int x = KRB_VERIFY_SECURE
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13661: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13664: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13667: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13670: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_verify_secure=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_secure=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:13681: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then

cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE 1
EOF

cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE_FAIL 2
EOF

	fi
	echo "$as_me:13694: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13700 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{

		int x = KRB_VERIFY_NOT_SECURE
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13713: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13716: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13719: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13722: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_verify_not_secure=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_not_secure=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:13733: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then

cat >>confdefs.h <<\EOF
#define KRB_VERIFY_NOT_SECURE 0
EOF

	fi

echo "$as_me:13743: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 13761 "configure"
#include "confdefs.h"

int
main ()
{
krb_enable_debug()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13773: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13776: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13779: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13782: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_krb_enable_debug"

if false; then

for ac_func in krb_enable_debug
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13804: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13810 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13841: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13844: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13847: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13850: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13860: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_enable_debug=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:13884: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
	echo "$as_me:13890: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:13904: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
fi

echo "$as_me:13913: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 13931 "configure"
#include "confdefs.h"

int
main ()
{
krb_disable_debug()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13943: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13946: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13949: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13952: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_krb_disable_debug"

if false; then

for ac_func in krb_disable_debug
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13974: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13980 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14011: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14014: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14017: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14020: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:14030: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_disable_debug=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:14054: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
	echo "$as_me:14060: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:14074: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
fi

echo "$as_me:14083: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 14101 "configure"
#include "confdefs.h"

int
main ()
{
krb_get_our_ip_for_realm()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14113: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14116: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14119: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14122: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"

if false; then

for ac_func in krb_get_our_ip_for_realm
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14144: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14150 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14181: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14184: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14187: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14190: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:14200: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:14224: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:14230: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:14244: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi

	echo "$as_me:14253: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14259 "configure"
#include "confdefs.h"
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14274: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14277: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14280: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14283: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_mk_req_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_mk_req_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:14294: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then

cat >>confdefs.h <<\EOF
#define KRB_MK_REQ_CONST 1
EOF

	fi

	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
	if test "$krb4_libdir"; then
		LIB_krb4="-R $krb4_libdir $LIB_krb4"
		LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
	fi
fi

if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi

if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
fi

if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
else
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi

cat >>confdefs.h <<\EOF
#define KRB5 1
EOF

# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\EOF
#define DCE 1
EOF

fi

if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
else
  DCE_TRUE='#'
  DCE_FALSE=
fi

## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
else
	dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_LDFLAGS="-Wl,-bI:dfspag.exp"
fi

otp=yes
# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
d12838 1
a12838 1
echo "$as_me:14416: checking for $ac_word" >&5
d12848 1
a12848 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a12854 1
   echo "$as_me:14433: found $ac_dir/$ac_word" >&5
d12865 1
a12865 1
  echo "$as_me:14444: result: $NROFF" >&5
d12868 1
a12868 1
  echo "$as_me:14447: result: no" >&5
d12874 1
a12874 1
echo "$as_me:14453: checking for $ac_word" >&5
d12884 1
a12884 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
a12890 1
   echo "$as_me:14470: found $ac_dir/$ac_word" >&5
d12901 1
a12901 1
  echo "$as_me:14481: result: $GROFF" >&5
d12904 1
a12904 1
  echo "$as_me:14484: result: no" >&5
d12908 1
a12908 1
echo "$as_me:14488: checking how to format man pages" >&5
d12945 1
a12945 1
echo "$as_me:14525: result: $ac_cv_sys_man_format" >&5
d12959 1
a12959 1
echo "$as_me:14539: checking extension of pre-formatted manual pages" >&5
d12971 1
a12971 1
echo "$as_me:14551: result: $ac_cv_sys_catman_ext" >&5
d12989 1
a12989 1
  { { echo "$as_me:14569: error: No argument for --with-readline-lib" >&5
d13001 1
a13001 1
  { { echo "$as_me:14581: error: No argument for --with-readline-include" >&5
d13009 1
a13009 1
echo "$as_me:14589: checking for readline" >&5
d13049 1
a13049 1
#line 14629 "configure"
d13062 1
a13062 1
if { (eval echo "$as_me:14642: \"$ac_compile\"") >&5
d13065 1
a13065 1
  echo "$as_me:14645: \$? = $ac_status" >&5
d13067 2
a13068 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14648: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13070 2
a13071 2
  echo "$as_me:14651: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13082 1
a13082 1
#line 14663 "configure"
d13095 1
a13095 1
if { (eval echo "$as_me:14676: \"$ac_link\"") >&5
d13098 1
a13098 1
  echo "$as_me:14679: \$? = $ac_status" >&5
d13100 2
a13101 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14682: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13103 2
a13104 2
  echo "$as_me:14685: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13110 1
a13110 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13126 1
a13126 1
	echo "$as_me:14708: result: headers $ires, libraries $lres" >&5
d13132 1
a13132 1
	echo "$as_me:14714: result: $with_readline" >&5
d13146 1
a13146 1
  { { echo "$as_me:14728: error: No argument for --with-hesiod-lib" >&5
d13158 1
a13158 1
  { { echo "$as_me:14740: error: No argument for --with-hesiod-include" >&5
d13166 1
a13166 1
echo "$as_me:14748: checking for hesiod" >&5
d13206 1
a13206 1
#line 14788 "configure"
d13218 1
a13218 1
if { (eval echo "$as_me:14800: \"$ac_compile\"") >&5
d13221 1
a13221 1
  echo "$as_me:14803: \$? = $ac_status" >&5
d13223 2
a13224 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14806: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13226 2
a13227 2
  echo "$as_me:14809: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13238 1
a13238 1
#line 14821 "configure"
d13250 1
a13250 1
if { (eval echo "$as_me:14833: \"$ac_link\"") >&5
d13253 1
a13253 1
  echo "$as_me:14836: \$? = $ac_status" >&5
d13255 2
a13256 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14839: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13258 2
a13259 2
  echo "$as_me:14842: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13265 1
a13265 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13281 1
a13281 1
	echo "$as_me:14865: result: headers $ires, libraries $lres" >&5
d13287 1
a13287 1
	echo "$as_me:14871: result: $with_hesiod" >&5
d13301 1
a13301 1
echo "$as_me:14885: checking whether byte order is known at compile time" >&5
d13307 1
a13307 1
#line 14891 "configure"
d13324 1
a13324 1
if { (eval echo "$as_me:14908: \"$ac_compile\"") >&5
d13327 1
a13327 1
  echo "$as_me:14911: \$? = $ac_status" >&5
d13329 2
a13330 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14914: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13332 2
a13333 2
  echo "$as_me:14917: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13342 1
a13342 1
echo "$as_me:14927: result: $krb_cv_c_bigendian_compile" >&5
d13344 1
a13344 1
echo "$as_me:14929: checking whether byte ordering is bigendian" >&5
d13352 1
a13352 1
#line 14937 "configure"
d13369 1
a13369 1
if { (eval echo "$as_me:14954: \"$ac_compile\"") >&5
d13372 1
a13372 1
  echo "$as_me:14957: \$? = $ac_status" >&5
d13374 2
a13375 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14960: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13377 2
a13378 2
  echo "$as_me:14963: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13388 1
a13388 1
  { { echo "$as_me:14974: error: specify either --enable-bigendian or --enable-littleendian" >&5
d13393 1
a13393 1
#line 14979 "configure"
d13407 1
a13407 1
if { (eval echo "$as_me:14993: \"$ac_link\"") >&5
d13410 3
a13412 4
  echo "$as_me:14996: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14998: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13414 2
a13415 2
  echo "$as_me:15001: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13423 1
a13423 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d13428 1
a13428 1
echo "$as_me:15015: result: $krb_cv_c_bigendian" >&5
d13443 1
a13443 1
echo "$as_me:15030: checking for inline" >&5
d13451 1
a13451 1
#line 15038 "configure"
a13453 1
static $ac_kw int static_foo () {return 0; }
d13459 1
a13459 1
if { (eval echo "$as_me:15047: \"$ac_compile\"") >&5
d13462 1
a13462 1
  echo "$as_me:15050: \$? = $ac_status" >&5
d13464 2
a13465 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15053: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13467 2
a13468 2
  echo "$as_me:15056: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13478 1
a13478 1
echo "$as_me:15067: result: $ac_cv_c_inline" >&5
d13528 1
a13528 1
echo "$as_me:15117: checking for dlopen" >&5
d13537 5
a13541 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d13544 1
a13544 1
#line 15135 "configure"
d13556 1
a13556 1
if { (eval echo "$as_me:15147: \"$ac_link\"") >&5
d13559 1
a13559 1
  echo "$as_me:15150: \$? = $ac_status" >&5
d13561 2
a13562 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15153: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13564 2
a13565 2
  echo "$as_me:15156: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13571 1
a13571 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13585 2
a13586 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:15178: checking for $ac_func" >&5
d13588 1
a13588 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13592 1
a13592 1
#line 15184 "configure"
d13623 1
a13623 1
if { (eval echo "$as_me:15215: \"$ac_link\"") >&5
d13626 1
a13626 1
  echo "$as_me:15218: \$? = $ac_status" >&5
d13628 2
a13629 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15221: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13631 3
a13633 3
  echo "$as_me:15224: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d13637 1
a13637 1
eval "$as_ac_var=no"
d13639 1
a13639 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13641 3
a13643 3
echo "$as_me:15234: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13645 1
a13645 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13665 1
a13665 1
	echo "$as_me:15258: result: yes" >&5
d13671 1
a13671 1
	echo "$as_me:15264: result: no" >&5
d13685 1
a13685 1
	echo "$as_me:15278: result: yes, in $ac_res" >&5
d13725 1
a13725 1
echo "$as_me:15318: checking for X" >&5
d13747 3
a13749 3
rm -fr conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
d13778 1
a13778 1
  rm -fr conftest.dir
d13822 1
a13822 1
#line 15415 "configure"
d13826 2
a13827 2
if { (eval echo "$as_me:15419: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d13832 2
a13833 2
  echo "$as_me:15425: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d13865 1
a13865 1
#line 15458 "configure"
d13877 1
a13877 1
if { (eval echo "$as_me:15470: \"$ac_link\"") >&5
d13880 1
a13880 1
  echo "$as_me:15473: \$? = $ac_status" >&5
d13882 2
a13883 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15476: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13885 2
a13886 2
  echo "$as_me:15479: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13905 1
a13905 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13923 1
a13923 1
  echo "$as_me:15517: result: $have_x" >&5
d13933 1
a13933 1
  echo "$as_me:15527: result: libraries $x_libraries, headers $x_includes" >&5
d13957 1
a13957 1
      echo "$as_me:15551: checking whether -R must be followed by a space" >&5
d13961 1
a13961 1
#line 15555 "configure"
d13973 1
a13973 1
if { (eval echo "$as_me:15567: \"$ac_link\"") >&5
d13976 1
a13976 1
  echo "$as_me:15570: \$? = $ac_status" >&5
d13978 2
a13979 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15573: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d13981 2
a13982 2
  echo "$as_me:15576: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13989 1
a13989 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13991 1
a13991 1
	echo "$as_me:15586: result: no" >&5
d13997 1
a13997 1
#line 15592 "configure"
d14009 1
a14009 1
if { (eval echo "$as_me:15604: \"$ac_link\"") >&5
d14012 1
a14012 1
  echo "$as_me:15607: \$? = $ac_status" >&5
d14014 2
a14015 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15610: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14017 2
a14018 2
  echo "$as_me:15613: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14025 1
a14025 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14027 1
a14027 1
	  echo "$as_me:15623: result: yes" >&5
d14031 1
a14031 1
	  echo "$as_me:15627: result: neither works" >&5
d14049 1
a14049 37
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat >conftest.$ac_ext <<_ACEOF
#line 15647 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char XOpenDisplay ();
int
main ()
{
XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15666: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15669: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15672: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15675: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:15681: checking for dnet_ntoa in -ldnet" >&5
d14057 1
a14057 1
#line 15689 "configure"
d14076 1
a14076 1
if { (eval echo "$as_me:15708: \"$ac_link\"") >&5
d14079 1
a14079 1
  echo "$as_me:15711: \$? = $ac_status" >&5
d14081 2
a14082 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15714: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14084 2
a14085 2
  echo "$as_me:15717: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14092 1
a14092 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14095 1
a14095 1
echo "$as_me:15728: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
d14102 1
a14102 1
      echo "$as_me:15735: checking for dnet_ntoa in -ldnet_stub" >&5
d14110 1
a14110 1
#line 15743 "configure"
d14129 1
a14129 1
if { (eval echo "$as_me:15762: \"$ac_link\"") >&5
d14132 1
a14132 1
  echo "$as_me:15765: \$? = $ac_status" >&5
d14134 2
a14135 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15768: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14137 2
a14138 2
  echo "$as_me:15771: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14145 1
a14145 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14148 1
a14148 1
echo "$as_me:15782: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
a14154 3
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"
d14164 1
a14164 1
    echo "$as_me:15801: checking for gethostbyname" >&5
d14170 1
a14170 1
#line 15807 "configure"
d14201 1
a14201 1
if { (eval echo "$as_me:15838: \"$ac_link\"") >&5
d14204 1
a14204 1
  echo "$as_me:15841: \$? = $ac_status" >&5
d14206 2
a14207 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15844: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14209 2
a14210 2
  echo "$as_me:15847: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14217 1
a14217 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14219 1
a14219 1
echo "$as_me:15857: result: $ac_cv_func_gethostbyname" >&5
d14223 1
a14223 1
      echo "$as_me:15861: checking for gethostbyname in -lnsl" >&5
d14231 1
a14231 1
#line 15869 "configure"
d14250 1
a14250 1
if { (eval echo "$as_me:15888: \"$ac_link\"") >&5
d14253 1
a14253 1
  echo "$as_me:15891: \$? = $ac_status" >&5
d14255 2
a14256 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15894: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14258 2
a14259 2
  echo "$as_me:15897: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14266 1
a14266 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14269 1
a14269 1
echo "$as_me:15908: result: $ac_cv_lib_nsl_gethostbyname" >&5
d14276 1
a14276 1
        echo "$as_me:15915: checking for gethostbyname in -lbsd" >&5
d14284 1
a14284 1
#line 15923 "configure"
d14303 1
a14303 1
if { (eval echo "$as_me:15942: \"$ac_link\"") >&5
d14306 1
a14306 1
  echo "$as_me:15945: \$? = $ac_status" >&5
d14308 2
a14309 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15948: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14311 2
a14312 2
  echo "$as_me:15951: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14319 1
a14319 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14322 1
a14322 1
echo "$as_me:15962: result: $ac_cv_lib_bsd_gethostbyname" >&5
d14338 1
a14338 1
    echo "$as_me:15978: checking for connect" >&5
d14344 1
a14344 1
#line 15984 "configure"
d14375 1
a14375 1
if { (eval echo "$as_me:16015: \"$ac_link\"") >&5
d14378 1
a14378 1
  echo "$as_me:16018: \$? = $ac_status" >&5
d14380 2
a14381 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14383 2
a14384 2
  echo "$as_me:16024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14391 1
a14391 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14393 1
a14393 1
echo "$as_me:16034: result: $ac_cv_func_connect" >&5
d14397 1
a14397 1
      echo "$as_me:16038: checking for connect in -lsocket" >&5
d14405 1
a14405 1
#line 16046 "configure"
d14424 1
a14424 1
if { (eval echo "$as_me:16065: \"$ac_link\"") >&5
d14427 1
a14427 1
  echo "$as_me:16068: \$? = $ac_status" >&5
d14429 2
a14430 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16071: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14432 2
a14433 2
  echo "$as_me:16074: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14440 1
a14440 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14443 1
a14443 1
echo "$as_me:16085: result: $ac_cv_lib_socket_connect" >&5
d14452 1
a14452 1
    echo "$as_me:16094: checking for remove" >&5
d14458 1
a14458 1
#line 16100 "configure"
d14489 1
a14489 1
if { (eval echo "$as_me:16131: \"$ac_link\"") >&5
d14492 1
a14492 1
  echo "$as_me:16134: \$? = $ac_status" >&5
d14494 2
a14495 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16137: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14497 2
a14498 2
  echo "$as_me:16140: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14505 1
a14505 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14507 1
a14507 1
echo "$as_me:16150: result: $ac_cv_func_remove" >&5
d14511 1
a14511 1
      echo "$as_me:16154: checking for remove in -lposix" >&5
d14519 1
a14519 1
#line 16162 "configure"
d14538 1
a14538 1
if { (eval echo "$as_me:16181: \"$ac_link\"") >&5
d14541 1
a14541 1
  echo "$as_me:16184: \$? = $ac_status" >&5
d14543 2
a14544 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16187: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14546 2
a14547 2
  echo "$as_me:16190: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14554 1
a14554 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14557 1
a14557 1
echo "$as_me:16201: result: $ac_cv_lib_posix_remove" >&5
d14566 1
a14566 1
    echo "$as_me:16210: checking for shmat" >&5
d14572 1
a14572 1
#line 16216 "configure"
d14603 1
a14603 1
if { (eval echo "$as_me:16247: \"$ac_link\"") >&5
d14606 1
a14606 1
  echo "$as_me:16250: \$? = $ac_status" >&5
d14608 2
a14609 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16253: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14611 2
a14612 2
  echo "$as_me:16256: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14619 1
a14619 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14621 1
a14621 1
echo "$as_me:16266: result: $ac_cv_func_shmat" >&5
d14625 1
a14625 1
      echo "$as_me:16270: checking for shmat in -lipc" >&5
d14633 1
a14633 1
#line 16278 "configure"
d14652 1
a14652 1
if { (eval echo "$as_me:16297: \"$ac_link\"") >&5
d14655 1
a14655 1
  echo "$as_me:16300: \$? = $ac_status" >&5
d14657 2
a14658 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16303: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14660 2
a14661 2
  echo "$as_me:16306: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14668 1
a14668 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14671 1
a14671 1
echo "$as_me:16317: result: $ac_cv_lib_ipc_shmat" >&5
d14689 1
a14689 1
  echo "$as_me:16335: checking for IceConnectionNumber in -lICE" >&5
d14697 1
a14697 1
#line 16343 "configure"
d14716 1
a14716 1
if { (eval echo "$as_me:16362: \"$ac_link\"") >&5
d14719 1
a14719 1
  echo "$as_me:16365: \$? = $ac_status" >&5
d14721 2
a14722 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16368: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14724 2
a14725 2
  echo "$as_me:16371: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14732 1
a14732 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14735 1
a14735 1
echo "$as_me:16382: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
d14748 1
a14748 1
	echo "$as_me:16395: checking for special X linker flags" >&5
d14777 1
a14777 1
  { { echo "$as_me:16424: error: cannot run test program while cross compiling" >&5
d14782 1
a14782 1
#line 16429 "configure"
d14797 1
a14797 1
if { (eval echo "$as_me:16444: \"$ac_link\"") >&5
d14800 3
a14802 4
  echo "$as_me:16447: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:16449: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14804 2
a14805 2
  echo "$as_me:16452: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14813 1
a14813 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d14820 1
a14820 1
echo "$as_me:16468: result: $krb_cv_sys_x_libs_rpath" >&5
d14840 1
a14840 1
echo "$as_me:16488: checking for XauWriteAuth" >&5
d14849 5
a14853 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d14856 1
a14856 1
#line 16506 "configure"
d14868 1
a14868 1
if { (eval echo "$as_me:16518: \"$ac_link\"") >&5
d14871 1
a14871 1
  echo "$as_me:16521: \$? = $ac_status" >&5
d14873 2
a14874 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16524: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14876 2
a14877 2
  echo "$as_me:16527: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d14883 1
a14883 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14897 2
a14898 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:16549: checking for $ac_func" >&5
d14900 1
a14900 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d14904 1
a14904 1
#line 16555 "configure"
d14935 1
a14935 1
if { (eval echo "$as_me:16586: \"$ac_link\"") >&5
d14938 1
a14938 1
  echo "$as_me:16589: \$? = $ac_status" >&5
d14940 2
a14941 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16592: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d14943 3
a14945 3
  echo "$as_me:16595: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d14949 1
a14949 1
eval "$as_ac_var=no"
d14951 1
a14951 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14953 3
a14955 3
echo "$as_me:16605: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d14957 1
a14957 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d14977 1
a14977 1
	echo "$as_me:16629: result: yes" >&5
d14983 1
a14983 1
	echo "$as_me:16635: result: no" >&5
d14997 1
a14997 1
	echo "$as_me:16649: result: yes, in $ac_res" >&5
d15005 1
a15005 1
echo "$as_me:16657: checking for XauReadAuth" >&5
d15014 5
a15018 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15021 1
a15021 1
#line 16675 "configure"
d15033 1
a15033 1
if { (eval echo "$as_me:16687: \"$ac_link\"") >&5
d15036 1
a15036 1
  echo "$as_me:16690: \$? = $ac_status" >&5
d15038 2
a15039 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16693: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15041 2
a15042 2
  echo "$as_me:16696: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15048 1
a15048 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15062 2
a15063 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:16718: checking for $ac_func" >&5
d15065 1
a15065 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15069 1
a15069 1
#line 16724 "configure"
d15100 1
a15100 1
if { (eval echo "$as_me:16755: \"$ac_link\"") >&5
d15103 1
a15103 1
  echo "$as_me:16758: \$? = $ac_status" >&5
d15105 2
a15106 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16761: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15108 3
a15110 3
  echo "$as_me:16764: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d15114 1
a15114 1
eval "$as_ac_var=no"
d15116 1
a15116 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15118 3
a15120 3
echo "$as_me:16774: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d15122 1
a15122 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15142 1
a15142 1
	echo "$as_me:16798: result: yes" >&5
d15148 1
a15148 1
	echo "$as_me:16804: result: no" >&5
d15162 1
a15162 1
	echo "$as_me:16818: result: yes, in $ac_res" >&5
d15169 1
a15169 1
echo "$as_me:16825: checking for XauFileName" >&5
d15178 5
a15182 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15185 1
a15185 1
#line 16843 "configure"
d15197 1
a15197 1
if { (eval echo "$as_me:16855: \"$ac_link\"") >&5
d15200 1
a15200 1
  echo "$as_me:16858: \$? = $ac_status" >&5
d15202 2
a15203 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16861: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15205 2
a15206 2
  echo "$as_me:16864: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15212 1
a15212 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15226 2
a15227 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:16886: checking for $ac_func" >&5
d15229 1
a15229 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15233 1
a15233 1
#line 16892 "configure"
d15264 1
a15264 1
if { (eval echo "$as_me:16923: \"$ac_link\"") >&5
d15267 1
a15267 1
  echo "$as_me:16926: \$? = $ac_status" >&5
d15269 2
a15270 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16929: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15272 3
a15274 3
  echo "$as_me:16932: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d15278 1
a15278 1
eval "$as_ac_var=no"
d15280 1
a15280 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15282 3
a15284 3
echo "$as_me:16942: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d15286 1
a15286 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15306 1
a15306 1
	echo "$as_me:16966: result: yes" >&5
d15312 1
a15312 1
	echo "$as_me:16972: result: no" >&5
d15326 1
a15326 1
	echo "$as_me:16986: result: yes, in $ac_res" >&5
d15375 1
a15375 1
echo "$as_me:17035: checking for an ANSI C-conforming const" >&5
d15381 1
a15381 1
#line 17041 "configure"
d15439 1
a15439 1
if { (eval echo "$as_me:17099: \"$ac_compile\"") >&5
d15442 1
a15442 1
  echo "$as_me:17102: \$? = $ac_status" >&5
d15444 2
a15445 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17105: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15447 2
a15448 2
  echo "$as_me:17108: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15457 1
a15457 1
echo "$as_me:17118: result: $ac_cv_c_const" >&5
d15467 1
a15467 1
echo "$as_me:17128: checking for off_t" >&5
d15473 1
a15473 1
#line 17134 "configure"
d15488 1
a15488 1
if { (eval echo "$as_me:17149: \"$ac_compile\"") >&5
d15491 1
a15491 1
  echo "$as_me:17152: \$? = $ac_status" >&5
d15493 2
a15494 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17155: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15496 2
a15497 2
  echo "$as_me:17158: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15506 1
a15506 1
echo "$as_me:17168: result: $ac_cv_type_off_t" >&5
d15518 1
a15518 1
echo "$as_me:17180: checking for size_t" >&5
d15524 1
a15524 1
#line 17186 "configure"
d15539 1
a15539 1
if { (eval echo "$as_me:17201: \"$ac_compile\"") >&5
d15542 1
a15542 1
  echo "$as_me:17204: \$? = $ac_status" >&5
d15544 2
a15545 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17207: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15547 2
a15548 2
  echo "$as_me:17210: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15557 1
a15557 1
echo "$as_me:17220: result: $ac_cv_type_size_t" >&5
d15569 1
a15569 1
echo "$as_me:17232: checking for ssize_t" >&5
d15575 1
a15575 1
#line 17238 "configure"
d15593 1
a15593 1
echo "$as_me:17256: result: $ac_cv_type_ssize_t" >&5
d15603 1
a15603 1
echo "$as_me:17266: checking for pid_t" >&5
d15609 1
a15609 1
#line 17272 "configure"
d15624 1
a15624 1
if { (eval echo "$as_me:17287: \"$ac_compile\"") >&5
d15627 1
a15627 1
  echo "$as_me:17290: \$? = $ac_status" >&5
d15629 2
a15630 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17293: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15632 2
a15633 2
  echo "$as_me:17296: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15642 1
a15642 1
echo "$as_me:17306: result: $ac_cv_type_pid_t" >&5
d15654 1
a15654 1
echo "$as_me:17318: checking for uid_t in sys/types.h" >&5
d15660 1
a15660 1
#line 17324 "configure"
d15674 1
a15674 1
echo "$as_me:17338: result: $ac_cv_type_uid_t" >&5
d15688 1
a15688 1
echo "$as_me:17352: checking for mode_t" >&5
d15694 1
a15694 1
#line 17358 "configure"
d15712 1
a15712 1
echo "$as_me:17376: result: $ac_cv_type_mode_t" >&5
d15722 1
a15722 1
echo "$as_me:17386: checking for sig_atomic_t" >&5
d15728 1
a15728 1
#line 17392 "configure"
d15746 1
a15746 1
echo "$as_me:17410: result: $ac_cv_type_sig_atomic_t" >&5
d15757 1
a15757 1
echo "$as_me:17421: checking for long long" >&5
d15763 1
a15763 1
#line 17427 "configure"
d15780 1
a15780 1
if { (eval echo "$as_me:17444: \"$ac_compile\"") >&5
d15783 1
a15783 1
  echo "$as_me:17447: \$? = $ac_status" >&5
d15785 2
a15786 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17450: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15788 2
a15789 2
  echo "$as_me:17453: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15799 1
a15799 1
echo "$as_me:17464: result: $ac_foo" >&5
d15804 1
a15804 1
	echo "$as_me:17469: checking for long long" >&5
d15810 1
a15810 1
#line 17475 "configure"
d15825 1
a15825 1
if { (eval echo "$as_me:17490: \"$ac_compile\"") >&5
d15828 1
a15828 1
  echo "$as_me:17493: \$? = $ac_status" >&5
d15830 2
a15831 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17496: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15833 2
a15834 2
  echo "$as_me:17499: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15843 1
a15843 1
echo "$as_me:17509: result: $ac_cv_type_long_long" >&5
d15861 1
a15861 1
echo "$as_me:17527: checking whether time.h and sys/time.h may both be included" >&5
d15867 1
a15867 1
#line 17533 "configure"
d15876 1
a15876 2
if ((struct tm *) 0)
return 0;
d15882 1
a15882 1
if { (eval echo "$as_me:17549: \"$ac_compile\"") >&5
d15885 1
a15885 1
  echo "$as_me:17552: \$? = $ac_status" >&5
d15887 2
a15888 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17555: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15890 2
a15891 2
  echo "$as_me:17558: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15900 1
a15900 1
echo "$as_me:17568: result: $ac_cv_header_time" >&5
d15910 1
a15910 1
echo "$as_me:17578: checking whether struct tm is in sys/time.h or time.h" >&5
d15916 1
a15916 1
#line 17584 "configure"
d15930 1
a15930 1
if { (eval echo "$as_me:17598: \"$ac_compile\"") >&5
d15933 1
a15933 1
  echo "$as_me:17601: \$? = $ac_status" >&5
d15935 2
a15936 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17604: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d15938 2
a15939 2
  echo "$as_me:17607: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15948 1
a15948 1
echo "$as_me:17617: result: $ac_cv_struct_tm" >&5
d15958 1
a15958 1
echo "$as_me:17627: checking for ANSI C header files" >&5
d15964 1
a15964 1
#line 17633 "configure"
d15972 2
a15973 2
if { (eval echo "$as_me:17641: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d15978 2
a15979 2
  echo "$as_me:17647: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d16000 1
a16000 1
#line 17669 "configure"
d16018 1
a16018 1
#line 17687 "configure"
d16039 1
a16039 1
#line 17708 "configure"
d16065 1
a16065 1
if { (eval echo "$as_me:17734: \"$ac_link\"") >&5
d16068 3
a16070 4
  echo "$as_me:17737: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:17739: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d16072 2
a16073 2
  echo "$as_me:17742: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16081 1
a16081 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d16085 1
a16085 1
echo "$as_me:17755: result: $ac_cv_header_stdc" >&5
d16104 1
d16111 1
a16114 1
	libutil.h				\
d16117 1
d16132 1
a16173 1
	termcap.h				\
d16186 11
a16196 328
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:17856: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17862 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:17866: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:17872: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:17891: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:17904: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17910 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:17914: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:17920: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:17939: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:17953: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17959 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

_ACEOF
if { (eval echo "$as_me:17968: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:17974: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:17993: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi
done
if false;then

for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:18009: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18015 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:18019: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:18025: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:18044: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

fi

# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval="$enable_netinfo"

fi;

if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_NETINFO 1
EOF

fi

if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi

if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi

echo "$as_me:18086: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18104 "configure"
#include "confdefs.h"

int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18116: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18119: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18122: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18125: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_socket"

if false; then

for ac_func in socket
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18147: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18153 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d16198 2
a16199 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18184: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d16201 15
a16215 9
  echo "$as_me:18187: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18190: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18193: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16218 2
a16219 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16221 1
a16221 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16223 3
a16225 3
echo "$as_me:18203: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16227 1
a16227 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16233 6
a16238 46
fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:18227: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:18233: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:18247: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi

echo "$as_me:18256: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
d16241 2
a16242 14

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18274 "configure"
d16244 1
a16244 8

int
main ()
{
gethostbyname()
  ;
  return 0;
}
d16246 2
a16247 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18286: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d16249 15
a16263 9
  echo "$as_me:18289: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18292: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18295: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d16266 2
a16267 1
cat conftest.$ac_ext >&5
d16269 1
a16269 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d16271 6
d16279 1
d16281 1
a16281 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
d16283 1
a16283 1
if false; then
d16285 3
a16287 6
for ac_func in gethostbyname
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18317: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16291 1
a16291 1
#line 18323 "configure"
d16293 3
a16295 22
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d16297 1
a16298 3
  ;
  return 0;
}
d16300 2
a16301 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18354: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d16303 10
a16312 9
  echo "$as_me:18357: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18360: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18363: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16314 1
a16314 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16316 2
a16317 97
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18373: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:18397: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:18403: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:18417: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi

echo "$as_me:18426: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18444 "configure"
#include "confdefs.h"

int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18456: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18459: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18462: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18465: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d16320 2
a16321 1
cat conftest.$ac_ext >&5
d16323 1
a16323 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
d16325 8
d16335 2
d16338 1
a16338 5
eval "ac_res=\$ac_cv_funclib_syslog"

if false; then

for ac_func in syslog
d16340 4
a16343 4
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18487: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16347 1
a16347 1
#line 18493 "configure"
d16349 1
a16349 27
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d16351 2
a16352 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18524: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d16354 15
a16368 9
  echo "$as_me:18527: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18530: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18533: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16371 2
a16372 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16374 1
a16374 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16376 3
a16378 3
echo "$as_me:18543: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16380 1
a16380 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a16386 4
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"
d16388 7
a16394 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d16396 2
a16397 14
	echo "$as_me:18567: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:18573: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d16400 1
a16400 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d16402 7
a16408 4
	echo "$as_me:18587: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d16410 6
a16415 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
a16425 1
save_CFLAGS="${CFLAGS}"
d16432 1
a16432 1
echo "$as_me:18611: checking ipv6 stack type" >&5
d16438 1
a16438 1
#line 18617 "configure"
d16457 1
a16457 1
#line 18636 "configure"
d16476 1
a16476 1
#line 18655 "configure"
d16495 1
a16495 1
#line 18674 "configure"
d16512 1
a16512 1
#line 18691 "configure"
d16542 1
a16542 1
echo "$as_me:18721: result: $v6type" >&5
d16554 1
a16554 1
#line 18733 "configure"
d16589 1
a16589 1
if { (eval echo "$as_me:18768: \"$ac_link\"") >&5
d16592 1
a16592 1
  echo "$as_me:18771: \$? = $ac_status" >&5
d16594 2
a16595 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18774: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d16597 2
a16598 2
  echo "$as_me:18777: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16605 1
a16605 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16608 1
a16608 1
echo "$as_me:18788: checking for IPv6" >&5
d16610 1
a16610 1
echo "$as_me:18790: result: $ac_cv_lib_ipv6" >&5
a16617 2
else
  CFLAGS="${save_CFLAGS}"
d16620 3
a16622 4
if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:18803: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
d16626 11
a16636 2
	cat >conftest.$ac_ext <<_ACEOF
#line 18810 "configure"
d16639 53
a16691 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
d16693 5
d16701 8
a16708 3

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;
d16715 1
a16715 1
if { (eval echo "$as_me:18837: \"$ac_link\"") >&5
d16718 1
a16718 1
  echo "$as_me:18840: \$? = $ac_status" >&5
d16720 2
a16721 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18843: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d16723 3
a16725 3
  echo "$as_me:18846: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_in6addr_loopback=yes
d16729 3
a16731 1
ac_cv_var_in6addr_loopback=no
d16733 10
a16742 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16744 37
a16780 3
echo "$as_me:18856: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then
d16782 2
a16783 5
cat >>confdefs.h <<\EOF
#define HAVE_IN6ADDR_LOOPBACK 1
EOF

	fi
d16786 3
a16788 3
echo "$as_me:18867: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
if test "${ac_cv_funclib_logwtmp+set}" = set; then
d16792 1
a16792 1
if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
d16794 6
a16799 8
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d16802 1
a16802 1
#line 18885 "configure"
d16808 1
a16808 1
logwtmp()
d16814 1
a16814 1
if { (eval echo "$as_me:18897: \"$ac_link\"") >&5
d16817 1
a16817 1
  echo "$as_me:18900: \$? = $ac_status" >&5
d16819 2
a16820 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18903: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d16822 3
a16824 3
  echo "$as_me:18906: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d16829 1
a16829 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16831 1
a16831 1
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
d16837 1
a16837 1
eval "ac_res=\$ac_cv_funclib_logwtmp"
d16841 1
a16841 1
for ac_func in logwtmp
d16843 2
a16844 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18928: checking for $ac_func" >&5
d16846 1
a16846 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16850 1
a16850 1
#line 18934 "configure"
d16881 1
a16881 1
if { (eval echo "$as_me:18965: \"$ac_link\"") >&5
d16884 1
a16884 1
  echo "$as_me:18968: \$? = $ac_status" >&5
d16886 2
a16887 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18971: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d16889 3
a16891 3
  echo "$as_me:18974: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16895 1
a16895 1
eval "$as_ac_var=no"
d16897 1
a16897 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16899 3
a16901 3
echo "$as_me:18984: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16903 1
a16903 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16910 2
a16911 2
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d16913 1
a16913 1
eval "LIB_logwtmp=$ac_res"
d16917 2
a16918 2
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
d16923 1
a16923 1
	echo "$as_me:19008: result: yes" >&5
d16927 3
a16929 3
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	echo "$as_me:19014: result: no" >&5
d16933 1
a16933 1
	eval "ac_cv_func_logwtmp=yes"
d16943 1
a16943 1
	echo "$as_me:19028: result: yes, in $ac_res" >&5
d16948 7
a16954 3
echo "$as_me:19033: checking for logout" >&5
echo $ECHO_N "checking for logout... $ECHO_C" >&6
if test "${ac_cv_funclib_logout+set}" = set; then
d16958 1
a16958 1
if eval "test \"\$ac_cv_func_logout\" != yes" ; then
d16960 6
a16965 8
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d16968 1
a16968 1
#line 19051 "configure"
d16974 1
a16974 1
logout()
d16980 1
a16980 1
if { (eval echo "$as_me:19063: \"$ac_link\"") >&5
d16983 1
a16983 1
  echo "$as_me:19066: \$? = $ac_status" >&5
d16985 2
a16986 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19069: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d16988 3
a16990 3
  echo "$as_me:19072: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
d16995 1
a16995 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16997 1
a16997 1
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
d17003 1
a17003 1
eval "ac_res=\$ac_cv_funclib_logout"
d17007 1
a17007 1
for ac_func in logout
d17009 2
a17010 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19094: checking for $ac_func" >&5
d17012 1
a17012 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17016 1
a17016 1
#line 19100 "configure"
d17047 1
a17047 1
if { (eval echo "$as_me:19131: \"$ac_link\"") >&5
d17050 1
a17050 1
  echo "$as_me:19134: \$? = $ac_status" >&5
d17052 2
a17053 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19137: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17055 3
a17057 3
  echo "$as_me:19140: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17061 1
a17061 1
eval "$as_ac_var=no"
d17063 1
a17063 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17065 3
a17067 3
echo "$as_me:19150: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d17069 1
a17069 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17076 2
a17077 2
# logout
eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d17079 1
a17079 1
eval "LIB_logout=$ac_res"
d17083 2
a17084 2
	eval "ac_cv_func_logout=yes"
	eval "LIB_logout="
d17089 1
a17089 1
	echo "$as_me:19174: result: yes" >&5
d17093 3
a17095 3
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	echo "$as_me:19180: result: no" >&5
d17099 1
a17099 1
	eval "ac_cv_func_logout=yes"
d17109 1
a17109 1
	echo "$as_me:19194: result: yes, in $ac_res" >&5
d17114 7
a17120 3
echo "$as_me:19199: checking for openpty" >&5
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
if test "${ac_cv_funclib_openpty+set}" = set; then
d17124 1
a17124 1
if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
d17127 5
a17131 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d17134 1
a17134 1
#line 19217 "configure"
d17140 1
a17140 1
openpty()
d17146 1
a17146 1
if { (eval echo "$as_me:19229: \"$ac_link\"") >&5
d17149 1
a17149 1
  echo "$as_me:19232: \$? = $ac_status" >&5
d17151 2
a17152 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19235: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17154 3
a17156 3
  echo "$as_me:19238: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
d17161 1
a17161 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17163 1
a17163 1
	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
d17169 1
a17169 1
eval "ac_res=\$ac_cv_funclib_openpty"
d17173 1
a17173 1
for ac_func in openpty
d17175 2
a17176 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19260: checking for $ac_func" >&5
d17178 1
a17178 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17182 1
a17182 1
#line 19266 "configure"
d17213 1
a17213 1
if { (eval echo "$as_me:19297: \"$ac_link\"") >&5
d17216 1
a17216 1
  echo "$as_me:19300: \$? = $ac_status" >&5
d17218 2
a17219 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19303: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17221 3
a17223 3
  echo "$as_me:19306: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17227 1
a17227 1
eval "$as_ac_var=no"
d17229 1
a17229 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17231 3
a17233 3
echo "$as_me:19316: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d17235 1
a17235 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17242 2
a17243 2
# openpty
eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d17245 1
a17245 1
eval "LIB_openpty=$ac_res"
d17249 2
a17250 2
	eval "ac_cv_func_openpty=yes"
	eval "LIB_openpty="
d17255 1
a17255 1
	echo "$as_me:19340: result: yes" >&5
d17259 3
a17261 3
	eval "ac_cv_func_openpty=no"
	eval "LIB_openpty="
	echo "$as_me:19346: result: no" >&5
d17265 1
a17265 1
	eval "ac_cv_func_openpty=yes"
d17275 1
a17275 1
	echo "$as_me:19360: result: yes, in $ac_res" >&5
d17280 1
a17280 1
echo "$as_me:19365: checking for tgetent" >&5
d17289 5
a17293 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d17296 1
a17296 1
#line 19383 "configure"
d17308 1
a17308 1
if { (eval echo "$as_me:19395: \"$ac_link\"") >&5
d17311 1
a17311 1
  echo "$as_me:19398: \$? = $ac_status" >&5
d17313 2
a17314 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19401: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17316 2
a17317 2
  echo "$as_me:19404: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17323 1
a17323 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17337 2
a17338 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19426: checking for $ac_func" >&5
d17340 1
a17340 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17344 1
a17344 1
#line 19432 "configure"
d17375 1
a17375 1
if { (eval echo "$as_me:19463: \"$ac_link\"") >&5
d17378 1
a17378 1
  echo "$as_me:19466: \$? = $ac_status" >&5
d17380 2
a17381 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19469: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17383 3
a17385 3
  echo "$as_me:19472: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17389 1
a17389 1
eval "$as_ac_var=no"
d17391 1
a17391 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17393 3
a17395 3
echo "$as_me:19482: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d17397 1
a17397 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17417 1
a17417 1
	echo "$as_me:19506: result: yes" >&5
d17423 1
a17423 1
	echo "$as_me:19512: result: no" >&5
d17437 1
a17437 1
	echo "$as_me:19526: result: yes, in $ac_res" >&5
d17442 1
a17442 1
echo "$as_me:19531: checking for gethostbyname2" >&5
d17451 5
a17455 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d17458 1
a17458 1
#line 19549 "configure"
d17470 1
a17470 1
if { (eval echo "$as_me:19561: \"$ac_link\"") >&5
d17473 1
a17473 1
  echo "$as_me:19564: \$? = $ac_status" >&5
d17475 2
a17476 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19567: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17478 2
a17479 2
  echo "$as_me:19570: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17485 1
a17485 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17499 2
a17500 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19592: checking for $ac_func" >&5
d17502 1
a17502 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17506 1
a17506 1
#line 19598 "configure"
d17537 1
a17537 1
if { (eval echo "$as_me:19629: \"$ac_link\"") >&5
d17540 1
a17540 1
  echo "$as_me:19632: \$? = $ac_status" >&5
d17542 2
a17543 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19635: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17545 3
a17547 3
  echo "$as_me:19638: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17551 1
a17551 1
eval "$as_ac_var=no"
d17553 1
a17553 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17555 3
a17557 3
echo "$as_me:19648: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d17559 1
a17559 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17579 1
a17579 1
	echo "$as_me:19672: result: yes" >&5
d17585 1
a17585 1
	echo "$as_me:19678: result: no" >&5
d17599 1
a17599 1
	echo "$as_me:19692: result: yes, in $ac_res" >&5
d17608 1
a17608 1
echo "$as_me:19701: checking for res_search" >&5
d17617 5
a17621 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d17624 1
a17624 1
#line 19719 "configure"
d17650 1
a17650 1
if { (eval echo "$as_me:19745: \"$ac_link\"") >&5
d17653 1
a17653 1
  echo "$as_me:19748: \$? = $ac_status" >&5
d17655 2
a17656 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19751: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17658 2
a17659 2
  echo "$as_me:19754: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17665 1
a17665 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17679 2
a17680 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19776: checking for $ac_func" >&5
d17682 1
a17682 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17686 1
a17686 1
#line 19782 "configure"
d17717 1
a17717 1
if { (eval echo "$as_me:19813: \"$ac_link\"") >&5
d17720 1
a17720 1
  echo "$as_me:19816: \$? = $ac_status" >&5
d17722 2
a17723 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19819: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17725 3
a17727 3
  echo "$as_me:19822: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17731 1
a17731 1
eval "$as_ac_var=no"
d17733 1
a17733 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17735 3
a17737 3
echo "$as_me:19832: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d17739 1
a17739 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17759 1
a17759 1
	echo "$as_me:19856: result: yes" >&5
d17765 1
a17765 1
	echo "$as_me:19862: result: no" >&5
d17779 1
a17779 1
	echo "$as_me:19876: result: yes, in $ac_res" >&5
d17788 1
a17788 1
echo "$as_me:19885: checking for dn_expand" >&5
d17797 5
a17801 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d17804 1
a17804 1
#line 19903 "configure"
d17830 1
a17830 1
if { (eval echo "$as_me:19929: \"$ac_link\"") >&5
d17833 1
a17833 1
  echo "$as_me:19932: \$? = $ac_status" >&5
d17835 2
a17836 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19935: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17838 2
a17839 2
  echo "$as_me:19938: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17845 1
a17845 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17859 2
a17860 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19960: checking for $ac_func" >&5
d17862 1
a17862 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17866 1
a17866 1
#line 19966 "configure"
d17897 1
a17897 1
if { (eval echo "$as_me:19997: \"$ac_link\"") >&5
d17900 1
a17900 1
  echo "$as_me:20000: \$? = $ac_status" >&5
d17902 2
a17903 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20003: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17905 3
a17907 3
  echo "$as_me:20006: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17911 1
a17911 1
eval "$as_ac_var=no"
d17913 1
a17913 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17915 3
a17917 3
echo "$as_me:20016: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d17919 1
a17919 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17939 1
a17939 1
	echo "$as_me:20040: result: yes" >&5
d17945 1
a17945 1
	echo "$as_me:20046: result: no" >&5
d17959 1
a17959 1
	echo "$as_me:20060: result: yes, in $ac_res" >&5
d17968 1
a17968 1
echo "$as_me:20069: checking for working snprintf" >&5
d17978 1
a17978 1
#line 20079 "configure"
d17991 1
a17991 1
if { (eval echo "$as_me:20092: \"$ac_link\"") >&5
d17994 3
a17996 4
  echo "$as_me:20095: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:20097: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d17998 2
a17999 2
  echo "$as_me:20100: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18007 1
a18007 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d18010 1
a18010 1
echo "$as_me:20112: result: $ac_cv_func_snprintf_working" >&5
d18023 1
a18023 1
echo "$as_me:20125: checking if snprintf needs a prototype" >&5
d18029 1
a18029 1
#line 20131 "configure"
d18044 1
a18044 1
if { (eval echo "$as_me:20146: \"$ac_compile\"") >&5
d18047 1
a18047 1
  echo "$as_me:20149: \$? = $ac_status" >&5
d18049 2
a18050 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:20152: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18052 2
a18053 2
  echo "$as_me:20155: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18062 1
a18062 1
echo "$as_me:20165: result: $ac_cv_func_snprintf_noproto" >&5
d18077 1
a18077 1
echo "$as_me:20180: checking for working vsnprintf" >&5
d18087 1
a18087 1
#line 20190 "configure"
d18110 1
a18110 1
if { (eval echo "$as_me:20213: \"$ac_link\"") >&5
d18113 3
a18115 4
  echo "$as_me:20216: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:20218: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18117 2
a18118 2
  echo "$as_me:20221: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18126 1
a18126 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d18129 1
a18129 1
echo "$as_me:20233: result: $ac_cv_func_vsnprintf_working" >&5
d18142 1
a18142 1
echo "$as_me:20246: checking if vsnprintf needs a prototype" >&5
d18148 1
a18148 1
#line 20252 "configure"
d18163 1
a18163 1
if { (eval echo "$as_me:20267: \"$ac_compile\"") >&5
d18166 1
a18166 1
  echo "$as_me:20270: \$? = $ac_status" >&5
d18168 2
a18169 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:20273: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18171 2
a18172 2
  echo "$as_me:20276: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18181 1
a18181 1
echo "$as_me:20286: result: $ac_cv_func_vsnprintf_noproto" >&5
d18230 2
a18231 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20336: checking for $ac_func" >&5
d18233 1
a18233 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d18237 1
a18237 1
#line 20342 "configure"
d18268 1
a18268 1
if { (eval echo "$as_me:20373: \"$ac_link\"") >&5
d18271 1
a18271 1
  echo "$as_me:20376: \$? = $ac_status" >&5
d18273 2
a18274 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20379: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18276 3
a18278 3
  echo "$as_me:20382: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d18282 1
a18282 1
eval "$as_ac_var=no"
d18284 1
a18284 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18286 3
a18288 3
echo "$as_me:20392: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d18290 1
a18290 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d18298 2
a18299 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:20405: checking for $ac_header" >&5
d18301 1
a18301 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d18305 1
a18305 1
#line 20411 "configure"
d18309 2
a18310 2
if { (eval echo "$as_me:20415: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d18315 2
a18316 2
  echo "$as_me:20421: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
d18326 1
a18326 1
  eval "$as_ac_Header=yes"
d18330 1
a18330 1
  eval "$as_ac_Header=no"
d18334 3
a18336 3
echo "$as_me:20440: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d18338 1
a18338 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18346 2
a18347 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20453: checking for $ac_func" >&5
d18349 1
a18349 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d18353 1
a18353 1
#line 20459 "configure"
d18384 1
a18384 1
if { (eval echo "$as_me:20490: \"$ac_link\"") >&5
d18387 1
a18387 1
  echo "$as_me:20493: \$? = $ac_status" >&5
d18389 2
a18390 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20496: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18392 3
a18394 3
  echo "$as_me:20499: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d18398 1
a18398 1
eval "$as_ac_var=no"
d18400 1
a18400 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18402 3
a18404 3
echo "$as_me:20509: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d18406 1
a18406 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d18412 1
a18412 1
echo "$as_me:20519: checking for getpwnam_r" >&5
d18421 5
a18425 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d18428 1
a18428 1
#line 20537 "configure"
d18440 1
a18440 1
if { (eval echo "$as_me:20549: \"$ac_link\"") >&5
d18443 1
a18443 1
  echo "$as_me:20552: \$? = $ac_status" >&5
d18445 2
a18446 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20555: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18448 2
a18449 2
  echo "$as_me:20558: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18455 1
a18455 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18469 2
a18470 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20580: checking for $ac_func" >&5
d18472 1
a18472 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d18476 1
a18476 1
#line 20586 "configure"
d18507 1
a18507 1
if { (eval echo "$as_me:20617: \"$ac_link\"") >&5
d18510 1
a18510 1
  echo "$as_me:20620: \$? = $ac_status" >&5
d18512 2
a18513 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20623: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18515 3
a18517 3
  echo "$as_me:20626: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d18521 1
a18521 1
eval "$as_ac_var=no"
d18523 1
a18523 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18525 3
a18527 3
echo "$as_me:20636: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d18529 1
a18529 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d18549 1
a18549 1
	echo "$as_me:20660: result: yes" >&5
d18555 1
a18555 1
	echo "$as_me:20666: result: no" >&5
d18569 1
a18569 1
	echo "$as_me:20680: result: yes, in $ac_res" >&5
d18575 1
a18575 1
	echo "$as_me:20686: checking if getpwnam_r is posix" >&5
d18586 1
a18586 1
#line 20697 "configure"
d18598 1
a18598 1
if { (eval echo "$as_me:20709: \"$ac_link\"") >&5
d18601 3
a18603 4
  echo "$as_me:20712: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:20714: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18605 2
a18606 2
  echo "$as_me:20717: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18614 1
a18614 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d18618 1
a18618 1
echo "$as_me:20730: result: $ac_cv_func_getpwnam_r_posix" >&5
d18629 1
a18629 1
echo "$as_me:20741: checking for getsockopt" >&5
d18638 5
a18642 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d18645 1
a18645 1
#line 20759 "configure"
d18662 1
a18662 1
if { (eval echo "$as_me:20776: \"$ac_link\"") >&5
d18665 1
a18665 1
  echo "$as_me:20779: \$? = $ac_status" >&5
d18667 2
a18668 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20782: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18670 2
a18671 2
  echo "$as_me:20785: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18677 1
a18677 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18691 2
a18692 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20807: checking for $ac_func" >&5
d18694 1
a18694 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d18698 1
a18698 1
#line 20813 "configure"
d18729 1
a18729 1
if { (eval echo "$as_me:20844: \"$ac_link\"") >&5
d18732 1
a18732 1
  echo "$as_me:20847: \$? = $ac_status" >&5
d18734 2
a18735 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20850: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18737 3
a18739 3
  echo "$as_me:20853: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d18743 1
a18743 1
eval "$as_ac_var=no"
d18745 1
a18745 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18747 3
a18749 3
echo "$as_me:20863: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d18751 1
a18751 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d18771 1
a18771 1
	echo "$as_me:20887: result: yes" >&5
d18777 1
a18777 1
	echo "$as_me:20893: result: no" >&5
d18791 1
a18791 1
	echo "$as_me:20907: result: yes, in $ac_res" >&5
d18796 1
a18796 1
echo "$as_me:20912: checking for setsockopt" >&5
d18805 5
a18809 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d18812 1
a18812 1
#line 20930 "configure"
d18829 1
a18829 1
if { (eval echo "$as_me:20947: \"$ac_link\"") >&5
d18832 1
a18832 1
  echo "$as_me:20950: \$? = $ac_status" >&5
d18834 2
a18835 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20953: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18837 2
a18838 2
  echo "$as_me:20956: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18844 1
a18844 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18858 2
a18859 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20978: checking for $ac_func" >&5
d18861 1
a18861 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d18865 1
a18865 1
#line 20984 "configure"
d18896 1
a18896 1
if { (eval echo "$as_me:21015: \"$ac_link\"") >&5
d18899 1
a18899 1
  echo "$as_me:21018: \$? = $ac_status" >&5
d18901 2
a18902 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:21021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d18904 3
a18906 3
  echo "$as_me:21024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d18910 1
a18910 1
eval "$as_ac_var=no"
d18912 1
a18912 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18914 3
a18916 3
echo "$as_me:21034: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d18918 1
a18918 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d18928 151
a19078 1
eval "LIB_setsockopt=$ac_res"
d19080 2
a19081 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d19084 1
a19084 15
	echo "$as_me:21058: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:21064: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d19086 2
a19087 2
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
d19090 1
a19090 4
	echo "$as_me:21078: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d19092 3
a19094 6
for ac_func in getudbnam setlim
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:21086: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d19097 5
d19103 1
a19103 1
#line 21092 "configure"
a19104 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d19106 4
a19109 2
int
main ()
d19111 2
a19112 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
a19113 3
  ;
  return 0;
}
d19115 2
a19116 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21123: \"$ac_link\"") >&5
d19119 3
a19121 5
  echo "$as_me:21126: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:21129: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19123 3
a19125 3
  echo "$as_me:21132: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d19127 2
a19128 1
  echo "$as_me: failed program was:" >&5
d19130 1
a19130 1
eval "$as_ac_var=no"
d19132 1
a19132 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d19134 8
a19141 5
echo "$as_me:21142: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a19144 1
done
d19146 1
a19146 1
echo "$as_me:21152: checking for ut_addr in struct utmp" >&5
d19153 1
a19153 1
#line 21159 "configure"
d19165 1
a19165 1
if { (eval echo "$as_me:21171: \"$ac_compile\"") >&5
d19168 1
a19168 1
  echo "$as_me:21174: \$? = $ac_status" >&5
d19170 2
a19171 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21177: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19173 2
a19174 2
  echo "$as_me:21180: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19183 1
a19183 1
echo "$as_me:21190: result: $ac_cv_type_struct_utmp_ut_addr" >&5
d19193 1
a19193 1
echo "$as_me:21200: checking for ut_host in struct utmp" >&5
d19200 1
a19200 1
#line 21207 "configure"
d19212 1
a19212 1
if { (eval echo "$as_me:21219: \"$ac_compile\"") >&5
d19215 1
a19215 1
  echo "$as_me:21222: \$? = $ac_status" >&5
d19217 2
a19218 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21225: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19220 2
a19221 2
  echo "$as_me:21228: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19230 1
a19230 1
echo "$as_me:21238: result: $ac_cv_type_struct_utmp_ut_host" >&5
d19240 1
a19240 1
echo "$as_me:21248: checking for ut_id in struct utmp" >&5
d19247 1
a19247 1
#line 21255 "configure"
d19259 1
a19259 1
if { (eval echo "$as_me:21267: \"$ac_compile\"") >&5
d19262 1
a19262 1
  echo "$as_me:21270: \$? = $ac_status" >&5
d19264 2
a19265 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21273: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19267 2
a19268 2
  echo "$as_me:21276: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19277 1
a19277 1
echo "$as_me:21286: result: $ac_cv_type_struct_utmp_ut_id" >&5
d19287 1
a19287 1
echo "$as_me:21296: checking for ut_pid in struct utmp" >&5
d19294 1
a19294 1
#line 21303 "configure"
d19306 1
a19306 1
if { (eval echo "$as_me:21315: \"$ac_compile\"") >&5
d19309 1
a19309 1
  echo "$as_me:21318: \$? = $ac_status" >&5
d19311 2
a19312 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21321: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19314 2
a19315 2
  echo "$as_me:21324: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19324 1
a19324 1
echo "$as_me:21334: result: $ac_cv_type_struct_utmp_ut_pid" >&5
d19334 1
a19334 1
echo "$as_me:21344: checking for ut_type in struct utmp" >&5
d19341 1
a19341 1
#line 21351 "configure"
d19353 1
a19353 1
if { (eval echo "$as_me:21363: \"$ac_compile\"") >&5
d19356 1
a19356 1
  echo "$as_me:21366: \$? = $ac_status" >&5
d19358 2
a19359 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21369: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19361 2
a19362 2
  echo "$as_me:21372: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19371 1
a19371 1
echo "$as_me:21382: result: $ac_cv_type_struct_utmp_ut_type" >&5
d19381 1
a19381 1
echo "$as_me:21392: checking for ut_user in struct utmp" >&5
d19388 1
a19388 1
#line 21399 "configure"
d19400 1
a19400 1
if { (eval echo "$as_me:21411: \"$ac_compile\"") >&5
d19403 1
a19403 1
  echo "$as_me:21414: \$? = $ac_status" >&5
d19405 2
a19406 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21417: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19408 2
a19409 2
  echo "$as_me:21420: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19418 1
a19418 1
echo "$as_me:21430: result: $ac_cv_type_struct_utmp_ut_user" >&5
d19428 1
a19428 1
echo "$as_me:21440: checking for ut_exit in struct utmpx" >&5
d19435 1
a19435 1
#line 21447 "configure"
d19447 1
a19447 1
if { (eval echo "$as_me:21459: \"$ac_compile\"") >&5
d19450 1
a19450 1
  echo "$as_me:21462: \$? = $ac_status" >&5
d19452 2
a19453 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21465: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19455 2
a19456 2
  echo "$as_me:21468: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19465 1
a19465 1
echo "$as_me:21478: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
d19475 1
a19475 1
echo "$as_me:21488: checking for ut_syslen in struct utmpx" >&5
d19482 1
a19482 1
#line 21495 "configure"
d19494 1
a19494 1
if { (eval echo "$as_me:21507: \"$ac_compile\"") >&5
d19497 1
a19497 1
  echo "$as_me:21510: \$? = $ac_status" >&5
d19499 2
a19500 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21513: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19502 2
a19503 2
  echo "$as_me:21516: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19512 1
a19512 1
echo "$as_me:21526: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
d19522 1
a19522 1
echo "$as_me:21536: checking for tm_gmtoff in struct tm" >&5
d19529 1
a19529 1
#line 21543 "configure"
d19541 1
a19541 1
if { (eval echo "$as_me:21555: \"$ac_compile\"") >&5
d19544 1
a19544 1
  echo "$as_me:21558: \$? = $ac_status" >&5
d19546 2
a19547 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21561: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19549 2
a19550 2
  echo "$as_me:21564: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19559 1
a19559 1
echo "$as_me:21574: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
d19569 1
a19569 1
echo "$as_me:21584: checking for tm_zone in struct tm" >&5
d19576 1
a19576 1
#line 21591 "configure"
d19588 1
a19588 1
if { (eval echo "$as_me:21603: \"$ac_compile\"") >&5
d19591 1
a19591 1
  echo "$as_me:21606: \$? = $ac_status" >&5
d19593 2
a19594 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21609: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19596 2
a19597 2
  echo "$as_me:21612: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19606 1
a19606 1
echo "$as_me:21622: result: $ac_cv_type_struct_tm_tm_zone" >&5
d19616 1
a19616 1
echo "$as_me:21632: checking for timezone" >&5
d19623 1
a19623 1
#line 21639 "configure"
d19636 1
a19636 1
if { (eval echo "$as_me:21652: \"$ac_link\"") >&5
d19639 1
a19639 1
  echo "$as_me:21655: \$? = $ac_status" >&5
d19641 2
a19642 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:21658: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19644 2
a19645 2
  echo "$as_me:21661: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19652 1
a19652 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d19657 1
a19657 1
echo "$as_me:21674: result: $ac_foo" >&5
d19665 1
a19665 1
echo "$as_me:21682: checking if timezone is properly declared" >&5
d19672 1
a19672 1
#line 21689 "configure"
d19685 1
a19685 1
if { (eval echo "$as_me:21702: \"$ac_compile\"") >&5
d19688 1
a19688 1
  echo "$as_me:21705: \$? = $ac_status" >&5
d19690 2
a19691 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21708: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19693 2
a19694 2
  echo "$as_me:21711: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19705 1
a19705 1
echo "$as_me:21723: result: $ac_cv_var_timezone_declaration" >&5
d19718 1
a19718 1
echo "$as_me:21736: checking for sa_family_t" >&5
d19724 1
a19724 1
#line 21742 "configure"
d19741 1
a19741 1
if { (eval echo "$as_me:21759: \"$ac_compile\"") >&5
d19744 1
a19744 1
  echo "$as_me:21762: \$? = $ac_status" >&5
d19746 2
a19747 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21765: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19749 2
a19750 2
  echo "$as_me:21768: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19760 1
a19760 1
echo "$as_me:21779: result: $ac_foo" >&5
d19765 1
a19765 1
	echo "$as_me:21784: checking for sa_family_t" >&5
d19771 1
a19771 1
#line 21790 "configure"
d19786 1
a19786 1
if { (eval echo "$as_me:21805: \"$ac_compile\"") >&5
d19789 1
a19789 1
  echo "$as_me:21808: \$? = $ac_status" >&5
d19791 2
a19792 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21811: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19794 2
a19795 2
  echo "$as_me:21814: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19804 1
a19804 1
echo "$as_me:21824: result: $ac_cv_type_sa_family_t" >&5
d19823 1
a19823 1
echo "$as_me:21843: checking for socklen_t" >&5
d19829 1
a19829 1
#line 21849 "configure"
d19846 1
a19846 1
if { (eval echo "$as_me:21866: \"$ac_compile\"") >&5
d19849 1
a19849 1
  echo "$as_me:21869: \$? = $ac_status" >&5
d19851 2
a19852 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21872: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19854 2
a19855 2
  echo "$as_me:21875: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19865 1
a19865 1
echo "$as_me:21886: result: $ac_foo" >&5
d19870 1
a19870 1
	echo "$as_me:21891: checking for socklen_t" >&5
d19876 1
a19876 1
#line 21897 "configure"
d19891 1
a19891 1
if { (eval echo "$as_me:21912: \"$ac_compile\"") >&5
d19894 1
a19894 1
  echo "$as_me:21915: \$? = $ac_status" >&5
d19896 2
a19897 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21918: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19899 2
a19900 2
  echo "$as_me:21921: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19909 1
a19909 1
echo "$as_me:21931: result: $ac_cv_type_socklen_t" >&5
d19928 1
a19928 1
echo "$as_me:21950: checking for struct sockaddr" >&5
d19934 1
a19934 1
#line 21956 "configure"
d19951 1
a19951 1
if { (eval echo "$as_me:21973: \"$ac_compile\"") >&5
d19954 1
a19954 1
  echo "$as_me:21976: \$? = $ac_status" >&5
d19956 2
a19957 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21979: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d19959 2
a19960 2
  echo "$as_me:21982: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19970 1
a19970 1
echo "$as_me:21993: result: $ac_foo" >&5
d19975 1
a19975 1
	echo "$as_me:21998: checking for struct sockaddr" >&5
d19981 1
a19981 1
#line 22004 "configure"
d19996 1
a19996 1
if { (eval echo "$as_me:22019: \"$ac_compile\"") >&5
d19999 1
a19999 1
  echo "$as_me:22022: \$? = $ac_status" >&5
d20001 2
a20002 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22025: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20004 2
a20005 2
  echo "$as_me:22028: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d20014 1
a20014 1
echo "$as_me:22038: result: $ac_cv_type_struct_sockaddr" >&5
d20033 1
a20033 1
echo "$as_me:22057: checking for struct sockaddr_storage" >&5
d20039 1
a20039 1
#line 22063 "configure"
d20056 1
a20056 1
if { (eval echo "$as_me:22080: \"$ac_compile\"") >&5
d20059 1
a20059 1
  echo "$as_me:22083: \$? = $ac_status" >&5
d20061 2
a20062 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22086: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20064 2
a20065 2
  echo "$as_me:22089: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d20075 1
a20075 1
echo "$as_me:22100: result: $ac_foo" >&5
d20080 1
a20080 1
	echo "$as_me:22105: checking for struct sockaddr_storage" >&5
d20086 1
a20086 1
#line 22111 "configure"
d20101 1
a20101 1
if { (eval echo "$as_me:22126: \"$ac_compile\"") >&5
d20104 1
a20104 1
  echo "$as_me:22129: \$? = $ac_status" >&5
d20106 2
a20107 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22132: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20109 2
a20110 2
  echo "$as_me:22135: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d20119 1
a20119 1
echo "$as_me:22145: result: $ac_cv_type_struct_sockaddr_storage" >&5
d20138 1
a20138 1
echo "$as_me:22164: checking for struct addrinfo" >&5
d20144 1
a20144 1
#line 22170 "configure"
d20161 1
a20161 1
if { (eval echo "$as_me:22187: \"$ac_compile\"") >&5
d20164 1
a20164 1
  echo "$as_me:22190: \$? = $ac_status" >&5
d20166 2
a20167 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22193: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20169 2
a20170 2
  echo "$as_me:22196: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d20180 1
a20180 1
echo "$as_me:22207: result: $ac_foo" >&5
d20185 1
a20185 1
	echo "$as_me:22212: checking for struct addrinfo" >&5
d20191 1
a20191 1
#line 22218 "configure"
d20206 1
a20206 1
if { (eval echo "$as_me:22233: \"$ac_compile\"") >&5
d20209 1
a20209 1
  echo "$as_me:22236: \$? = $ac_status" >&5
d20211 2
a20212 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22239: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20214 2
a20215 2
  echo "$as_me:22242: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d20224 1
a20224 1
echo "$as_me:22252: result: $ac_cv_type_struct_addrinfo" >&5
d20242 1
a20242 1
echo "$as_me:22270: checking for struct winsize" >&5
d20251 1
a20251 1
#line 22279 "configure"
d20272 1
a20272 1
echo "$as_me:22300: result: $ac_cv_struct_winsize" >&5
d20275 1
a20275 1
#line 22303 "configure"
d20291 1
a20291 1
#line 22319 "configure"
d20306 1
a20306 1
echo "$as_me:22334: checking for struct spwd" >&5
d20313 1
a20313 1
#line 22341 "configure"
d20328 1
a20328 1
if { (eval echo "$as_me:22356: \"$ac_compile\"") >&5
d20331 1
a20331 1
  echo "$as_me:22359: \$? = $ac_status" >&5
d20333 2
a20334 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22362: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20336 2
a20337 2
  echo "$as_me:22365: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d20348 1
a20348 1
echo "$as_me:22377: result: $ac_cv_struct_spwd" >&5
d20359 1
a20359 1
echo "$as_me:22388: checking for sa_len in struct sockaddr" >&5
d20366 1
a20366 1
#line 22395 "configure"
d20379 1
a20379 1
if { (eval echo "$as_me:22408: \"$ac_compile\"") >&5
d20382 1
a20382 1
  echo "$as_me:22411: \$? = $ac_status" >&5
d20384 2
a20385 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22414: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20387 2
a20388 2
  echo "$as_me:22417: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d20397 3
a20399 199
echo "$as_me:22427: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
EOF

fi

echo "$as_me:22437: checking for int8_t" >&5
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
if test "${ac_cv_type_int8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 22443 "configure"
#include "confdefs.h"

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int
main ()
{
if ((int8_t *) 0)
  return 0;
if (sizeof (int8_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22474: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22477: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22480: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22483: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int8_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int8_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22493: result: $ac_cv_type_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_int8_t" >&6
if test $ac_cv_type_int8_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_INT8_T 1
EOF

fi
echo "$as_me:22502: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${ac_cv_type_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 22508 "configure"
#include "confdefs.h"

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int
main ()
{
if ((int16_t *) 0)
  return 0;
if (sizeof (int16_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22539: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22545: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22548: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int16_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int16_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22558: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
if test $ac_cv_type_int16_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_INT16_T 1
EOF

fi
echo "$as_me:22567: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${ac_cv_type_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 22573 "configure"
#include "confdefs.h"

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int
main ()
{
if ((int32_t *) 0)
  return 0;
if (sizeof (int32_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22604: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22607: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22610: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22613: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int32_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int32_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22623: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
if test $ac_cv_type_int32_t = yes; then
d20401 2
a20402 2
cat >>confdefs.h <<EOF
#define HAVE_INT32_T 1
d20406 8
a20413 3
echo "$as_me:22632: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
if test "${ac_cv_type_int64_t+set}" = set; then
d20417 1
a20417 1
#line 22638 "configure"
d20439 2
a20440 4
if ((int64_t *) 0)
  return 0;
if (sizeof (int64_t))
  return 0;
d20446 1
a20446 1
if { (eval echo "$as_me:22669: \"$ac_compile\"") >&5
d20449 1
a20449 1
  echo "$as_me:22672: \$? = $ac_status" >&5
d20451 2
a20452 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22675: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20454 3
a20456 3
  echo "$as_me:22678: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int64_t=yes
d20460 1
a20460 1
ac_cv_type_int64_t=no
a20463 3
echo "$as_me:22688: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6
if test $ac_cv_type_int64_t = yes; then
d20465 5
a20469 2
cat >>confdefs.h <<EOF
#define HAVE_INT64_T 1
d20472 17
a20488 4
fi
echo "$as_me:22697: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int8_t+set}" = set; then
d20492 1
a20492 1
#line 22703 "configure"
d20494 42
d20537 12
a20548 15
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
d20553 1
a20553 4
if ((u_int8_t *) 0)
  return 0;
if (sizeof (u_int8_t))
  return 0;
d20558 3
a20560 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22734: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20562 1
a20562 1
  echo "$as_me:22737: \$? = $ac_status" >&5
d20564 2
a20565 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22740: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20567 3
a20569 3
  echo "$as_me:22743: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int8_t=yes
a20572 1
ac_cv_type_u_int8_t=no
d20574 6
a20579 1
rm -f conftest.$ac_objext conftest.$ac_ext
a20580 3
echo "$as_me:22753: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
if test $ac_cv_type_u_int8_t = yes; then
d20582 3
a20584 3
cat >>confdefs.h <<EOF
#define HAVE_U_INT8_T 1
EOF
d20586 6
a20591 4
fi
echo "$as_me:22762: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int16_t+set}" = set; then
d20595 1
a20595 1
#line 22768 "configure"
d20597 6
a20602 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d20604 4
d20612 9
a20620 4
if ((u_int16_t *) 0)
  return 0;
if (sizeof (u_int16_t))
  return 0;
d20625 3
a20627 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22799: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20629 1
a20629 1
  echo "$as_me:22802: \$? = $ac_status" >&5
d20631 2
a20632 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22805: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20634 3
a20636 3
  echo "$as_me:22808: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int16_t=yes
d20640 11
a20650 1
ac_cv_type_u_int16_t=no
d20652 2
a20653 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20655 28
a20682 3
echo "$as_me:22818: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
if test $ac_cv_type_u_int16_t = yes; then
d20684 2
a20685 2
cat >>confdefs.h <<EOF
#define HAVE_U_INT16_T 1
d20688 8
a20695 4
fi
echo "$as_me:22827: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int32_t+set}" = set; then
d20698 12
a20709 2
  cat >conftest.$ac_ext <<_ACEOF
#line 22833 "configure"
a20711 16
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

d20715 1
a20715 4
if ((u_int32_t *) 0)
  return 0;
if (sizeof (u_int32_t))
  return 0;
d20720 3
a20722 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22864: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20724 1
a20724 1
  echo "$as_me:22867: \$? = $ac_status" >&5
d20726 2
a20727 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22870: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20729 3
a20731 3
  echo "$as_me:22873: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int32_t=yes
a20734 1
ac_cv_type_u_int32_t=no
d20736 6
a20741 1
rm -f conftest.$ac_objext conftest.$ac_ext
a20742 3
echo "$as_me:22883: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
if test $ac_cv_type_u_int32_t = yes; then
d20744 3
a20746 3
cat >>confdefs.h <<EOF
#define HAVE_U_INT32_T 1
EOF
d20748 6
a20753 4
fi
echo "$as_me:22892: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int64_t+set}" = set; then
d20757 1
a20757 1
#line 22898 "configure"
d20759 6
a20764 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d20766 4
d20774 9
a20782 4
if ((u_int64_t *) 0)
  return 0;
if (sizeof (u_int64_t))
  return 0;
d20787 3
a20789 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22929: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20791 1
a20791 1
  echo "$as_me:22932: \$? = $ac_status" >&5
d20793 2
a20794 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22935: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20796 17
a20812 7
  echo "$as_me:22938: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_u_int64_t=no
d20814 2
a20815 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20817 28
a20844 3
echo "$as_me:22948: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
if test $ac_cv_type_u_int64_t = yes; then
d20846 2
a20847 2
cat >>confdefs.h <<EOF
#define HAVE_U_INT64_T 1
d20850 8
a20857 4
fi
echo "$as_me:22957: checking for uint8_t" >&5
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
if test "${ac_cv_type_uint8_t+set}" = set; then
d20860 12
a20871 2
  cat >conftest.$ac_ext <<_ACEOF
#line 22963 "configure"
a20873 16
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

d20877 1
a20877 4
if ((uint8_t *) 0)
  return 0;
if (sizeof (uint8_t))
  return 0;
d20882 3
a20884 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22994: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20886 1
a20886 1
  echo "$as_me:22997: \$? = $ac_status" >&5
d20888 2
a20889 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23000: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20891 3
a20893 3
  echo "$as_me:23003: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint8_t=yes
a20896 1
ac_cv_type_uint8_t=no
d20898 6
a20903 1
rm -f conftest.$ac_objext conftest.$ac_ext
a20904 3
echo "$as_me:23013: result: $ac_cv_type_uint8_t" >&5
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
if test $ac_cv_type_uint8_t = yes; then
d20906 3
a20908 3
cat >>confdefs.h <<EOF
#define HAVE_UINT8_T 1
EOF
d20910 6
a20915 4
fi
echo "$as_me:23022: checking for uint16_t" >&5
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
if test "${ac_cv_type_uint16_t+set}" = set; then
d20919 1
a20919 1
#line 23028 "configure"
d20921 6
a20926 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d20928 4
d20936 9
a20944 4
if ((uint16_t *) 0)
  return 0;
if (sizeof (uint16_t))
  return 0;
d20949 3
a20951 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:23059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20953 1
a20953 1
  echo "$as_me:23062: \$? = $ac_status" >&5
d20955 2
a20956 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d20958 3
a20960 3
  echo "$as_me:23068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint16_t=yes
d20964 11
a20974 1
ac_cv_type_uint16_t=no
d20976 2
a20977 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20979 28
a21006 3
echo "$as_me:23078: result: $ac_cv_type_uint16_t" >&5
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
if test $ac_cv_type_uint16_t = yes; then
d21008 2
a21009 2
cat >>confdefs.h <<EOF
#define HAVE_UINT16_T 1
d21012 8
a21019 4
fi
echo "$as_me:23087: checking for uint32_t" >&5
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
if test "${ac_cv_type_uint32_t+set}" = set; then
d21022 12
a21033 2
  cat >conftest.$ac_ext <<_ACEOF
#line 23093 "configure"
a21035 16
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

d21039 1
a21039 4
if ((uint32_t *) 0)
  return 0;
if (sizeof (uint32_t))
  return 0;
d21044 3
a21046 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:23124: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d21048 1
a21048 1
  echo "$as_me:23127: \$? = $ac_status" >&5
d21050 2
a21051 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23130: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21053 3
a21055 3
  echo "$as_me:23133: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint32_t=yes
a21058 1
ac_cv_type_uint32_t=no
d21060 6
a21065 1
rm -f conftest.$ac_objext conftest.$ac_ext
a21066 3
echo "$as_me:23143: result: $ac_cv_type_uint32_t" >&5
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
if test $ac_cv_type_uint32_t = yes; then
d21068 3
a21070 3
cat >>confdefs.h <<EOF
#define HAVE_UINT32_T 1
EOF
d21072 6
a21077 4
fi
echo "$as_me:23152: checking for uint64_t" >&5
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
if test "${ac_cv_type_uint64_t+set}" = set; then
d21081 1
a21081 1
#line 23158 "configure"
d21083 6
a21088 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d21090 4
d21098 9
a21106 4
if ((uint64_t *) 0)
  return 0;
if (sizeof (uint64_t))
  return 0;
d21111 3
a21113 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:23189: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d21115 1
a21115 1
  echo "$as_me:23192: \$? = $ac_status" >&5
d21117 2
a21118 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23195: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21120 3
a21122 3
  echo "$as_me:23198: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint64_t=yes
d21126 1
a21126 1
ac_cv_type_uint64_t=no
d21128 1
a21128 1
rm -f conftest.$ac_objext conftest.$ac_ext
d21130 5
a21134 6
echo "$as_me:23208: result: $ac_cv_type_uint64_t" >&5
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
if test $ac_cv_type_uint64_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_UINT64_T 1
d21138 1
d21140 5
a21144 1
crypto_lib=unknown
d21146 7
a21152 3
# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"
d21154 15
a21168 13
fi;

# Check whether --with-openssl-lib or --without-openssl-lib was given.
if test "${with_openssl_lib+set}" = set; then
  withval="$with_openssl_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:23230: error: No argument for --with-openssl-lib" >&5
echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;
d21170 3
a21172 11
# Check whether --with-openssl-include or --without-openssl-include was given.
if test "${with_openssl_include+set}" = set; then
  withval="$with_openssl_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:23242: error: No argument for --with-openssl-include" >&5
echo "$as_me: error: No argument for --with-openssl-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;
d21174 2
a21175 10
case "$with_openssl" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openssl_include" = ""; then
		with_openssl_include="$with_openssl/include"
	fi
	if test "$with_openssl_lib" = ""; then
		with_openssl_lib="$with_openssl/lib$abilibdirext"
	fi
d21179 5
a21183 1
DIR_des=
d21185 11
a21195 23
echo "$as_me:23265: checking for crypto library" >&5
echo $ECHO_N "checking for crypto library... $ECHO_C" >&6

if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then

  save_CPPFLAGS="$CPPFLAGS"
  save_LIBS="$LIBS"
  INCLUDE_des=
  LIB_des=
  if test "$with_openssl_include" != ""; then
    INCLUDE_des="-I${with_openssl}/include"
  fi
  if test "$with_openssl_lib" != ""; then
    LIB_des="-L${with_openssl}/lib"
  fi
  CPPFLAGS="${INCLUDE_des} ${CPPFLAGS}"
  LIB_des="${LIB_des} -lcrypto"
  LIB_des_a="$LIB_des"
  LIB_des_so="$LIB_des"
  LIB_des_appl="$LIB_des"
  LIBS="${LIBS} ${LIB_des}"
  cat >conftest.$ac_ext <<_ACEOF
#line 23287 "configure"
a21197 6
  #include <openssl/md4.h>
  #include <openssl/md5.h>
  #include <openssl/sha.h>
  #include <openssl/des.h>
  #include <openssl/rc4.h>

d21201 1
a21201 12

    MD4_CTX md4;
    MD5_CTX md5;
    SHA_CTX sha1;

    MD4_Init(&md4);
    MD5_Init(&md5);
    SHA1_Init(&sha1);

    des_cbc_encrypt(0, 0, 0, 0, 0, 0);
    RC4(0, 0, 0, 0);

d21207 1
a21207 1
if { (eval echo "$as_me:23316: \"$ac_link\"") >&5
d21210 1
a21210 1
  echo "$as_me:23319: \$? = $ac_status" >&5
d21212 2
a21213 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23322: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21215 3
a21217 11
  echo "$as_me:23325: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

  crypto_lib=libcrypto

cat >>confdefs.h <<\EOF
#define HAVE_OPENSSL 1
EOF

  echo "$as_me:23334: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6
d21222 6
a21227 3
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  CPPFLAGS="$save_CPPFLAGS"
  LIBS="$save_LIBS"
d21230 3
a21232 1
if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
d21234 8
a21241 14
  save_CPPFLAGS="$CPPFLAGS"
  save_LIBS="$LIBS"
  INCLUDE_des="${INCLUDE_krb4}"
  LIB_des=
  if test "$krb4_libdir"; then
    LIB_des="-L${krb4_libdir}"
  fi
  LIB_des="${LIB_des} -ldes"
  CPPFLAGS="${CPPFLAGS} ${INCLUDE_des}"
  LIBS="${LIBS} ${LIB_des}"
  LIB_des_a="$LIB_des"
  LIB_des_so="$LIB_des"
  LIB_des_appl="$LIB_des"
  LIBS="${LIBS} ${LIB_des}"
d21243 1
a21243 1
#line 23362 "configure"
d21245 11
a21255 8

  #undef KRB5 /* makes md4.h et al unhappy */
  #define KRB4
  #include <md4.h>
  #include <md5.h>
  #include <sha.h>
  #include <des.h>
  #include <rc4.h>
d21260 8
a21267 11

    MD4_CTX md4;
    MD5_CTX md5;
    SHA_CTX sha1;

    MD4_Init(&md4);
    MD5_Init(&md5);
    SHA1_Init(&sha1);

    des_cbc_encrypt(0, 0, 0, 0, 0, 0);
    RC4(0, 0, 0, 0);
d21274 1
a21274 1
if { (eval echo "$as_me:23393: \"$ac_link\"") >&5
d21277 1
a21277 1
  echo "$as_me:23396: \$? = $ac_status" >&5
d21279 2
a21280 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23399: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21282 3
a21284 4
  echo "$as_me:23402: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  crypto_lib=krb4; echo "$as_me:23404: result: krb4's libdes" >&5
echo "${ECHO_T}krb4's libdes" >&6
d21288 11
d21300 2
a21301 3
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  CPPFLAGS="$save_CPPFLAGS"
  LIBS="$save_LIBS"
d21303 32
d21336 4
a21339 1
if test "$crypto_lib" = "unknown"; then
d21341 9
a21351 2
  LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
  LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
a21352 4

  echo "$as_me:23423: result: included libdes" >&5
echo "${ECHO_T}included libdes" >&6

d21355 1
a21355 1
echo "$as_me:23428: checking for el_init" >&5
d21364 5
a21368 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d21371 1
a21371 1
#line 23446 "configure"
d21383 1
a21383 1
if { (eval echo "$as_me:23458: \"$ac_link\"") >&5
d21386 1
a21386 1
  echo "$as_me:23461: \$? = $ac_status" >&5
d21388 2
a21389 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23464: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21391 2
a21392 2
  echo "$as_me:23467: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d21398 1
a21398 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21412 2
a21413 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:23489: checking for $ac_func" >&5
d21415 1
a21415 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21419 1
a21419 1
#line 23495 "configure"
d21450 1
a21450 1
if { (eval echo "$as_me:23526: \"$ac_link\"") >&5
d21453 1
a21453 1
  echo "$as_me:23529: \$? = $ac_status" >&5
d21455 2
a21456 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23532: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21458 3
a21460 3
  echo "$as_me:23535: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d21464 1
a21464 1
eval "$as_ac_var=no"
d21466 1
a21466 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21468 3
a21470 3
echo "$as_me:23545: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d21472 1
a21472 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d21492 1
a21492 1
	echo "$as_me:23569: result: yes" >&5
d21498 1
a21498 1
	echo "$as_me:23575: result: no" >&5
d21512 1
a21512 1
	echo "$as_me:23589: result: yes, in $ac_res" >&5
d21518 1
a21518 1
	echo "$as_me:23595: checking for four argument el_init" >&5
d21525 1
a21525 1
#line 23602 "configure"
d21538 1
a21538 1
if { (eval echo "$as_me:23615: \"$ac_compile\"") >&5
d21541 1
a21541 1
  echo "$as_me:23618: \$? = $ac_status" >&5
d21543 2
a21544 3
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23621: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21546 2
a21547 2
  echo "$as_me:23624: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d21556 1
a21556 1
echo "$as_me:23634: result: $ac_cv_func_el_init_four" >&5
d21627 1
a21627 1
echo "$as_me:23705: checking for getmsg" >&5
d21633 1
a21633 1
#line 23711 "configure"
d21664 1
a21664 1
if { (eval echo "$as_me:23742: \"$ac_link\"") >&5
d21667 1
a21667 1
  echo "$as_me:23745: \$? = $ac_status" >&5
d21669 2
a21670 3
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23748: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21672 2
a21673 2
  echo "$as_me:23751: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d21680 1
a21680 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21682 1
a21682 1
echo "$as_me:23761: result: $ac_cv_func_getmsg" >&5
d21687 1
a21687 1
echo "$as_me:23766: checking for working getmsg" >&5
d21696 1
a21696 1
#line 23775 "configure"
d21713 1
a21713 1
if { (eval echo "$as_me:23792: \"$ac_link\"") >&5
d21716 3
a21718 4
  echo "$as_me:23795: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:23797: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d21720 2
a21721 2
  echo "$as_me:23800: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d21729 1
a21729 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d21732 1
a21732 1
echo "$as_me:23812: result: $ac_cv_func_getmsg_work" >&5
d21743 1
a21743 1
echo "$as_me:23823: checking for streamspty" >&5
d21753 1
a21753 1
echo "$as_me:23833: result: $krb_cv_sys_streamspty" >&5
d21764 1
a21764 156
# Extract the first word of "compile_et", so it can be a program name with args.
set dummy compile_et; ac_word=$2
echo "$as_me:23846: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$COMPILE_ET"; then
  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_COMPILE_ET="compile_et"
echo "$as_me:23861: found $ac_dir/$ac_word" >&5
break
done

fi
fi
COMPILE_ET=$ac_cv_prog_COMPILE_ET
if test -n "$COMPILE_ET"; then
  echo "$as_me:23869: result: $COMPILE_ET" >&5
echo "${ECHO_T}$COMPILE_ET" >&6
else
  echo "$as_me:23872: result: no" >&5
echo "${ECHO_T}no" >&6
fi

krb_cv_compile_et="no"
if test "${COMPILE_ET}" = "compile_et"; then

echo "$as_me:23879: checking whether compile_et has the features we need" >&5
echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
cat > conftest_et.et <<'EOF'
error_table conf
prefix CONFTEST
index 1
error_code CODE1, "CODE1"
index 128
error_code CODE2, "CODE2"
end
EOF
if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
    save_CPPFLAGS="${save_CPPFLAGS}"
  if test -d "/usr/include/et"; then
    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
  fi
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:23896: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 23901 "configure"
#include "confdefs.h"

#include <com_err.h>
#include <string.h>
#include "conftest_et.h"
int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:23911: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23914: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:23916: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23919: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_compile_et="yes"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:23931: result: ${krb_cv_compile_et}" >&5
echo "${ECHO_T}${krb_cv_compile_et}" >&6
rm -fr conftest*
fi

if test "${krb_cv_compile_et}" = "yes"; then
    krb_cv_save_LIBS="${LIBS}"
  LIBS="${LIBS} -lcom_err"
  echo "$as_me:23939: checking for com_err" >&5
echo $ECHO_N "checking for com_err... $ECHO_C" >&6
  cat >conftest.$ac_ext <<_ACEOF
#line 23942 "configure"
#include "confdefs.h"
#include <com_err.h>
int
main ()
{

    const char *p;
    p = error_message(0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:23957: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23960: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23963: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23966: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_com_err="yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  echo "$as_me:23975: result: ${krb_cv_com_err}" >&5
echo "${ECHO_T}${krb_cv_com_err}" >&6
  LIBS="${krb_cv_save_LIBS}"
else
    krb_cv_com_err="no"
fi

if test "${krb_cv_com_err}" = "yes"; then
    DIR_com_err=""
    LIB_com_err="-lcom_err"
    LIB_com_err_a=""
    LIB_com_err_so=""
    { echo "$as_me:23987: Using the already-installed com_err" >&5
echo "$as_me: Using the already-installed com_err" >&6;}
else
    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
    DIR_com_err="com_err"
    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
    { echo "$as_me:23995: Using our own com_err" >&5
echo "$as_me: Using our own com_err" >&6;}
fi

echo "$as_me:23999: checking which authentication modules should be built" >&5
d21781 1
a21781 1
echo "$as_me:24016: result: $LIB_AUTH_SUBDIRS" >&5
d21802 4
d21839 1
a21839 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d21844 1
a21844 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d21869 2
a21870 4
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
d21872 1
a21872 8
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
d21880 1
a21880 1
{ echo "$as_me:24120: creating $CONFIG_STATUS" >&5
d21882 2
a21883 2
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
d21890 2
a21891 4
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"

_ACEOF
a21892 1
cat >>$CONFIG_STATUS <<\_ACEOF
a21900 3
# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

d21907 3
a21909 3
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
d21912 1
a21912 1
  if test -f conf$$.exe; then
d21918 1
a21918 1
elif ln conf$$.file conf$$ 2>/dev/null; then
d21923 1
a21923 1
rm -f conf$$ conf$$.exe conf$$.file
d21925 17
a21941 1
as_executable_p="test -f"
d21969 7
d21978 12
d22040 3
a22042 8
heimdal config.status 0.4e
configured by $0, generated by GNU Autoconf 2.52,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
d22080 1
a22080 1
    { { echo "$as_me:24296: error: ambiguous option: $1
d22098 57
d22156 1
a22156 1
  -*) { { echo "$as_me:24315: error: unrecognized option: $1
d22161 3
a22163 3

  *) ac_config_targets="$ac_config_targets $1" ;;

a22167 26
exec 5>>config.log
cat >&5 << _ACEOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me (heimdal 0.4e) 2.52, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
EOF

cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#

AMDEP_TRUE="$AMDEP_TRUE"
ac_aux_dir="$ac_aux_dir"

a22170 64
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
  "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
  "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
  "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
  "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
  "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
  "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
  "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
  "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
  "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
  "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
  "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
  "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
  "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
  "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
  "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
  "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
  "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
  "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
  "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
  "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
  "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
  "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
  "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
  "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
  "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
  "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
  "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
  "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
  "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
  "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
  "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
  "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
  "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
  "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
  "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
  "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
  "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
  "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
  "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
  "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
  "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
  "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
  "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
  "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
  "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  *) { { echo "$as_me:24414: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

d22185 1
a22185 1
  trap '{ (exit 1); exit 1; }' 1 2 13 15
d22206 10
a22247 3
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
a22250 1
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
a22255 1
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
d22257 1
a22258 1
s,@@OBJEXT@@,$OBJEXT,;t t
d22260 1
a22272 1
s,@@INSTALL_STRIP_PROGRAM@@,$INSTALL_STRIP_PROGRAM,;t t
d22275 1
a22275 2
s,@@AMDEP_TRUE@@,$AMDEP_TRUE,;t t
s,@@AMDEP_FALSE@@,$AMDEP_FALSE,;t t
a22277 2
s,@@am__include@@,$am__include,;t t
s,@@am__quote@@,$am__quote,;t t
d22295 2
a22300 1
s,@@LIB_db_create@@,$LIB_db_create,;t t
d22303 1
a22304 1
s,@@LIB_NDBM@@,$LIB_NDBM,;t t
a22325 2
s,@@LIB_bswap16@@,$LIB_bswap16,;t t
s,@@LIB_bswap32@@,$LIB_bswap32,;t t
a22326 4
s,@@LIB_getaddrinfo@@,$LIB_getaddrinfo,;t t
s,@@LIB_getnameinfo@@,$LIB_getnameinfo,;t t
s,@@LIB_freeaddrinfo@@,$LIB_freeaddrinfo,;t t
s,@@LIB_gai_strerror@@,$LIB_gai_strerror,;t t
a22387 2
s,@@LIB_logout@@,$LIB_logout,;t t
s,@@LIB_openpty@@,$LIB_openpty,;t t
d22390 5
a22395 1
s,@@INCLUDE_des@@,$INCLUDE_des,;t t
a22396 2
s,@@LIB_des_a@@,$LIB_des_a,;t t
s,@@LIB_des_so@@,$LIB_des_so,;t t
a22400 5
s,@@COMPILE_ET@@,$COMPILE_ET,;t t
s,@@DIR_com_err@@,$DIR_com_err,;t t
s,@@LIB_com_err@@,$LIB_com_err,;t t
s,@@LIB_com_err_a@@,$LIB_com_err_a,;t t
s,@@LIB_com_err_so@@,$LIB_com_err_so,;t t
d22517 1
a22517 1
    { echo "$as_me:24774: creating $ac_file" >&5
d22533 3
a22535 3
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:24792: error: cannot find input file: $f" >&5
d22548 1
a22548 1
           { { echo "$as_me:24805: error: cannot find input file: $f" >&5
d22609 1
a22609 1
  test x"$ac_file" != x- && { echo "$as_me:24866: creating $ac_file" >&5
d22618 3
a22620 3
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:24877: error: cannot find input file: $f" >&5
d22633 1
a22633 1
           { { echo "$as_me:24890: error: cannot find input file: $f" >&5
d22750 1
a22750 1
      { echo "$as_me:25007: $ac_file is unchanged" >&5
a22788 6
  # Run the commands associated with the file.
  case $ac_file in
    include/config.h ) # update the timestamp
echo timestamp >"include/stamp-h1"
 ;;
  esac
d22801 3
a22803 2
    default-1 )
test x"$AMDEP_TRUE" != x"" ||
d22847 1
a22847 1
{ (exit 0); exit 0; }
d22852 1
a22852 17
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
@


1.1.1.4.2.3
log
@MFC: Update Heimdal Kerberos to pre-0.5 around 2002/08/29.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.320 .
d4 1
a4 1
# Generated by GNU Autoconf 2.53 for Heimdal 0.4f.
d8 1
a8 1
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
d13 6
a18 10
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
  PATH_SEPARATOR=$lt_cv_sys_path_separator
fi
d20 2
d23 2
a24 157
# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF

EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
       echo_test_string="`eval $cmd`" &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for dir in $PATH /usr/ucb; do
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi



if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi


## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##
a33 34
# NLS nuisances.
# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
    { $as_unset LANG || test "${LANG+set}" != set; } ||
      { LANG=C; export LANG; }
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
      { LC_ALL=C; export LC_ALL; }
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
      { LC_TIME=C; export LC_TIME; }
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
      { LC_CTYPE=C; export LC_CTYPE; }
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
      { LANGUAGE=C; export LANGUAGE; }
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
      { LC_COLLATE=C; export LC_COLLATE; }
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
      { LC_NUMERIC=C; export LC_NUMERIC; }
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
      { LC_MESSAGES=C; export LC_MESSAGES; }


d35 1
a35 124
as_me=`(basename "$0") 2>/dev/null ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`

# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conftest.sh
  echo  "exit 0"   >>conftest.sh
  chmod +x conftest.sh
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conftest.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d63 6
a68 5
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d70 9
d87 1
a87 2
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }

d102 1
a102 2
MFLAGS=
MAKEFLAGS=
a109 7
# Identity of this package.
PACKAGE_NAME='Heimdal'
PACKAGE_TARNAME='heimdal'
PACKAGE_VERSION='0.4f'
PACKAGE_STRING='Heimdal 0.4f'
PACKAGE_BUGREPORT='heimdal-bugs@@pdc.kth.se'

a147 1

d186 7
d325 1
a325 1
  | --no-cr | --no-c | -n)
d504 1
a504 1
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
d516 1
a516 1
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
a522 1
# FIXME: To remove some day.
d527 1
a527 1
# FIXME: To remove some day.
a542 1

d547 3
a549 12
  ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$0" : 'X\(//\)[^/]' \| \
         X"$0" : 'X\(//\)$' \| \
         X"$0" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d559 1
a559 1
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
d562 1
a562 1
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d606 2
a607 2
  cat <<_ACEOF
\`configure' configures Heimdal 0.4f to adapt to many kinds of systems.
d627 1
a627 1
_ACEOF
d629 1
a629 1
  cat <<_ACEOF
d656 1
a656 1
_ACEOF
d658 1
a658 1
  cat <<\_ACEOF
d671 2
a672 2
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
d677 1
a677 1
     short | recursive ) echo "Configuration of Heimdal 0.4f:";;
d679 1
a679 1
  cat <<\_ACEOF
d690 2
a691 3
  --disable-berkeley-db   if you don't want berkeley db
  --enable-dce            if you want support for DCE/DFS PAG's
  --disable-otp           if you don't want OTP support
d693 3
a695 4
  --enable-bigendian      the target is big endian
  --enable-littleendian   the target is little endian
  --disable-dynamic-afs   do not use loaded AFS library with AIX
  --enable-netinfo        enable netinfo for configuration lookup
d702 14
a715 24
  --with-pic              try to use only PIC/non-PIC objects default=use both
  --without-ipv6          do not enable IPv6 support
  --with-openldap=dir     use openldap in dir
  --with-openldap-lib=dir use openldap libraries in dir
  --with-openldap-include=dir
                          use openldap headers in dir
  --with-openldap-config=path
                          config program for openldap
  --with-krb4=dir         use krb4 in dir
  --with-krb4-lib=dir     use krb4 libraries in dir
  --with-krb4-include=dir use krb4 headers in dir
  --with-krb4-config=path config program for krb4
  --with-readline=dir     use readline in dir
  --with-readline-lib=dir use readline libraries in dir
  --with-readline-include=dir
                          use readline headers in dir
  --with-readline-config=path
                          config program for readline
  --with-hesiod=dir       use hesiod in dir
  --with-hesiod-lib=dir   use hesiod libraries in dir
  --with-hesiod-include=dir
                          use hesiod headers in dir
  --with-hesiod-config=path
                          config program for hesiod
d735 1
a735 1
_ACEOF
d741 14
a754 33
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d $ac_dir || continue
    ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a755 1
    cd $ac_dir
d757 1
a757 1
    if test -f $ac_srcdir/configure.gnu; then
d759 2
a760 2
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_srcdir/configure; then
d762 3
a764 3
      $SHELL $ac_srcdir/configure  --help=recursive
    elif test -f $ac_srcdir/configure.ac ||
           test -f $ac_srcdir/configure.in; then
d768 1
a768 1
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
d776 3
a778 3
  cat <<\_ACEOF
Heimdal configure 0.4f
generated by GNU Autoconf 2.53
d780 1
a780 1
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
d784 1
a784 1
_ACEOF
d788 1
a788 1
cat >&5 <<_ACEOF
d792 2
a793 2
It was created by Heimdal $as_me 0.4f, which was
generated by GNU Autoconf 2.53.  Invocation command line was
d797 1
a797 1
_ACEOF
d800 3
a802 3
## --------- ##
## Platform. ##
## --------- ##
d821 2
a823 9

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done

d826 4
a829 8
cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF
d831 1
d842 1
a842 1
  | --no-cr | --no-c | -n ) continue ;;
d844 1
a844 2
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    continue ;;
d846 5
a850 6
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  case " $ac_configure_args " in
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
       ac_sep=" " ;;
a857 2
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
d860 6
a865 9
  {
    echo
    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
d879 15
a893 18
}
    echo
    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      sed "/^$/d" confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core core.* *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
a905 27
# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


d917 1
a917 1
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
d919 1
a919 1
    sed 's/^/| /' "$ac_site_file" >&5
d928 1
a928 1
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
d936 1
a936 1
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
d952 1
a952 1
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d956 1
a956 1
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
d962 1
a962 1
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
d964 1
a964 1
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
d966 1
a966 1
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
d971 2
a972 1
  # Pass precious variables to config.status.
d976 5
a980 6
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
d985 1
a985 1
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
d987 1
a987 1
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d998 20
d1019 1
a1019 30
























# Add the stamp file to the list of files AC keeps track of,
# along with our hook.
ac_config_headers="$ac_config_headers include/config.h"



d1029 1
a1029 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1037 9
a1045 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1052 1
a1052 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1055 1
a1055 1
  echo "$as_me:$LINENO: result: no" >&5
d1064 1
a1064 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1072 9
a1080 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1087 1
a1087 1
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d1090 1
a1090 1
  echo "$as_me:$LINENO: result: no" >&5
d1103 1
a1103 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1111 9
a1119 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1126 1
a1126 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1129 1
a1129 1
  echo "$as_me:$LINENO: result: no" >&5
d1138 1
a1138 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1146 9
a1154 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1161 1
a1161 1
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d1164 1
a1164 1
  echo "$as_me:$LINENO: result: no" >&5
d1177 1
a1177 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1186 13
a1198 16
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1210 1
a1210 1
    set dummy "$as_dir/$ac_word" ${1+"$@@"}
d1219 1
a1219 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1222 1
a1222 1
  echo "$as_me:$LINENO: result: no" >&5
d1233 1
a1233 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1241 9
a1249 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1256 1
a1256 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1259 1
a1259 1
  echo "$as_me:$LINENO: result: no" >&5
d1272 1
a1272 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1280 9
a1288 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1295 1
a1295 1
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d1298 1
a1298 1
  echo "$as_me:$LINENO: result: no" >&5
d1310 2
a1311 3

test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
d1315 1
a1315 1
echo "$as_me:$LINENO:" \
d1318 1
a1318 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
d1321 1
a1321 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1323 1
a1323 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
d1326 1
a1326 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1328 1
a1328 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
d1331 1
a1331 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1335 1
a1335 1
#line $LINENO "configure"
a1337 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1351 1
a1351 1
echo "$as_me:$LINENO: checking for C compiler default output" >&5
d1354 1
a1354 1
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
d1357 1
a1357 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1362 1
a1362 5

# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
d1366 1
a1366 1
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
d1380 1
a1380 1
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
d1386 1
a1386 1
echo "$as_me:$LINENO: result: $ac_file" >&5
d1391 1
a1391 1
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
d1397 1
a1397 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1400 1
a1400 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1407 1
a1407 1
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
d1415 1
a1415 1
echo "$as_me:$LINENO: result: yes" >&5
d1422 1
a1422 1
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
d1424 1
a1424 1
echo "$as_me:$LINENO: result: $cross_compiling" >&5
d1427 3
a1429 3
echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d1432 1
a1432 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1448 2
a1449 2
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
d1454 1
a1454 1
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
d1460 2
a1461 2
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
d1466 1
a1466 1
#line $LINENO "configure"
a1468 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1478 1
a1478 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1481 1
a1481 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1493 2
a1494 2
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
d1500 1
a1500 1
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
d1504 1
a1504 1
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
d1510 1
a1510 1
#line $LINENO "configure"
a1512 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1525 1
a1525 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1528 1
a1528 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1531 1
a1531 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1534 1
a1534 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1546 1
a1546 1
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
d1552 1
a1552 1
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
d1558 1
a1558 1
#line $LINENO "configure"
a1560 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1570 1
a1570 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1573 1
a1573 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1576 1
a1576 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1579 1
a1579 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1589 1
a1589 1
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
d1616 1
a1616 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1619 1
a1619 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1622 1
a1622 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1625 1
a1625 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1637 1
a1637 1
#line $LINENO "configure"
a1640 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1650 1
a1650 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1653 1
a1653 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1656 1
a1656 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1659 1
a1659 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1669 1
a1669 1
#line $LINENO "configure"
a1671 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1681 1
a1681 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1684 1
a1684 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1687 1
a1687 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1690 1
a1690 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1722 1
a1722 1
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
d1743 1
a1743 1
#line $LINENO "configure"
d1748 1
a1748 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1754 1
a1754 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1777 1
a1777 1
#line $LINENO "configure"
d1781 1
a1781 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1787 1
a1787 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1824 1
a1824 1
echo "$as_me:$LINENO: result: $CPP" >&5
d1834 1
a1834 1
#line $LINENO "configure"
d1839 1
a1839 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1845 1
a1845 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1868 1
a1868 1
#line $LINENO "configure"
d1872 1
a1872 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1878 1
a1878 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1906 1
a1906 1
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
d1917 1
a1917 2

echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
d1925 1
a1925 1
#line $LINENO "configure"
a1954 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1974 1
a1974 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1977 1
a1977 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1980 1
a1980 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1983 1
a1983 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2000 1
a2000 1
    echo "$as_me:$LINENO: result: none needed" >&5
d2003 1
a2003 1
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
a2007 2

am__api_version="1.6"
d2025 1
a2025 1
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d2045 2
a2046 2
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d2051 27
a2077 30
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
          if test $ac_prog = install &&
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            :
          elif test $ac_prog = install &&
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # program-specific install script used by HP pwplus--don't use.
            :
          else
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
            break 3
          fi
        fi
d2079 3
a2081 5
    done
    ;;
esac
done

d2094 1
a2094 1
echo "$as_me:$LINENO: result: $INSTALL" >&5
d2105 1
a2105 1
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
d2129 1
a2129 1
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
d2142 1
a2142 1
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d2148 1
a2148 1
echo "$as_me:$LINENO: result: yes" >&5
a2162 1

d2164 1
a2164 1
am_aux_dir=`cd $ac_aux_dir && pwd`
d2172 3
a2174 2
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
d2177 1
a2177 1
for ac_prog in gawk mawk nawk awk
d2181 1
a2181 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2189 9
a2197 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2204 1
a2204 1
  echo "$as_me:$LINENO: result: $AWK" >&5
d2207 1
a2207 1
  echo "$as_me:$LINENO: result: no" >&5
d2214 1
a2214 1
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2220 1
a2220 1
  cat >conftest.make <<\_ACEOF
d2223 1
a2223 1
_ACEOF
d2234 1
a2234 1
  echo "$as_me:$LINENO: result: yes" >&5
d2238 1
a2238 1
  echo "$as_me:$LINENO: result: no" >&5
d2243 18
d2271 1
a2271 3

ac_config_commands="$ac_config_commands depfiles"

d2279 1
a2279 1
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
d2281 1
a2281 1
am__include="#"
d2301 1
a2301 1
      am__quote="\""
d2306 1
a2306 2

echo "$as_me:$LINENO: result: $_am_result" >&5
d2310 2
a2311 23
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
  enableval="$enable_dependency_tracking"

fi;
if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi


if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi



 # test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" &&
d2313 1
a2313 1
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d2319 2
a2320 2
 PACKAGE=heimdal
 VERSION=0.4f
d2322 3
d2326 3
a2328 3
cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF
d2330 2
d2333 7
a2339 3
cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF
d2343 1
a2343 2
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}

d2347 1
a2347 3

AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}

a2350 1

a2352 1

a2356 86
# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
a2361 1

d2364 1
a2364 1
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
d2426 1
a2426 1
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
d2428 1
a2428 9
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type






test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
d2432 1
a2432 1
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
d2436 1
a2436 1
echo "$as_me:$LINENO: checking build system type" >&5
d2445 1
a2445 1
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
d2449 2
a2450 2
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
d2454 1
a2454 1
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
d2461 1
a2461 2

echo "$as_me:$LINENO: checking host system type" >&5
d2470 1
a2470 1
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d2475 1
a2475 1
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
a2481 1

d2484 16
d2501 3
d2505 1
a2505 5
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF


d2507 9
d2517 1
d2523 1
a2523 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2531 9
a2539 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_YACC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2546 1
a2546 1
  echo "$as_me:$LINENO: result: $YACC" >&5
d2549 1
a2549 1
  echo "$as_me:$LINENO: result: no" >&5
d2561 1
a2561 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2569 27
a2595 2
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
d2597 19
a2615 9
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_LEX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2622 1
a2622 1
  echo "$as_me:$LINENO: result: $LEX" >&5
d2625 1
a2625 1
  echo "$as_me:$LINENO: result: no" >&5
d2635 1
a2635 1
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
d2643 1
a2643 1
#line $LINENO "configure"
a2652 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d2662 1
a2662 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d2665 1
a2665 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2668 1
a2668 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d2671 1
a2671 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2682 1
a2682 1
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
d2687 1
a2687 1
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
d2695 1
a2695 1
#line $LINENO "configure"
a2704 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d2714 1
a2714 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d2717 1
a2717 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2720 1
a2720 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d2723 1
a2723 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2734 1
a2734 1
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
d2745 1
a2745 1
  echo "$as_me:$LINENO: checking lex output file root" >&5
d2752 2
a2753 9
cat >conftest.l <<_ACEOF
%%
%%
_ACEOF
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  (eval $LEX conftest.l) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
d2759 1
a2759 1
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
d2764 1
a2764 1
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
a2765 1
rm -f conftest.l
d2768 1
a2768 1
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
d2784 1
a2784 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d2787 1
a2787 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2790 1
a2790 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d2793 1
a2793 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2805 1
a2805 1
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
d2809 1
a2809 1
cat >>confdefs.h <<\_ACEOF
d2811 1
a2811 1
_ACEOF
d2816 5
a2820 8
if test "$LEX" = :; then
  LEX=${am_missing_run}flex
fi
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2822 1
a2822 1
if test "${ac_cv_prog_AWK+set}" = set; then
d2825 2
a2826 2
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
d2828 9
a2836 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2841 4
a2844 4
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
d2846 1
a2846 1
  echo "$as_me:$LINENO: result: no" >&5
d2850 22
a2871 1
  test -n "$AWK" && break
d2874 58
a2931 4
echo "$as_me:$LINENO: checking for ln -s or something else" >&5
echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
if test "${ac_cv_prog_LN_S+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2949 1
a2949 1
echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
a2951 3



d2977 1
a2977 1
         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
d2983 1
a2983 1
echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
d2992 1
a2992 1
#line $LINENO "configure"
a2994 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3004 1
a3004 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3007 1
a3007 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3010 1
a3010 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3013 1
a3013 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3027 1
a3027 1
echo "$as_me:$LINENO: result: $ac_res" >&5
d3036 1
a3036 1
#line $LINENO "configure"
a3038 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3048 1
a3048 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3051 1
a3051 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3054 1
a3054 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3057 1
a3057 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3069 1
a3069 1
		{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
d3084 1
a3084 1
			{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
d3098 1
a3098 1
         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
d3109 1
a3109 2

echo "$as_me:$LINENO: checking for __attribute__" >&5
d3116 1
a3116 1
#line $LINENO "configure"
a3120 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3138 1
a3138 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3141 1
a3141 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3144 1
a3144 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3147 1
a3147 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3160 1
a3160 1
cat >>confdefs.h <<\_ACEOF
d3162 1
a3162 1
_ACEOF
d3165 1
a3165 1
echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
a3167 1

d3172 1
a3172 1
case $enableval in
d3194 1
a3194 1
case $enableval in
d3216 1
a3216 1
case $enableval in
a3233 11
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
  PATH_SEPARATOR=$lt_cv_sys_path_separator
fi

d3243 1
a3243 1
if test "$GCC" = yes; then
d3245 1
a3245 1
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
d3247 2
a3248 8
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
d3269 1
a3269 1
  echo "$as_me:$LINENO: checking for GNU ld" >&5
d3272 1
a3272 1
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
d3275 1
a3275 1
if test "${lt_cv_path_LD+set}" = set; then
d3279 1
a3279 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d3283 1
a3283 1
      lt_cv_path_LD="$ac_dir/$ac_prog"
d3287 1
a3287 1
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
d3296 1
a3296 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d3300 1
a3300 1
LD="$lt_cv_path_LD"
d3302 1
a3302 1
  echo "$as_me:$LINENO: result: $LD" >&5
d3305 1
a3305 1
  echo "$as_me:$LINENO: result: no" >&5
d3308 1
a3308 1
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
d3311 1
a3311 1
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
d3313 1
a3313 1
if test "${lt_cv_prog_gnu_ld+set}" = set; then
d3318 1
a3318 1
  lt_cv_prog_gnu_ld=yes
d3320 1
a3320 1
  lt_cv_prog_gnu_ld=no
d3323 2
a3324 16
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
with_gnu_ld=$lt_cv_prog_gnu_ld


echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
test -n "$reload_flag" && reload_flag=" $reload_flag"
d3326 1
a3326 1
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
d3328 1
a3328 1
if test "${lt_cv_path_NM+set}" = set; then
d3333 1
a3333 1
  lt_cv_path_NM="$NM"
d3335 1
a3335 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d3338 1
a3338 2
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
d3342 2
a3343 3
      # Tru64's nm complains that /dev/null is an invalid object file
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
	lt_cv_path_NM="$tmp_nm -B"
d3345 2
a3346 2
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	lt_cv_path_NM="$tmp_nm -p"
d3349 1
a3349 1
	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
d3355 1
a3355 1
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
d3359 2
a3360 2
NM="$lt_cv_path_NM"
echo "$as_me:$LINENO: result: $NM" >&5
d3363 1
a3363 1
echo "$as_me:$LINENO: checking whether ln -s works" >&5
d3367 1
a3367 1
  echo "$as_me:$LINENO: result: yes" >&5
d3370 1
a3370 1
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
d3374 4
a3377 23
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3379 7
a3385 3
beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3387 3
a3389 5
bsdi4*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;
d3391 3
a3393 4
cygwin* | mingw* | pw32*)
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;
d3395 20
a3414 22
darwin* | rhapsody*)
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  case "$host_os" in
  rhapsody* | darwin1.[012])
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
    ;;
  *) # Darwin 1.3 on
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
    ;;
  esac
  ;;

freebsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
a3416 2
  else
    lt_cv_deplibs_check_method=pass_all
d3418 1
d3421 47
a3467 2
gnu*)
  lt_cv_deplibs_check_method=pass_all
d3470 1
a3470 5
hpux10.20*|hpux11*)
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
  ;;
d3472 14
a3485 20
irix5* | irix6*)
  case $host_os in
  irix5*)
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    ;;
  *)
    case $LD in
    *-32|*"-32 ") libmagic=32-bit;;
    *-n32|*"-n32 ") libmagic=N32;;
    *-64|*"-64 ") libmagic=64-bit;;
    *) libmagic=never-match;;
    esac
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
    ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  lt_cv_deplibs_check_method=pass_all
  ;;
d3487 1
a3487 11
# This must be Linux ELF.
linux-gnu*)
  case $host_cpu in
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
    lt_cv_deplibs_check_method=pass_all ;;
  *)
    # glibc up to 2.1.1 does not perform some relocations on ARM
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  ;;
d3489 33
a3521 3
netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
d3523 1
a3523 1
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
d3525 2
a3526 1
  ;;
d3528 10
a3537 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
d3539 11
a3549 7
openbsd*)
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  else
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
d3551 8
a3558 1
  ;;
d3560 2
a3561 6
osf3* | osf4* | osf5*)
  # this will be overridden with pass_all, but let us keep it just in case
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  lt_cv_file_magic_test_file=/shlib/libc.so
  lt_cv_deplibs_check_method=pass_all
  ;;
d3563 3
a3565 3
sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3567 12
a3578 4
solaris*)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_file_magic_test_file=/lib/libc.so
  ;;
d3580 1
a3580 3
sysv5uw[78]* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3582 3
a3584 21
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  esac
  ;;
esac
d3586 2
a3588 4
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
d3590 1
d3592 2
d3595 1
d3597 3
d3601 5
a3605 4
# Check for command to grab the raw symbol name followed by C symbol from nm.
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
d3608 15
a3622 214

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'

# Transform an extracted symbol line into a proper C declaration
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  ;;
irix*)
  symcode='[BCDEGRST]'
  ;;
solaris* | sysv5*)
  symcode='[BDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $host_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  symcode='[ABCDGISTW]'
fi

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Write the raw and C identifiers.
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no
  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr void *
#else
# define lt_ptr char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr address;
}
lt_preloaded_symbols[] =
{
EOF
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  save_LIBS="$LIBS"
	  save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$no_builtin_flag"
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest; then
	    pipe_works=yes
	  fi
	  LIBS="$save_LIBS"
	  CFLAGS="$save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  global_symbol_to_cdecl=
  global_symbol_to_c_name_address=
else
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
fi
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
then
  echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
else
  echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi


echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
d3630 1
a3630 1
  ac_cv_header_stdc=yes
d3634 1
a3634 1
  ac_cv_header_stdc=no
a3636 14

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
d3638 6
a3643 1
rm -f conftest*
d3646 1
d3648 4
a3651 11
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
a3652 3
  ac_cv_header_stdc=no
fi
rm -f conftest*
d3654 14
a3667 1
fi
d3669 2
a3670 18
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
a3671 1
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d3675 3
a3677 6
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
d3680 2
a3681 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d3684 4
a3687 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3690 1
a3690 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3692 1
a3692 1
  :
d3694 1
a3694 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a3695 5
( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d3697 4
a3701 7
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
d3705 1
a3705 1
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d3707 1
d3709 1
a3709 9







for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
d3711 4
a3714 4
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d3718 1
a3718 1
#line $LINENO "configure"
d3720 23
a3742 1
$ac_includes_default
d3744 3
a3746 1
#include <$ac_header>
d3748 3
a3750 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d3752 1
a3752 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3754 2
a3755 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3758 1
a3758 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3760 1
a3760 1
  eval "$as_ac_Header=yes"
d3764 3
a3766 1
eval "$as_ac_Header=no"
d3768 7
a3774 1
rm -f conftest.$ac_objext conftest.$ac_ext
d3776 1
a3776 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d3779 37
d3817 7
a3823 1
done
d3825 3
d3829 1
d3831 3
a3833 7
for ac_header in dlfcn.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3834 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d3836 14
a3849 5
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d3851 17
a3867 2
$ac_includes_default
#include <$ac_header>
d3869 3
a3871 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d3873 1
a3873 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3875 2
a3876 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3879 1
a3879 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3881 1
a3881 1
  ac_header_compiler=yes
a3884 1
ac_header_compiler=no
d3886 11
a3896 3
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d3898 10
a3907 5
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d3909 27
a3935 1
#include <$ac_header>
d3937 9
a3945 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d3947 3
a3949 15
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
d3952 2
a3953 2
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
d3955 1
a3955 25
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
d3957 6
a3962 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d3965 1
a3965 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d3968 4
d3973 7
a3979 1
done
d3981 15
d3997 3
d4001 4
d4006 7
d4014 3
a4016 34
# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2
a4017 14
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
d4019 1
a4019 6
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi
d4021 4
a4024 4
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
a4025 3
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d4027 14
a4040 32
if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2
d4042 4
a4045 8
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org
d4047 21
a4067 17
EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
d4069 2
a4070 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d4072 4
a4075 44

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
a4078 25
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d4080 1
a4080 11
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d4082 1
a4082 4
  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi
d4084 1
a4084 13
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
d4086 4
a4089 30
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
d4092 2
a4093 90
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi


enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 4921 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4095 11
a4106 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4110 8
d4124 1
a4124 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4127 1
a4127 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4130 1
a4130 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4133 1
a4133 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4135 1
a4135 1
  lt_cv_cc_needs_belf=yes
d4139 1
a4139 1
lt_cv_cc_needs_belf=no
d4142 7
a4148 5
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d4151 1
a4151 7
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
d4153 5
d4159 7
a4165 1
esac
d4167 19
a4185 56
# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except M$VC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"
need_locks="$enable_libtool_lock"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

if test x"$host" != x"$build"; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
case $host_os in
linux-gnu*) ;;
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
esac
d4187 3
a4189 10
case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
d4192 6
a4197 4
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
d4199 3
a4201 11
if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    ;;
  *)
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d4203 3
a4205 47
# Allow CC to be a program name with arguments.
set dummy $CC
compiler="$2"

echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  objdir=_libs
fi
rmdir .libs 2>/dev/null
echo "$as_me:$LINENO: result: $objdir" >&5
echo "${ECHO_T}$objdir" >&6



# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test -z "$pic_mode" && pic_mode=default

# We assume here that the value for lt_cv_prog_cc_pic will not be cached
# in isolation, and that seeing it set (from the cache) indicates that
# the associated values are set (in the cache) correctly too.
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
if test "${lt_cv_prog_cc_pic+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
   lt_cv_prog_cc_pic=
  lt_cv_prog_cc_shlib=
  lt_cv_prog_cc_wl=
  lt_cv_prog_cc_static=
  lt_cv_prog_cc_no_builtin=
  lt_cv_prog_cc_can_build_shared=$can_build_shared

  if test "$GCC" = yes; then
    lt_cv_prog_cc_wl='-Wl,'
    lt_cv_prog_cc_static='-static'
a4206 38
    case $host_os in
    aix*)
      # Below there is a dirty hack to force normal static linking with -ldl
      # The problem is because libdl dynamically linked with both libc and
      # libC (AIX C++ library), which obviously doesn't included in libraries
      # list by gcc. This cause undefined symbols with -static flags.
      # This hack allows C programs to be linked with "-static -ldl", but
      # not sure about C++ programs.
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_cv_prog_cc_pic='-fno-common'
      ;;
    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	 lt_cv_prog_cc_pic=-Kconform_pic
      fi
      ;;
    *)
      lt_cv_prog_cc_pic='-fPIC'
      ;;
    esac
d4208 3
a4210 12
    # PORTME Check for PIC flags for the system compiler.
    case $host_os in
    aix3* | aix4* | aix5*)
      lt_cv_prog_cc_wl='-Wl,'
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_cv_prog_cc_static='-Bstatic'
      else
	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
d4212 1
a4212 6
    hpux9* | hpux10* | hpux11*)
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
      lt_cv_prog_cc_pic='+Z'
      ;;
d4214 1
a4214 5
    irix5* | irix6*)
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      # PIC (with -KPIC) is the default.
      ;;
d4216 3
a4218 5
    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;
d4220 5
a4224 70
    newsos6)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    osf3* | osf4* | osf5*)
      # All OSF/1 code is PIC.
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      ;;

    sco3.2v5*)
      lt_cv_prog_cc_pic='-Kpic'
      lt_cv_prog_cc_static='-dn'
      lt_cv_prog_cc_shlib='-belf'
      ;;

    solaris*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Wl,'
      ;;

    sunos4*)
      lt_cv_prog_cc_pic='-PIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Qoption ld '
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      if test "x$host_vendor" = xsni; then
	lt_cv_prog_cc_wl='-LD'
      else
	lt_cv_prog_cc_wl='-Wl,'
      fi
      ;;

    uts4*)
      lt_cv_prog_cc_pic='-pic'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_cv_prog_cc_pic='-Kconform_pic'
	lt_cv_prog_cc_static='-Bstatic'
      fi
      ;;

    *)
      lt_cv_prog_cc_can_build_shared=no
      ;;
    esac
  fi

fi

if test -z "$lt_cv_prog_cc_pic"; then
  echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
else
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6

  # Check to make sure the pic_flag actually works.
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
d4227 2
a4228 4
      save_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4230 1
a4230 14

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
d4232 2
a4233 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4235 15
a4249 24
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
        case $host_os in
      hpux9* | hpux10* | hpux11*)
	# On HP-UX, both CC and GCC only warn that PIC is supported... then
	# they create non-PIC objects.  So, if there were any warnings, we
	# assume that PIC is not supported.
	if test -s conftest.err; then
	  lt_cv_prog_cc_pic_works=no
	else
	  lt_cv_prog_cc_pic_works=yes
	fi
	;;
      *)
	lt_cv_prog_cc_pic_works=yes
	;;
      esac

d4252 2
a4253 3
cat conftest.$ac_ext >&5
      lt_cv_prog_cc_pic_works=no

d4255 1
a4255 3
rm -f conftest.$ac_objext conftest.$ac_ext
    CFLAGS="$save_CFLAGS"

d4257 6
a4263 10

  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
    lt_cv_prog_cc_pic=
    lt_cv_prog_cc_can_build_shared=no
  else
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  fi

  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
d4265 1
d4267 3
a4269 15
# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
  else
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    lt_cv_prog_cc_can_build_shared=no
  fi
fi

echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
if test "${lt_cv_prog_cc_static_works+set}" = set; then
d4272 14
a4285 5
    lt_cv_prog_cc_static_works=no
  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4288 10
a4297 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4301 1
a4301 1

d4307 1
a4307 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4310 1
a4310 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4313 1
a4313 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4316 1
a4316 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4318 1
a4318 1
  lt_cv_prog_cc_static_works=yes
d4324 3
a4326 2
  LDFLAGS="$save_LDFLAGS"

a4328 47

# Belt *and* braces to stop my trousers falling down:
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6

pic_flag="$lt_cv_prog_cc_pic"
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
wl="$lt_cv_prog_cc_wl"
link_static_flag="$lt_cv_prog_cc_static"
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
can_build_shared="$lt_cv_prog_cc_can_build_shared"


# Check to see if options -o and -c are simultaneously supported by compiler
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

$rm -r conftest 2>/dev/null
mkdir conftest
cd conftest
echo "int some_variable = 0;" > conftest.$ac_ext
mkdir out
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
# that will create temporary files in the current directory regardless of
# the output directory.  Thus, making CWD read-only will cause this test
# to fail, enabling locking or at least warning the user not to do parallel
# builds.
chmod -w .
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  # The compiler can only warn and ignore the option if not recognized
  # So say no if there are warnings
  if test -s out/conftest.err; then
    lt_cv_compiler_c_o=no
  else
    lt_cv_compiler_c_o=yes
  fi
else
  # Append any errors to the config.log.
  cat out/conftest.err 1>&5
  lt_cv_compiler_c_o=no
a4329 7
CFLAGS="$save_CFLAGS"
chmod u+w .
$rm conftest* out/*
rmdir out
cd ..
rmdir conftest
$rm -r conftest 2>/dev/null
d4331 1
a4331 1
fi
d4333 1
a4333 3
compiler_c_o=$lt_cv_compiler_c_o
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
echo "${ECHO_T}$compiler_c_o" >&6
d4335 6
a4340 5
if test x"$compiler_c_o" = x"yes"; then
  # Check to see if we can write to a .lo
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  if test "${lt_cv_compiler_o_lo+set}" = set; then
a4342 6

  lt_cv_compiler_o_lo=no
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -c -o conftest.lo"
  save_objext="$ac_objext"
  ac_objext=lo
d4344 1
a4344 1
#line $LINENO "configure"
d4346 11
a4357 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4361 9
a4369 1
int some_variable = 0;
d4374 3
a4376 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4378 1
a4378 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4380 2
a4381 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4384 1
a4384 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4386 1
a4386 8
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      lt_cv_compiler_o_lo=no
    else
      lt_cv_compiler_o_lo=yes
    fi

d4390 3
d4394 6
a4399 3
rm -f conftest.$ac_objext conftest.$ac_ext
  ac_objext="$save_objext"
  CFLAGS="$save_CFLAGS"
d4402 1
a4403 28
  compiler_o_lo=$lt_cv_compiler_o_lo
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
echo "${ECHO_T}$compiler_o_lo" >&6
else
  compiler_o_lo=no
fi

# Check to see if we can do hard links to lock some files if needed
hard_links="nottested"
if test "$compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
d4405 60
d4466 7
a4472 8
if test "$GCC" = yes; then
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  echo "int some_variable = 0;" > conftest.$ac_ext
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  compiler_rtti_exceptions=no
d4474 58
a4531 1
#line $LINENO "configure"
d4534 4
a4537 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4541 1
a4541 1
int some_variable = 0;
d4546 3
a4548 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4550 1
a4550 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4552 2
a4553 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4556 1
a4556 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4558 1
a4558 8
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      compiler_rtti_exceptions=no
    else
      compiler_rtti_exceptions=yes
    fi

d4563 5
a4567 4
rm -f conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
a4568 5
  if test "$compiler_rtti_exceptions" = "yes"; then
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  else
    no_builtin_flag=' -fno-builtin'
  fi
d4571 1
a4571 55
# See if the linker supports building shared libraries.
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6

allow_undefined_flag=
no_undefined_flag=
need_lib_prefix=unknown
need_version=unknown
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
archive_cmds=
archive_expsym_cmds=
old_archive_from_new_cmds=
old_archive_from_expsyms_cmds=
export_dynamic_flag_spec=
whole_archive_flag_spec=
thread_safe_flag_spec=
hardcode_into_libs=no
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
hardcode_shlibpath_var=unsupported
runpath_var=
link_all_deplibs=unknown
always_export_symbols=no
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
# include_expsyms should be a list of space-separated symbols to be *always*
# included in the symbol list
include_expsyms=
# exclude_expsyms can be an egrep regular expression of symbols to exclude
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
# as well as any symbol that contains `d'.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
# platforms (ab)use it in PIC code, but their linkers get confused if
# the symbol is explicitly referenced.  Since portable code cannot
# rely on this symbol name, it's probably fine to never include it in
# preloaded symbol tables.
extract_expsyms_cmds=

case $host_os in
cygwin* | mingw* | pw32*)
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
  # When not using gcc, we currently assume that we are using
  # Microsoft Visual C++.
  if test "$GCC" != yes; then
    with_gnu_ld=no
  fi
  ;;
openbsd*)
  with_gnu_ld=no
  ;;
esac
d4573 1
a4573 18
ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
  # If archive_cmds runs LD, not CC, wlarc should be empty
  wlarc='${wl}'

  # See if GNU ld supports shared libraries.
  case $host_os in
  aix3* | aix4* | aix5*)
    # On AIX, the GNU linker is very broken
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
    ld_shlibs=no
    cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.
d4575 22
a4596 2
EOF
    ;;
d4598 11
a4608 13
  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes

    # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
    # that the semantics of dynamic libraries on AmigaOS, at least up
    # to version 4, is to share data among multiple programs linked
    # with the same dynamic library.  Since this doesn't match the
    # behavior of shared libraries on other platforms, we can use
    # them.
    ld_shlibs=no
    ;;
d4610 30
a4639 10
  beos*)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
d4641 2
a4642 28
  cygwin* | mingw* | pw32*)
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec='-L$libdir'
    allow_undefined_flag=unsupported
    always_export_symbols=yes

    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
      else $CC -o impgen impgen.c ; fi)~
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'

    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'

    # cygwin and mingw dlls have different entry points and sets of symbols
    # to exclude.
    # FIXME: what about values for MSVC?
    dll_entry=__cygwin_dll_entry@@12
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12~
    case $host_os in
    mingw*)
      # mingw values
      dll_entry=_DllMainCRTStartup@@12
      dll_exclude_symbols=DllMain@@12,DllMainCRTStartup@@12,DllEntryPoint@@12~
      ;;
    esac
d4644 5
a4648 14
    # mingw and cygwin differ, and it's simplest to just exclude the union
    # of the two symbol sets.
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12,DllMainCRTStartup@@12,DllEntryPoint@@12

    # recent cygwin and mingw systems supply a stub DllMain which the user
    # can override, but on older systems we have to supply one (in ltdll.c)
    if test "x$lt_cv_need_dllmain" = "xyes"; then
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
    else
      ltdll_obj=
      ltdll_cmds=
    fi
d4650 7
a4656 32
    # Extract the symbol export list from an `--export-all' def file,
    # then regenerate the def file from the symbol export list, so that
    # the compiled dll only exports the symbol export list.
    # Be careful not to strip the DATA tag left be newer dlltools.
    export_symbols_cmds="$ltdll_cmds"'
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
      sed -e "1,/EXPORTS/d" -e "s/ @@ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'

    # If the export-symbols file already is a .def file (1st line
    # is EXPORTS), use it as is.
    # If DATA tags from a recent dlltool are present, honour them!
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
	cp $export_symbols $output_objdir/$soname-def;
      else
	echo EXPORTS > $output_objdir/$soname-def;
	_lt_hint=1;
	cat $export_symbols | while read symbol; do
	 set dummy \$symbol;
	 case \$# in
	   2) echo "   \$2 @@ \$_lt_hint ; " >> $output_objdir/$soname-def;;
	   *) echo "     \$2 @@ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
	 esac;
	 _lt_hint=`expr 1 + \$_lt_hint`;
	done;
      fi~
      '"$ltdll_cmds"'
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
    ;;
d4658 15
a4672 9
  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
      wlarc=
    else
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    fi
    ;;
d4674 3
a4676 20
  solaris* | sysv5*)
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
      ld_shlibs=no
      cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
d4678 4
a4681 6
  sunos4*)
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    wlarc=
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;
d4683 3
a4685 23
  *)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
  esac

  if test "$ld_shlibs" = yes; then
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    case $host_os in
    cygwin* | mingw* | pw32*)
      # dlltool doesn't understand --whole-archive et. al.
      whole_archive_flag_spec=
      ;;
    *)
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d4687 1
a4687 1
	whole_archive_flag_spec=
a4688 19
      ;;
    esac
  fi
else
  # PORTME fill in a description of your system's linker (not GNU ld)
  case $host_os in
  aix3*)
    allow_undefined_flag=unsupported
    always_export_symbols=yes
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    # Note: this linker hardcodes the directories in LIBPATH if there
    # are no directories specified by -L.
    hardcode_minus_L=yes
    if test "$GCC" = yes && test -z "$link_static_flag"; then
      # Neither direct hardcoding nor static linking is supported with a
      # broken collect2.
      hardcode_direct=unsupported
    fi
    ;;
d4690 7
a4696 91
  aix4* | aix5*)
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	done
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    hardcode_direct=yes
    archive_cmds=''
    hardcode_libdir_separator=':'
    if test "$GCC" = yes; then
      case $host_os in aix4.[012]|aix4.[012].*)
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	  strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct=yes
	else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	fi
      esac

      shared_flag='-shared'
    else
      # not using gcc
      if test "$host_cpu" = ia64; then
	shared_flag='${wl}-G'
      else
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
      fi
    fi

    # It seems that -bexpall can do strange things, so it is better to
    # generate a list of symbols to export.
    always_export_symbols=yes
    if test "$aix_use_runtimelinking" = yes; then
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag='-berok'
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    else
      if test "$host_cpu" = ia64; then
	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag="-z nodefs"
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
      else
	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='${wl}-berok'
	# This is a bit strange, but is similar to how AIX traditionally builds
	# it's shared libraries.
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
a4698 795
    ;;

  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    # see comment about different semantics on the GNU ld section
    ld_shlibs=no
    ;;

  cygwin* | mingw* | pw32*)
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec=' '
    allow_undefined_flag=unsupported
    # Tell ltmain to make .lib files, not .a files.
    libext=lib
    # FIXME: Setting linknames here is a bad hack.
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    # The linker will automatically build a .lib file if we build a DLL.
    old_archive_from_new_cmds='true'
    # FIXME: Should let the user specify the lib program.
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
    fix_srcfile_path='`cygpath -w "$srcfile"`'
    ;;

  darwin* | rhapsody*)
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      allow_undefined_flag='-flat_namespace -undefined suppress'
      ;;
    esac
    # FIXME: Relying on posixy $() will cause problems for
    #        cross-compilation, but unfortunately the echo tests do not
    #        yet detect zsh echo's removal of \ escapes.
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
    # We need to add '_' to the symbols in $export_symbols first
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    whole_archive_flag_spec='-all_load $convenience'
    ;;

  freebsd1*)
    ld_shlibs=no
    ;;

  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  # support.  Future versions do this automatically, but an explicit c++rt0.o
  # does not break anything, and helps significantly (at the cost of a little
  # extra space).
  freebsd2.2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  freebsd2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  freebsd*)
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  hpux9* | hpux10* | hpux11*)
    case $host_os in
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
    esac
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_direct=yes
    hardcode_minus_L=yes # Not in the search PATH, but as the default
			 # location of the library.
    export_dynamic_flag_spec='${wl}-E'
    ;;

  irix5* | irix6*)
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    link_all_deplibs=yes
    ;;

  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    else
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    fi
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  newsos6)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_shlibpath_var=no
    ;;

  openbsd*)
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
    else
      case "$host_os" in
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	hardcode_libdir_flag_spec='-R$libdir'
        ;;
      *)
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
        ;;
      esac
    fi
    ;;

  os2*)
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    allow_undefined_flag=unsupported
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    ;;

  osf3*)
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    ;;

  osf4* | osf5*)	# as osf3* with the addition of -msym flag
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'

      #Both c and cxx compiler support -rpath directly
      hardcode_libdir_flag_spec='-rpath $libdir'
    fi
    hardcode_libdir_separator=:
    ;;

  sco3.2v5*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    runpath_var=LD_RUN_PATH
    hardcode_runpath_var=yes
    export_dynamic_flag_spec='${wl}-Bexport'
    ;;

  solaris*)
    # gcc --version < 3.0 without binutils cannot create self contained
    # shared libraries reliably, requiring libgcc.a to resolve some of
    # the object symbols generated in some cases.  Libraries that use
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
    # a copy of libgcc.a into every shared library to guarantee resolving
    # such symbols causes other problems:  According to Tim Van Holder
    # <tim.van.holder@@pandora.be>, C++ libraries end up with a separate
    # (to the application) exception stack for one thing.
    no_undefined_flag=' -z defs'
    if test "$GCC" = yes; then
      case `$CC --version 2>/dev/null` in
      [12].*)
	cat <<EOF 1>&2

*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries.  However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
*** upgrade to a newer version of GCC.  Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.

EOF
        no_undefined_flag=
	;;
      esac
    fi
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_shlibpath_var=no
    case $host_os in
    solaris2.[0-5] | solaris2.[0-5].*) ;;
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    esac
    link_all_deplibs=yes
    ;;

  sunos4*)
    if test "x$host_vendor" = xsequent; then
      # Use $CC to link under sequent, because it throws in some extra .o
      # files that make .init and .fini sections work.
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    fi
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  sysv4)
    if test "x$host_vendor" = xsno; then
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes # is this really true???
    else
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  sysv4.3*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    export_dynamic_flag_spec='-Bexport'
    ;;

  sysv5*)
    no_undefined_flag=' -z text'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec=
    hardcode_shlibpath_var=no
    runpath_var='LD_RUN_PATH'
    ;;

  uts4*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  dgux*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  sysv4*MP*)
    if test -d /usr/nec; then
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ld_shlibs=yes
    fi
    ;;

  sysv4.2uw2*)
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=no
    hardcode_shlibpath_var=no
    hardcode_runpath_var=yes
    runpath_var=LD_RUN_PATH
    ;;

  sysv5uw7* | unixware7*)
    no_undefined_flag='${wl}-z ${wl}text'
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  *)
    ld_shlibs=no
    ;;
  esac
fi
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
test "$ld_shlibs" = no && can_build_shared=no

# Check hardcoding attributes.
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var"; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$hardcode_shlibpath_var" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

reload_cmds='$LD$reload_flag -o $output$reload_objs'
test -z "$deplibs_check_method" && deplibs_check_method=unknown

# PORTME Fill in your ld.so characteristics
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}.so$major'
  ;;

aix4* | aix5*)
  version_type=linux
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	     echo ' yes '
	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	  :
	else
	  can_build_shared=no
	fi
	;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can
    # not hardcode correct soname into executable. Probably we can
    # add versioning support to collect2, so additional links can
    # be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}.so$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}.so'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi4*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  export_dynamic_flag_spec=-rdynamic
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  need_version=no
  need_lib_prefix=no
  case $GCC,$host_os in
  yes,cygwin*)
    library_names_spec='$libname.dll.a'
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog .libs/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    ;;
  yes,mingw*)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
    ;;
  yes,pw32*)
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
    ;;
  *)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  *)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  dynamic_linker="$host_os dld.sl"
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  shlibpath_var=SHLIB_PATH
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  soname_spec='${libname}${release}.sl$major'
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6*)
  version_type=irix
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  case $host_os in
  irix5*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux-gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
    soname_spec='${libname}${release}.so$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case "$host_os" in
    openbsd2.[89] | openbsd2.[89].*)
      shlibpath_overrides_runpath=no
      ;;
    *)
      shlibpath_overrides_runpath=yes
      ;;
    esac
  else
    shlibpath_overrides_runpath=yes
  fi
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

os2*)
  libname_spec='$name'
  need_lib_prefix=no
  library_names_spec='$libname.dll $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_version=no
  soname_spec='${libname}${release}.so'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
    soname_spec='$libname.so.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

# Report the final consequences.
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6

echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case "$host_os" in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
a4699 6991
  ;;
esac
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6

echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  cygwin* | mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  *)
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
f = shl_load;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
f = dlopen;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dld_dld_link=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7250 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7348 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


if test "$enable_shared" = yes && test "$GCC" = yes; then
  case $archive_cmds in
  *'~'*)
    # FIXME: we may have to deal with multi-command sequences.
    ;;
  '$CC '*)
    # Test whether the compiler implicitly links with -lc since on some
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
    # to ld, don't add -lc before -lgcc.
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  $rm conftest*
    echo 'static int dummy;' > conftest.$ac_ext

    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      soname=conftest
      lib=conftest
      libobjs=conftest.$ac_objext
      deplibs=
      wl=$lt_cv_prog_cc_wl
      compiler_flags=-v
      linker_flags=-v
      verstring=
      output_objdir=.
      libname=conftest
      save_allow_undefined_flag=$allow_undefined_flag
      allow_undefined_flag=
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
      then
	lt_cv_archive_cmds_need_lc=no
      else
	lt_cv_archive_cmds_need_lc=yes
      fi
      allow_undefined_flag=$save_allow_undefined_flag
    else
      cat conftest.err 1>&5
    fi
fi

    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
    ;;
  esac
fi
need_lc=${lt_cv_archive_cmds_need_lc-yes}

# The second clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  :
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  test -f Makefile && make "$ltmain"
fi

if test -f "$ltmain"; then
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  $rm -f "${ofile}T"

  echo creating $ofile

  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS \
    AR AR_FLAGS CC LD LN_S NM SHELL \
    reload_flag reload_cmds wl \
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
    library_names_spec soname_spec \
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
    old_striplib striplib file_magic_cmd export_symbols_cmds \
    deplibs_check_method allow_undefined_flag no_undefined_flag \
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
    global_symbol_to_c_name_address \
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do

    case $var in
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  cat <<__EOF__ > "${ofile}T"
#! $SHELL

# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="sed -e s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$need_lc

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# The default C compiler.
CC=$lt_CC

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_pic_flag
pic_mode=$pic_mode

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_compiler_c_o

# Can we write directly to a .lo ?
compiler_o_lo=$lt_compiler_o_lo

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_link_static_flag

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__

  case $host_os in
  aix3*)
    cat <<\EOF >> "${ofile}T"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  case $host_os in
  cygwin* | mingw* | pw32* | os2*)
    cat <<'EOF' >> "${ofile}T"
      # This is a source program that is used to create dlls on Windows
      # Don't remove nor modify the starting and closing comments
# /* ltdll.c starts here */
# #define WIN32_LEAN_AND_MEAN
# #include <windows.h>
# #undef WIN32_LEAN_AND_MEAN
# #include <stdio.h>
#
# #ifndef __CYGWIN__
# #  ifdef __CYGWIN32__
# #    define __CYGWIN__ __CYGWIN32__
# #  endif
# #endif
#
# #ifdef __cplusplus
# extern "C" {
# #endif
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
# #ifdef __cplusplus
# }
# #endif
#
# #ifdef __CYGWIN__
# #include <cygwin/cygwin_dll.h>
# DECLARE_CYGWIN_DLL( DllMain );
# #endif
# HINSTANCE __hDllInstance_base;
#
# BOOL APIENTRY
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
# {
#   __hDllInstance_base = hInst;
#   return TRUE;
# }
# /* ltdll.c ends here */
	# This is a source program that is used to create import libraries
	# on Windows for dlls which lack them. Don't remove nor modify the
	# starting and closing comments
# /* impgen.c starts here */
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
#
#  This file is part of GNU libtool.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#  */
#
# #include <stdio.h>		/* for printf() */
# #include <unistd.h>		/* for open(), lseek(), read() */
# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
# #include <string.h>		/* for strdup() */
#
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
# #ifndef O_BINARY
# #define O_BINARY 0
# #endif
#
# static unsigned int
# pe_get16 (fd, offset)
#      int fd;
#      int offset;
# {
#   unsigned char b[2];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 2);
#   return b[0] + (b[1]<<8);
# }
#
# static unsigned int
# pe_get32 (fd, offset)
#     int fd;
#     int offset;
# {
#   unsigned char b[4];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 4);
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# static unsigned int
# pe_as32 (ptr)
#      void *ptr;
# {
#   unsigned char *b = ptr;
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# int
# main (argc, argv)
#     int argc;
#     char *argv[];
# {
#     int dll;
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
#     unsigned long name_rvas, nexp;
#     unsigned char *expdata, *erva;
#     char *filename, *dll_name;
#
#     filename = argv[1];
#
#     dll = open(filename, O_RDONLY|O_BINARY);
#     if (dll < 1)
# 	return 1;
#
#     dll_name = filename;
#
#     for (i=0; filename[i]; i++)
# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
# 	    dll_name = filename + i +1;
#
#     pe_header_offset = pe_get32 (dll, 0x3c);
#     opthdr_ofs = pe_header_offset + 4 + 20;
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
#
#     if (num_entries < 1) /* no exports */
# 	return 1;
#
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
#     secptr = (pe_header_offset + 4 + 20 +
# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
#
#     expptr = 0;
#     for (i = 0; i < nsections; i++)
#     {
# 	char sname[8];
# 	unsigned long secptr1 = secptr + 40 * i;
# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
# 	lseek(dll, secptr1, SEEK_SET);
# 	read(dll, sname, 8);
# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
# 	{
# 	    expptr = fptr + (export_rva - vaddr);
# 	    if (export_rva + export_size > vaddr + vsize)
# 		export_size = vsize - (export_rva - vaddr);
# 	    break;
# 	}
#     }
#
#     expdata = (unsigned char*)malloc(export_size);
#     lseek (dll, expptr, SEEK_SET);
#     read (dll, expdata, export_size);
#     erva = expdata - export_rva;
#
#     nexp = pe_as32 (expdata+24);
#     name_rvas = pe_as32 (expdata+32);
#
#     printf ("EXPORTS\n");
#     for (i = 0; i<nexp; i++)
#     {
# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
# 	printf ("\t%s @@ %ld ;\n", erva+name_rva, 1+ i);
#     }
#
#     return 0;
# }
# /* impgen.c ends here */

EOF
    ;;
  esac

  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)

  mv -f "${ofile}T" "$ofile" || \
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  chmod +x "$ofile"
fi





# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion




WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi



# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
if test "${enable_berkeley_db+set}" = set; then
  enableval="$enable_berkeley_db"


fi;

have_ndbm=no
db_type=unknown

if test "$enable_berkeley_db" != no; then





for ac_header in 				\
	db4/db.h				\
	db3/db.h				\
	db.h					\
	db_185.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done






echo "$as_me:$LINENO: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db4 db3 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

  #include <stdio.h>
  #ifdef HAVE_DB4_DB_H
  #include <db4/db.h>
  #elif defined(HAVE_DB3_DB_H)
  #include <db3/db.h>
  #else
  #include <db.h>
  #endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
db_create(NULL, NULL, 0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_db_create"

if false; then

for ac_func in db_create
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB3 1
_ACEOF

  else





echo "$as_me:$LINENO: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db2 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

    #include <stdio.h>
    #if defined(HAVE_DB2_DB_H)
    #include <db2/db.h>
    #elif defined(HAVE_DB_185_H)
    #include <db_185.h>
    #elif defined(HAVE_DB_H)
    #include <db.h>
    #else
    #error no db.h
    #endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbopen(NULL, 0, 0, 0, NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbopen"

if false; then

for ac_func in dbopen
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbopen" = "yes"; then
      db_type=db1
      if test "$ac_cv_funclib_dbopen" != "yes"; then
        DBLIB="$ac_cv_funclib_dbopen"
      else
        DBLIB=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB1 1
_ACEOF

    fi
  fi


  if test "$ac_cv_func_dbm_firstkey" != yes; then


echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

    #include <stdio.h>
    #define DB_DBM_HSEARCH 1
    #include <db.h>
    DBM *dbm;

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB_NDBM 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey
    fi
  fi

fi # berkeley db

if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then



for ac_header in 				\
	dbm.h					\
	ndbm.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ndbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

  #include <stdio.h>
  #if defined(HAVE_NDBM_H)
  #include <ndbm.h>
  #elif defined(HAVE_DBM_H)
  #include <dbm.h>
  #endif
  DBM *dbm;

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
    have_ndbm=yes
    if test "$db_type" = "unknown"; then
      db_type=ndbm
      DBLIB="$LIB_NDBM"
    fi
  else

    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey


for ac_header in 				\
	  gdbm/ndbm.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" gdbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

    #include <stdio.h>
    #include <gdbm/ndbm.h>
    DBM *dbm;

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
	LIB_NDBM=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
	db_type=ndbm
	DBLIB="$LIB_NDBM"
      fi
    fi
  fi

fi # unknown

if test "$have_ndbm" = "yes"; then
  echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#endif
int main()
{
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

    if test -f conftest.db; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi



if test "$db_type" = db1; then
  HAVE_DB1_TRUE=
  HAVE_DB1_FALSE='#'
else
  HAVE_DB1_TRUE='#'
  HAVE_DB1_FALSE=
fi


if test "$db_type" = db3; then
  HAVE_DB3_TRUE=
  HAVE_DB3_FALSE='#'
else
  HAVE_DB3_TRUE='#'
  HAVE_DB3_FALSE=
fi


if test "$db_type" = ndbm; then
  HAVE_NDBM_TRUE=
  HAVE_NDBM_FALSE='#'
else
  HAVE_NDBM_TRUE='#'
  HAVE_NDBM_FALSE=
fi

DBLIB="$LDFLAGS $DBLIB"





echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\_ACEOF
#define inline
_ACEOF
 ;;
  *)  cat >>confdefs.h <<_ACEOF
#define inline $ac_cv_c_inline
_ACEOF
 ;;
esac

echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\_ACEOF
#define const
_ACEOF

fi

echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned
_ACEOF

fi

echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then

cat >>confdefs.h <<\_ACEOF
#define uid_t int
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define gid_t int
_ACEOF

fi


echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signal=void
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\_ACEOF
#define VOID_RETSIGTYPE 1
_ACEOF

fi




echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF

fi



for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:$LINENO: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
done
if false;then


for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi




for ac_func in getlogin setlogin
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:$LINENO: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi

fi
echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then

cat >>confdefs.h <<\_ACEOF
#define POSIX_GETLOGIN 1
_ACEOF

fi
fi


echo "$as_me:$LINENO: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>

int main()
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_realloc_broken=yes
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then

cat >>confdefs.h <<\_ACEOF
#define BROKEN_REALLOC 1
_ACEOF

fi







DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'














WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi








cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
ssize_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_ssize_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi





cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



















































for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	grp.h					\
	ifaddrs.h				\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done






if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi



if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi



if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi



if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi







echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_socket"

if false; then

for ac_func in socket
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi





echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

if false; then

for ac_func in gethostbyname
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi





echo "$as_me:$LINENO: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_syslog"

if false; then

for ac_func in syslog
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi




# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"

if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
save_CFLAGS="${CFLAGS}"
echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
if test "${v6type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  v6type=unknown
v6lib=none

for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi

fi
echo "$as_me:$LINENO: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

echo "$as_me:$LINENO: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ipv6=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_IPV6 1
_ACEOF

else
  CFLAGS="${save_CFLAGS}"
fi

if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_in6addr_loopback=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_in6addr_loopback=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_IN6ADDR_LOOPBACK 1
_ACEOF

	fi
fi






echo "$as_me:$LINENO: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
gethostbyname2()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname2"

if false; then

for ac_func in gethostbyname2
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
fi






echo "$as_me:$LINENO: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_search"

if false; then

for ac_func in res_search
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi






echo "$as_me:$LINENO: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dn_expand"

if false; then

for ac_func in dn_expand
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi



echo "$as_me:$LINENO: checking for _res" >&5
echo $ECHO_N "checking for _res... $ECHO_C" >&6
if test "${ac_cv_var__res+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
extern int _res;
int foo() { return _res; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var__res=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var__res=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

ac_foo=`eval echo \\$ac_cv_var__res`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE__RES 1
_ACEOF


echo "$as_me:$LINENO: checking if _res is properly declared" >&5
echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
if test "${ac_cv_var__res_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
extern struct { int foo; } _res;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
_res.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var__res_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var__res_declaration=yes"
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi




echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE__RES_DECLARATION 1
_ACEOF

fi


fi




echo "$as_me:$LINENO: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_snprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6

if test "$ac_cv_func_snprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_snprintf_working" = yes; then

if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_snprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
if test "$ac_cv_func_snprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SNPRINTF_PROTO 1
_ACEOF

fi
fi

fi


echo "$as_me:$LINENO: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>

int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}


int main()
{
	return foo(0, "12");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_vsnprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6

if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VSNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
if test "$ac_cv_func_vsnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VSNPRINTF_PROTO 1
_ACEOF

fi
fi

fi



echo "$as_me:$LINENO: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <glob.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6

if test "$ac_cv_func_glob_working" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_GLOB 1
_ACEOF

fi
if test "$ac_cv_func_glob_working" = yes; then

if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#include <glob.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_glob_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_glob_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
if test "$ac_cv_func_glob_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GLOB_PROTO 1
_ACEOF

fi
fi

fi

if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.$ac_objext"
fi


if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi





























for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	initstate				\
	issetugid				\
	on_exit					\
	random					\
	setprogname				\
	setstate				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.$ac_objext"
fi






echo "$as_me:$LINENO: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getsockopt"

if false; then

for ac_func in getsockopt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac





echo "$as_me:$LINENO: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setsockopt"

if false; then

for ac_func in setsockopt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac







echo "$as_me:$LINENO: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
hstrerror(17)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then

for ac_func in hstrerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
fi

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
	LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
fi


if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_hstrerror_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_hstrerror_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
if test "$ac_cv_func_hstrerror_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_HSTRERROR_PROTO 1
_ACEOF

fi
fi
d4701 1
d4703 7
a4709 6

if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4712 1
a4712 1
#line $LINENO "configure"
d4715 8
a4722 7
	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d4724 1
a4724 2
int
main ()
d4726 1
a4726 3
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d4728 4
a4731 1
  ;
d4735 3
a4737 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4739 3
a4741 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4744 1
a4744 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a4745 11
  eval "ac_cv_func_asprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
if test "$ac_cv_func_asprintf_noproto" = yes; then
d4747 3
a4749 3
cat >>confdefs.h <<\_ACEOF
#define NEED_ASPRINTF_PROTO 1
_ACEOF
d4751 3
a4753 2
fi
fi
d4755 4
a4758 5
if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4760 2
a4761 38
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
d4763 2
a4764 1
eval "ac_cv_func_vasprintf_noproto=no"
d4766 1
a4766 10
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
if test "$ac_cv_func_vasprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VASPRINTF_PROTO 1
_ACEOF

d4770 3
a4772 4
if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
d4775 2
d4778 1
a4778 1
#line $LINENO "configure"
d4780 3
a4782 8

	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a4783 6
int
main ()
{
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
a4784 3
  ;
  return 0;
}
d4787 1
a4787 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4790 1
a4790 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4793 1
a4793 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4796 1
a4796 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4798 1
a4798 1
  eval "ac_cv_func_asnprintf_noproto=yes"
a4801 1
eval "ac_cv_func_asnprintf_noproto=no"
d4804 1
a4804 8
fi
echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
if test "$ac_cv_func_asnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_ASNPRINTF_PROTO 1
_ACEOF
d4807 14
a4820 1
fi
d4822 3
a4824 4
if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
d4828 1
a4828 1
#line $LINENO "configure"
a4830 8
	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4834 46
a4879 3
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);
d4886 1
a4886 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4889 1
a4889 73
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
if test "$ac_cv_func_vasnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VASNPRINTF_PROTO 1
_ACEOF

fi
fi





echo "$as_me:$LINENO: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
bswap16(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4891 2
a4892 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4895 1
a4895 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4897 1
a4897 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
d4901 1
d4903 1
a4903 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
d4905 7
d4915 3
a4917 11

eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then

for ac_func in bswap16
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4921 1
a4921 1
#line $LINENO "configure"
d4923 4
a4926 29
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
a4927 3
  ;
  return 0;
}
d4929 2
a4930 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d4932 15
a4946 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4949 2
a4950 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d4952 9
a4960 7
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d4962 5
a4966 1

d4968 1
a4968 1
done
a4970 4
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"
d4972 6
a4977 23
case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a4978 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d4980 7
d4988 1
a4988 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d4990 4
a4993 9





echo "$as_me:$LINENO: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4995 2
a4996 14

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4998 9
a5006 8
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d5008 2
d5013 6
a5018 3
bswap32(0)
  ;
  return 0;
d5021 2
a5022 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5025 3
a5027 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5030 1
a5030 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5032 1
a5032 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
d5034 2
a5035 1
  echo "$as_me: failed program was:" >&5
d5037 3
a5040 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
a5041 1

d5043 3
d5047 3
d5051 1
a5051 1
eval "ac_res=\$ac_cv_funclib_bswap32"
d5053 1
a5053 1
if false; then
d5055 2
a5056 1
for ac_func in bswap32
d5058 4
a5061 4
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5065 1
a5065 1
#line $LINENO "configure"
d5067 2
a5068 33
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d5070 3
a5072 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5074 1
a5074 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5076 2
a5077 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5080 1
a5080 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5082 1
a5082 1
  eval "$as_ac_var=yes"
d5086 1
a5086 1
eval "$as_ac_var=no"
d5088 1
a5088 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5090 6
a5095 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5100 3
a5102 47
fi
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
d5105 2
a5106 14

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5108 1
a5108 9
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5112 4
a5115 1
pidfile(0)
d5120 3
a5122 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5124 1
a5124 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5126 2
a5127 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5130 1
a5130 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5132 1
a5132 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d5136 1
d5138 1
a5138 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d5140 9
d5152 3
a5154 11

eval "ac_res=\$ac_cv_funclib_pidfile"

if false; then

for ac_func in pidfile
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5158 1
a5158 1
#line $LINENO "configure"
d5160 1
a5160 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5164 4
a5167 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d5172 3
a5174 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5176 1
a5176 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5178 2
a5179 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5182 1
a5182 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5184 1
a5184 1
  eval "$as_ac_var=yes"
d5188 1
a5188 1
eval "$as_ac_var=no"
d5190 1
a5190 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5192 5
a5196 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5198 3
a5200 2
fi
done
a5202 4
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"
d5204 9
a5212 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a5213 14
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d5215 7
d5223 4
a5226 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d5228 3
a5230 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d5232 3
d5236 1
d5238 3
a5240 7




echo "$as_me:$LINENO: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
d5243 2
a5244 14

if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5246 4
a5249 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d5251 4
a5254 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d5256 1
d5260 1
a5260 1
getaddrinfo(0,0,0,0)
d5265 3
a5267 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5269 1
a5269 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5271 2
a5272 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5275 1
a5275 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5277 1
a5277 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
d5281 1
d5283 1
a5283 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d5285 2
d5288 3
a5290 1
fi
d5292 1
d5294 3
a5296 1
eval "ac_res=\$ac_cv_funclib_getaddrinfo"
d5298 1
a5298 1
if false; then
d5300 3
a5302 6
for ac_func in getaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5306 1
a5306 1
#line $LINENO "configure"
d5308 3
a5310 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a5311 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5315 2
a5316 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d5321 3
a5323 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5325 1
a5325 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5327 2
a5328 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5331 1
a5331 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5333 1
a5333 1
  eval "$as_ac_var=yes"
d5337 1
a5337 1
eval "$as_ac_var=no"
d5339 1
a5339 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5341 3
a5343 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5345 3
a5347 2
fi
done
a5349 4
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getaddrinfo=$ac_res"
d5351 12
a5362 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d5364 31
d5396 2
a5397 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d5399 1
a5399 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d5401 1
a5401 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d5403 13
d5417 25
a5441 2
if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
d5443 8
a5451 2
if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
d5453 2
d5456 6
a5461 8





echo "$as_me:$LINENO: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getnameinfo+set}" = set; then
d5464 2
a5465 14

if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5467 1
a5467 16
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
getnameinfo(0,0,0,0,0,0,0)
  ;
  return 0;
}
d5469 2
a5470 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5472 15
a5486 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
d5489 2
a5490 1
cat conftest.$ac_ext >&5
d5492 1
a5492 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
	LIBS="$ac_save_LIBS"
d5494 6
d5502 1
d5504 1
d5506 1
a5506 5
eval "ac_res=\$ac_cv_funclib_getnameinfo"

if false; then

for ac_func in getnameinfo
d5509 1
a5509 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d5515 1
a5515 1
#line $LINENO "configure"
a5528 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5546 1
a5546 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5549 1
a5549 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5552 1
a5552 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5555 1
a5555 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5565 1
a5565 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d5568 1
a5568 1
  cat >>confdefs.h <<_ACEOF
d5570 1
a5570 1
_ACEOF
d5575 11
a5586 4
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getnameinfo=$ac_res"
d5588 4
a5591 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d5593 3
a5595 24
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getnameinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a5596 3

if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
a5597 3

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
d5600 3
a5602 8





echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
d5606 6
a5611 13
if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5613 5
a5617 11
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d5619 1
a5619 3
freeaddrinfo(0)
  ;
  return 0;
d5621 1
d5623 2
a5624 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5627 3
a5629 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5632 1
a5632 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5634 1
a5634 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
d5636 2
a5637 1
  echo "$as_me: failed program was:" >&5
d5639 1
d5641 1
a5641 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d5645 7
d5653 1
d5655 3
a5657 1
eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
d5659 12
a5670 1
if false; then
d5672 3
a5674 6
for ac_func in freeaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5678 1
a5678 1
#line $LINENO "configure"
d5680 4
a5683 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d5685 1
a5685 26
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d5687 3
a5689 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d5691 1
a5691 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d5693 1
a5693 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5696 3
a5698 52
done

fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
fi

if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
fi



d5700 3
d5704 1
d5706 4
a5709 3
echo "$as_me:$LINENO: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
if test "${ac_cv_funclib_gai_strerror+set}" = set; then
d5712 2
a5713 14

if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5715 4
a5718 8
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d5720 1
d5724 1
a5724 1
gai_strerror(0)
d5729 3
a5731 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5733 1
a5733 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5735 2
a5736 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5739 1
a5739 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5741 1
a5741 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
d5745 1
d5747 1
a5747 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
d5749 5
a5753 6

fi


eval "ac_res=\$ac_cv_funclib_gai_strerror"

d5755 3
a5757 7

for ac_func in gai_strerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5761 1
a5761 1
#line $LINENO "configure"
d5763 1
a5763 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5767 4
a5770 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d5775 3
a5777 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5779 1
a5779 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5781 2
a5782 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5785 1
a5785 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5787 1
a5787 1
  eval "$as_ac_var=yes"
d5791 1
a5791 1
eval "$as_ac_var=no"
d5793 1
a5793 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5795 7
a5801 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a5803 1
done
a5805 4
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"
d5807 3
a5809 32
case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a5810 3

if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
d5813 45
a5857 3
if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
	LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
fi
d5859 5
a5863 4

echo "$as_me:$LINENO: checking for chown" >&5
echo $ECHO_N "checking for chown... $ECHO_C" >&6
if test "${ac_cv_func_chown+set}" = set; then
d5867 1
a5867 1
#line $LINENO "configure"
d5869 36
a5904 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char chown (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char chown ();
char (*f) ();
d5906 7
a5912 17
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_chown) || defined (__stub___chown)
choke me
#else
f = chown;
#endif
d5914 3
a5916 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_chown=yes
d5918 2
a5919 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_chown=no
d5921 7
a5927 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5928 7
echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
echo "${ECHO_T}$ac_cv_func_chown" >&6
if test $ac_cv_func_chown = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_CHOWN 1
_ACEOF
d5930 3
d5934 2
a5935 1
  LIBOBJS="$LIBOBJS chown.$ac_objext"
d5937 4
a5940 3
echo "$as_me:$LINENO: checking for copyhostent" >&5
echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
if test "${ac_cv_func_copyhostent+set}" = set; then
d5943 14
a5956 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a5957 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char copyhostent (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char copyhostent ();
char (*f) ();
a5958 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5962 1
a5962 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
choke me
#else
f = copyhostent;
#endif

d5968 1
a5968 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5971 1
a5971 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5974 1
a5974 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5977 1
a5977 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5979 1
a5979 1
  ac_cv_func_copyhostent=yes
a5982 1
ac_cv_func_copyhostent=no
d5985 5
a5990 3
echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
if test $ac_cv_func_copyhostent = yes; then
d5992 3
a5994 3
cat >>confdefs.h <<_ACEOF
#define HAVE_COPYHOSTENT 1
_ACEOF
d5996 6
a6001 6
else
  LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
fi
echo "$as_me:$LINENO: checking for daemon" >&5
echo $ECHO_N "checking for daemon... $ECHO_C" >&6
if test "${ac_cv_func_daemon+set}" = set; then
d6005 1
a6005 1
#line $LINENO "configure"
d6008 1
a6008 1
    which can conflict with char daemon (); below.  */
d6016 1
a6016 1
char daemon ();
a6018 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6025 1
a6025 1
#if defined (__stub_daemon) || defined (__stub___daemon)
d6028 1
a6028 1
f = daemon;
d6036 1
a6036 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6039 1
a6039 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6042 1
a6042 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6045 1
a6045 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6047 1
a6047 1
  ac_cv_func_daemon=yes
d6051 1
a6051 1
ac_cv_func_daemon=no
d6055 43
a6097 3
echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
echo "${ECHO_T}$ac_cv_func_daemon" >&6
if test $ac_cv_func_daemon = yes; then
d6099 4
a6102 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF
d6104 2
a6105 2
else
  LIBOBJS="$LIBOBJS daemon.$ac_objext"
d6107 4
a6110 3
echo "$as_me:$LINENO: checking for ecalloc" >&5
echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
if test "${ac_cv_func_ecalloc+set}" = set; then
d6113 14
a6126 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a6127 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ecalloc (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ecalloc ();
char (*f) ();
a6128 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6132 1
a6132 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
choke me
#else
f = ecalloc;
#endif

d6138 1
a6138 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6141 1
a6141 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6144 1
a6144 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6147 1
a6147 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6149 1
a6149 1
  ac_cv_func_ecalloc=yes
a6152 1
ac_cv_func_ecalloc=no
d6155 5
a6160 3
echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
if test $ac_cv_func_ecalloc = yes; then
d6162 3
a6164 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ECALLOC 1
_ACEOF
d6166 6
a6171 6
else
  LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
fi
echo "$as_me:$LINENO: checking for emalloc" >&5
echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
if test "${ac_cv_func_emalloc+set}" = set; then
d6175 1
a6175 1
#line $LINENO "configure"
d6178 1
a6178 1
    which can conflict with char emalloc (); below.  */
d6186 1
a6186 1
char emalloc ();
a6188 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6195 1
a6195 1
#if defined (__stub_emalloc) || defined (__stub___emalloc)
d6198 1
a6198 1
f = emalloc;
d6206 1
a6206 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6209 1
a6209 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6212 1
a6212 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6215 1
a6215 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6217 1
a6217 1
  ac_cv_func_emalloc=yes
d6221 1
a6221 1
ac_cv_func_emalloc=no
d6225 58
a6282 3
echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
echo "${ECHO_T}$ac_cv_func_emalloc" >&6
if test $ac_cv_func_emalloc = yes; then
d6284 13
a6296 14
cat >>confdefs.h <<_ACEOF
#define HAVE_EMALLOC 1
_ACEOF

else
  LIBOBJS="$LIBOBJS emalloc.$ac_objext"
fi
echo "$as_me:$LINENO: checking for erealloc" >&5
echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
if test "${ac_cv_func_erealloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a6297 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char erealloc (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char erealloc ();
char (*f) ();
a6298 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6302 1
a6302 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_erealloc) || defined (__stub___erealloc)
choke me
#else
f = erealloc;
#endif

d6308 1
a6308 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6311 1
a6311 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6314 1
a6314 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6317 1
a6317 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6319 1
a6319 1
  ac_cv_func_erealloc=yes
a6322 1
ac_cv_func_erealloc=no
d6325 5
a6330 3
echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
echo "${ECHO_T}$ac_cv_func_erealloc" >&6
if test $ac_cv_func_erealloc = yes; then
d6332 3
a6334 3
cat >>confdefs.h <<_ACEOF
#define HAVE_EREALLOC 1
_ACEOF
d6336 6
a6341 6
else
  LIBOBJS="$LIBOBJS erealloc.$ac_objext"
fi
echo "$as_me:$LINENO: checking for estrdup" >&5
echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
if test "${ac_cv_func_estrdup+set}" = set; then
d6345 1
a6345 1
#line $LINENO "configure"
d6348 1
a6348 1
    which can conflict with char estrdup (); below.  */
d6356 1
a6356 1
char estrdup ();
a6358 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6365 1
a6365 1
#if defined (__stub_estrdup) || defined (__stub___estrdup)
d6368 1
a6368 1
f = estrdup;
d6376 1
a6376 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6379 1
a6379 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6382 1
a6382 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6385 1
a6385 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6387 1
a6387 1
  ac_cv_func_estrdup=yes
d6391 1
a6391 1
ac_cv_func_estrdup=no
d6395 52
a6446 3
echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
echo "${ECHO_T}$ac_cv_func_estrdup" >&6
if test $ac_cv_func_estrdup = yes; then
d6448 3
a6450 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ESTRDUP 1
_ACEOF
d6452 2
a6453 2
else
  LIBOBJS="$LIBOBJS estrdup.$ac_objext"
d6455 3
a6457 3
echo "$as_me:$LINENO: checking for err" >&5
echo $ECHO_N "checking for err... $ECHO_C" >&6
if test "${ac_cv_func_err+set}" = set; then
d6460 29
a6488 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d6490 4
a6493 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char err (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d6495 14
a6508 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char err ();
char (*f) ();
d6510 3
a6512 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d6514 18
a6531 10
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_err) || defined (__stub___err)
choke me
#else
f = err;
d6533 12
d6546 4
a6549 3
  ;
  return 0;
}
d6551 32
a6582 17
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_err=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_err=no
d6584 15
a6598 27
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
echo "${ECHO_T}$ac_cv_func_err" >&6
if test $ac_cv_func_err = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ERR 1
_ACEOF

else
  LIBOBJS="$LIBOBJS err.$ac_objext"
fi
echo "$as_me:$LINENO: checking for errx" >&5
echo $ECHO_N "checking for errx... $ECHO_C" >&6
if test "${ac_cv_func_errx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char errx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a6599 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char errx ();
char (*f) ();
a6600 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6604 10
a6613 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_errx) || defined (__stub___errx)
choke me
#else
f = errx;
#endif
d6620 1
a6620 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6623 1
a6623 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6626 1
a6626 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6629 1
a6629 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6631 1
a6631 1
  ac_cv_func_errx=yes
d6635 1
a6635 1
ac_cv_func_errx=no
a6638 3
echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
echo "${ECHO_T}$ac_cv_func_errx" >&6
if test $ac_cv_func_errx = yes; then
d6640 9
a6648 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ERRX 1
_ACEOF
d6651 1
a6651 1
  LIBOBJS="$LIBOBJS errx.$ac_objext"
d6653 5
a6657 3
echo "$as_me:$LINENO: checking for fchown" >&5
echo $ECHO_N "checking for fchown... $ECHO_C" >&6
if test "${ac_cv_func_fchown+set}" = set; then
d6660 3
a6662 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d6664 9
a6672 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fchown (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d6674 2
a6675 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fchown ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d6680 3
a6682 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fchown) || defined (__stub___fchown)
choke me
#else
f = fchown;
#endif
d6689 1
a6689 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6692 1
a6692 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6695 1
a6695 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6698 1
a6698 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6700 1
a6700 1
  ac_cv_func_fchown=yes
d6704 1
a6704 1
ac_cv_func_fchown=no
d6708 3
a6710 3
echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
echo "${ECHO_T}$ac_cv_func_fchown" >&6
if test $ac_cv_func_fchown = yes; then
d6712 3
a6714 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FCHOWN 1
_ACEOF
d6716 1
a6716 2
else
  LIBOBJS="$LIBOBJS fchown.$ac_objext"
d6718 4
a6721 3
echo "$as_me:$LINENO: checking for flock" >&5
echo $ECHO_N "checking for flock... $ECHO_C" >&6
if test "${ac_cv_func_flock+set}" = set; then
d6724 14
a6737 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a6738 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char flock (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char flock ();
char (*f) ();
a6739 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6743 1
a6743 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_flock) || defined (__stub___flock)
choke me
#else
f = flock;
#endif

d6749 1
a6749 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6752 1
a6752 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6755 1
a6755 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6758 1
a6758 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6760 1
a6760 1
  ac_cv_func_flock=yes
a6763 1
ac_cv_func_flock=no
d6766 5
a6771 3
echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
echo "${ECHO_T}$ac_cv_func_flock" >&6
if test $ac_cv_func_flock = yes; then
d6773 3
a6775 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FLOCK 1
_ACEOF
d6777 6
a6782 6
else
  LIBOBJS="$LIBOBJS flock.$ac_objext"
fi
echo "$as_me:$LINENO: checking for fnmatch" >&5
echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
if test "${ac_cv_func_fnmatch+set}" = set; then
d6786 1
a6786 1
#line $LINENO "configure"
d6789 1
a6789 1
    which can conflict with char fnmatch (); below.  */
d6797 1
a6797 1
char fnmatch ();
a6799 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6806 1
a6806 1
#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
d6809 1
a6809 1
f = fnmatch;
d6817 1
a6817 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6820 1
a6820 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6823 1
a6823 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6826 1
a6826 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6828 1
a6828 1
  ac_cv_func_fnmatch=yes
d6832 1
a6832 1
ac_cv_func_fnmatch=no
d6836 43
a6878 3
echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
if test $ac_cv_func_fnmatch = yes; then
d6880 4
a6883 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FNMATCH 1
_ACEOF
d6885 2
a6886 2
else
  LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
d6888 4
a6891 3
echo "$as_me:$LINENO: checking for freehostent" >&5
echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
if test "${ac_cv_func_freehostent+set}" = set; then
d6894 14
a6907 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d6909 13
a6921 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char freehostent (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a6922 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char freehostent ();
char (*f) ();
a6923 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6927 1
a6927 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_freehostent) || defined (__stub___freehostent)
choke me
#else
f = freehostent;
#endif

d6933 1
a6933 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6936 1
a6936 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6939 1
a6939 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6942 1
a6942 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6944 1
a6944 1
  ac_cv_func_freehostent=yes
a6947 1
ac_cv_func_freehostent=no
d6950 3
a6953 3
echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
echo "${ECHO_T}$ac_cv_func_freehostent" >&6
if test $ac_cv_func_freehostent = yes; then
d6955 5
a6959 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FREEHOSTENT 1
_ACEOF
d6961 6
a6966 6
else
  LIBOBJS="$LIBOBJS freehostent.$ac_objext"
fi
echo "$as_me:$LINENO: checking for getcwd" >&5
echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
if test "${ac_cv_func_getcwd+set}" = set; then
d6970 1
a6970 1
#line $LINENO "configure"
d6973 1
a6973 1
    which can conflict with char getcwd (); below.  */
d6981 1
a6981 1
char getcwd ();
a6983 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6990 1
a6990 1
#if defined (__stub_getcwd) || defined (__stub___getcwd)
d6993 1
a6993 1
f = getcwd;
d7001 1
a7001 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7004 1
a7004 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7007 1
a7007 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7010 1
a7010 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7012 1
a7012 1
  ac_cv_func_getcwd=yes
d7016 1
a7016 1
ac_cv_func_getcwd=no
d7020 43
a7062 3
echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
echo "${ECHO_T}$ac_cv_func_getcwd" >&6
if test $ac_cv_func_getcwd = yes; then
d7064 4
a7067 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETCWD 1
_ACEOF
d7069 2
a7070 2
else
  LIBOBJS="$LIBOBJS getcwd.$ac_objext"
d7072 4
a7075 3
echo "$as_me:$LINENO: checking for getdtablesize" >&5
echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
if test "${ac_cv_func_getdtablesize+set}" = set; then
d7078 14
a7091 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d7093 13
a7105 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getdtablesize (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a7106 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getdtablesize ();
char (*f) ();
a7107 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7111 1
a7111 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
choke me
#else
f = getdtablesize;
#endif

d7117 1
a7117 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7120 1
a7120 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7123 1
a7123 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7126 1
a7126 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7128 1
a7128 1
  ac_cv_func_getdtablesize=yes
a7131 1
ac_cv_func_getdtablesize=no
d7134 5
a7139 3
echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
if test $ac_cv_func_getdtablesize = yes; then
d7141 3
a7143 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETDTABLESIZE 1
_ACEOF
d7145 6
a7150 6
else
  LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
fi
echo "$as_me:$LINENO: checking for getegid" >&5
echo $ECHO_N "checking for getegid... $ECHO_C" >&6
if test "${ac_cv_func_getegid+set}" = set; then
d7154 1
a7154 1
#line $LINENO "configure"
d7157 1
a7157 1
    which can conflict with char getegid (); below.  */
d7165 1
a7165 1
char getegid ();
a7167 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7174 1
a7174 1
#if defined (__stub_getegid) || defined (__stub___getegid)
d7177 1
a7177 1
f = getegid;
d7185 1
a7185 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7188 1
a7188 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7191 1
a7191 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7194 1
a7194 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7196 1
a7196 1
  ac_cv_func_getegid=yes
d7200 1
a7200 1
ac_cv_func_getegid=no
d7204 43
a7246 3
echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
echo "${ECHO_T}$ac_cv_func_getegid" >&6
if test $ac_cv_func_getegid = yes; then
d7248 4
a7251 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETEGID 1
_ACEOF
d7253 2
a7254 2
else
  LIBOBJS="$LIBOBJS getegid.$ac_objext"
d7256 4
a7259 3
echo "$as_me:$LINENO: checking for geteuid" >&5
echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
if test "${ac_cv_func_geteuid+set}" = set; then
d7262 4
d7267 1
a7267 1
#line $LINENO "configure"
a7268 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char geteuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char geteuid ();
char (*f) ();
d7270 3
a7272 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d7274 3
a7276 11
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_geteuid) || defined (__stub___geteuid)
choke me
#else
f = geteuid;
#endif

  ;
  return 0;
d7279 2
a7280 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7283 3
a7285 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7288 1
a7288 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7290 1
a7290 1
  ac_cv_func_geteuid=yes
d7292 2
a7293 1
  echo "$as_me: failed program was:" >&5
d7295 3
a7297 1
ac_cv_func_geteuid=no
a7298 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7300 4
a7303 3
echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
echo "${ECHO_T}$ac_cv_func_geteuid" >&6
if test $ac_cv_func_geteuid = yes; then
d7305 3
a7307 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETEUID 1
_ACEOF
a7308 2
else
  LIBOBJS="$LIBOBJS geteuid.$ac_objext"
d7310 6
a7315 3
echo "$as_me:$LINENO: checking for getgid" >&5
echo $ECHO_N "checking for getgid... $ECHO_C" >&6
if test "${ac_cv_func_getgid+set}" = set; then
d7319 1
a7319 1
#line $LINENO "configure"
d7321 1
a7321 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getgid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getgid ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7325 3
a7327 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getgid) || defined (__stub___getgid)
choke me
#else
f = getgid;
#endif
d7333 3
a7335 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7337 1
a7337 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7339 2
a7340 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7343 1
a7343 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7345 1
a7345 1
  ac_cv_func_getgid=yes
d7348 4
a7351 2
cat conftest.$ac_ext >&5
ac_cv_func_getgid=no
d7353 9
a7361 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7362 3
echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
echo "${ECHO_T}$ac_cv_func_getgid" >&6
if test $ac_cv_func_getgid = yes; then
d7364 1
a7364 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETGID 1
_ACEOF
a7365 2
else
  LIBOBJS="$LIBOBJS getgid.$ac_objext"
d7367 4
a7370 3
echo "$as_me:$LINENO: checking for gethostname" >&5
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
if test "${ac_cv_func_gethostname+set}" = set; then
d7373 4
d7378 1
a7378 1
#line $LINENO "configure"
a7379 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostname (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostname ();
char (*f) ();
d7381 5
a7385 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d7387 7
a7393 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostname) || defined (__stub___gethostname)
choke me
#else
f = gethostname;
#endif
d7395 3
a7397 2
  ;
  return 0;
d7400 2
a7401 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7404 3
a7406 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7409 1
a7409 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7411 1
a7411 1
  ac_cv_func_gethostname=yes
d7413 2
a7414 1
  echo "$as_me: failed program was:" >&5
d7416 3
a7418 1
ac_cv_func_gethostname=no
a7419 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7421 2
a7422 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
if test $ac_cv_func_gethostname = yes; then
d7424 5
a7428 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETHOSTNAME 1
_ACEOF
a7429 2
else
  LIBOBJS="$LIBOBJS gethostname.$ac_objext"
d7431 6
a7436 3
echo "$as_me:$LINENO: checking for getifaddrs" >&5
echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
if test "${ac_cv_func_getifaddrs+set}" = set; then
d7440 1
a7440 1
#line $LINENO "configure"
d7442 1
a7442 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getifaddrs (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getifaddrs ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7446 3
a7448 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
choke me
#else
f = getifaddrs;
#endif
d7454 3
a7456 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7458 1
a7458 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7460 2
a7461 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7464 1
a7464 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7466 1
a7466 1
  ac_cv_func_getifaddrs=yes
d7470 1
a7470 1
ac_cv_func_getifaddrs=no
d7472 11
a7482 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7483 3
echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
if test $ac_cv_func_getifaddrs = yes; then
d7485 1
a7485 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF
a7486 2
else
  LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
d7488 4
a7491 3
echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
d7494 3
a7496 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a7497 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getipnodebyaddr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getipnodebyaddr ();
char (*f) ();
d7499 2
a7500 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7504 4
a7507 5
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
choke me
d7509 1
a7509 1
f = getipnodebyaddr;
d7511 2
d7519 1
a7519 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7522 1
a7522 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7525 1
a7525 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7528 1
a7528 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7530 1
a7530 1
  ac_cv_func_getipnodebyaddr=yes
d7534 1
a7534 1
ac_cv_func_getipnodebyaddr=no
d7538 4
a7541 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
if test $ac_cv_func_getipnodebyaddr = yes; then
d7543 3
a7545 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYADDR 1
_ACEOF
a7546 2
else
  LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
d7548 6
a7553 3
echo "$as_me:$LINENO: checking for getipnodebyname" >&5
echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyname+set}" = set; then
d7557 1
a7557 1
#line $LINENO "configure"
d7559 2
a7560 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getipnodebyname (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getipnodebyname ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7564 3
a7566 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
choke me
#else
f = getipnodebyname;
#endif
d7572 3
a7574 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7576 1
a7576 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7578 2
a7579 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7582 1
a7582 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7584 1
a7584 1
  ac_cv_func_getipnodebyname=yes
d7588 13
a7600 1
ac_cv_func_getipnodebyname=no
d7602 3
a7604 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7605 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
if test $ac_cv_func_getipnodebyname = yes; then
d7607 3
a7609 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYNAME 1
_ACEOF
d7611 3
d7615 2
a7616 1
  LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
d7618 34
a7651 3
echo "$as_me:$LINENO: checking for getopt" >&5
echo $ECHO_N "checking for getopt... $ECHO_C" >&6
if test "${ac_cv_func_getopt+set}" = set; then
d7655 1
a7655 1
#line $LINENO "configure"
d7658 1
a7658 1
    which can conflict with char getopt (); below.  */
d7666 1
a7666 1
char getopt ();
a7668 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7675 1
a7675 1
#if defined (__stub_getopt) || defined (__stub___getopt)
d7678 1
a7678 1
f = getopt;
d7686 1
a7686 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7689 1
a7689 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7692 1
a7692 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7695 1
a7695 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7697 1
a7697 1
  ac_cv_func_getopt=yes
d7701 1
a7701 1
ac_cv_func_getopt=no
d7705 6
a7710 3
echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
echo "${ECHO_T}$ac_cv_func_getopt" >&6
if test $ac_cv_func_getopt = yes; then
d7712 2
a7713 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETOPT 1
_ACEOF
d7715 2
a7716 2
else
  LIBOBJS="$LIBOBJS getopt.$ac_objext"
d7718 4
a7721 3
echo "$as_me:$LINENO: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
d7724 14
a7737 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d7739 2
a7740 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettimeofday (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7742 2
a7743 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d7748 1
a7748 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
choke me
#else
f = gettimeofday;
#endif

d7754 1
a7754 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7757 1
a7757 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7760 1
a7760 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7763 1
a7763 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7765 1
a7765 1
  ac_cv_func_gettimeofday=yes
a7768 1
ac_cv_func_gettimeofday=no
d7771 5
a7776 3
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
d7778 3
a7780 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETTIMEOFDAY 1
_ACEOF
d7782 6
a7787 6
else
  LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
fi
echo "$as_me:$LINENO: checking for getuid" >&5
echo $ECHO_N "checking for getuid... $ECHO_C" >&6
if test "${ac_cv_func_getuid+set}" = set; then
d7791 1
a7791 1
#line $LINENO "configure"
d7794 1
a7794 1
    which can conflict with char getuid (); below.  */
d7802 1
a7802 1
char getuid ();
a7804 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7811 1
a7811 1
#if defined (__stub_getuid) || defined (__stub___getuid)
d7814 1
a7814 1
f = getuid;
d7822 1
a7822 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7825 1
a7825 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7828 1
a7828 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7831 1
a7831 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7833 1
a7833 1
  ac_cv_func_getuid=yes
d7837 1
a7837 1
ac_cv_func_getuid=no
d7841 6
a7846 3
echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
echo "${ECHO_T}$ac_cv_func_getuid" >&6
if test $ac_cv_func_getuid = yes; then
d7848 2
a7849 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETUID 1
_ACEOF
a7850 2
else
  LIBOBJS="$LIBOBJS getuid.$ac_objext"
d7852 41
a7892 3
echo "$as_me:$LINENO: checking for getusershell" >&5
echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
if test "${ac_cv_func_getusershell+set}" = set; then
d7895 14
a7908 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d7910 2
a7911 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getusershell (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7913 2
a7914 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getusershell ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d7919 1
a7919 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getusershell) || defined (__stub___getusershell)
choke me
#else
f = getusershell;
#endif

d7925 1
a7925 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7928 1
a7928 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7931 1
a7931 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7934 1
a7934 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7936 1
a7936 1
  ac_cv_func_getusershell=yes
a7939 1
ac_cv_func_getusershell=no
d7942 3
a7945 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
echo "${ECHO_T}$ac_cv_func_getusershell" >&6
if test $ac_cv_func_getusershell = yes; then
d7947 5
a7951 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETUSERSHELL 1
_ACEOF
d7953 6
a7958 6
else
  LIBOBJS="$LIBOBJS getusershell.$ac_objext"
fi
echo "$as_me:$LINENO: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
if test "${ac_cv_func_initgroups+set}" = set; then
d7962 1
a7962 1
#line $LINENO "configure"
d7965 1
a7965 1
    which can conflict with char initgroups (); below.  */
d7973 1
a7973 1
char initgroups ();
a7975 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7982 1
a7982 1
#if defined (__stub_initgroups) || defined (__stub___initgroups)
d7985 1
a7985 1
f = initgroups;
d7993 1
a7993 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7996 1
a7996 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7999 1
a7999 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8002 1
a8002 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8004 1
a8004 1
  ac_cv_func_initgroups=yes
d8008 1
a8008 1
ac_cv_func_initgroups=no
d8012 6
a8017 3
echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
echo "${ECHO_T}$ac_cv_func_initgroups" >&6
if test $ac_cv_func_initgroups = yes; then
d8019 2
a8020 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INITGROUPS 1
_ACEOF
a8021 2
else
  LIBOBJS="$LIBOBJS initgroups.$ac_objext"
d8023 41
a8063 3
echo "$as_me:$LINENO: checking for innetgr" >&5
echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
if test "${ac_cv_func_innetgr+set}" = set; then
d8066 14
a8079 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8081 2
a8082 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char innetgr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char innetgr ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8087 1
a8087 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_innetgr) || defined (__stub___innetgr)
choke me
#else
f = innetgr;
#endif

d8093 1
a8093 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8096 1
a8096 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8099 1
a8099 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8102 1
a8102 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8104 1
a8104 1
  ac_cv_func_innetgr=yes
a8107 1
ac_cv_func_innetgr=no
d8110 3
a8113 3
echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
echo "${ECHO_T}$ac_cv_func_innetgr" >&6
if test $ac_cv_func_innetgr = yes; then
d8115 5
a8119 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INNETGR 1
_ACEOF
d8121 6
a8126 6
else
  LIBOBJS="$LIBOBJS innetgr.$ac_objext"
fi
echo "$as_me:$LINENO: checking for iruserok" >&5
echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
if test "${ac_cv_func_iruserok+set}" = set; then
d8130 1
a8130 1
#line $LINENO "configure"
d8133 1
a8133 1
    which can conflict with char iruserok (); below.  */
d8141 1
a8141 1
char iruserok ();
a8143 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8150 1
a8150 1
#if defined (__stub_iruserok) || defined (__stub___iruserok)
d8153 1
a8153 1
f = iruserok;
d8161 1
a8161 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8164 1
a8164 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8167 1
a8167 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8170 1
a8170 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8172 1
a8172 1
  ac_cv_func_iruserok=yes
d8176 1
a8176 1
ac_cv_func_iruserok=no
d8180 48
a8227 3
echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
echo "${ECHO_T}$ac_cv_func_iruserok" >&6
if test $ac_cv_func_iruserok = yes; then
d8229 3
a8231 3
cat >>confdefs.h <<_ACEOF
#define HAVE_IRUSEROK 1
_ACEOF
d8233 2
a8234 2
else
  LIBOBJS="$LIBOBJS iruserok.$ac_objext"
d8236 7
a8242 3
echo "$as_me:$LINENO: checking for localtime_r" >&5
echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
if test "${ac_cv_func_localtime_r+set}" = set; then
d8246 1
a8246 1
#line $LINENO "configure"
a8247 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char localtime_r (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char localtime_r ();
char (*f) ();
d8249 2
a8250 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8255 3
a8257 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
choke me
#else
f = localtime_r;
#endif
d8263 3
a8265 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8267 1
a8267 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8269 2
a8270 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8273 1
a8273 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8275 1
a8275 1
  ac_cv_func_localtime_r=yes
d8279 3
a8281 1
ac_cv_func_localtime_r=no
d8283 9
a8291 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a8292 3
echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
if test $ac_cv_func_localtime_r = yes; then
d8294 1
a8294 3
cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALTIME_R 1
_ACEOF
a8295 2
else
  LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
d8297 7
a8303 3
echo "$as_me:$LINENO: checking for lstat" >&5
echo $ECHO_N "checking for lstat... $ECHO_C" >&6
if test "${ac_cv_func_lstat+set}" = set; then
d8307 1
a8307 1
#line $LINENO "configure"
a8308 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char lstat (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char lstat ();
char (*f) ();
d8310 2
a8311 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8315 3
a8317 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_lstat) || defined (__stub___lstat)
choke me
#else
f = lstat;
#endif
d8323 3
a8325 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8327 1
a8327 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8329 2
a8330 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8333 1
a8333 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8335 1
a8335 1
  ac_cv_func_lstat=yes
d8339 1
a8339 1
ac_cv_func_lstat=no
d8341 1
a8341 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8343 8
a8350 3
echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
echo "${ECHO_T}$ac_cv_func_lstat" >&6
if test $ac_cv_func_lstat = yes; then
d8352 1
a8352 3
cat >>confdefs.h <<_ACEOF
#define HAVE_LSTAT 1
_ACEOF
a8353 2
else
  LIBOBJS="$LIBOBJS lstat.$ac_objext"
d8355 7
a8361 3
echo "$as_me:$LINENO: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
d8365 1
a8365 1
#line $LINENO "configure"
a8366 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char memmove (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char memmove ();
char (*f) ();
d8368 2
a8369 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8373 3
a8375 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_memmove) || defined (__stub___memmove)
choke me
#else
f = memmove;
#endif
d8381 3
a8383 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8385 1
a8385 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8387 2
a8388 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8391 1
a8391 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8393 1
a8393 1
  ac_cv_func_memmove=yes
d8397 1
a8397 1
ac_cv_func_memmove=no
d8399 1
a8399 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8401 4
a8404 3
echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
d8406 5
a8410 3
cat >>confdefs.h <<_ACEOF
#define HAVE_MEMMOVE 1
_ACEOF
a8411 2
else
  LIBOBJS="$LIBOBJS memmove.$ac_objext"
d8413 7
a8419 3
echo "$as_me:$LINENO: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
d8423 1
a8423 1
#line $LINENO "configure"
a8424 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mkstemp (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mkstemp ();
char (*f) ();
d8426 2
a8427 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8431 3
a8433 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
choke me
#else
f = mkstemp;
#endif
d8439 3
a8441 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8443 1
a8443 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8445 2
a8446 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8449 1
a8449 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8451 1
a8451 1
  ac_cv_func_mkstemp=yes
d8455 1
a8455 1
ac_cv_func_mkstemp=no
d8457 1
a8457 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8459 8
a8466 3
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
if test $ac_cv_func_mkstemp = yes; then
d8468 1
a8468 3
cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF
a8469 2
else
  LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
d8471 7
a8477 3
echo "$as_me:$LINENO: checking for putenv" >&5
echo $ECHO_N "checking for putenv... $ECHO_C" >&6
if test "${ac_cv_func_putenv+set}" = set; then
d8481 1
a8481 1
#line $LINENO "configure"
a8482 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char putenv (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char putenv ();
char (*f) ();
d8484 2
a8485 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8489 3
a8491 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_putenv) || defined (__stub___putenv)
choke me
#else
f = putenv;
#endif
d8497 3
a8499 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8501 1
a8501 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8503 2
a8504 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8507 1
a8507 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8509 1
a8509 1
  ac_cv_func_putenv=yes
d8513 1
a8513 1
ac_cv_func_putenv=no
d8515 1
a8515 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8517 2
a8518 3
echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
echo "${ECHO_T}$ac_cv_func_putenv" >&6
if test $ac_cv_func_putenv = yes; then
d8520 7
a8526 3
cat >>confdefs.h <<_ACEOF
#define HAVE_PUTENV 1
_ACEOF
a8527 2
else
  LIBOBJS="$LIBOBJS putenv.$ac_objext"
d8529 5
a8533 3
echo "$as_me:$LINENO: checking for rcmd" >&5
echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
if test "${ac_cv_func_rcmd+set}" = set; then
d8536 14
a8549 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8551 2
a8552 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char rcmd (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char rcmd ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8557 1
a8557 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_rcmd) || defined (__stub___rcmd)
choke me
#else
f = rcmd;
#endif

d8563 1
a8563 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8566 1
a8566 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8569 1
a8569 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8572 1
a8572 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8574 1
a8574 1
  ac_cv_func_rcmd=yes
a8577 1
ac_cv_func_rcmd=no
d8580 5
a8585 3
echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
echo "${ECHO_T}$ac_cv_func_rcmd" >&6
if test $ac_cv_func_rcmd = yes; then
d8587 3
a8589 3
cat >>confdefs.h <<_ACEOF
#define HAVE_RCMD 1
_ACEOF
d8591 6
a8596 6
else
  LIBOBJS="$LIBOBJS rcmd.$ac_objext"
fi
echo "$as_me:$LINENO: checking for readv" >&5
echo $ECHO_N "checking for readv... $ECHO_C" >&6
if test "${ac_cv_func_readv+set}" = set; then
d8600 1
a8600 1
#line $LINENO "configure"
d8603 1
a8603 1
    which can conflict with char readv (); below.  */
d8611 1
a8611 1
char readv ();
a8613 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8620 1
a8620 1
#if defined (__stub_readv) || defined (__stub___readv)
d8623 1
a8623 1
f = readv;
d8631 1
a8631 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8634 1
a8634 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8637 1
a8637 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8640 1
a8640 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8642 1
a8642 1
  ac_cv_func_readv=yes
d8646 1
a8646 1
ac_cv_func_readv=no
d8650 6
a8655 3
echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
echo "${ECHO_T}$ac_cv_func_readv" >&6
if test $ac_cv_func_readv = yes; then
d8657 2
a8658 3
cat >>confdefs.h <<_ACEOF
#define HAVE_READV 1
_ACEOF
a8659 2
else
  LIBOBJS="$LIBOBJS readv.$ac_objext"
d8661 41
a8701 3
echo "$as_me:$LINENO: checking for recvmsg" >&5
echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
if test "${ac_cv_func_recvmsg+set}" = set; then
d8704 14
a8717 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8719 2
a8720 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char recvmsg (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char recvmsg ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8725 1
a8725 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
choke me
#else
f = recvmsg;
#endif

d8731 1
a8731 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8734 1
a8734 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8737 1
a8737 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8740 1
a8740 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8742 1
a8742 1
  ac_cv_func_recvmsg=yes
a8745 1
ac_cv_func_recvmsg=no
d8748 5
a8753 3
echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
if test $ac_cv_func_recvmsg = yes; then
d8755 3
a8757 3
cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF
d8759 6
a8764 6
else
  LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
fi
echo "$as_me:$LINENO: checking for sendmsg" >&5
echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
if test "${ac_cv_func_sendmsg+set}" = set; then
d8768 1
a8768 1
#line $LINENO "configure"
d8771 1
a8771 1
    which can conflict with char sendmsg (); below.  */
d8779 1
a8779 1
char sendmsg ();
a8781 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8788 1
a8788 1
#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
d8791 1
a8791 1
f = sendmsg;
d8799 1
a8799 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8802 1
a8802 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8805 1
a8805 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8808 1
a8808 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8810 1
a8810 1
  ac_cv_func_sendmsg=yes
d8813 73
a8885 23
cat conftest.$ac_ext >&5
ac_cv_func_sendmsg=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
if test $ac_cv_func_sendmsg = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SENDMSG 1
_ACEOF

else
  LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
fi
echo "$as_me:$LINENO: checking for setegid" >&5
echo $ECHO_N "checking for setegid... $ECHO_C" >&6
if test "${ac_cv_func_setegid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8887 2
a8888 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setegid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setegid ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8893 1
a8893 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setegid) || defined (__stub___setegid)
choke me
#else
f = setegid;
#endif

d8899 1
a8899 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8902 1
a8902 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8905 1
a8905 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8908 1
a8908 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8910 1
a8910 1
  ac_cv_func_setegid=yes
a8913 1
ac_cv_func_setegid=no
d8916 3
a8919 3
echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
echo "${ECHO_T}$ac_cv_func_setegid" >&6
if test $ac_cv_func_setegid = yes; then
d8921 5
a8925 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SETEGID 1
_ACEOF
d8927 6
a8932 6
else
  LIBOBJS="$LIBOBJS setegid.$ac_objext"
fi
echo "$as_me:$LINENO: checking for setenv" >&5
echo $ECHO_N "checking for setenv... $ECHO_C" >&6
if test "${ac_cv_func_setenv+set}" = set; then
d8936 1
a8936 1
#line $LINENO "configure"
d8939 1
a8939 1
    which can conflict with char setenv (); below.  */
d8947 1
a8947 1
char setenv ();
a8949 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8956 1
a8956 1
#if defined (__stub_setenv) || defined (__stub___setenv)
d8959 1
a8959 1
f = setenv;
d8967 1
a8967 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8970 1
a8970 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8973 1
a8973 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8976 1
a8976 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8978 1
a8978 1
  ac_cv_func_setenv=yes
d8982 1
a8982 1
ac_cv_func_setenv=no
d8986 6
a8991 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
echo "${ECHO_T}$ac_cv_func_setenv" >&6
if test $ac_cv_func_setenv = yes; then
d8993 2
a8994 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SETENV 1
_ACEOF
a8995 2
else
  LIBOBJS="$LIBOBJS setenv.$ac_objext"
d8997 41
a9037 3
echo "$as_me:$LINENO: checking for seteuid" >&5
echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
if test "${ac_cv_func_seteuid+set}" = set; then
d9040 14
a9053 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9055 2
a9056 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char seteuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char seteuid ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9061 1
a9061 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_seteuid) || defined (__stub___seteuid)
choke me
#else
f = seteuid;
#endif

d9067 1
a9067 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9070 1
a9070 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9073 1
a9073 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9076 1
a9076 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9078 1
a9078 1
  ac_cv_func_seteuid=yes
a9081 1
ac_cv_func_seteuid=no
d9084 3
a9087 3
echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
echo "${ECHO_T}$ac_cv_func_seteuid" >&6
if test $ac_cv_func_seteuid = yes; then
d9089 5
a9093 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SETEUID 1
_ACEOF
d9095 6
a9100 6
else
  LIBOBJS="$LIBOBJS seteuid.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strcasecmp" >&5
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strcasecmp+set}" = set; then
d9104 1
a9104 1
#line $LINENO "configure"
d9107 1
a9107 1
    which can conflict with char strcasecmp (); below.  */
d9115 1
a9115 1
char strcasecmp ();
a9117 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9124 1
a9124 1
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
d9127 1
a9127 1
f = strcasecmp;
d9135 1
a9135 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9138 1
a9138 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9141 1
a9141 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9144 1
a9144 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9146 1
a9146 1
  ac_cv_func_strcasecmp=yes
d9150 1
a9150 1
ac_cv_func_strcasecmp=no
d9154 6
a9159 3
echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
if test $ac_cv_func_strcasecmp = yes; then
d9161 2
a9162 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRCASECMP 1
_ACEOF
a9163 2
else
  LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
d9165 32
a9196 19
echo "$as_me:$LINENO: checking for strdup" >&5
echo $ECHO_N "checking for strdup... $ECHO_C" >&6
if test "${ac_cv_func_strdup+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strdup ();
char (*f) ();
d9198 4
a9201 17
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strdup) || defined (__stub___strdup)
choke me
#else
f = strdup;
#endif
d9203 2
a9204 21
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_strdup=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_strdup=no
d9206 3
a9208 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a9209 3
echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
echo "${ECHO_T}$ac_cv_func_strdup" >&6
if test $ac_cv_func_strdup = yes; then
d9211 3
a9213 10
cat >>confdefs.h <<_ACEOF
#define HAVE_STRDUP 1
_ACEOF

else
  LIBOBJS="$LIBOBJS strdup.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strerror" >&5
echo $ECHO_N "checking for strerror... $ECHO_C" >&6
if test "${ac_cv_func_strerror+set}" = set; then
d9216 14
a9229 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9231 2
a9232 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strerror (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strerror ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9237 1
a9237 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strerror) || defined (__stub___strerror)
choke me
#else
f = strerror;
#endif

d9243 1
a9243 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9246 1
a9246 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9249 1
a9249 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9252 1
a9252 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9254 1
a9254 1
  ac_cv_func_strerror=yes
a9257 1
ac_cv_func_strerror=no
d9260 5
a9265 3
echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
echo "${ECHO_T}$ac_cv_func_strerror" >&6
if test $ac_cv_func_strerror = yes; then
d9267 3
a9269 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR 1
_ACEOF
d9271 6
a9276 6
else
  LIBOBJS="$LIBOBJS strerror.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strftime" >&5
echo $ECHO_N "checking for strftime... $ECHO_C" >&6
if test "${ac_cv_func_strftime+set}" = set; then
d9280 1
a9280 1
#line $LINENO "configure"
d9283 1
a9283 1
    which can conflict with char strftime (); below.  */
d9291 1
a9291 1
char strftime ();
a9293 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9300 1
a9300 1
#if defined (__stub_strftime) || defined (__stub___strftime)
d9303 1
a9303 1
f = strftime;
d9311 1
a9311 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9314 1
a9314 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9317 1
a9317 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9320 1
a9320 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9322 1
a9322 1
  ac_cv_func_strftime=yes
d9326 1
a9326 1
ac_cv_func_strftime=no
d9330 48
a9377 3
echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
echo "${ECHO_T}$ac_cv_func_strftime" >&6
if test $ac_cv_func_strftime = yes; then
d9379 3
a9381 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRFTIME 1
_ACEOF
d9383 2
a9384 2
else
  LIBOBJS="$LIBOBJS strftime.$ac_objext"
d9386 4
a9389 3
echo "$as_me:$LINENO: checking for strlcat" >&5
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
if test "${ac_cv_func_strlcat+set}" = set; then
d9392 14
a9405 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9407 2
a9408 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcat (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcat ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9413 1
a9413 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcat) || defined (__stub___strlcat)
choke me
#else
f = strlcat;
#endif

d9419 1
a9419 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9422 1
a9422 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9425 1
a9425 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9428 1
a9428 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9430 1
a9430 1
  ac_cv_func_strlcat=yes
a9433 1
ac_cv_func_strlcat=no
d9436 3
a9439 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
echo "${ECHO_T}$ac_cv_func_strlcat" >&6
if test $ac_cv_func_strlcat = yes; then
d9441 5
a9445 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCAT 1
_ACEOF
d9447 6
a9452 6
else
  LIBOBJS="$LIBOBJS strlcat.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strlcpy" >&5
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
if test "${ac_cv_func_strlcpy+set}" = set; then
d9456 1
a9456 1
#line $LINENO "configure"
d9459 1
a9459 1
    which can conflict with char strlcpy (); below.  */
d9467 1
a9467 1
char strlcpy ();
a9469 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9476 1
a9476 1
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
d9479 1
a9479 1
f = strlcpy;
d9487 1
a9487 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9490 1
a9490 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9493 1
a9493 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9496 1
a9496 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9498 1
a9498 1
  ac_cv_func_strlcpy=yes
d9502 1
a9502 1
ac_cv_func_strlcpy=no
d9506 48
a9553 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
if test $ac_cv_func_strlcpy = yes; then
d9555 3
a9557 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCPY 1
_ACEOF
d9559 2
a9560 2
else
  LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
d9562 4
a9565 3
echo "$as_me:$LINENO: checking for strlwr" >&5
echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
if test "${ac_cv_func_strlwr+set}" = set; then
d9568 14
a9581 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9583 2
a9584 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlwr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlwr ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9589 1
a9589 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlwr) || defined (__stub___strlwr)
choke me
#else
f = strlwr;
#endif

d9595 1
a9595 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9598 1
a9598 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9601 1
a9601 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9604 1
a9604 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9606 1
a9606 1
  ac_cv_func_strlwr=yes
a9609 1
ac_cv_func_strlwr=no
d9612 5
a9617 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
echo "${ECHO_T}$ac_cv_func_strlwr" >&6
if test $ac_cv_func_strlwr = yes; then
d9619 3
a9621 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLWR 1
_ACEOF
d9623 6
a9628 6
else
  LIBOBJS="$LIBOBJS strlwr.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strncasecmp" >&5
echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strncasecmp+set}" = set; then
d9632 1
a9632 1
#line $LINENO "configure"
d9635 1
a9635 1
    which can conflict with char strncasecmp (); below.  */
d9643 1
a9643 1
char strncasecmp ();
a9645 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9652 1
a9652 1
#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
d9655 1
a9655 1
f = strncasecmp;
d9663 1
a9663 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9666 1
a9666 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9669 1
a9669 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9672 1
a9672 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9674 1
a9674 1
  ac_cv_func_strncasecmp=yes
d9678 1
a9678 1
ac_cv_func_strncasecmp=no
d9682 48
a9729 3
echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
if test $ac_cv_func_strncasecmp = yes; then
d9731 3
a9733 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNCASECMP 1
_ACEOF
d9735 2
a9736 2
else
  LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
d9738 74
a9811 3
echo "$as_me:$LINENO: checking for strndup" >&5
echo $ECHO_N "checking for strndup... $ECHO_C" >&6
if test "${ac_cv_func_strndup+set}" = set; then
d9815 1
a9815 1
#line $LINENO "configure"
d9818 1
a9818 1
    which can conflict with char strndup (); below.  */
d9826 1
a9826 1
char strndup ();
a9828 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9835 1
a9835 1
#if defined (__stub_strndup) || defined (__stub___strndup)
d9838 1
a9838 1
f = strndup;
d9846 1
a9846 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9849 1
a9849 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9852 1
a9852 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9855 1
a9855 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9857 1
a9857 1
  ac_cv_func_strndup=yes
d9861 1
a9861 1
ac_cv_func_strndup=no
d9865 3
a9867 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
echo "${ECHO_T}$ac_cv_func_strndup" >&6
if test $ac_cv_func_strndup = yes; then
d9869 4
a9872 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNDUP 1
_ACEOF
d9875 1
a9875 1
  LIBOBJS="$LIBOBJS strndup.$ac_objext"
d9877 76
a9952 3
echo "$as_me:$LINENO: checking for strnlen" >&5
echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
if test "${ac_cv_func_strnlen+set}" = set; then
d9956 1
a9956 1
#line $LINENO "configure"
d9959 1
a9959 1
    which can conflict with char strnlen (); below.  */
d9967 1
a9967 1
char strnlen ();
a9969 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9976 1
a9976 1
#if defined (__stub_strnlen) || defined (__stub___strnlen)
d9979 1
a9979 1
f = strnlen;
d9987 1
a9987 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9990 1
a9990 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9993 1
a9993 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9996 1
a9996 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9998 1
a9998 1
  ac_cv_func_strnlen=yes
d10002 1
a10002 1
ac_cv_func_strnlen=no
d10006 6
a10011 3
echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
echo "${ECHO_T}$ac_cv_func_strnlen" >&6
if test $ac_cv_func_strnlen = yes; then
d10013 2
a10014 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNLEN 1
_ACEOF
a10015 2
else
  LIBOBJS="$LIBOBJS strnlen.$ac_objext"
d10017 7
a10023 3
echo "$as_me:$LINENO: checking for strptime" >&5
echo $ECHO_N "checking for strptime... $ECHO_C" >&6
if test "${ac_cv_func_strptime+set}" = set; then
d10027 1
a10027 1
#line $LINENO "configure"
d10029 8
a10036 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strptime (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10038 2
a10039 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strptime ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10044 1
d10048 1
a10048 1
#if defined (__stub_strptime) || defined (__stub___strptime)
d10051 1
a10051 1
f = strptime;
d10059 1
a10059 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10062 1
a10062 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10065 1
a10065 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10068 1
a10068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10070 1
a10070 1
  ac_cv_func_strptime=yes
d10074 1
a10074 1
ac_cv_func_strptime=no
a10077 3
echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
echo "${ECHO_T}$ac_cv_func_strptime" >&6
if test $ac_cv_func_strptime = yes; then
d10079 5
a10083 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRPTIME 1
_ACEOF
d10085 2
d10088 3
a10090 1
  LIBOBJS="$LIBOBJS strptime.$ac_objext"
d10092 9
a10100 3
echo "$as_me:$LINENO: checking for strsep" >&5
echo $ECHO_N "checking for strsep... $ECHO_C" >&6
if test "${ac_cv_func_strsep+set}" = set; then
d10104 1
a10104 1
#line $LINENO "configure"
d10107 1
a10107 1
    which can conflict with char strsep (); below.  */
d10115 1
a10115 1
char strsep ();
a10117 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10124 1
a10124 1
#if defined (__stub_strsep) || defined (__stub___strsep)
d10127 1
a10127 1
f = strsep;
d10135 1
a10135 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10138 1
a10138 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10141 1
a10141 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10144 1
a10144 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10146 1
a10146 1
  ac_cv_func_strsep=yes
d10150 1
a10150 1
ac_cv_func_strsep=no
d10154 6
a10159 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
echo "${ECHO_T}$ac_cv_func_strsep" >&6
if test $ac_cv_func_strsep = yes; then
d10161 2
a10162 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP 1
_ACEOF
a10163 2
else
  LIBOBJS="$LIBOBJS strsep.$ac_objext"
d10165 6
a10170 3
echo "$as_me:$LINENO: checking for strsep_copy" >&5
echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
if test "${ac_cv_func_strsep_copy+set}" = set; then
d10174 1
a10174 1
#line $LINENO "configure"
d10176 8
a10183 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep_copy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10185 2
a10186 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strsep_copy ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10191 1
d10195 1
a10195 1
#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
d10198 1
a10198 1
f = strsep_copy;
d10206 1
a10206 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10209 1
a10209 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10212 1
a10212 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10215 1
a10215 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10217 1
a10217 1
  ac_cv_func_strsep_copy=yes
d10221 1
a10221 1
ac_cv_func_strsep_copy=no
a10224 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
if test $ac_cv_func_strsep_copy = yes; then
d10226 5
a10230 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP_COPY 1
_ACEOF
d10232 2
d10235 3
a10237 1
  LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
d10239 9
a10247 3
echo "$as_me:$LINENO: checking for strtok_r" >&5
echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r+set}" = set; then
d10251 1
a10251 1
#line $LINENO "configure"
d10254 1
a10254 1
    which can conflict with char strtok_r (); below.  */
d10262 1
a10262 1
char strtok_r ();
a10264 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10271 1
a10271 1
#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
d10274 1
a10274 1
f = strtok_r;
d10282 1
a10282 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10285 1
a10285 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10288 1
a10288 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10291 1
a10291 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10293 1
a10293 1
  ac_cv_func_strtok_r=yes
d10297 1
a10297 1
ac_cv_func_strtok_r=no
d10301 6
a10306 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
if test $ac_cv_func_strtok_r = yes; then
d10308 2
a10309 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOK_R 1
_ACEOF
a10310 2
else
  LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
d10312 6
a10317 3
echo "$as_me:$LINENO: checking for strupr" >&5
echo $ECHO_N "checking for strupr... $ECHO_C" >&6
if test "${ac_cv_func_strupr+set}" = set; then
d10321 1
a10321 1
#line $LINENO "configure"
d10323 8
a10330 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strupr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10332 2
a10333 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strupr ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10338 1
d10342 1
a10342 1
#if defined (__stub_strupr) || defined (__stub___strupr)
d10345 1
a10345 1
f = strupr;
d10353 1
a10353 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10356 1
a10356 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10359 1
a10359 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10362 1
a10362 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10364 1
a10364 1
  ac_cv_func_strupr=yes
d10368 1
a10368 1
ac_cv_func_strupr=no
a10371 3
echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
echo "${ECHO_T}$ac_cv_func_strupr" >&6
if test $ac_cv_func_strupr = yes; then
d10373 5
a10377 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUPR 1
_ACEOF
d10379 2
d10382 3
a10384 1
  LIBOBJS="$LIBOBJS strupr.$ac_objext"
d10386 9
a10394 3
echo "$as_me:$LINENO: checking for swab" >&5
echo $ECHO_N "checking for swab... $ECHO_C" >&6
if test "${ac_cv_func_swab+set}" = set; then
d10398 1
a10398 1
#line $LINENO "configure"
d10401 1
a10401 1
    which can conflict with char swab (); below.  */
d10409 1
a10409 1
char swab ();
a10411 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10418 1
a10418 1
#if defined (__stub_swab) || defined (__stub___swab)
d10421 1
a10421 1
f = swab;
d10429 1
a10429 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10432 1
a10432 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10435 1
a10435 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10438 1
a10438 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10440 1
a10440 1
  ac_cv_func_swab=yes
d10444 1
a10444 1
ac_cv_func_swab=no
d10448 6
a10453 3
echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
echo "${ECHO_T}$ac_cv_func_swab" >&6
if test $ac_cv_func_swab = yes; then
d10455 2
a10456 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SWAB 1
_ACEOF
a10457 2
else
  LIBOBJS="$LIBOBJS swab.$ac_objext"
d10459 4
a10462 3
echo "$as_me:$LINENO: checking for unsetenv" >&5
echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv+set}" = set; then
a10464 14
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char unsetenv (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char unsetenv ();
char (*f) ();
d10466 5
a10470 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10474 1
a10474 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
choke me
#else
f = unsetenv;
#endif

d10479 3
a10481 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10483 1
a10483 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10485 2
a10486 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10489 1
a10489 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10491 1
a10491 1
  ac_cv_func_unsetenv=yes
d10495 1
a10495 1
ac_cv_func_unsetenv=no
d10497 1
a10497 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10499 3
a10501 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
if test $ac_cv_func_unsetenv = yes; then
d10503 3
a10505 3
cat >>confdefs.h <<_ACEOF
#define HAVE_UNSETENV 1
_ACEOF
a10506 2
else
  LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
d10508 6
a10513 3
echo "$as_me:$LINENO: checking for verr" >&5
echo $ECHO_N "checking for verr... $ECHO_C" >&6
if test "${ac_cv_func_verr+set}" = set; then
d10516 5
d10522 1
a10522 1
#line $LINENO "configure"
d10524 5
a10528 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verr ();
char (*f) ();
a10529 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10531 1
a10531 1
main ()
d10533 5
a10537 7
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verr) || defined (__stub___verr)
choke me
#else
f = verr;
d10539 6
a10545 3
  ;
  return 0;
}
d10547 2
a10548 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10551 3
a10553 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10556 1
a10556 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10558 1
a10558 1
  ac_cv_func_verr=yes
d10560 2
a10561 1
  echo "$as_me: failed program was:" >&5
d10563 3
a10565 1
ac_cv_func_verr=no
a10566 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10568 6
a10573 3
echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
echo "${ECHO_T}$ac_cv_func_verr" >&6
if test $ac_cv_func_verr = yes; then
d10575 1
a10575 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VERR 1
_ACEOF
d10577 4
d10582 4
a10585 6
  LIBOBJS="$LIBOBJS verr.$ac_objext"
fi
echo "$as_me:$LINENO: checking for verrx" >&5
echo $ECHO_N "checking for verrx... $ECHO_C" >&6
if test "${ac_cv_func_verrx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10588 1
a10588 1
#line $LINENO "configure"
d10590 4
a10593 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verrx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verrx ();
char (*f) ();
a10594 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10596 1
a10596 1
main ()
d10598 9
a10606 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verrx) || defined (__stub___verrx)
choke me
#else
f = verrx;
#endif
a10607 3
  ;
  return 0;
}
d10609 2
a10610 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10613 3
a10615 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10618 1
a10618 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10620 1
a10620 1
  ac_cv_func_verrx=yes
d10622 2
a10623 1
  echo "$as_me: failed program was:" >&5
d10625 3
a10627 1
ac_cv_func_verrx=no
a10628 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10630 6
a10635 3
echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
echo "${ECHO_T}$ac_cv_func_verrx" >&6
if test $ac_cv_func_verrx = yes; then
d10637 4
a10640 10
cat >>confdefs.h <<_ACEOF
#define HAVE_VERRX 1
_ACEOF

else
  LIBOBJS="$LIBOBJS verrx.$ac_objext"
fi
echo "$as_me:$LINENO: checking for vsyslog" >&5
echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
if test "${ac_cv_func_vsyslog+set}" = set; then
d10644 1
a10644 1
#line $LINENO "configure"
d10646 1
a10646 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vsyslog (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vsyslog ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10650 3
a10652 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
choke me
#else
f = vsyslog;
#endif
d10658 3
a10660 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10662 1
a10662 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10664 2
a10665 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10668 1
a10668 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10670 1
a10670 1
  ac_cv_func_vsyslog=yes
d10674 1
a10674 1
ac_cv_func_vsyslog=no
d10676 1
a10676 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10678 2
a10679 3
echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
if test $ac_cv_func_vsyslog = yes; then
d10681 7
a10687 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VSYSLOG 1
_ACEOF
a10688 2
else
  LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
d10690 5
a10694 3
echo "$as_me:$LINENO: checking for vwarn" >&5
echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
if test "${ac_cv_func_vwarn+set}" = set; then
d10698 1
a10698 1
#line $LINENO "configure"
d10700 1
a10700 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarn ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10704 3
a10706 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarn) || defined (__stub___vwarn)
choke me
#else
f = vwarn;
#endif
d10712 3
a10714 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10716 1
a10716 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10718 2
a10719 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10722 1
a10722 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10724 1
a10724 1
  ac_cv_func_vwarn=yes
d10728 1
a10728 1
ac_cv_func_vwarn=no
d10730 1
a10730 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10732 8
a10739 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
echo "${ECHO_T}$ac_cv_func_vwarn" >&6
if test $ac_cv_func_vwarn = yes; then
d10741 1
a10741 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARN 1
_ACEOF
a10742 2
else
  LIBOBJS="$LIBOBJS vwarn.$ac_objext"
a10743 19
echo "$as_me:$LINENO: checking for vwarnx" >&5
echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
if test "${ac_cv_func_vwarnx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarnx ();
char (*f) ();
d10745 10
a10754 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10758 3
a10760 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
choke me
#else
f = vwarnx;
#endif
d10766 3
a10768 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10770 1
a10770 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10772 2
a10773 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10776 1
a10776 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10778 1
a10778 1
  ac_cv_func_vwarnx=yes
d10782 1
a10782 1
ac_cv_func_vwarnx=no
d10784 1
a10784 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10786 4
a10789 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
if test $ac_cv_func_vwarnx = yes; then
d10791 5
a10795 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARNX 1
_ACEOF
a10796 2
else
  LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
d10798 5
a10802 3
echo "$as_me:$LINENO: checking for warn" >&5
echo $ECHO_N "checking for warn... $ECHO_C" >&6
if test "${ac_cv_func_warn+set}" = set; then
d10806 1
a10806 1
#line $LINENO "configure"
d10808 1
a10808 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warn ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10812 3
a10814 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warn) || defined (__stub___warn)
choke me
#else
f = warn;
#endif
d10820 3
a10822 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10824 1
a10824 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10826 2
a10827 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10830 1
a10830 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10832 1
a10832 1
  ac_cv_func_warn=yes
d10836 1
a10836 1
ac_cv_func_warn=no
d10838 1
a10838 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10840 4
a10843 3
echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
echo "${ECHO_T}$ac_cv_func_warn" >&6
if test $ac_cv_func_warn = yes; then
d10845 5
a10849 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WARN 1
_ACEOF
a10850 2
else
  LIBOBJS="$LIBOBJS warn.$ac_objext"
d10852 5
a10856 3
echo "$as_me:$LINENO: checking for warnx" >&5
echo $ECHO_N "checking for warnx... $ECHO_C" >&6
if test "${ac_cv_func_warnx+set}" = set; then
d10860 1
a10860 1
#line $LINENO "configure"
d10862 1
a10862 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warnx ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10866 3
a10868 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warnx) || defined (__stub___warnx)
choke me
#else
f = warnx;
#endif
d10874 3
a10876 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10878 1
a10878 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10880 2
a10881 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10884 1
a10884 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10886 1
a10886 1
  ac_cv_func_warnx=yes
d10890 1
a10890 1
ac_cv_func_warnx=no
d10892 1
a10892 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10894 4
a10897 3
echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
echo "${ECHO_T}$ac_cv_func_warnx" >&6
if test $ac_cv_func_warnx = yes; then
d10899 5
a10903 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WARNX 1
_ACEOF
a10904 2
else
  LIBOBJS="$LIBOBJS warnx.$ac_objext"
d10906 5
a10910 3
echo "$as_me:$LINENO: checking for writev" >&5
echo $ECHO_N "checking for writev... $ECHO_C" >&6
if test "${ac_cv_func_writev+set}" = set; then
d10914 1
a10914 1
#line $LINENO "configure"
d10916 9
a10924 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char writev (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10926 2
a10927 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char writev ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10932 3
a10934 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_writev) || defined (__stub___writev)
choke me
#else
f = writev;
#endif
d10940 3
a10942 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10944 1
a10944 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10946 2
a10947 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10950 1
a10950 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10952 1
a10952 1
  ac_cv_func_writev=yes
d10956 1
a10956 1
ac_cv_func_writev=no
d10958 1
a10958 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10960 4
a10963 3
echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
echo "${ECHO_T}$ac_cv_func_writev" >&6
if test $ac_cv_func_writev = yes; then
d10965 3
a10967 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WRITEV 1
_ACEOF
a10968 2
else
  LIBOBJS="$LIBOBJS writev.$ac_objext"
d10971 1
d10973 3
a10975 5

if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strndup_noproto+set}" = set; then
d10978 14
a10991 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d10993 1
a10993 7
#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10997 1
a10997 4
struct foo { int foo; } xx;
extern int strndup (struct foo*);
strndup(&xx);

d11002 3
a11004 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11006 1
a11006 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11008 2
a11009 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11012 1
a11012 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11014 1
a11014 1
  eval "ac_cv_func_strndup_noproto=yes"
a11017 1
eval "ac_cv_func_strndup_noproto=no"
d11019 6
a11024 1
rm -f conftest.$ac_objext conftest.$ac_ext
a11025 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
if test "$ac_cv_func_strndup_noproto" = yes; then
d11027 1
a11027 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRNDUP_PROTO 1
_ACEOF
d11029 1
a11029 2
fi
fi
d11031 6
a11036 4
if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
d11040 1
a11040 1
#line $LINENO "configure"
d11042 6
a11047 6
#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11049 5
d11057 8
a11064 3
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);
d11070 3
a11072 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11074 1
a11074 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11076 2
a11077 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11080 1
a11080 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11082 1
a11082 1
  eval "ac_cv_func_strsep_noproto=yes"
d11086 1
a11086 1
eval "ac_cv_func_strsep_noproto=no"
d11088 1
a11088 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11090 6
a11095 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
if test "$ac_cv_func_strsep_noproto" = yes; then
d11097 2
a11098 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRSEP_PROTO 1
_ACEOF
d11101 37
a11137 1
fi
d11139 3
a11141 4
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
d11145 1
a11145 1
#line $LINENO "configure"
d11147 15
a11161 6
#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11163 1
d11167 1
a11167 4
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

d11173 1
a11173 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11176 1
a11176 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11179 1
a11179 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11182 1
a11182 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11184 1
a11184 1
  eval "ac_cv_func_strtok_r_noproto=yes"
d11188 1
a11188 1
eval "ac_cv_func_strtok_r_noproto=no"
d11192 4
a11195 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
if test "$ac_cv_func_strtok_r_noproto" = yes; then
d11197 3
a11199 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRTOK_R_PROTO 1
_ACEOF
a11201 1
fi
d11203 3
a11205 6


if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsvis_noproto+set}" = set; then
d11209 1
a11209 1
#line $LINENO "configure"
d11211 3
a11213 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11215 8
a11222 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11224 4
d11231 1
a11231 4
struct foo { int foo; } xx;
extern int strsvis (struct foo*);
strsvis(&xx);

d11237 1
a11237 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11240 1
a11240 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11243 1
a11243 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11246 1
a11246 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11248 1
a11248 1
  eval "ac_cv_func_strsvis_noproto=yes"
d11252 1
a11252 1
eval "ac_cv_func_strsvis_noproto=no"
d11256 4
a11259 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
if test "$ac_cv_func_strsvis_noproto" = yes; then
d11261 3
a11263 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRSVIS_PROTO 1
_ACEOF
a11265 1
fi
d11267 3
a11269 4
if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strunvis_noproto+set}" = set; then
d11273 1
a11273 1
#line $LINENO "configure"
d11275 6
a11280 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11282 8
a11289 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11291 1
d11295 1
a11295 4
struct foo { int foo; } xx;
extern int strunvis (struct foo*);
strunvis(&xx);

d11301 1
a11301 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11304 1
a11304 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11307 1
a11307 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11310 1
a11310 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11312 1
a11312 1
  eval "ac_cv_func_strunvis_noproto=yes"
d11316 1
a11316 1
eval "ac_cv_func_strunvis_noproto=no"
d11320 4
a11323 3
echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
if test "$ac_cv_func_strunvis_noproto" = yes; then
d11325 3
a11327 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRUNVIS_PROTO 1
_ACEOF
a11329 1
fi
d11331 3
a11333 4
if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvis_noproto+set}" = set; then
d11337 1
a11337 1
#line $LINENO "configure"
d11339 3
a11341 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11343 2
a11344 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11346 1
d11350 1
a11350 4
struct foo { int foo; } xx;
extern int strvis (struct foo*);
strvis(&xx);

d11356 1
a11356 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11359 1
a11359 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11362 1
a11362 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11365 1
a11365 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11367 1
a11367 1
  eval "ac_cv_func_strvis_noproto=yes"
d11371 1
a11371 1
eval "ac_cv_func_strvis_noproto=no"
d11375 4
a11378 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
if test "$ac_cv_func_strvis_noproto" = yes; then
d11380 3
a11382 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRVIS_PROTO 1
_ACEOF
a11384 1
fi
d11386 3
a11388 4
if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvisx_noproto+set}" = set; then
d11392 1
a11392 1
#line $LINENO "configure"
d11394 3
a11396 8
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11398 1
d11402 1
a11402 4
struct foo { int foo; } xx;
extern int strvisx (struct foo*);
strvisx(&xx);

d11408 1
a11408 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11411 1
a11411 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11414 1
a11414 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11417 1
a11417 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11419 1
a11419 1
  eval "ac_cv_func_strvisx_noproto=yes"
d11423 1
a11423 1
eval "ac_cv_func_strvisx_noproto=no"
d11427 4
a11430 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
if test "$ac_cv_func_strvisx_noproto" = yes; then
d11432 3
a11434 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRVISX_PROTO 1
_ACEOF
a11436 1
fi
d11438 4
a11441 4
if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_svis_noproto+set}" = set; then
d11445 1
a11445 1
#line $LINENO "configure"
d11447 3
a11449 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11451 2
a11452 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11454 1
d11459 2
a11460 2
extern int svis (struct foo*);
svis(&xx);
d11467 1
a11467 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11470 1
a11470 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11473 1
a11473 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11476 1
a11476 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11478 1
a11478 1
  eval "ac_cv_func_svis_noproto=yes"
d11482 1
a11482 1
eval "ac_cv_func_svis_noproto=no"
d11486 4
a11489 3
echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
if test "$ac_cv_func_svis_noproto" = yes; then
d11491 3
a11493 3
cat >>confdefs.h <<\_ACEOF
#define NEED_SVIS_PROTO 1
_ACEOF
d11496 1
d11499 4
a11502 4
if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unvis_noproto+set}" = set; then
d11506 1
a11506 1
#line $LINENO "configure"
d11508 3
a11510 9
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11515 2
a11516 2
extern int unvis (struct foo*);
unvis(&xx);
d11523 1
a11523 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11526 1
a11526 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11529 1
a11529 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11532 1
a11532 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11534 1
a11534 1
  eval "ac_cv_func_unvis_noproto=yes"
d11538 1
a11538 1
eval "ac_cv_func_unvis_noproto=no"
d11542 4
a11545 3
echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
if test "$ac_cv_func_unvis_noproto" = yes; then
d11547 3
a11549 3
cat >>confdefs.h <<\_ACEOF
#define NEED_UNVIS_PROTO 1
_ACEOF
d11552 1
d11555 4
a11558 4
if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vis_noproto+set}" = set; then
d11562 1
a11562 1
#line $LINENO "configure"
d11564 3
a11566 9
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11571 2
a11572 2
extern int vis (struct foo*);
vis(&xx);
d11579 1
a11579 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11582 1
a11582 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11585 1
a11585 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11588 1
a11588 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11590 1
a11590 1
  eval "ac_cv_func_vis_noproto=yes"
d11594 1
a11594 1
eval "ac_cv_func_vis_noproto=no"
d11598 2
a11599 3
echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
if test "$ac_cv_func_vis_noproto" = yes; then
d11601 5
a11605 3
cat >>confdefs.h <<\_ACEOF
#define NEED_VIS_PROTO 1
_ACEOF
d11608 1
d11611 3
a11613 4

echo "$as_me:$LINENO: checking for inet_aton" >&5
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton+set}" = set; then
d11616 3
a11618 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11620 2
a11621 18
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11625 1
a11625 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton(0,0)
#endif

d11631 1
a11631 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11634 1
a11634 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11637 1
a11637 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11640 1
a11640 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11642 1
a11642 1
  eval "ac_cv_func_inet_aton=yes"
d11646 1
a11646 1
eval "ac_cv_func_inet_aton=no"
d11649 1
d11652 4
a11655 1
if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
d11657 3
a11659 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INET_ATON 1
_ACEOF
d11661 4
a11664 2
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
a11665 4
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
fi
d11667 2
a11668 7
echo "$as_me:$LINENO: checking for inet_ntop" >&5
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
if test "${ac_cv_func_inet_ntop+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11673 2
a11674 14
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11676 1
d11680 1
a11680 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop(0, 0, 0, 0)
#endif

d11685 3
a11687 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11689 1
a11689 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11691 2
a11692 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11695 1
a11695 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11697 1
a11697 1
  eval "ac_cv_func_inet_ntop=yes"
d11701 1
a11701 1
eval "ac_cv_func_inet_ntop=no"
d11703 2
a11704 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d11707 7
a11713 1
if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
d11715 1
a11715 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INET_NTOP 1
_ACEOF
a11716 6
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
d11719 3
a11721 3
echo "$as_me:$LINENO: checking for inet_pton" >&5
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
if test "${ac_cv_func_inet_pton+set}" = set; then
d11724 3
a11726 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11728 2
a11729 18
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11733 1
a11733 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton(0,0,0)
#endif

d11739 1
a11739 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11742 1
a11742 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11745 1
a11745 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11748 1
a11748 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11750 1
a11750 1
  eval "ac_cv_func_inet_pton=yes"
d11754 1
a11754 1
eval "ac_cv_func_inet_pton=no"
a11756 1
fi
a11757 12
if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_PTON 1
_ACEOF

  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
d11760 4
d11765 3
d11769 3
a11771 3
echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
d11776 1
a11776 1
#line $LINENO "configure"
d11778 2
a11779 7
#include <sys/types.h>
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11781 1
d11785 1
a11785 1
struct sockaddr x; x.sa_len;
d11791 1
a11791 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11794 1
a11794 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11797 1
a11797 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11800 1
a11800 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11802 1
a11802 1
  ac_cv_type_struct_sockaddr_sa_len=yes
d11806 1
a11806 1
ac_cv_type_struct_sockaddr_sa_len=no
d11809 1
a11810 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
d11812 3
d11816 3
a11818 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
_ACEOF
d11820 1
d11824 3
a11826 7


if test "$ac_cv_func_getnameinfo" = "yes"; then

echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
d11829 3
a11831 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11833 2
a11834 6
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

d11836 1
a11836 1
main(int argc, char **argv)
d11838 3
a11840 11
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
a11841 1

d11843 2
a11844 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11847 4
a11850 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11853 1
a11853 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11855 1
a11855 1
  ac_cv_func_getnameinfo_broken=no
d11857 1
a11857 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d11859 1
a11859 2
( exit $ac_status )
ac_cv_func_getnameinfo_broken=yes
d11861 2
a11862 8
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
  fi
d11865 8
a11872 1
if test "$ac_cv_func_getaddrinfo" = "yes"; then
d11874 3
a11876 3
echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
d11879 3
a11881 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11883 1
a11883 3
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
d11885 2
a11886 1

d11888 1
a11888 1
main(int argc, char **argv)
d11890 3
a11892 8
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
		return 1;
	return 0;
a11893 1

d11895 3
a11897 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11899 4
a11902 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11905 1
a11905 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11907 1
a11907 1
  ac_cv_func_getaddrinfo_numserv=yes
d11909 1
a11909 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d11911 1
a11911 2
( exit $ac_status )
ac_cv_func_getaddrinfo_numserv=no
d11913 2
a11914 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11916 9
d11926 1
a11926 6
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
  fi
d11929 3
a11931 5

if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
d11934 3
a11936 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11938 2
a11939 7
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11943 1
a11943 4
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);

d11948 3
a11950 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11952 1
a11952 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11954 2
a11955 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11958 1
a11958 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11960 1
a11960 1
  eval "ac_cv_func_setenv_noproto=yes"
d11964 1
a11964 1
eval "ac_cv_func_setenv_noproto=no"
d11966 2
a11967 1
rm -f conftest.$ac_objext conftest.$ac_ext
a11968 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
if test "$ac_cv_func_setenv_noproto" = yes; then
d11970 4
a11973 3
cat >>confdefs.h <<\_ACEOF
#define NEED_SETENV_PROTO 1
_ACEOF
d11975 3
a11977 2
fi
fi
d11979 3
a11981 5

if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
d11984 3
a11986 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11988 2
a11989 6
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11991 1
d11995 1
a11995 4
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);

d12001 1
a12001 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12004 1
a12004 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12007 1
a12007 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12010 1
a12010 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12012 1
a12012 1
  eval "ac_cv_func_unsetenv_noproto=yes"
d12016 1
a12016 1
eval "ac_cv_func_unsetenv_noproto=no"
d12019 1
a12020 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d12022 7
a12028 3
cat >>confdefs.h <<\_ACEOF
#define NEED_UNSETENV_PROTO 1
_ACEOF
d12031 1
d12034 3
a12036 5

if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
d12039 3
a12041 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12043 2
a12045 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12047 1
d12051 1
a12051 4
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

d12057 1
a12057 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12060 1
a12060 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12063 1
a12063 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12066 1
a12066 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12068 1
a12068 1
  eval "ac_cv_func_gethostname_noproto=yes"
d12072 1
a12072 1
eval "ac_cv_func_gethostname_noproto=no"
d12075 1
a12076 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
if test "$ac_cv_func_gethostname_noproto" = yes; then
d12078 7
a12084 3
cat >>confdefs.h <<\_ACEOF
#define NEED_GETHOSTNAME_PROTO 1
_ACEOF
a12086 1
fi
d12088 3
a12090 5

if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
d12093 3
a12095 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12097 2
a12099 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12101 1
d12105 1
a12105 4
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

d12111 1
a12111 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12114 1
a12114 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12117 1
a12117 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12120 1
a12120 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12122 1
a12122 1
  eval "ac_cv_func_mkstemp_noproto=yes"
d12126 1
a12126 1
eval "ac_cv_func_mkstemp_noproto=no"
d12129 1
a12130 3
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
if test "$ac_cv_func_mkstemp_noproto" = yes; then
d12132 7
a12138 3
cat >>confdefs.h <<\_ACEOF
#define NEED_MKSTEMP_PROTO 1
_ACEOF
a12140 1
fi
d12142 3
a12144 5

if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
d12147 3
a12149 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12151 2
a12153 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12155 1
d12159 1
a12159 4
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);

d12165 1
a12165 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12168 1
a12168 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12171 1
a12171 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12174 1
a12174 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12176 1
a12176 1
  eval "ac_cv_func_getusershell_noproto=yes"
d12180 1
a12180 1
eval "ac_cv_func_getusershell_noproto=no"
d12183 1
a12184 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
if test "$ac_cv_func_getusershell_noproto" = yes; then
d12186 7
a12192 3
cat >>confdefs.h <<\_ACEOF
#define NEED_GETUSERSHELL_PROTO 1
_ACEOF
a12194 1
fi
d12196 3
a12198 6


if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
d12201 3
a12203 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12205 3
a12207 18

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12209 1
d12213 1
a12213 4
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

d12219 1
a12219 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12222 1
a12222 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12225 1
a12225 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12228 1
a12228 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12230 1
a12230 1
  eval "ac_cv_func_inet_aton_noproto=yes"
d12234 1
a12234 1
eval "ac_cv_func_inet_aton_noproto=no"
a12236 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
if test "$ac_cv_func_inet_aton_noproto" = yes; then
a12237 5
cat >>confdefs.h <<\_ACEOF
#define NEED_INET_ATON_PROTO 1
_ACEOF

fi
d12240 3
d12244 3
d12248 1
d12250 3
a12252 4

echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
d12256 2
a12257 13
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12259 2
a12260 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12264 1
a12264 1
crypt()
d12269 3
a12271 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12273 1
a12273 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12275 2
a12276 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12279 1
a12279 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12281 1
a12281 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d12285 1
d12287 1
a12287 5
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
fi
d12291 3
d12295 3
a12297 1
eval "ac_res=\$ac_cv_funclib_crypt"
d12299 1
a12299 1
if false; then
d12301 3
a12303 6
for ac_func in crypt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12306 3
a12308 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12310 1
a12310 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12314 1
a12314 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d12319 3
a12321 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12323 1
a12323 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12325 2
a12326 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12329 1
a12329 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12331 1
a12331 1
  eval "$as_ac_var=yes"
d12335 1
a12335 1
eval "$as_ac_var=no"
d12337 1
a12337 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12339 3
a12341 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d12343 3
a12345 2
fi
done
a12347 4
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"
d12349 3
a12351 41
case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
d12354 3
a12356 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12358 1
a12358 23

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12362 1
a12362 1
struct hostent *gethostbyname(const char *);
d12368 1
a12368 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12371 1
a12371 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12374 1
a12374 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12377 1
a12377 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12379 1
a12379 1
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
d12383 1
a12383 1
eval "ac_cv_func_gethostbyname_proto_compat=no"
d12387 9
a12395 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
d12397 5
a12401 1
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
d12403 12
a12414 2
cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
d12416 19
d12438 4
d12443 3
d12447 3
a12449 4

echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
d12452 3
a12454 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12456 2
a12457 23

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12461 1
a12461 1
struct hostent *gethostbyaddr(const void *, size_t, int);
d12467 1
a12467 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12470 1
a12470 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12473 1
a12473 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12476 1
a12476 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12478 1
a12478 1
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
d12482 1
a12482 1
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d12485 1
a12486 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
d12488 3
a12490 1
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
d12492 3
a12494 3
cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
_ACEOF
d12498 1
d12500 4
a12503 5


echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
d12507 1
a12507 1
#line $LINENO "configure"
a12508 2

#ifdef HAVE_SYS_TYPES_H
d12510 3
a12513 1
#ifdef HAVE_SYS_SOCKET_H
a12514 17
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12518 1
a12518 1
struct servent *getservbyname(const char *, const char *);
d12524 1
a12524 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12527 1
a12527 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12530 1
a12530 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12533 1
a12533 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12535 1
a12535 1
  eval "ac_cv_func_getservbyname_proto_compat=yes"
d12539 1
a12539 1
eval "ac_cv_func_getservbyname_proto_compat=no"
d12543 9
a12551 17
echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
_ACEOF

fi




echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
d12555 1
a12555 1
#line $LINENO "configure"
d12557 1
a12557 14

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12561 4
a12564 1
int getsockname(int, struct sockaddr*, socklen_t*);
d12570 1
a12570 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12573 1
a12573 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12576 1
a12576 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12579 1
a12579 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12581 1
a12581 1
  eval "ac_cv_func_getsockname_proto_compat=yes"
d12585 1
a12585 1
eval "ac_cv_func_getsockname_proto_compat=no"
d12589 3
a12591 2
echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
d12593 3
a12595 1
if test "$ac_cv_func_getsockname_proto_compat" = yes; then
d12597 1
a12597 3
cat >>confdefs.h <<\_ACEOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
_ACEOF
d12601 3
d12605 1
d12607 4
a12610 4

echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
d12614 1
a12614 1
#line $LINENO "configure"
d12616 4
a12619 10

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12621 1
d12625 1
a12625 1
void openlog(const char *, int, int);
d12631 1
a12631 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12634 1
a12634 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12637 1
a12637 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12640 1
a12640 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12642 1
a12642 1
  eval "ac_cv_func_openlog_proto_compat=yes"
d12646 1
a12646 1
eval "ac_cv_func_openlog_proto_compat=no"
d12650 9
a12658 18
echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6

if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OPENLOG_PROTO_COMPATIBLE 1
_ACEOF

fi




if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
d12662 1
a12662 1
#line $LINENO "configure"
d12664 1
a12664 14

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12668 4
a12671 4
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

d12677 1
a12677 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12680 1
a12680 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12683 1
a12683 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12686 1
a12686 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12688 1
a12688 1
  eval "ac_cv_func_crypt_noproto=yes"
d12692 1
a12692 1
eval "ac_cv_func_crypt_noproto=no"
d12696 3
a12698 3
echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
if test "$ac_cv_func_crypt_noproto" = yes; then
d12700 3
a12702 3
cat >>confdefs.h <<\_ACEOF
#define NEED_CRYPT_PROTO 1
_ACEOF
d12705 1
d12708 3
d12712 1
d12714 4
a12717 4

echo "$as_me:$LINENO: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
d12720 2
a12721 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12723 4
a12726 7
extern int h_errno;
int foo() { return h_errno; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12728 1
d12732 1
a12732 1
foo()
d12737 3
a12739 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12741 1
a12741 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12743 2
a12744 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12747 1
a12747 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12749 1
a12749 1
  ac_cv_var_h_errno=yes
d12753 1
a12753 1
ac_cv_var_h_errno=no
d12755 1
a12755 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d12757 2
a12758 3

ac_foo=`eval echo \\$ac_cv_var_h_errno`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d12761 5
a12765 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRNO 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
d12768 2
a12769 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12771 1
a12771 13
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12775 4
a12778 1
h_errno.foo = 1;
d12784 1
a12784 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12787 1
a12787 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12790 1
a12790 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12793 1
a12793 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12795 1
a12795 1
  eval "ac_cv_var_h_errno_declaration=no"
d12799 1
a12799 1
eval "ac_cv_var_h_errno_declaration=yes"
a12801 1

d12803 3
d12807 3
d12811 1
a12811 9


echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRNO_DECLARATION 1
_ACEOF
d12815 3
d12821 4
a12824 5


echo "$as_me:$LINENO: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
d12827 2
a12828 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12830 4
a12833 7
extern int h_errlist;
int foo() { return h_errlist; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12835 1
d12839 1
a12839 1
foo()
d12844 3
a12846 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12848 1
a12848 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12850 2
a12851 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12854 1
a12854 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12856 1
a12856 1
  ac_cv_var_h_errlist=yes
d12860 1
a12860 1
ac_cv_var_h_errlist=no
d12862 1
a12862 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d12864 2
a12865 3

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d12868 5
a12872 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRLIST 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
d12875 2
a12876 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12878 1
a12878 10
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12882 4
a12885 1
h_errlist.foo = 1;
d12891 1
a12891 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12894 1
a12894 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12897 1
a12897 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12900 1
a12900 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12902 1
a12902 1
  eval "ac_cv_var_h_errlist_declaration=no"
d12906 1
a12906 1
eval "ac_cv_var_h_errlist_declaration=yes"
a12908 1

d12910 3
d12914 3
d12918 1
a12918 9


echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRLIST_DECLARATION 1
_ACEOF
d12922 3
d12928 4
a12931 5


echo "$as_me:$LINENO: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
d12934 2
a12935 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12937 4
a12940 7
extern int h_nerr;
int foo() { return h_nerr; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12942 1
d12946 1
a12946 1
foo()
d12951 3
a12953 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12955 1
a12955 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12957 2
a12958 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12961 1
a12961 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12963 1
a12963 1
  ac_cv_var_h_nerr=yes
d12967 1
a12967 1
ac_cv_var_h_nerr=no
d12969 1
a12969 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d12971 2
a12972 3

ac_foo=`eval echo \\$ac_cv_var_h_nerr`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d12975 5
a12979 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_NERR 1
_ACEOF


echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
d12982 2
a12983 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12985 1
a12985 10
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12989 4
a12992 1
h_nerr.foo = 1;
d12998 1
a12998 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13001 1
a13001 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13004 1
a13004 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13007 1
a13007 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13009 1
a13009 1
  eval "ac_cv_var_h_nerr_declaration=no"
d13013 1
a13013 1
eval "ac_cv_var_h_nerr_declaration=yes"
a13015 1

d13017 3
d13021 3
d13025 1
a13025 9


echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_H_NERR_DECLARATION 1
_ACEOF
d13029 3
d13035 4
a13038 5


echo "$as_me:$LINENO: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
d13041 2
a13042 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13044 4
a13047 7
extern int __progname;
int foo() { return __progname; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13049 1
d13053 1
a13053 1
foo()
d13058 3
a13060 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d13062 1
a13062 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13064 2
a13065 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13068 1
a13068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13070 1
a13070 1
  ac_cv_var___progname=yes
d13074 1
a13074 1
ac_cv_var___progname=no
d13076 1
a13076 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d13078 2
a13079 3

ac_foo=`eval echo \\$ac_cv_var___progname`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d13082 5
a13086 9

cat >>confdefs.h <<_ACEOF
#define HAVE___PROGNAME 1
_ACEOF


echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
d13089 2
a13090 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13092 1
a13092 10
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13096 4
a13099 1
__progname.foo = 1;
d13105 1
a13105 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13108 1
a13108 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13111 1
a13111 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13114 1
a13114 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13116 1
a13116 1
  eval "ac_cv_var___progname_declaration=no"
d13120 1
a13120 1
eval "ac_cv_var___progname_declaration=yes"
d13123 24
d13148 11
d13160 2
d13163 1
d13165 1
d13167 3
d13171 7
a13177 3
echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
a13178 2
cat >>confdefs.h <<\_ACEOF
#define HAVE___PROGNAME_DECLARATION 1
d13180 6
d13188 10
d13199 3
d13204 1
d13206 3
a13208 5


echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
d13213 1
a13213 1
#line $LINENO "configure"
d13215 3
a13217 10
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optarg;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13222 1
a13222 1
optarg.foo = 1;
d13228 1
a13228 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13231 1
a13231 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13234 1
a13234 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13237 1
a13237 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13239 1
a13239 1
  eval "ac_cv_var_optarg_declaration=no"
d13243 1
a13243 1
eval "ac_cv_var_optarg_declaration=yes"
d13249 12
d13262 1
d13264 3
d13268 1
a13268 3
echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
d13270 11
a13280 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTARG_DECLARATION 1
_ACEOF
d13282 9
d13292 1
d13294 2
d13297 19
d13317 10
a13326 5
echo "$as_me:$LINENO: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d13328 7
a13334 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13336 2
a13337 11
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13341 1
a13341 1
optind.foo = 1;
d13347 1
a13347 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13350 1
a13350 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13353 1
a13353 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13356 1
a13356 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13358 1
a13358 1
  eval "ac_cv_var_optind_declaration=no"
a13361 1
eval "ac_cv_var_optind_declaration=yes"
d13364 5
a13368 26

fi




echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTIND_DECLARATION 1
_ACEOF

fi



echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13370 2
a13371 11
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13375 1
a13375 1
opterr.foo = 1;
d13380 3
a13382 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d13384 1
a13384 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13386 2
a13387 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13390 1
a13390 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13392 1
a13392 1
  eval "ac_cv_var_opterr_declaration=no"
a13395 1
eval "ac_cv_var_opterr_declaration=yes"
d13397 14
a13410 1
rm -f conftest.$ac_objext conftest.$ac_ext
d13412 9
d13423 3
d13427 3
d13431 1
d13433 11
a13443 7
echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTERR_DECLARATION 1
_ACEOF
d13445 9
d13455 1
d13457 2
d13460 19
d13480 10
a13489 5
echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d13491 7
a13497 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13499 1
a13499 11
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13503 1
a13503 1
optopt.foo = 1;
d13509 1
a13509 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13512 1
a13512 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13515 1
a13515 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13518 1
a13518 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13520 1
a13520 1
  eval "ac_cv_var_optopt_declaration=no"
a13523 1
eval "ac_cv_var_optopt_declaration=yes"
d13526 10
d13537 20
d13558 4
d13563 5
d13569 3
d13573 9
a13581 9

echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTOPT_DECLARATION 1
_ACEOF

d13584 7
d13592 3
a13594 5


echo "$as_me:$LINENO: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
d13597 2
a13598 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13600 1
a13600 8
#include <stdlib.h>
extern struct { int foo; } environ;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13604 3
a13606 1
environ.foo = 1;
d13612 1
a13612 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13615 1
a13615 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13618 1
a13618 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13621 1
a13621 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13623 1
a13623 1
  eval "ac_cv_var_environ_declaration=no"
d13627 1
a13627 1
eval "ac_cv_var_environ_declaration=yes"
d13632 3
d13636 3
d13640 1
d13642 3
a13644 19

echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ENVIRON_DECLARATION 1
_ACEOF

fi






echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
d13647 2
a13648 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13650 1
a13650 7
#include <time.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13654 2
a13655 1
struct tm x; x.tm_gmtoff;
d13661 1
a13661 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13664 1
a13664 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13667 1
a13667 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13670 1
a13670 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13672 1
a13672 1
  ac_cv_type_struct_tm_tm_gmtoff=yes
d13676 1
a13676 1
ac_cv_type_struct_tm_tm_gmtoff=no
a13678 10
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
_ACEOF

d13681 3
d13685 3
d13689 3
d13693 4
a13696 4

echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
d13699 2
a13700 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13702 1
a13702 7
#include <time.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13706 2
a13707 1
struct tm x; x.tm_zone;
d13713 1
a13713 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13716 1
a13716 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13719 1
a13719 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13722 1
a13722 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13724 1
a13724 1
  ac_cv_type_struct_tm_tm_zone=yes
d13728 1
a13728 1
ac_cv_type_struct_tm_tm_zone=no
a13730 10
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF

d13733 3
d13737 3
d13741 1
d13743 3
a13745 5


echo "$as_me:$LINENO: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
d13749 13
a13761 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13763 1
a13763 8
extern int timezone;
int foo() { return timezone; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13767 1
a13767 1
foo()
d13773 1
a13773 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13776 1
a13776 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13779 1
a13779 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13782 1
a13782 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13784 1
a13784 1
  ac_cv_var_timezone=yes
a13787 1
ac_cv_var_timezone=no
d13790 4
d13797 1
a13797 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d13799 1
a13799 3
cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEZONE 1
_ACEOF
d13801 6
a13806 4

echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
d13809 2
a13810 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13812 6
a13817 7
#include <time.h>
extern struct { int foo; } timezone;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13819 5
d13827 9
a13835 1
timezone.foo = 1;
d13840 3
a13842 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d13844 1
a13844 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13846 2
a13847 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13850 1
a13850 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13852 1
a13852 1
  eval "ac_cv_var_timezone_declaration=no"
d13856 3
a13858 1
eval "ac_cv_var_timezone_declaration=yes"
d13860 6
a13865 1
rm -f conftest.$ac_objext conftest.$ac_ext
d13868 1
d13870 5
d13876 7
d13884 15
d13900 3
a13902 3
echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
d13904 4
a13907 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_TIMEZONE_DECLARATION 1
_ACEOF
d13909 2
d13913 21
a13933 21

fi


echo "$as_me:$LINENO: checking for altzone" >&5
echo $ECHO_N "checking for altzone... $ECHO_C" >&6
if test "${ac_cv_var_altzone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
extern int altzone;
int foo() { return altzone; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13937 1
a13937 1
foo()
d13943 1
a13943 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13946 1
a13946 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13949 1
a13949 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13952 1
a13952 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13954 1
a13954 1
  ac_cv_var_altzone=yes
a13957 1
ac_cv_var_altzone=no
d13960 4
d13967 1
a13967 4
ac_foo=`eval echo \\$ac_cv_var_altzone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d13969 1
a13969 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ALTZONE 1
_ACEOF
d13971 6
a13976 4

echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_altzone_declaration+set}" = set; then
d13979 2
a13980 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13982 6
a13987 7
#include <time.h>
extern struct { int foo; } altzone;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13989 5
d13997 9
a14005 1
altzone.foo = 1;
d14010 3
a14012 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14014 1
a14014 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14016 2
a14017 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14020 1
a14020 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14022 1
a14022 1
  eval "ac_cv_var_altzone_declaration=no"
d14026 1
a14026 1
eval "ac_cv_var_altzone_declaration=yes"
d14028 8
a14035 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14038 1
d14040 5
d14046 7
d14054 15
d14070 3
a14072 3
echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
d14074 4
a14077 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_ALTZONE_DECLARATION 1
_ACEOF
d14079 2
d14083 3
a14085 10

fi




cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14088 14
a14101 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14103 1
a14103 12
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14107 1
a14107 1
sa_family_t foo;
d14112 3
a14114 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14116 1
a14116 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14118 2
a14119 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14122 1
a14122 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14124 1
a14124 1
  eval "ac_cv_type_$cv=yes"
a14127 1
eval "ac_cv_type_$cv=no"
d14129 4
a14132 63
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SA_FAMILY_T 1
_ACEOF


d14137 1
a14137 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14139 1
a14139 1
fi
d14141 6
a14146 6


cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14150 1
a14150 1
#line $LINENO "configure"
d14152 6
a14157 60
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
socklen_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d14159 5
d14167 9
a14175 4
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
d14180 3
a14182 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14184 1
a14184 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14186 2
a14187 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14190 1
a14190 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14192 1
a14192 1
  ac_cv_type_socklen_t=yes
d14196 1
a14196 1
ac_cv_type_socklen_t=no
d14198 1
a14198 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14200 6
a14205 7
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
_ACEOF
d14207 2
d14211 4
d14216 7
a14222 1
fi
d14224 15
a14238 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14240 3
a14242 1
fi
d14244 4
d14249 3
d14253 3
a14255 4
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14259 1
a14259 1
#line $LINENO "configure"
d14261 4
a14264 12
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14268 1
a14268 1
struct sockaddr foo;
d14274 1
a14274 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14277 1
a14277 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14280 1
a14280 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14283 1
a14283 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14285 1
a14285 1
  eval "ac_cv_type_$cv=yes"
d14289 1
a14289 1
eval "ac_cv_type_$cv=no"
d14292 120
d14413 6
a14418 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
d14421 25
a14445 34
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr=yes
d14447 2
a14448 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
a14449 10
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR 1
_ACEOF

d14451 21
d14473 1
d14475 2
d14478 1
d14480 6
a14485 4
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

d14488 3
a14490 6


cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14493 17
a14509 40
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d14511 8
a14518 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14520 2
a14521 49
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
a14522 10
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
_ACEOF

d14525 4
d14532 6
a14537 4
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

d14539 3
a14541 7



cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14544 2
a14545 36
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d14547 1
a14547 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d14549 1
a14549 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14551 4
a14554 10
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d14556 1
a14556 38
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
d14558 16
a14573 11
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_ADDRINFO 1
_ACEOF


d14575 1
d14577 9
d14587 1
d14589 2
a14590 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14592 19
a14610 1
fi
d14612 10
d14623 7
a14629 9

cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14631 2
a14632 12
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14636 1
a14636 1
struct ifaddrs foo;
d14642 1
a14642 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14645 1
a14645 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14648 1
a14648 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14651 1
a14651 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14653 1
a14653 1
  eval "ac_cv_type_$cv=yes"
a14656 1
eval "ac_cv_type_$cv=no"
d14659 5
a14663 14
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14665 2
a14666 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14670 1
a14670 4
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
d14675 3
a14677 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14679 1
a14679 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14681 2
a14682 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14685 1
a14685 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14687 1
a14687 1
  ac_cv_type_struct_ifaddrs=yes
a14690 1
ac_cv_type_struct_ifaddrs=no
d14692 4
a14695 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then
d14697 5
a14701 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFADDRS 1
_ACEOF
d14703 3
d14707 9
d14718 3
a14720 1
fi
d14722 1
a14722 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14724 9
d14734 1
d14736 11
d14748 2
d14751 19
a14769 14
cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d14771 10
a14780 2
#include <sys/types.h>
#include <sys/uio.h>
d14782 9
a14790 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14794 1
a14794 1
struct iovec foo;
d14800 1
a14800 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14803 1
a14803 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14806 1
a14806 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14809 1
a14809 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14811 1
a14811 1
  eval "ac_cv_type_$cv=yes"
a14814 1
eval "ac_cv_type_$cv=no"
d14817 5
a14821 14
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if test "${ac_cv_type_struct_iovec+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14823 1
a14823 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14827 1
a14827 4
if ((struct iovec *) 0)
  return 0;
if (sizeof (struct iovec))
  return 0;
d14832 3
a14834 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14836 1
a14836 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14838 2
a14839 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14842 1
a14842 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14844 1
a14844 1
  ac_cv_type_struct_iovec=yes
a14847 1
ac_cv_type_struct_iovec=no
d14849 4
a14852 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
if test $ac_cv_type_struct_iovec = yes; then
d14854 5
a14858 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IOVEC 1
_ACEOF
d14860 3
d14864 9
d14875 13
a14887 14
fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14891 1
a14891 1
#line $LINENO "configure"
a14892 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d14895 1
a14895 8
#include <sys/socket.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14899 4
a14902 1
struct msghdr foo;
d14908 1
a14908 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14911 1
a14911 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14914 1
a14914 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14917 1
a14917 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14919 1
a14919 1
  eval "ac_cv_type_$cv=yes"
d14923 1
a14923 1
eval "ac_cv_type_$cv=no"
d14927 11
a14937 13
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if test "${ac_cv_type_struct_msghdr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14939 3
a14941 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14945 4
a14948 4
if ((struct msghdr *) 0)
  return 0;
if (sizeof (struct msghdr))
  return 0;
d14954 1
a14954 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14957 1
a14957 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14960 1
a14960 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14963 1
a14963 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14965 1
a14965 1
  ac_cv_type_struct_msghdr=yes
d14969 1
a14969 1
ac_cv_type_struct_msghdr=no
d14972 5
a14976 27
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
if test $ac_cv_type_struct_msghdr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_MSGHDR 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi




echo "$as_me:$LINENO: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d14978 2
a14979 5

ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14981 10
a14990 2
#include <$i>

d14992 17
a15008 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
d15010 1
a15010 3
rm -f conftest*
done

d15012 1
a15012 6

if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_WINSIZE 1
_ACEOF
d15015 3
a15017 14
echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_WS_XPIXEL 1
_ACEOF
d15019 3
d15023 1
a15023 14
rm -f conftest*

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_WS_YPIXEL 1
_ACEOF
d15025 3
a15028 1
rm -f conftest*
d15030 3
a15032 7




echo "$as_me:$LINENO: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
d15035 4
a15038 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15040 3
a15042 3
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
d15044 1
a15044 13
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
d15047 1
a15047 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d15050 1
a15050 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15053 1
a15053 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15056 1
a15056 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15058 1
a15058 1
  ac_cv_struct_spwd=yes
a15061 1
ac_cv_struct_spwd=no
d15064 1
d15067 14
d15082 9
a15090 8
echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6

if test "$ac_cv_struct_spwd" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SPWD 1
_ACEOF
d15092 6
d15100 6
a15105 24


LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"


LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"



# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"

fi;

# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
d15107 1
a15107 1
fi;
d15109 6
a15114 9
# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
a15115 1
fi;
d15117 5
a15121 57
# Check whether --with-openldap-config or --without-openldap-config was given.
if test "${with_openldap_config+set}" = set; then
  withval="$with_openldap_config"

fi;



echo "$as_me:$LINENO: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6

case "$with_openldap" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_openldap" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_openldap_include" = ""; then
		if test -d "$i/include/openldap"; then
			header_dirs="$header_dirs $i/include/openldap"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_openldap_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_openldap_include"; then
	header_dirs="$with_openldap_include $header_dirs"
fi
if test "$with_openldap_lib"; then
	lib_dirs="$with_openldap_lib $lib_dirs"
fi

if test "$with_openldap_config" = ""; then
	with_openldap_config=''
fi

openldap_cflags=
openldap_libs=

case "$with_openldap_config" in
yes|no|"")
	;;
*)
	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
	openldap_libs="`$with_openldap_config --libs 2>&1`"
	;;
esac
d15123 11
a15133 7
found=no
if test "$with_openldap" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$openldap_cflags" -a "$openldap_libs"; then
		CFLAGS="$openldap_cflags $save_CFLAGS"
		LIBS="$openldap_libs $save_LIBS"
d15135 1
a15135 1
#line $LINENO "configure"
d15137 1
a15137 8
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15141 1
a15141 1

d15147 1
a15147 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15150 1
a15150 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15153 1
a15153 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15156 1
a15156 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15158 1
a15158 6

			INCLUDE_openldap="$openldap_cflags"
			LIB_openldap="$openldap_libs"
			echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
echo "${ECHO_T}from $with_openldap_config" >&6
			found=yes
d15164 10
a15173 19
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
d15175 7
a15181 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
d15183 2
a15184 9
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lldap -llber  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15186 6
a15191 7
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15193 5
d15201 8
d15215 1
a15215 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15218 1
a15218 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15221 1
a15221 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15224 1
a15224 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15226 1
a15226 1
  lres=$i;break
d15230 1
a15232 11
		done
		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
			INCLUDE_openldap="-I$ires"
			LIB_openldap="-L$lres -lldap -llber"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d15234 9
d15244 5
a15248 1
if test "$found" = yes; then
d15250 7
a15256 3
cat >>confdefs.h <<_ACEOF
#define OPENLDAP 1
_ACEOF
d15258 7
a15264 6
	with_openldap=yes
else
	with_openldap=no
	INCLUDE_openldap=
	LIB_openldap=
	echo "$as_me:$LINENO: result: no" >&5
d15266 7
a15272 1
fi
d15274 3
d15278 4
d15283 13
d15297 6
a15302 3

if test "$openldap_libdir"; then
	LIB_openldap="-R $openldap_libdir $LIB_openldap"
d15305 4
d15310 7
d15318 2
a15319 3
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"
d15321 3
a15323 1
fi;
a15324 10
# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
d15326 46
a15371 10

# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
a15372 1
fi;
d15374 7
a15380 3
# Check whether --with-krb4-config or --without-krb4-config was given.
if test "${with_krb4_config+set}" = set; then
  withval="$with_krb4_config"
d15382 4
a15385 1
fi;
d15387 4
d15392 4
d15397 3
a15399 2
echo "$as_me:$LINENO: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6
d15401 6
a15406 5
case "$with_krb4" in
yes|"") d='/usr/athena' ;;
no)	d= ;;
*)	d="$with_krb4" ;;
esac
d15408 2
a15409 17
header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_krb4_include" = ""; then
		if test -d "$i/include/krb4"; then
			header_dirs="$header_dirs $i/include/krb4"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_krb4_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done
d15411 23
a15433 2
if test "$with_krb4_include"; then
	header_dirs="$with_krb4_include $header_dirs"
d15435 12
a15446 2
if test "$with_krb4_lib"; then
	lib_dirs="$with_krb4_lib $lib_dirs"
d15448 2
d15451 8
a15458 25
if test "$with_krb4_config" = ""; then
	with_krb4_config='krb4-config'
fi

krb4_cflags=
krb4_libs=

case "$with_krb4_config" in
yes|no|"")
	;;
*)
	krb4_cflags="`$with_krb4_config --cflags 2>&1`"
	krb4_libs="`$with_krb4_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_krb4" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$krb4_cflags" -a "$krb4_libs"; then
		CFLAGS="$krb4_cflags $save_CFLAGS"
		LIBS="$krb4_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15460 1
a15460 7
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15464 1
a15464 1

d15470 1
a15470 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15473 1
a15473 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15476 1
a15476 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15479 1
a15479 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15481 3
a15483 6

			INCLUDE_krb4="$krb4_cflags"
			LIB_krb4="$krb4_libs"
			echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
echo "${ECHO_T}from $with_krb4_config" >&6
			found=yes
d15487 11
d15500 15
a15514 18
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
d15516 4
a15519 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
d15521 8
a15528 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d15530 26
a15555 6
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lkrb -ldes $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15557 1
a15557 7
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15567 1
a15567 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15570 1
a15570 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15573 1
a15573 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15576 1
a15576 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15578 1
a15578 1
  lres=$i;break
d15582 1
d15585 2
a15586 25
		done
		if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
			INCLUDE_krb4="-I$ires"
			LIB_krb4="-L$lres -lkrb"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define KRB4 1
_ACEOF

	with_krb4=yes
else
	with_krb4=no
	INCLUDE_krb4=
	LIB_krb4=
	echo "$as_me:$LINENO: result: no" >&5
d15588 6
a15593 13
fi





LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 $LIBS"
	EXTRA_LIB45=lib45.a
a15594 15
	echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
a15598 2
		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
d15603 3
a15605 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15607 1
a15607 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15609 2
a15610 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15613 1
a15613 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15615 1
a15615 1
  ac_cv_func_krb_put_int_four=yes
d15619 1
a15619 1
ac_cv_func_krb_put_int_four=no
d15621 13
a15633 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15635 3
a15637 10
fi
echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
_ACEOF

	fi
d15639 10
d15650 3
a15652 14
	echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15654 3
d15660 1
a15660 2

		int x = KRB_VERIFY_SECURE
d15665 3
a15667 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15669 1
a15669 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15671 2
a15672 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15675 1
a15675 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15677 1
a15677 1
  ac_cv_func_krb_verify_secure=yes
d15681 3
a15683 22
ac_cv_func_krb_verify_secure=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then

cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_SECURE 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_SECURE_FAIL 2
_ACEOF

	fi
	echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
d15686 4
a15689 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15691 4
a15694 6
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15696 3
d15702 1
a15702 2

		int x = KRB_VERIFY_NOT_SECURE
d15707 3
a15709 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15711 1
a15711 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15713 2
a15714 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15717 1
a15717 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15719 1
a15719 1
  ac_cv_func_krb_verify_not_secure=yes
d15723 4
a15726 1
ac_cv_func_krb_verify_not_secure=no
d15728 4
a15731 2
rm -f conftest.$ac_objext conftest.$ac_ext

a15732 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
d15734 4
a15737 12
cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_NOT_SECURE 0
_ACEOF

	fi




echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
d15740 4
a15743 14

if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15746 3
a15748 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15750 3
d15756 1
a15756 1
krb_enable_debug()
d15762 1
a15762 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15765 1
a15765 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15768 1
a15768 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15771 1
a15771 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15773 1
a15773 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
d15777 1
d15780 6
a15785 3
	done
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
	LIBS="$ac_save_LIBS"
d15788 1
d15790 2
d15793 11
a15803 11

eval "ac_res=\$ac_cv_funclib_krb_enable_debug"

if false; then

for ac_func in krb_enable_debug
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15807 1
a15807 1
#line $LINENO "configure"
d15810 1
a15810 1
    which can conflict with char $ac_func (); below.  */
d15818 1
a15818 1
char $ac_func ();
a15820 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15827 1
a15827 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d15830 1
a15830 1
f = $ac_func;
d15838 1
a15838 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15841 1
a15841 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15844 1
a15844 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15847 1
a15847 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15849 1
a15849 1
  eval "$as_ac_var=yes"
d15853 1
a15853 1
eval "$as_ac_var=no"
d15857 29
a15885 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15887 17
a15903 1

d15905 2
a15906 2
done

d15908 4
a15911 41
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_enable_debug=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
d15914 4
a15917 7




echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
d15920 4
a15923 14

if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15926 3
a15928 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15930 3
d15936 1
a15936 1
krb_disable_debug()
d15942 1
a15942 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15945 1
a15945 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15948 1
a15948 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15951 1
a15951 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15953 1
a15953 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d15957 1
d15960 1
a15960 3
	done
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
	LIBS="$ac_save_LIBS"
d15962 4
a15965 1

d15968 2
d15971 10
a15980 10
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"

if false; then

for ac_func in krb_disable_debug
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15984 1
a15984 1
#line $LINENO "configure"
d15987 1
a15987 1
    which can conflict with char $ac_func (); below.  */
d15995 1
a15995 1
char $ac_func ();
a15997 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16004 1
a16004 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16007 1
a16007 1
f = $ac_func;
d16015 1
a16015 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16018 1
a16018 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16021 1
a16021 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16024 1
a16024 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16026 1
a16026 1
  eval "$as_ac_var=yes"
d16030 1
a16030 1
eval "$as_ac_var=no"
d16034 2
a16035 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16037 4
a16040 54
fi
done

fi
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_disable_debug=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
fi





echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
d16043 4
a16046 14

if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d16049 3
a16051 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d16053 3
d16059 1
a16059 1
krb_get_our_ip_for_realm()
d16065 1
a16065 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16068 1
a16068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16071 1
a16071 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16074 1
a16074 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16076 1
a16076 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
d16080 1
d16083 1
a16083 3
	done
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
	LIBS="$ac_save_LIBS"
d16085 4
a16088 1

d16091 1
d16093 4
a16096 10
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"

if false; then

for ac_func in krb_get_our_ip_for_realm
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16100 1
a16100 1
#line $LINENO "configure"
d16103 1
a16103 1
    which can conflict with char $ac_func (); below.  */
d16111 1
a16111 1
char $ac_func ();
a16113 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16120 1
a16120 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16123 1
a16123 1
f = $ac_func;
d16131 1
a16131 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16134 1
a16134 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16137 1
a16137 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16140 1
a16140 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16142 1
a16142 1
  eval "$as_ac_var=yes"
d16146 1
a16146 1
eval "$as_ac_var=no"
d16150 2
a16151 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16153 4
a16156 54
fi
done

fi
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi





echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
d16159 4
a16162 14

if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d16165 3
a16167 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d16169 3
d16175 1
a16175 1
krb_kdctimeofday()
d16181 1
a16181 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16184 1
a16184 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16187 1
a16187 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16190 1
a16190 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16192 1
a16192 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
d16196 1
d16199 1
a16199 3
	done
	eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
	LIBS="$ac_save_LIBS"
d16201 4
a16204 1

d16207 1
d16209 4
a16212 10
eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"

if false; then

for ac_func in krb_kdctimeofday
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16216 1
a16216 1
#line $LINENO "configure"
d16219 1
a16219 1
    which can conflict with char $ac_func (); below.  */
d16227 1
a16227 1
char $ac_func ();
a16229 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16236 1
a16236 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16239 1
a16239 1
f = $ac_func;
d16247 1
a16247 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16250 1
a16250 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16253 1
a16253 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16256 1
a16256 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16258 1
a16258 1
  eval "$as_ac_var=yes"
d16262 1
a16262 1
eval "$as_ac_var=no"
d16266 29
a16294 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16296 20
a16315 1

d16317 4
a16320 2
done

a16321 4
# krb_kdctimeofday
eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_kdctimeofday=$ac_res"
d16323 2
a16324 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "LIB_krb_kdctimeofday="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d16326 19
a16344 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_kdctimeofday=no"
	eval "LIB_krb_kdctimeofday="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d16346 14
a16359 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d16361 26
d16388 1
a16388 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d16390 1
d16392 8
a16399 3
if test -n "$LIB_krb_kdctimeofday"; then
	LIBS="$LIB_krb_kdctimeofday $LIBS"
fi
d16401 30
d16432 9
d16442 24
d16467 5
d16473 7
d16481 6
d16488 3
a16490 3
echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
d16494 1
a16494 1
if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
d16496 1
a16496 1
	for ac_lib in "" ; do
d16506 1
a16506 1
#line $LINENO "configure"
a16508 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16512 1
a16512 1
krb_get_kdc_time_diff()
d16518 1
a16518 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16521 1
a16521 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16524 1
a16524 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16527 1
a16527 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16529 1
a16529 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
d16536 1
a16536 1
	eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
d16542 1
a16542 2

eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
d16546 1
a16546 1
for ac_func in krb_get_kdc_time_diff
d16549 1
a16549 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d16555 1
a16555 1
#line $LINENO "configure"
a16568 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16586 1
a16586 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16589 1
a16589 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16592 1
a16592 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16595 1
a16595 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16605 1
a16605 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d16608 1
a16608 1
  cat >>confdefs.h <<_ACEOF
d16610 1
a16610 1
_ACEOF
d16616 2
a16617 2
# krb_get_kdc_time_diff
eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d16619 1
a16619 1
eval "LIB_krb_get_kdc_time_diff=$ac_res"
d16623 3
a16625 3
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
	eval "LIB_krb_get_kdc_time_diff="
	cat >>confdefs.h <<_ACEOF
d16627 1
a16627 1
_ACEOF
d16629 1
a16629 1
	echo "$as_me:$LINENO: result: yes" >&5
d16633 3
a16635 3
	eval "ac_cv_func_krb_get_kdc_time_diff=no"
	eval "LIB_krb_get_kdc_time_diff="
	echo "$as_me:$LINENO: result: no" >&5
d16639 1
a16639 1
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
d16641 1
a16641 1
	cat >>confdefs.h <<_ACEOF
d16643 1
a16643 1
_ACEOF
d16645 1
a16645 1
	cat >>confdefs.h <<_ACEOF
d16647 1
a16647 1
_ACEOF
d16649 1
a16649 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d16654 2
d16657 3
a16659 9
if test -n "$LIB_krb_get_kdc_time_diff"; then
	LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
fi



	echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
d16662 14
a16675 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d16677 1
a16677 8
#include <krb.h>
			#include <prot.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16681 1
a16681 2

		char *x = KRB_SENDAUTH_VERS
d16686 3
a16688 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d16690 1
a16690 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16692 2
a16693 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16696 1
a16696 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16698 1
a16698 1
  ac_cv_func_krb_sendauth_vers=yes
a16701 1
ac_cv_func_krb_sendauth_vers=no
d16703 5
a16707 1
rm -f conftest.$ac_objext conftest.$ac_ext
a16709 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
	if test "$ac_cv_func_krb_sendauth_vers" != yes; then
d16711 3
a16713 3
cat >>confdefs.h <<\_ACEOF
#define KRB_SENDAUTH_VERS "AUTHV0.1"
_ACEOF
d16715 6
a16720 4
	fi
	echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
d16724 1
a16724 1
#line $LINENO "configure"
d16726 6
a16731 9
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d16733 5
d16741 8
d16754 3
a16756 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d16758 1
a16758 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16760 2
a16761 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16764 1
a16764 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16766 1
a16766 1
  ac_cv_func_krb_mk_req_const=yes
d16770 1
a16770 1
ac_cv_func_krb_mk_req_const=no
d16772 1
a16772 2
rm -f conftest.$ac_objext conftest.$ac_ext

d16774 6
a16779 9
echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define KRB_MK_REQ_CONST 1
_ACEOF

	fi
a16780 7
	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
	if test "$krb4_libdir"; then
		LIB_krb4="-R $krb4_libdir $LIB_krb4"
		LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
	fi
d16782 1
a16783 17

if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi



if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
d16785 4
d16790 7
d16798 7
a16804 148

if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
else
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi



cat >>confdefs.h <<\_ACEOF
#define KRB5 1
_ACEOF

# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\_ACEOF
#define DCE 1
_ACEOF

fi


if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
else
  DCE_TRUE='#'
  DCE_FALSE=
fi


## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
	dpagaix_ldflags=
else
	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
fi





# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval="$enable_otp"

fi;
if test "$enable_otp" = yes -a "$db_type" = unknown; then
	{ { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$enable_otp" != no; then
	if test "$db_type" != unknown; then
		enable_otp=yes
	else
		enable_otp=no
	fi
fi
if test "$enable_otp" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OTP 1
_ACEOF

	LIB_otp='$(top_builddir)/lib/otp/libotp.la'

fi
echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $enable_otp" >&5
echo "${ECHO_T}$enable_otp" >&6


if test "$enable_otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi



# Check whether --enable-osfc2 or --disable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
  enableval="$enable_osfc2"

fi;
LIB_security=
if test "$enable_osfc2" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OSFC2 1
_ACEOF

	LIB_security=-lsecurity
fi



# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_NROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $NROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
NROFF=$ac_cv_path_NROFF

if test -n "$NROFF"; then
  echo "$as_me:$LINENO: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
d16806 7
a16812 1
fi
d16814 3
a16816 25
# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d16818 3
a16820 1
  ;;
a16821 2
fi
GROFF=$ac_cv_path_GROFF
d16823 1
a16823 7
if test -n "$GROFF"; then
  echo "$as_me:$LINENO: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d16825 3
a16827 3
echo "$as_me:$LINENO: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
if test "${ac_cv_sys_man_format+set}" = set; then
a16829 8
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
END
d16831 39
a16869 8
if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
d16871 1
a16871 7
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
d16873 2
a16874 3
fi
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
a16877 4
echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"
d16879 1
a16879 1
fi
d16881 1
d16883 7
a16889 3
if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
d16891 26
a16916 3
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi
d16918 17
a16934 4
echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
if test "${ac_cv_sys_catman_ext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d16936 5
a16940 4
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
d16942 6
d16950 2
a16951 6
echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$section'
else
	CATMANEXT=0
d16953 12
d16966 15
d16982 3
d16986 4
d16991 1
d16993 18
a17010 3
# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
  withval="$with_readline"
d17012 1
a17012 1
fi;
d17014 6
a17019 9
# Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval="$with_readline_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
echo "$as_me: error: No argument for --with-readline-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
d17021 1
a17021 1
fi;
d17023 7
a17029 9
# Check whether --with-readline-include or --without-readline-include was given.
if test "${with_readline_include+set}" = set; then
  withval="$with_readline_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
echo "$as_me: error: No argument for --with-readline-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
d17031 3
a17033 1
fi;
d17035 8
a17042 3
# Check whether --with-readline-config or --without-readline-config was given.
if test "${with_readline_config+set}" = set; then
  withval="$with_readline_config"
d17044 27
a17070 1
fi;
d17072 21
d17094 21
a17114 30

echo "$as_me:$LINENO: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6

case "$with_readline" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_readline" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_readline_include" = ""; then
		if test -d "$i/include/readline"; then
			header_dirs="$header_dirs $i/include/readline"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_readline_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_readline_include"; then
	header_dirs="$with_readline_include $header_dirs"
d17116 1
a17116 2
if test "$with_readline_lib"; then
	lib_dirs="$with_readline_lib $lib_dirs"
d17118 7
a17125 2
if test "$with_readline_config" = ""; then
	with_readline_config=''
d17128 7
a17134 21
readline_cflags=
readline_libs=

case "$with_readline_config" in
yes|no|"")
	;;
*)
	readline_cflags="`$with_readline_config --cflags 2>&1`"
	readline_libs="`$with_readline_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_readline" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$readline_cflags" -a "$readline_libs"; then
		CFLAGS="$readline_cflags $save_CFLAGS"
		LIBS="$readline_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17136 1
a17136 8
#include <stdio.h>
 #include <readline.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17140 4
a17143 1

d17148 3
a17150 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17152 1
a17152 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17154 2
a17155 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17158 1
a17158 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17160 1
a17160 6

			INCLUDE_readline="$readline_cflags"
			LIB_readline="$readline_libs"
			echo "$as_me:$LINENO: result: from $with_readline_config" >&5
echo "${ECHO_T}from $with_readline_config" >&6
			found=yes
d17164 14
d17179 8
a17186 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17188 1
a17188 8
#include <stdio.h>
 #include <readline.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17192 4
a17195 1

d17201 1
a17201 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d17204 1
a17204 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17207 1
a17207 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17210 1
a17210 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17212 1
a17212 1
  ires=$i;break
d17216 1
d17219 20
a17238 5
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lreadline  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17240 4
a17243 7
#include <stdio.h>
 #include <readline.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d17245 30
d17278 4
a17281 1

d17286 3
a17288 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17290 1
a17290 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17292 2
a17293 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17296 1
a17296 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17298 1
a17298 1
  lres=$i;break
d17302 1
d17304 12
a17315 12
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
			INCLUDE_readline="-I$ires"
			LIB_readline="-L$lres -lreadline"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d17318 9
a17326 1
if test "$found" = yes; then
a17327 2
cat >>confdefs.h <<_ACEOF
#define READLINE 1
d17329 3
a17331 2

	with_readline=yes
d17333 1
a17333 5
	with_readline=no
	INCLUDE_readline=
	LIB_readline=
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d17335 1
d17337 4
d17342 3
d17346 3
d17350 1
d17352 13
d17366 6
a17371 16

# Check whether --with-hesiod or --without-hesiod was given.
if test "${with_hesiod+set}" = set; then
  withval="$with_hesiod"

fi;

# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
  withval="$with_hesiod_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
d17373 1
a17373 1
fi;
a17374 9
# Check whether --with-hesiod-include or --without-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
  withval="$with_hesiod_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
d17376 3
a17378 1
fi;
d17380 3
a17382 3
# Check whether --with-hesiod-config or --without-hesiod-config was given.
if test "${with_hesiod_config+set}" = set; then
  withval="$with_hesiod_config"
d17384 1
a17384 1
fi;
d17386 20
a17405 34


echo "$as_me:$LINENO: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6

case "$with_hesiod" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_hesiod" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_hesiod_include" = ""; then
		if test -d "$i/include/hesiod"; then
			header_dirs="$header_dirs $i/include/hesiod"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_hesiod_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_hesiod_include"; then
	header_dirs="$with_hesiod_include $header_dirs"
fi
if test "$with_hesiod_lib"; then
	lib_dirs="$with_hesiod_lib $lib_dirs"
d17407 1
a17408 2
if test "$with_hesiod_config" = ""; then
	with_hesiod_config=''
d17410 3
d17414 3
a17416 2
hesiod_cflags=
hesiod_libs=
d17418 1
a17418 8
case "$with_hesiod_config" in
yes|no|"")
	;;
*)
	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
	;;
esac
d17420 8
a17427 9
found=no
if test "$with_hesiod" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$hesiod_cflags" -a "$hesiod_libs"; then
		CFLAGS="$hesiod_cflags $save_CFLAGS"
		LIBS="$hesiod_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17429 4
a17432 6
#include <hesiod.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d17434 1
d17438 1
a17438 1

d17443 3
a17445 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17447 1
a17447 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17449 2
a17450 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17453 1
a17453 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17455 1
a17455 6

			INCLUDE_hesiod="$hesiod_cflags"
			LIB_hesiod="$hesiod_libs"
			echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
echo "${ECHO_T}from $with_hesiod_config" >&6
			found=yes
d17459 3
d17463 13
a17475 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17477 1
a17477 7
#include <hesiod.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17481 4
a17484 1

d17490 1
a17490 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d17493 1
a17493 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17496 1
a17496 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17499 1
a17499 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17501 1
a17501 1
  ires=$i;break
d17505 1
d17508 26
a17533 5
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lhesiod  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17535 4
a17538 7
#include <hesiod.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17542 2
a17543 1

d17548 3
a17550 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17552 1
a17552 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17554 2
a17555 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17558 1
a17558 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17560 1
a17560 1
  lres=$i;break
d17564 1
d17566 1
a17566 12
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
			INCLUDE_hesiod="-I$ires"
			LIB_hesiod="-L$lres -lhesiod"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d17568 3
d17572 3
a17574 1
if test "$found" = yes; then
a17575 11
cat >>confdefs.h <<_ACEOF
#define HESIOD 1
_ACEOF

	with_hesiod=yes
else
	with_hesiod=no
	INCLUDE_hesiod=
	LIB_hesiod=
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d17578 3
a17580 18





# Check whether --enable-bigendian or --disable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
  enableval="$enable_bigendian"
  krb_cv_c_bigendian=yes
fi;
# Check whether --enable-littleendian or --disable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
  enableval="$enable_littleendian"
  krb_cv_c_bigendian=no
fi;
echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
if test "${krb_cv_c_bigendian_compile+set}" = set; then
d17584 1
a17584 1
#line $LINENO "configure"
d17586 2
a17588 8
#include <sys/types.h>
#include <sys/param.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17592 1
a17592 4

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
d17598 1
a17598 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d17601 1
a17601 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17604 1
a17604 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17607 1
a17607 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17609 1
a17609 1
  krb_cv_c_bigendian_compile=yes
d17613 1
a17613 1
krb_cv_c_bigendian_compile=no
d17617 13
a17629 5
echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${krb_cv_c_bigendian+set}" = set; then
d17632 49
d17682 6
a17687 3
  if test "$krb_cv_c_bigendian_compile" = "yes"; then
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17689 12
d17702 17
a17718 7
#include <sys/types.h>
#include <sys/param.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d17720 2
d17725 6
a17730 6

#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
  ;
  return 0;
d17733 3
a17735 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d17737 3
a17739 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17742 1
a17742 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17744 1
a17744 1
  krb_cv_c_bigendian=yes
d17746 2
a17747 1
  echo "$as_me: failed program was:" >&5
d17749 14
a17762 1
krb_cv_c_bigendian=no
d17764 96
a17859 6
rm -f conftest.$ac_objext conftest.$ac_ext
  else
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
   { (exit 1); exit 1; }; }
d17862 1
a17862 1
#line $LINENO "configure"
d17864 1
a17864 10
main () {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
    } u;
    u.l = 1;
    exit (u.c[sizeof (long) - 1] == 1);
  }
d17866 2
a17867 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17869 10
a17878 8
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_c_bigendian=no
d17880 1
a17880 5
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
krb_cv_c_bigendian=yes
d17882 6
a17887 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d17889 1
a17889 2
  fi

d17891 6
a17896 3
echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6
if test "$krb_cv_c_bigendian" = "yes"; then
a17897 3
cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
d17899 1
a17899 1
if test "$krb_cv_c_bigendian_compile" = "yes"; then
d17901 6
a17906 10
cat >>confdefs.h <<\_ACEOF
#define ENDIANESS_IN_SYS_PARAM_H 1
_ACEOF
fi



echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
a17908 2
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
d17910 1
a17910 1
#line $LINENO "configure"
d17912 1
a17912 5
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif

d17914 2
a17915 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d17917 15
a17931 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
d17934 4
a17937 1
cat conftest.$ac_ext >&5
d17939 6
a17944 2
rm -f conftest.$ac_objext conftest.$ac_ext
done
d17947 1
a17947 14
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\_ACEOF
#define inline
_ACEOF
 ;;
  *)  cat >>confdefs.h <<_ACEOF
#define inline $ac_cv_c_inline
_ACEOF
 ;;
esac
d17949 1
d17951 1
d17953 3
a17955 6



echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dlopen+set}" = set; then
d17958 2
a17959 14

if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" dl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17961 5
a17966 13
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dlopen()
  ;
  return 0;
}
d17968 2
a17969 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17971 15
a17985 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
d17988 2
a17989 1
cat conftest.$ac_ext >&5
d17991 1
a17991 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
	LIBS="$ac_save_LIBS"
d17993 8
d18003 2
d18006 1
a18006 6

eval "ac_res=\$ac_cv_funclib_dlopen"

if false; then

for ac_func in dlopen
d18008 4
a18011 4
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d18015 1
a18015 1
#line $LINENO "configure"
d18017 1
a18017 33
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d18019 2
a18020 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d18022 15
a18036 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d18039 2
a18040 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d18042 1
a18042 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18044 6
a18049 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a18054 4
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dlopen=$ac_res"
d18056 3
a18058 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d18060 1
a18060 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dlopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d18062 1
a18062 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d18064 3
a18066 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a18067 9



if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
d18070 3
a18072 18



aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*|*-*-aix5*)
	aix=4
	;;
esac



if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
d18074 2
a18075 2
  AIX_TRUE='#'
  AIX_FALSE=
d18078 3
a18080 4

if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
d18082 2
a18083 2
  AIX4_TRUE='#'
  AIX4_FALSE=
d18086 3
a18088 18


# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
if test "${enable_dynamic_afs+set}" = set; then
  enableval="$enable_dynamic_afs"

fi;

if test "$aix" != no; then
	if test "$enable_dynamic_afs" != no; then

		if test "$ac_cv_func_dlopen" = no; then



echo "$as_me:$LINENO: checking for loadquery" >&5
echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
if test "${ac_cv_funclib_loadquery+set}" = set; then
d18092 1
a18092 1
if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
d18094 1
a18094 1
	for ac_lib in "" ld; do
d18104 1
a18104 1
#line $LINENO "configure"
a18106 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18110 1
a18110 1
loadquery()
d18116 1
a18116 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18119 1
a18119 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18122 1
a18122 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18125 1
a18125 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18127 1
a18127 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
d18134 1
a18134 1
	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
d18140 1
a18140 2

eval "ac_res=\$ac_cv_funclib_loadquery"
d18144 1
a18144 1
for ac_func in loadquery
d18147 1
a18147 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d18153 1
a18153 1
#line $LINENO "configure"
a18166 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18184 1
a18184 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18187 1
a18187 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18190 1
a18190 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18193 1
a18193 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18203 1
a18203 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d18206 1
a18206 1
  cat >>confdefs.h <<_ACEOF
d18208 1
a18208 1
_ACEOF
d18214 2
a18215 2
# loadquery
eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d18217 1
a18217 1
eval "LIB_loadquery=$ac_res"
d18221 3
a18223 3
	eval "ac_cv_func_loadquery=yes"
	eval "LIB_loadquery="
	cat >>confdefs.h <<_ACEOF
d18225 1
a18225 175
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_loadquery=no"
	eval "LIB_loadquery="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_loadquery=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


		fi
		if test "$ac_cv_func_dlopen" != no; then
			AIX_EXTRA_KAFS='$(LIB_dlopen)'
		elif test "$ac_cv_func_loadquery" != no; then
			AIX_EXTRA_KAFS='$(LIB_loadquery)'
		else
			{ echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
echo "$as_me: not using dynloaded AFS library" >&6;}
			AIX_EXTRA_KAFS=
			enable_dynamic_afs=no
		fi
	else
		AIX_EXTRA_KAFS=
	fi
fi



if test "$enable_dynamic_afs" != no; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi






irix=no
case "$host" in
*-*-irix4*)

cat >>confdefs.h <<\_ACEOF
#define IRIX4 1
_ACEOF

	irix=yes
	;;
*-*-irix*)
	irix=yes
	;;
esac


if test "$irix" != no; then
  IRIX_TRUE=
  IRIX_FALSE='#'
else
  IRIX_TRUE='#'
  IRIX_FALSE=
fi





sunos=no
case "$host" in
*-*-sunos4*)
	sunos=40
	;;
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2.89)
	sunos=58
	;;
*-*-solaris2*)
	sunos=50
	;;
esac
if test "$sunos" != no; then

cat >>confdefs.h <<_ACEOF
#define SunOS $sunos
_ACEOF

fi


echo "$as_me:$LINENO: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6


# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"

fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
    if test "${ac_cv_have_x+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -fr conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat >Imakefile <<'_ACEOF'
acfindx:
	@@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
_ACEOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
         test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -fr conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include
d18227 15
a18241 4
/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4
d18243 3
a18245 4
/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include
d18247 4
a18250 4
/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4
d18252 3
a18254 3
/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11
d18256 5
a18260 6
/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include
d18262 14
a18275 2
/usr/openwin/include
/usr/openwin/share/include'
d18277 7
a18283 7
if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Intrinsic.h.
  # First, try using that file with no special directory specified.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
d18285 9
a18293 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d18295 3
a18297 10
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d18299 7
a18305 1
  ac_cpp_err=yes
d18307 1
a18307 12
if test -z "$ac_cpp_err"; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Intrinsic.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
a18308 2
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no
d18310 12
a18321 6
if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lXt $LIBS"
d18323 1
a18323 1
#line $LINENO "configure"
d18325 6
a18330 6
#include <X11/Intrinsic.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18332 5
d18340 9
a18348 1
XtMalloc (0)
d18354 1
a18354 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18357 1
a18357 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18360 1
a18360 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18363 1
a18363 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18365 1
a18365 3
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
d18369 1
a18369 11
LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl; do
    if test -r $ac_dir/libXt.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
d18372 7
a18378 1
fi # $ac_x_libraries = no
a18379 7
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
d18381 2
d18384 4
d18389 7
a18395 3
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no
d18397 15
a18411 14
if test "$have_x" != yes; then
  echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi
d18413 3
d18417 4
a18420 2
if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.
d18422 3
a18424 3
cat >>confdefs.h <<\_ACEOF
#define X_DISPLAY_MISSING 1
_ACEOF
d18426 4
a18429 1
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
d18431 14
a18444 16
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case `(uname -sr) 2>/dev/null` in
    "SunOS 5"*)
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
      cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a18446 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18450 1
a18450 1

d18456 1
a18456 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18459 1
a18459 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18462 1
a18462 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18465 1
a18465 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18467 1
a18467 1
  ac_R_nospace=yes
a18470 1
ac_R_nospace=no
d18473 4
a18476 19
      if test $ac_R_nospace = yes; then
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
a18477 21
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_R_space=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_space=no
a18478 13
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	if test $ac_R_space = yes; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$as_me:$LINENO: result: neither works" >&5
echo "${ECHO_T}neither works" >&6
	fi
      fi
      LIBS=$ac_xsave_LIBS
    esac
  fi
d18480 1
a18480 3
  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.
d18482 1
a18482 10
  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
d18484 6
a18489 40
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char XOpenDisplay ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
d18492 2
a18493 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d18495 3
a18497 1

d18504 3
a18506 7
char dnet_ntoa ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18510 9
a18518 1
dnet_ntoa ();
d18524 1
a18524 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18527 1
a18527 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18530 1
a18530 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18533 1
a18533 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18535 1
a18535 1
  ac_cv_lib_dnet_dnet_ntoa=yes
d18539 1
a18539 1
ac_cv_lib_dnet_dnet_ntoa=no
a18541 1
LIBS=$ac_check_lib_save_LIBS
d18543 51
a18593 4
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
d18596 10
a18605 4
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
d18608 29
a18636 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d18639 3
a18641 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18643 18
a18660 8
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dnet_ntoa ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a18661 7
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
d18663 5
a18667 25
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
d18669 7
d18677 8
a18684 1
    fi
d18686 1
a18686 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"
d18688 4
a18691 15
    # msh@@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a18692 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
char (*f) ();
d18694 3
a18696 16
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
f = gethostbyname;
a18697 4

  ;
  return 0;
}
d18699 5
a18703 17
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gethostbyname=no
d18705 26
a18730 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a18731 11
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6

    if test $ac_cv_func_gethostbyname = no; then
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
d18733 1
a18733 1
#line $LINENO "configure"
d18736 8
a18743 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18745 2
a18746 8
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18748 1
d18752 11
a18762 1
gethostbyname ();
d18768 1
a18768 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18771 1
a18771 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18774 1
a18774 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18777 1
a18777 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18779 1
a18779 1
  ac_cv_lib_nsl_gethostbyname=yes
d18783 1
a18783 1
ac_cv_lib_nsl_gethostbyname=no
a18785 1
LIBS=$ac_check_lib_save_LIBS
d18787 13
a18799 4
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
d18802 4
a18805 4
      if test $ac_cv_lib_nsl_gethostbyname = no; then
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
d18808 3
a18810 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d18813 2
a18814 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18816 2
a18817 8
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18819 2
a18820 59
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gethostbyname=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test $ac_cv_lib_bsd_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the nameserver (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    echo "$as_me:$LINENO: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18822 2
a18823 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char connect ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18828 3
a18830 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_connect) || defined (__stub___connect)
choke me
#else
f = connect;
#endif
d18837 1
a18837 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18840 1
a18840 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18843 1
a18843 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18846 1
a18846 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18848 1
a18848 1
  ac_cv_func_connect=yes
d18852 1
a18852 1
ac_cv_func_connect=no
d18856 10
a18865 2
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6
d18867 3
a18869 4
    if test $ac_cv_func_connect = no; then
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then
d18872 14
a18885 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a18887 13
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char connect ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18891 1
a18891 1
connect ();
d18897 1
a18897 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18900 1
a18900 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18903 1
a18903 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18906 1
a18906 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18908 1
a18908 1
  ac_cv_lib_socket_connect=yes
a18911 1
ac_cv_lib_socket_connect=no
d18914 3
a18916 1
LIBS=$ac_check_lib_save_LIBS
d18918 1
a18918 4
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test $ac_cv_lib_socket_connect = yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
d18921 3
a18923 1
    fi
d18925 6
a18930 4
    # Guillermo Gomez says -lposix is necessary on A/UX.
    echo "$as_me:$LINENO: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then
d18934 1
a18934 1
#line $LINENO "configure"
d18937 1
a18937 1
    which can conflict with char remove (); below.  */
d18945 1
a18945 1
char remove ();
a18947 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18954 1
a18954 1
#if defined (__stub_remove) || defined (__stub___remove)
d18957 1
a18957 1
f = remove;
d18965 1
a18965 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18968 1
a18968 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18971 1
a18971 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18974 1
a18974 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18976 1
a18976 1
  ac_cv_func_remove=yes
d18980 1
a18980 1
ac_cv_func_remove=no
d18984 48
a19031 2
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6
d19033 3
a19035 4
    if test $ac_cv_func_remove = no; then
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then
d19038 14
a19051 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a19053 13
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char remove ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19057 1
a19057 1
remove ();
d19063 1
a19063 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19066 1
a19066 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19069 1
a19069 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19072 1
a19072 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19074 1
a19074 1
  ac_cv_lib_posix_remove=yes
a19077 1
ac_cv_lib_posix_remove=no
d19080 3
a19082 1
LIBS=$ac_check_lib_save_LIBS
d19084 1
a19084 4
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test $ac_cv_lib_posix_remove = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
d19087 3
a19089 1
    fi
d19091 6
a19096 4
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo "$as_me:$LINENO: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then
d19100 1
a19100 1
#line $LINENO "configure"
d19103 1
a19103 1
    which can conflict with char shmat (); below.  */
d19111 1
a19111 1
char shmat ();
a19113 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19120 1
a19120 1
#if defined (__stub_shmat) || defined (__stub___shmat)
d19123 1
a19123 1
f = shmat;
d19131 1
a19131 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19134 1
a19134 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19137 1
a19137 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19140 1
a19140 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19142 1
a19142 1
  ac_cv_func_shmat=yes
d19146 1
a19146 1
ac_cv_func_shmat=no
d19149 49
a19197 3
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6
d19199 3
a19201 4
    if test $ac_cv_func_shmat = no; then
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
d19204 14
a19217 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a19219 13
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shmat ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19223 1
a19223 1
shmat ();
d19229 1
a19229 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19232 1
a19232 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19235 1
a19235 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19238 1
a19238 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19240 1
a19240 1
  ac_cv_lib_ipc_shmat=yes
a19243 1
ac_cv_lib_ipc_shmat=no
d19246 3
a19248 1
LIBS=$ac_check_lib_save_LIBS
d19250 1
a19250 4
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test $ac_cv_lib_ipc_shmat = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d19253 3
a19255 2
    fi
  fi
d19257 6
a19262 12
  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
d19265 2
a19266 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d19268 3
a19270 1

d19277 3
a19279 7
char IceConnectionNumber ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19283 9
a19291 1
IceConnectionNumber ();
d19297 1
a19297 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19300 1
a19300 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19303 1
a19303 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19306 1
a19306 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19308 1
a19308 1
  ac_cv_lib_ICE_IceConnectionNumber=yes
d19312 1
a19312 1
ac_cv_lib_ICE_IceConnectionNumber=no
a19314 1
LIBS=$ac_check_lib_save_LIBS
d19316 6
a19321 7
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS
d19324 1
a19325 70

# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
	echo "$as_me:$LINENO: checking for special X linker flags" >&5
echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_save_libs="$LIBS"
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS $X_CFLAGS"
	krb_cv_sys_x_libs_rpath=""
	krb_cv_sys_x_libs=""
	for rflag in "" "-R" "-R " "-rpath "; do
		if test "$rflag" = ""; then
			foo="$X_LIBS"
		else
			foo=""
			for flag in $X_LIBS; do
			case $flag in
			-L*)
				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
				;;
			*)
				foo="$foo $flag"
				;;
			esac
			done
		fi
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
		if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

		#include <X11/Xlib.h>
		foo()
		{
		XOpenDisplay(NULL);
		}
		main()
		{
		return 0;
		}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
:
d19327 4
a19330 5
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"
d19332 7
a19338 5
fi
echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
	X_LIBS="$krb_cv_sys_x_libs"
fi
d19340 15
d19356 3
d19360 4
d19365 3
a19367 24
if test "$no_x" != yes; then
  HAVE_X_TRUE=
  HAVE_X_FALSE='#'
else
  HAVE_X_TRUE='#'
  HAVE_X_FALSE=
fi



save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"





echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
d19371 1
a19371 1
if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
d19373 1
a19373 1
	for ac_lib in "" X11 Xau; do
d19383 1
a19383 1
#line $LINENO "configure"
a19385 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19389 1
a19389 1
XauWriteAuth()
d19395 1
a19395 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19398 1
a19398 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19401 1
a19401 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19404 1
a19404 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19406 1
a19406 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
d19413 1
a19413 1
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
d19419 1
a19419 2

eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
d19423 1
a19423 1
for ac_func in XauWriteAuth
d19426 1
a19426 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d19432 1
a19432 1
#line $LINENO "configure"
a19445 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19463 1
a19463 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19466 1
a19466 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19469 1
a19469 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19472 1
a19472 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19482 1
a19482 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d19485 1
a19485 1
  cat >>confdefs.h <<_ACEOF
d19487 1
a19487 1
_ACEOF
d19493 2
a19494 2
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d19496 1
a19496 1
eval "LIB_XauWriteAuth=$ac_res"
d19500 3
a19502 3
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >>confdefs.h <<_ACEOF
d19504 1
a19504 1
_ACEOF
d19506 1
a19506 1
	echo "$as_me:$LINENO: result: yes" >&5
d19510 3
a19512 3
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	echo "$as_me:$LINENO: result: no" >&5
d19516 1
a19516 1
	eval "ac_cv_func_XauWriteAuth=yes"
d19518 1
a19518 1
	cat >>confdefs.h <<_ACEOF
d19520 1
a19520 1
_ACEOF
d19522 1
a19522 1
	cat >>confdefs.h <<_ACEOF
d19524 1
a19524 1
_ACEOF
d19526 1
a19526 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d19531 3
a19533 9

ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"



echo "$as_me:$LINENO: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
d19537 1
a19537 1
if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
d19539 1
a19539 1
	for ac_lib in "" X11 Xau; do
d19549 1
a19549 1
#line $LINENO "configure"
a19551 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19555 1
a19555 1
XauReadAuth()
d19561 1
a19561 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19564 1
a19564 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19567 1
a19567 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19570 1
a19570 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19572 1
a19572 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
d19579 1
a19579 1
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
d19585 1
a19585 2

eval "ac_res=\$ac_cv_funclib_XauReadAuth"
d19589 1
a19589 1
for ac_func in XauReadAuth
d19592 1
a19592 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d19598 1
a19598 1
#line $LINENO "configure"
a19611 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19629 1
a19629 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19632 1
a19632 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19635 1
a19635 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19638 1
a19638 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19648 1
a19648 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d19651 1
a19651 1
  cat >>confdefs.h <<_ACEOF
d19653 1
a19653 1
_ACEOF
d19659 2
a19660 2
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d19662 1
a19662 1
eval "LIB_XauReadAuth=$ac_res"
d19666 3
a19668 3
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >>confdefs.h <<_ACEOF
d19670 1
a19670 1
_ACEOF
d19672 1
a19672 1
	echo "$as_me:$LINENO: result: yes" >&5
d19676 3
a19678 3
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	echo "$as_me:$LINENO: result: no" >&5
d19682 1
a19682 1
	eval "ac_cv_func_XauReadAuth=yes"
d19684 1
a19684 1
	cat >>confdefs.h <<_ACEOF
d19686 1
a19686 1
_ACEOF
d19688 1
a19688 1
	cat >>confdefs.h <<_ACEOF
d19690 1
a19690 1
_ACEOF
d19692 1
a19692 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d19697 3
d19701 3
a19703 7
LIBS="$LIB_XauReadAauth $LIBS"



echo "$as_me:$LINENO: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
if test "${ac_cv_funclib_XauFileName+set}" = set; then
d19707 1
a19707 1
if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
d19709 1
a19709 1
	for ac_lib in "" X11 Xau; do
d19719 1
a19719 1
#line $LINENO "configure"
d19722 12
a19733 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d19735 1
d19739 1
a19739 1
XauFileName()
d19745 1
a19745 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19748 1
a19748 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19751 1
a19751 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19754 1
a19754 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19756 1
a19756 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
d19763 1
a19763 1
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
d19769 1
a19769 2

eval "ac_res=\$ac_cv_funclib_XauFileName"
d19773 1
a19773 1
for ac_func in XauFileName
d19776 1
a19776 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d19782 1
a19782 1
#line $LINENO "configure"
a19795 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19813 1
a19813 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19816 1
a19816 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19819 1
a19819 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19822 1
a19822 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19832 1
a19832 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d19835 1
a19835 1
  cat >>confdefs.h <<_ACEOF
d19837 1
a19837 1
_ACEOF
d19843 2
a19844 2
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d19846 1
a19846 1
eval "LIB_XauFileName=$ac_res"
d19850 3
a19852 3
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
	cat >>confdefs.h <<_ACEOF
d19854 1
a19854 1
_ACEOF
d19856 1
a19856 1
	echo "$as_me:$LINENO: result: yes" >&5
d19860 3
a19862 3
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	echo "$as_me:$LINENO: result: no" >&5
d19866 1
a19866 1
	eval "ac_cv_func_XauFileName=yes"
d19868 1
a19868 1
	cat >>confdefs.h <<_ACEOF
d19870 1
a19870 1
_ACEOF
d19872 1
a19872 1
	cat >>confdefs.h <<_ACEOF
d19874 1
a19874 1
_ACEOF
d19876 1
a19876 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d19881 2
a19882 31

LIBS="$ac_xxx"

case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
	fi
	;;
esac

if test "$AUTOMAKE" != ""; then


if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
else
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
d19885 4
d19891 13
a19903 22

	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS



echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d19906 9
a19914 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d19916 4
d19923 1
a19923 47
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

d19928 3
a19930 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d19932 1
a19932 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19934 2
a19935 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19938 1
a19938 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19940 1
a19940 1
  ac_cv_c_const=yes
a19943 1
ac_cv_c_const=no
d19945 6
a19950 1
rm -f conftest.$ac_objext conftest.$ac_ext
a19951 3
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
d19953 1
a19953 3
cat >>confdefs.h <<\_ACEOF
#define const
_ACEOF
d19955 1
a19955 1
fi
d19957 6
a19962 3
echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
d19966 1
a19966 1
#line $LINENO "configure"
d19968 6
a19973 6
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d19975 5
d19983 9
a19991 4
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
d19996 3
a19998 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20000 1
a20000 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20002 2
a20003 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20006 1
a20006 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20008 1
a20008 1
  ac_cv_type_off_t=yes
d20012 11
a20022 1
ac_cv_type_off_t=no
d20024 2
a20025 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20027 32
a20058 5
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else
d20060 4
a20063 3
cat >>confdefs.h <<_ACEOF
#define off_t long
_ACEOF
d20065 2
d20069 3
a20071 3
echo "$as_me:$LINENO: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
d20074 4
d20079 1
a20079 1
#line $LINENO "configure"
a20080 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d20082 8
d20091 12
a20102 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_mode_t=yes
d20104 7
a20110 1
  ac_cv_type_mode_t=no
d20112 2
a20113 1
rm -f conftest*
d20115 1
a20115 4
fi
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = no; then
d20117 3
a20119 3
cat >>confdefs.h <<\_ACEOF
#define mode_t unsigned short
_ACEOF
d20122 1
d20124 4
a20127 3
echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
d20131 1
a20131 1
#line $LINENO "configure"
d20133 11
a20143 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
d20145 13
a20157 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_sig_atomic_t=yes
d20159 5
a20163 1
  ac_cv_type_sig_atomic_t=no
d20165 2
a20166 1
rm -f conftest*
d20168 1
a20168 4
fi
echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
if test $ac_cv_type_sig_atomic_t = no; then
d20170 3
a20172 3
cat >>confdefs.h <<\_ACEOF
#define sig_atomic_t int
_ACEOF
d20176 1
d20178 1
d20180 3
a20182 4
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d20185 4
d20190 1
a20190 1
#line $LINENO "configure"
a20191 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d20193 15
a20207 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d20209 1
a20209 3
long long foo;
  ;
  return 0;
d20211 4
a20214 4
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20216 3
a20218 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20221 1
a20221 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20223 1
a20223 1
  eval "ac_cv_type_$cv=yes"
d20225 2
a20226 1
  echo "$as_me: failed program was:" >&5
d20228 4
a20231 1
eval "ac_cv_type_$cv=no"
d20233 9
a20241 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20243 6
a20248 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d20252 1
a20252 1
#line $LINENO "configure"
d20254 1
a20254 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d20258 4
a20261 4
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
d20267 1
a20267 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d20270 1
a20270 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20273 1
a20273 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20276 1
a20276 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20278 1
a20278 1
  ac_cv_type_long_long=yes
d20282 1
a20282 1
ac_cv_type_long_long=no
d20286 2
a20287 3
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
d20289 1
a20289 3
cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF
d20291 3
d20299 1
a20299 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d20301 32
a20332 1
fi
d20334 5
a20338 3
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
d20342 1
a20342 1
#line $LINENO "configure"
d20344 11
a20354 3
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
a20355 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d20359 9
a20367 2
if ((struct tm *) 0)
return 0;
d20372 3
a20374 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20376 1
a20376 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20378 2
a20379 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20382 1
a20382 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20384 1
a20384 1
  ac_cv_header_time=yes
d20388 1
a20388 1
ac_cv_header_time=no
d20390 1
a20390 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20392 6
a20397 7
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF
d20400 1
d20402 6
a20407 3
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+set}" = set; then
d20411 1
a20411 1
#line $LINENO "configure"
d20413 1
a20413 16
#include <sys/types.h>
#include <time.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct tm *tp; tp->tm_sec;
  ;
  return 0;
}
d20415 2
a20416 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20418 15
a20432 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_struct_tm=time.h
d20435 2
a20436 2
cat conftest.$ac_ext >&5
ac_cv_struct_tm=sys/time.h
d20438 1
a20438 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20440 6
a20445 7
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then

cat >>confdefs.h <<\_ACEOF
#define TM_IN_SYS_TIME 1
_ACEOF
d20448 1
d20450 6
a20455 4

echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
d20459 1
a20459 1
#line $LINENO "configure"
d20461 23
a20483 4
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
d20485 3
d20489 9
a20497 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d20499 3
a20501 15
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
d20504 2
a20505 2
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
d20507 1
a20507 15
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
d20509 6
a20514 1
rm -f conftest*
d20517 1
d20519 4
a20522 11
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
a20523 3
  ac_cv_header_stdc=no
fi
rm -f conftest*
d20525 13
a20537 9
fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a20538 10
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
a20539 1
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d20543 3
a20545 6
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
d20548 2
a20549 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d20552 4
a20555 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20558 1
a20558 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20560 1
a20560 1
  :
d20562 1
a20562 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a20563 5
( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d20565 4
a20569 7
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
d20573 1
d20575 1
d20577 1
a20577 97















































for ac_header in \
	arpa/ftp.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	curses.h				\
	dlfcn.h					\
	fnmatch.h				\
	inttypes.h				\
	io.h					\
	libutil.h				\
	limits.h				\
	maillock.h				\
	netinet/in6_machtypes.h			\
	netinfo/ni.h				\
	pthread.h				\
	pty.h					\
	sac.h					\
	security/pam_modules.h			\
	sgtty.h					\
	siad.h					\
	signal.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/ptyvar.h				\
	sys/select.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/strtty.h				\
	sys/syscall.h				\
	sys/termio.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/un.h				\
	term.h					\
	termcap.h				\
	termio.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	utmp.h					\
	utmpx.h					\

d20579 4
a20582 5
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a20583 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d20585 2
a20586 5
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d20588 31
a20618 6
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20620 1
a20620 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20622 2
a20623 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20626 1
a20626 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20628 1
a20628 1
  ac_header_compiler=yes
d20632 1
a20632 1
ac_header_compiler=no
d20634 1
a20634 27
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d20636 6
a20641 10
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
a20642 21
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
d20644 1
a20644 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d20647 4
a20650 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d20652 7
a20658 1
fi
d20660 15
a20674 1
done
d20676 3
d20680 4
a20683 3
# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval="$enable_netinfo"
d20685 14
a20698 1
fi;
d20700 6
a20705 1
if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
a20706 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_NETINFO 1
d20708 21
a20728 1

d20730 3
d20734 3
d20738 2
d20741 3
a20743 5


echo "$as_me:$LINENO: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
if test "${ac_cv_funclib_logwtmp+set}" = set; then
d20747 1
a20747 1
if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
d20749 1
a20749 1
	for ac_lib in "" util; do
d20759 1
a20759 1
#line $LINENO "configure"
d20761 5
a20765 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d20770 1
a20770 1
logwtmp()
d20776 1
a20776 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d20779 1
a20779 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20782 1
a20782 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20785 1
a20785 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20787 1
a20787 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d20794 1
a20794 1
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
d20800 1
a20800 2

eval "ac_res=\$ac_cv_funclib_logwtmp"
d20804 1
a20804 1
for ac_func in logwtmp
d20807 1
a20807 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d20813 1
a20813 1
#line $LINENO "configure"
a20826 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d20844 1
a20844 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d20847 1
a20847 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20850 1
a20850 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20853 1
a20853 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20863 1
a20863 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d20866 1
a20866 1
  cat >>confdefs.h <<_ACEOF
d20868 1
a20868 1
_ACEOF
d20874 2
a20875 2
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d20877 1
a20877 1
eval "LIB_logwtmp=$ac_res"
d20881 3
a20883 3
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >>confdefs.h <<_ACEOF
d20885 1
a20885 1
_ACEOF
d20887 1
a20887 1
	echo "$as_me:$LINENO: result: yes" >&5
d20891 3
a20893 3
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	echo "$as_me:$LINENO: result: no" >&5
d20897 1
a20897 1
	eval "ac_cv_func_logwtmp=yes"
d20899 1
a20899 1
	cat >>confdefs.h <<_ACEOF
d20901 1
a20901 1
_ACEOF
d20903 1
a20903 1
	cat >>confdefs.h <<_ACEOF
d20905 1
a20905 1
_ACEOF
d20907 1
a20907 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d20912 3
a20914 7




echo "$as_me:$LINENO: checking for logout" >&5
echo $ECHO_N "checking for logout... $ECHO_C" >&6
if test "${ac_cv_funclib_logout+set}" = set; then
d20918 1
a20918 1
if eval "test \"\$ac_cv_func_logout\" != yes" ; then
d20920 1
a20920 1
	for ac_lib in "" util; do
d20930 1
a20930 1
#line $LINENO "configure"
d20932 40
d20973 19
a20991 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d20993 5
d21001 9
a21009 1
logout()
d21015 1
a21015 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d21018 1
a21018 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21021 1
a21021 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21024 1
a21024 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21026 1
a21026 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
d21030 1
a21032 3
	done
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
	LIBS="$ac_save_LIBS"
d21034 9
d21045 12
d21058 15
d21074 3
a21076 1
eval "ac_res=\$ac_cv_funclib_logout"
d21078 4
a21081 1
if false; then
d21083 1
a21083 1
for ac_func in logout
d21086 1
a21086 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d21092 1
a21092 1
#line $LINENO "configure"
a21105 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21123 1
a21123 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d21126 1
a21126 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21129 1
a21129 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21132 1
a21132 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21142 1
a21142 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d21145 1
a21145 1
  cat >>confdefs.h <<_ACEOF
d21147 1
a21147 1
_ACEOF
d21152 5
a21156 5
fi
# logout
eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logout=$ac_res"
d21158 11
a21168 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_logout=yes"
	eval "LIB_logout="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d21170 23
d21194 3
a21196 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_logout=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d21198 1
a21198 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d21200 5
a21204 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d21206 35
d21242 3
d21246 1
d21248 3
a21250 4

echo "$as_me:$LINENO: checking for openpty" >&5
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
if test "${ac_cv_funclib_openpty+set}" = set; then
d21254 2
a21255 13
if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21257 1
a21257 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21261 1
a21261 1
openpty()
d21266 3
a21268 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21270 1
a21270 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21272 2
a21273 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21276 1
a21276 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21278 1
a21278 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
d21282 1
d21284 1
a21284 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
	LIBS="$ac_save_LIBS"
d21286 7
d21296 3
a21298 11

eval "ac_res=\$ac_cv_funclib_openpty"

if false; then

for ac_func in openpty
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21301 3
a21303 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21305 1
a21305 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21309 40
a21348 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d21350 8
d21362 3
a21364 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21366 1
a21366 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21368 2
a21369 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21372 1
a21372 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21374 1
a21374 1
  eval "$as_ac_var=yes"
d21378 1
a21378 1
eval "$as_ac_var=no"
d21380 1
a21380 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21382 3
a21384 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d21386 3
a21388 2
fi
done
a21390 4
# openpty
eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_openpty=$ac_res"
d21392 3
a21394 40
case "$ac_res" in
	yes)
	eval "ac_cv_func_openpty=yes"
	eval "LIB_openpty="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_openpty=no"
	eval "LIB_openpty="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_openpty=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac





echo "$as_me:$LINENO: checking for tgetent" >&5
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
if test "${ac_cv_funclib_tgetent+set}" = set; then
d21398 2
a21399 13
if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" termcap ncurses curses; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21401 1
a21401 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21405 1
a21405 1
tgetent()
d21410 3
a21412 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21414 1
a21414 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21416 2
a21417 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21420 1
a21420 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21422 1
a21422 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
d21426 1
d21428 1
a21428 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
d21430 7
d21440 3
a21442 11

eval "ac_res=\$ac_cv_funclib_tgetent"

if false; then

for ac_func in tgetent
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21445 3
a21447 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21449 1
a21449 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21453 1
a21453 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21458 3
a21460 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21462 1
a21462 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21464 2
a21465 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21468 1
a21468 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21470 1
a21470 1
  eval "$as_ac_var=yes"
d21474 1
a21474 1
eval "$as_ac_var=no"
d21476 1
a21476 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21478 3
a21480 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d21482 3
a21484 2
fi
done
a21486 98
# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_tgetent=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_tgetent=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
































for ac_func in 				\
	_getpty					\
	_scrsize				\
	fcntl					\
	grantpt					\
	mktime					\
	ptsname					\
	rand					\
	revoke					\
	select					\
	setitimer				\
	setpcred				\
	setpgid					\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	strstr					\
	timegm					\
	ttyname					\
	ttyslot					\
	umask					\
	unlockpt				\
	vhangup					\
	yp_get_default_domain			\
d21488 3
a21490 5
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21493 3
a21495 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21497 1
a21497 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21501 1
a21501 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21506 3
a21508 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21510 1
a21510 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21512 2
a21513 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21516 1
a21516 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21518 1
a21518 1
  eval "$as_ac_var=yes"
d21522 1
a21522 1
eval "$as_ac_var=no"
d21524 1
a21524 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21526 7
a21532 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a21534 1
done
d21536 5
d21542 35
d21578 3
d21582 1
d21584 3
a21586 8

for ac_header in capability.h sys/capability.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a21587 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d21589 1
a21589 3
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
d21591 1
a21591 1
#line $LINENO "configure"
d21593 8
a21600 2
$ac_includes_default
#include <$ac_header>
d21603 1
a21603 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d21606 1
a21606 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21609 1
a21609 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21612 1
a21612 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21614 1
a21614 1
  ac_header_compiler=yes
d21618 1
a21618 1
ac_header_compiler=no
d21621 16
a21636 2
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
a21637 3
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
d21639 1
a21639 1
#line $LINENO "configure"
d21641 9
a21649 1
#include <$ac_header>
d21651 9
a21659 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d21661 3
a21663 10
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d21665 3
a21667 1
  ac_cpp_err=yes
d21669 2
a21670 6
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
a21671 3
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d21673 12
a21684 18
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a21686 4
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d21688 30
d21719 1
a21719 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d21723 3
a21725 1
done
d21727 3
d21731 1
d21733 1
d21735 4
a21738 6
for ac_func in sgi_getcapabilitybyname cap_set_proc
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21742 1
a21742 1
#line $LINENO "configure"
d21744 4
a21747 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d21749 5
a21753 1

d21758 3
a21760 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21762 1
a21762 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21764 2
a21765 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21768 1
a21768 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21770 1
a21770 1
  eval "$as_ac_var=yes"
d21774 1
a21774 1
eval "$as_ac_var=no"
d21776 1
a21776 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21778 9
a21786 19
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done







echo "$as_me:$LINENO: checking for getpwnam_r" >&5
echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
d21789 2
a21790 14

if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" c_r; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21792 1
a21792 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21796 4
a21799 1
getpwnam_r()
d21804 3
a21806 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21808 1
a21808 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21810 2
a21811 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21814 1
a21814 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21816 1
a21816 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
d21820 1
d21822 1
a21822 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
d21824 7
d21834 1
d21836 3
a21838 1
eval "ac_res=\$ac_cv_funclib_getpwnam_r"
d21840 1
a21840 1
if false; then
d21842 4
a21845 6
for ac_func in getpwnam_r
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21849 1
a21849 1
#line $LINENO "configure"
d21851 4
a21854 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d21856 1
d21860 1
a21860 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21865 3
a21867 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21869 1
a21869 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21871 2
a21872 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21875 1
a21875 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21877 1
a21877 1
  eval "$as_ac_var=yes"
d21881 1
a21881 1
eval "$as_ac_var=no"
d21883 1
a21883 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21885 9
a21893 54
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test "$ac_cv_func_getpwnam_r" = yes; then
	echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
a21895 5
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
d21897 1
a21897 1
#line $LINENO "configure"
d21899 3
a21901 3

#include <pwd.h>
int main()
d21903 6
a21908 2
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
a21909 1

d21911 3
a21913 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21915 4
a21918 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21921 1
a21921 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21923 1
a21923 1
  ac_cv_func_getpwnam_r_posix=yes
d21925 1
a21925 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d21927 1
a21927 2
( exit $ac_status )
ac_cv_func_getpwnam_r_posix=no
d21929 1
a21929 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d21931 3
a21933 5
LIBS="$ac_libs"
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
if test "$ac_cv_func_getpwnam_r_posix" = yes; then
d21935 3
a21937 3
cat >>confdefs.h <<\_ACEOF
#define POSIX_GETPWNAM_R 1
_ACEOF
d21940 1
d21943 3
d21947 1
d21949 13
a21961 29

for ac_func in getudbnam setlim
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d21963 1
d21967 1
a21967 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21972 3
a21974 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21976 1
a21976 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21978 2
a21979 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21982 1
a21982 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21984 1
a21984 1
  eval "$as_ac_var=yes"
d21988 1
a21988 1
eval "$as_ac_var=no"
d21990 1
a21990 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21992 9
a22000 18
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done






echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
d22003 2
a22004 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22006 1
a22006 7
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22010 4
a22013 1
struct utmp x; x.ut_addr;
d22019 1
a22019 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22022 1
a22022 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22025 1
a22025 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22028 1
a22028 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22030 1
a22030 1
  ac_cv_type_struct_utmp_ut_addr=yes
d22034 1
a22034 1
ac_cv_type_struct_utmp_ut_addr=no
d22038 3
a22040 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
d22042 3
d22046 1
a22046 4
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_ADDR 1
_ACEOF

d22050 3
d22054 1
d22056 4
a22059 4

echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
d22062 2
a22063 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22065 4
a22068 6
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d22070 1
d22074 1
a22074 1
struct utmp x; x.ut_host;
d22080 1
a22080 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22083 1
a22083 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22086 1
a22086 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22089 1
a22089 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22091 1
a22091 1
  ac_cv_type_struct_utmp_ut_host=yes
d22095 1
a22095 1
ac_cv_type_struct_utmp_ut_host=no
d22099 9
a22107 18
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
if test "$ac_cv_type_struct_utmp_ut_host" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_HOST 1
_ACEOF


fi




echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
d22110 2
a22111 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22113 1
a22113 7
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22117 4
a22120 1
struct utmp x; x.ut_id;
d22126 1
a22126 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22129 1
a22129 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22132 1
a22132 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22135 1
a22135 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22137 1
a22137 1
  ac_cv_type_struct_utmp_ut_id=yes
d22141 1
a22141 1
ac_cv_type_struct_utmp_ut_id=no
d22145 3
a22147 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
d22149 3
d22153 1
a22153 4
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_ID 1
_ACEOF

d22157 3
d22161 1
d22163 4
a22166 4

echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
d22169 2
a22170 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22172 4
a22175 6
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d22177 1
d22181 1
a22181 1
struct utmp x; x.ut_pid;
d22187 1
a22187 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22190 1
a22190 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22193 1
a22193 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22196 1
a22196 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22198 1
a22198 1
  ac_cv_type_struct_utmp_ut_pid=yes
d22202 1
a22202 1
ac_cv_type_struct_utmp_ut_pid=no
d22206 9
a22214 18
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_PID 1
_ACEOF


fi




echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
d22217 2
a22218 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22220 1
a22220 7
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22224 4
a22227 1
struct utmp x; x.ut_type;
d22233 1
a22233 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22236 1
a22236 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22239 1
a22239 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22242 1
a22242 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22244 1
a22244 1
  ac_cv_type_struct_utmp_ut_type=yes
d22248 1
a22248 1
ac_cv_type_struct_utmp_ut_type=no
d22252 3
a22254 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
d22256 3
d22260 1
a22260 4
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_TYPE 1
_ACEOF

d22264 3
d22268 1
d22270 3
a22272 4

echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
d22276 2
d22279 1
a22279 1
#line $LINENO "configure"
d22281 2
a22282 14
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct utmp x; x.ut_user;
  ;
  return 0;
}
d22284 3
a22286 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_utmp_ut_user=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_user=no
d22288 3
a22290 1
rm -f conftest.$ac_objext conftest.$ac_ext
a22291 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
d22293 13
a22306 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_USER 1
d22308 2
d22311 3
d22316 6
d22323 3
d22327 3
d22331 2
d22334 3
a22336 3
echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
d22341 1
a22341 1
#line $LINENO "configure"
d22343 3
a22345 6
#include <utmpx.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d22350 1
a22350 1
struct utmpx x; x.ut_exit;
d22356 1
a22356 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22359 1
a22359 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22362 1
a22362 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22365 1
a22365 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22367 1
a22367 1
  ac_cv_type_struct_utmpx_ut_exit=yes
d22371 1
a22371 1
ac_cv_type_struct_utmpx_ut_exit=no
d22374 1
a22375 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
d22377 2
d22380 1
a22380 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMPX_UT_EXIT 1
_ACEOF
d22382 3
d22388 3
a22390 6



echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
d22395 1
a22395 1
#line $LINENO "configure"
d22397 2
a22398 7
#include <utmpx.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22402 1
a22402 1
struct utmpx x; x.ut_syslen;
d22408 1
a22408 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22411 1
a22411 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22414 1
a22414 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22417 1
a22417 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22419 1
a22419 1
  ac_cv_type_struct_utmpx_ut_syslen=yes
d22423 1
a22423 1
ac_cv_type_struct_utmpx_ut_syslen=no
d22427 3
a22429 8
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
_ACEOF
d22431 3
d22437 1
a22437 3


echo "$as_me:$LINENO: checking for int8_t" >&5
d22443 1
a22443 1
#line $LINENO "configure"
a22461 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22474 1
a22474 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22477 1
a22477 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22480 1
a22480 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22483 1
a22483 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22493 1
a22493 1
echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
d22497 1
a22497 1
cat >>confdefs.h <<_ACEOF
d22499 1
a22499 2
_ACEOF

d22502 1
a22502 1
echo "$as_me:$LINENO: checking for int16_t" >&5
d22508 1
a22508 1
#line $LINENO "configure"
a22526 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22539 1
a22539 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22542 1
a22542 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22545 1
a22545 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22548 1
a22548 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22558 1
a22558 1
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
d22562 1
a22562 1
cat >>confdefs.h <<_ACEOF
d22564 1
a22564 2
_ACEOF

d22567 1
a22567 1
echo "$as_me:$LINENO: checking for int32_t" >&5
d22573 1
a22573 1
#line $LINENO "configure"
a22591 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22604 1
a22604 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22607 1
a22607 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22610 1
a22610 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22613 1
a22613 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22623 1
a22623 1
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
d22627 1
a22627 1
cat >>confdefs.h <<_ACEOF
d22629 1
a22629 2
_ACEOF

d22632 1
a22632 1
echo "$as_me:$LINENO: checking for int64_t" >&5
d22638 1
a22638 1
#line $LINENO "configure"
a22656 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22669 1
a22669 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22672 1
a22672 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22675 1
a22675 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22678 1
a22678 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22688 1
a22688 1
echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
d22692 1
a22692 1
cat >>confdefs.h <<_ACEOF
d22694 1
a22694 2
_ACEOF

d22697 1
a22697 1
echo "$as_me:$LINENO: checking for u_int8_t" >&5
d22703 1
a22703 1
#line $LINENO "configure"
a22721 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22734 1
a22734 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22737 1
a22737 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22740 1
a22740 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22743 1
a22743 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22753 1
a22753 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
d22757 1
a22757 1
cat >>confdefs.h <<_ACEOF
d22759 1
a22759 2
_ACEOF

d22762 1
a22762 1
echo "$as_me:$LINENO: checking for u_int16_t" >&5
d22768 1
a22768 1
#line $LINENO "configure"
a22786 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22799 1
a22799 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22802 1
a22802 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22805 1
a22805 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22808 1
a22808 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22818 1
a22818 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
d22822 1
a22822 1
cat >>confdefs.h <<_ACEOF
d22824 1
a22824 2
_ACEOF

d22827 1
a22827 1
echo "$as_me:$LINENO: checking for u_int32_t" >&5
d22833 1
a22833 1
#line $LINENO "configure"
a22851 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22864 1
a22864 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22867 1
a22867 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22870 1
a22870 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22873 1
a22873 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22883 1
a22883 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
d22887 1
a22887 1
cat >>confdefs.h <<_ACEOF
d22889 1
a22889 2
_ACEOF

d22892 1
a22892 1
echo "$as_me:$LINENO: checking for u_int64_t" >&5
d22898 1
a22898 1
#line $LINENO "configure"
a22916 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22929 1
a22929 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22932 1
a22932 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22935 1
a22935 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22938 1
a22938 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22948 1
a22948 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
d22952 1
a22952 1
cat >>confdefs.h <<_ACEOF
d22954 1
a22954 2
_ACEOF

d22957 1
a22957 1
echo "$as_me:$LINENO: checking for uint8_t" >&5
d22963 1
a22963 1
#line $LINENO "configure"
a22981 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22994 1
a22994 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22997 1
a22997 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23000 1
a23000 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23003 1
a23003 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23013 1
a23013 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
d23017 1
a23017 1
cat >>confdefs.h <<_ACEOF
d23019 1
a23019 2
_ACEOF

d23022 1
a23022 1
echo "$as_me:$LINENO: checking for uint16_t" >&5
d23028 1
a23028 1
#line $LINENO "configure"
a23046 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23059 1
a23059 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23062 1
a23062 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23065 1
a23065 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23068 1
a23068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23078 1
a23078 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
d23082 1
a23082 1
cat >>confdefs.h <<_ACEOF
d23084 1
a23084 2
_ACEOF

d23087 1
a23087 1
echo "$as_me:$LINENO: checking for uint32_t" >&5
d23093 1
a23093 1
#line $LINENO "configure"
a23111 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23124 1
a23124 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23127 1
a23127 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23130 1
a23130 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23133 1
a23133 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23143 1
a23143 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
d23147 1
a23147 1
cat >>confdefs.h <<_ACEOF
d23149 1
a23149 2
_ACEOF

d23152 1
a23152 1
echo "$as_me:$LINENO: checking for uint64_t" >&5
d23158 1
a23158 1
#line $LINENO "configure"
a23176 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23189 1
a23189 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23192 1
a23192 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23195 1
a23195 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23198 1
a23198 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23208 1
a23208 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
d23212 1
a23212 1
cat >>confdefs.h <<_ACEOF
d23214 1
a23214 2
_ACEOF

a23217 2


a23219 1

a23225 1

d23230 1
a23230 1
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
a23237 1

d23242 1
a23242 1
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
a23262 1

d23265 1
a23265 1
echo "$as_me:$LINENO: checking for crypto library" >&5
a23267 1
openssl=no
d23287 1
a23287 1
#line $LINENO "configure"
a23295 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
a23299 1
    void *schedule = 0;
d23304 3
a23306 190
    MD4_Init(&md4);
    MD5_Init(&md5);
    SHA1_Init(&sha1);

    des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
    RC4(0, 0, 0, 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

  crypto_lib=libcrypto openssl=yes
  echo "$as_me:$LINENO: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  CPPFLAGS="$save_CPPFLAGS"
  LIBS="$save_LIBS"
fi

if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
	save_CPPFLAGS="$CPPFLAGS"
	save_LIBS="$LIBS"

	cdirs= clibs=
	for i in $LIB_krb4; do
		case "$i" in
		-L*) cdirs="$cdirs $i";;
		-l*) clibs="$clibs $i";;
		esac
	done

	ires=
	for i in $INCLUDE_krb4; do
		CFLAGS="$i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

			#undef KRB5 /* makes md4.h et al unhappy */
			#define KRB4
			#include <openssl/md4.h>
			#include <openssl/md5.h>
			#include <openssl/sha.h>
			#include <openssl/des.h>
			#include <openssl/rc4.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

			MD4_CTX md4;
			MD5_CTX md5;
			SHA_CTX sha1;

			MD4_Init(&md4);
			MD5_Init(&md5);
			SHA1_Init(&sha1);

			des_cbc_encrypt(0, 0, 0, 0, 0, 0);
			RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  openssl=yes ires="$i"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

			#undef KRB5 /* makes md4.h et al unhappy */
			#define KRB4
			#include <md4.h>
			#include <md5.h>
			#include <sha.h>
			#include <des.h>
			#include <rc4.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

			MD4_CTX md4;
			MD5_CTX md5;
			SHA_CTX sha1;

			MD4_Init(&md4);
			MD5_Init(&md5);
			SHA1_Init(&sha1);

			des_cbc_encrypt(0, 0, 0, 0, 0, 0);
			RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires="$i"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	done
	lres=
	for i in $cdirs; do
		for j in $clibs; do
			LIBS="$i $j $save_LIBS"
			if test "$openssl" = yes; then
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

				#undef KRB5 /* makes md4.h et al unhappy */
				#define KRB4
				#include <openssl/md4.h>
				#include <openssl/md5.h>
				#include <openssl/sha.h>
				#include <openssl/des.h>
				#include <openssl/rc4.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

				MD4_CTX md4;
				MD5_CTX md5;
				SHA_CTX sha1;
d23308 2
a23309 3
				MD4_Init(&md4);
				MD5_Init(&md5);
				SHA1_Init(&sha1);
a23310 2
				des_cbc_encrypt(0, 0, 0, 0, 0, 0);
				RC4(0, 0, 0, 0);
d23316 1
a23316 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23319 1
a23319 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23322 1
a23322 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23325 1
a23325 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23327 9
a23335 1
  lres="$i $j"; break 2
d23341 22
a23362 3
			else
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d23365 7
a23371 7
				#undef KRB5 /* makes md4.h et al unhappy */
				#define KRB4
				#include <md4.h>
				#include <md5.h>
				#include <sha.h>
				#include <des.h>
				#include <rc4.h>
a23372 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23377 7
a23383 3
				MD4_CTX md4;
				MD5_CTX md5;
				SHA_CTX sha1;
d23385 2
a23386 3
				MD4_Init(&md4);
				MD5_Init(&md5);
				SHA1_Init(&sha1);
a23387 2
				des_cbc_encrypt(0, 0, 0, 0, 0, 0);
				RC4(0, 0, 0, 0);
d23393 1
a23393 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23396 1
a23396 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23399 1
a23399 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23402 1
a23402 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23404 2
a23405 1
  lres="$i $j"; break 2
d23411 2
a23412 15
			fi
		done
	done
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
	if test "$ires" -a "$lres"; then
		INCLUDE_des="$ires"
		LIB_des="$lres"
		crypto_lib=krb4
		echo "$as_me:$LINENO: result: same as krb4" >&5
echo "${ECHO_T}same as krb4" >&6
		LIB_des_a='$(LIB_des)'
		LIB_des_so='$(LIB_des)'
		LIB_des_appl='$(LIB_des)'
	fi
d23423 1
a23423 1
  echo "$as_me:$LINENO: result: included libdes" >&5
d23428 1
a23428 30
if test "$openssl" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENSSL 1
_ACEOF

fi


if test "$openssl" = yes; then
  HAVE_OPENSSL_TRUE=
  HAVE_OPENSSL_FALSE='#'
else
  HAVE_OPENSSL_TRUE='#'
  HAVE_OPENSSL_FALSE=
fi













echo "$as_me:$LINENO: checking for el_init" >&5
d23446 1
a23446 1
#line $LINENO "configure"
a23448 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23458 1
a23458 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23461 1
a23461 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23464 1
a23464 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23467 1
a23467 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a23481 1

d23489 1
a23489 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d23495 1
a23495 1
#line $LINENO "configure"
a23508 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23526 1
a23526 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23529 1
a23529 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23532 1
a23532 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23535 1
a23535 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23545 1
a23545 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d23548 1
a23548 1
  cat >>confdefs.h <<_ACEOF
d23550 1
a23550 1
_ACEOF
d23565 1
a23565 1
	cat >>confdefs.h <<_ACEOF
d23567 1
a23567 1
_ACEOF
d23569 1
a23569 1
	echo "$as_me:$LINENO: result: yes" >&5
d23575 1
a23575 1
	echo "$as_me:$LINENO: result: no" >&5
d23581 1
a23581 1
	cat >>confdefs.h <<_ACEOF
d23583 1
a23583 1
_ACEOF
d23585 1
a23585 1
	cat >>confdefs.h <<_ACEOF
d23587 1
a23587 1
_ACEOF
d23589 1
a23589 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
a23593 1

d23595 1
a23595 1
	echo "$as_me:$LINENO: checking for four argument el_init" >&5
d23602 1
a23602 1
#line $LINENO "configure"
a23605 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23615 1
a23615 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23618 1
a23618 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23621 1
a23621 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23624 1
a23624 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23634 1
a23634 1
echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
d23638 1
a23638 1
cat >>confdefs.h <<\_ACEOF
d23640 1
a23640 1
_ACEOF
a23644 1

d23652 1
a23652 1
	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
d23654 1
a23654 1
	LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
a23656 1

d23664 4
d23669 1
a23669 2

cat >>confdefs.h <<\_ACEOF
d23671 1
a23671 2
_ACEOF

d23673 1
a23673 4



cat >>confdefs.h <<\_ACEOF
d23675 1
a23675 1
_ACEOF
d23677 1
a23677 1
cat >>confdefs.h <<\_ACEOF
d23679 1
a23679 1
_ACEOF
d23681 1
a23681 1
cat >>confdefs.h <<\_ACEOF
d23683 1
a23683 1
_ACEOF
d23685 1
a23685 1
cat >>confdefs.h <<\_ACEOF
d23687 1
a23687 1
_ACEOF
d23689 1
a23689 1
cat >>confdefs.h <<\_ACEOF
d23691 1
a23691 1
_ACEOF
d23694 1
a23694 1
cat >>confdefs.h <<\_ACEOF
d23696 1
a23696 1
_ACEOF
d23705 1
a23705 5
case "$host" in
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
	;;
*)
	echo "$as_me:$LINENO: checking for getmsg" >&5
d23711 1
a23711 1
#line $LINENO "configure"
a23724 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23742 1
a23742 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23745 1
a23745 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23748 1
a23748 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23751 1
a23751 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23761 1
a23761 1
echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
d23764 5
a23768 4
	if test "$ac_cv_func_getmsg" = "yes"; then
		echo "$as_me:$LINENO: checking if getmsg works" >&5
echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
if test "${ac_cv_func_getmsg_works+set}" = set; then
d23772 1
a23772 1
  ac_cv_func_getmsg_works=no
d23775 1
a23775 1
#line $LINENO "configure"
d23778 2
a23779 2
			#include <stdio.h>
			#include <errno.h>
d23781 8
a23788 8
			int main()
			{
			  int ret;
			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
			  if(ret < 0 && errno == ENOSYS)
			    return 1;
			  return 0;
			}
d23792 1
a23792 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23795 1
a23795 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23797 1
a23797 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23800 1
a23800 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23802 1
a23802 1
  ac_cv_func_getmsg_works=yes
d23807 1
a23807 2
( exit $ac_status )
ac_cv_func_getmsg_works=no
d23812 3
a23814 3
echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
		if test "$ac_cv_func_getmsg_works" = "yes"; then
d23816 1
a23816 1
cat >>confdefs.h <<\_ACEOF
d23818 1
a23818 1
_ACEOF
d23820 1
d23822 9
a23830 6
cat >>confdefs.h <<\_ACEOF
#define STREAMSPTY 1
_ACEOF

		fi
	fi
d23833 4
d23838 3
d23842 1
a23842 4




d23846 1
a23846 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d23854 9
a23862 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_COMPILE_ET="compile_et"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d23869 1
a23869 1
  echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
d23872 1
a23872 1
  echo "$as_me:$LINENO: result: no" >&5
a23875 1

d23879 1
a23879 1
echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
d23896 1
a23896 1
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
d23901 1
a23901 1
#line $LINENO "configure"
d23911 1
a23911 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23914 1
a23914 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23916 1
a23916 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23919 1
a23919 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a23925 1
( exit $ac_status )
d23931 1
a23931 1
echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
d23939 1
a23939 1
  echo "$as_me:$LINENO: checking for com_err" >&5
d23942 1
a23942 1
#line $LINENO "configure"
a23944 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23957 1
a23957 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23960 1
a23960 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23963 1
a23963 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23966 1
a23966 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23975 1
a23975 1
  echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
d23987 1
a23987 1
    { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
d23995 1
a23995 1
    { echo "$as_me:$LINENO: Using our own com_err" >&5
d23999 1
a23999 8







echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
d24008 1
a24008 8
case "${host}" in
*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
*)		ac_cv_want_pam_krb4=yes ;;
esac

if test "$ac_cv_want_pam_krb4" = yes -a \
    "$ac_cv_header_security_pam_modules_h" = yes -a \
    "$enable_shared" = yes; then
d24016 1
a24016 1
echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
a24018 4



# This is done by AC_OUTPUT but we need the result here.
d24022 4
a24025 2

	x="${bindir}"
d24031 3
d24035 1
a24035 66
cat >>confdefs.h <<_ACEOF
#define BINDIR "$x"
_ACEOF

	x="${libdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBDIR "$x"
_ACEOF

	x="${libexecdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBEXECDIR "$x"
_ACEOF

	x="${localstatedir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LOCALSTATEDIR "$x"
_ACEOF

	x="${sbindir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SBINDIR "$x"
_ACEOF

	x="${sysconfdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SYSCONFDIR "$x"
_ACEOF



LTLIBOBJS=`echo "$LIBOBJS" |
	sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`



d24037 1
a24040 1

d24094 19
a24112 190
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
fi

DEFS=-DHAVE_CONFIG_H

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_err_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_vis_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_glob_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OTP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"CATMAN\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_X\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"el_compat\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
d24114 2
d24120 1
a24120 1
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
d24124 1
a24124 1
# Generated by $as_me.
d24131 2
a24135 5

## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

a24143 34
# NLS nuisances.
# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
    { $as_unset LANG || test "${LANG+set}" != set; } ||
      { LANG=C; export LANG; }
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
      { LC_ALL=C; export LC_ALL; }
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
      { LC_TIME=C; export LC_TIME; }
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
      { LC_CTYPE=C; export LC_CTYPE; }
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
      { LANGUAGE=C; export LANGUAGE; }
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
      { LC_COLLATE=C; export LC_COLLATE; }
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
      { LC_NUMERIC=C; export LC_NUMERIC; }
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
      { LC_MESSAGES=C; export LC_MESSAGES; }


d24145 1
a24145 126
as_me=`(basename "$0") 2>/dev/null ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`

# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conftest.sh
  echo  "exit 0"   >>conftest.sh
  chmod +x conftest.sh
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conftest.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d24173 6
a24178 5
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d24180 9
d24197 1
a24197 1
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
a24200 24
# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by Heimdal $as_me 0.4f, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
d24220 1
a24220 1
cat >>$CONFIG_STATUS <<\_ACEOF
d24247 1
a24247 1
_ACEOF
d24249 1
a24249 1
cat >>$CONFIG_STATUS <<_ACEOF
d24251 2
a24252 2
Heimdal config.status 0.4f
configured by $0, generated by GNU Autoconf 2.53,
d24261 1
a24261 1
_ACEOF
d24263 1
a24263 1
cat >>$CONFIG_STATUS <<\_ACEOF
d24285 2
a24286 2
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
d24290 2
a24291 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d24296 1
a24296 1
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
d24315 1
a24315 1
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
d24327 15
d24343 1
d24345 1
a24345 1
cat >>$CONFIG_STATUS <<_ACEOF
d24350 2
a24351 3
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"

_ACEOF
d24353 1
d24355 1
a24355 2

cat >>$CONFIG_STATUS <<\_ACEOF
d24412 1
a24412 1
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d24414 1
a24414 1
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
d24452 1
a24452 1
_ACEOF
d24454 1
a24454 1
cat >>$CONFIG_STATUS <<_ACEOF
a24466 6
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
d24482 5
a24489 1
s,@@DEFS@@,$DEFS,;t t
d24493 2
a24515 2
s,@@STRIP@@,$STRIP,;t t
s,@@ac_ct_STRIP@@,$ac_ct_STRIP,;t t
d24519 3
a24524 3
s,@@AMDEP_TRUE@@,$AMDEP_TRUE,;t t
s,@@AMDEP_FALSE@@,$AMDEP_FALSE,;t t
s,@@AMDEPBACKSLASH@@,$AMDEPBACKSLASH,;t t
a24538 2
s,@@LN_S@@,$LN_S,;t t
s,@@ECHO@@,$ECHO,;t t
d24541 1
a24548 6
s,@@HAVE_DB1_TRUE@@,$HAVE_DB1_TRUE,;t t
s,@@HAVE_DB1_FALSE@@,$HAVE_DB1_FALSE,;t t
s,@@HAVE_DB3_TRUE@@,$HAVE_DB3_TRUE,;t t
s,@@HAVE_DB3_FALSE@@,$HAVE_DB3_FALSE,;t t
s,@@HAVE_NDBM_TRUE@@,$HAVE_NDBM_TRUE,;t t
s,@@HAVE_NDBM_FALSE@@,$HAVE_NDBM_FALSE,;t t
a24565 1
s,@@LIBOBJS@@,$LIBOBJS,;t t
d24571 1
a24590 2
s,@@LIB_krb_kdctimeofday@@,$LIB_krb_kdctimeofday,;t t
s,@@LIB_krb_get_kdc_time_diff@@,$LIB_krb_get_kdc_time_diff,;t t
d24600 2
a24601 3
s,@@dpagaix_cflags@@,$dpagaix_cflags,;t t
s,@@dpagaix_ldadd@@,$dpagaix_ldadd,;t t
s,@@dpagaix_ldflags@@,$dpagaix_ldflags,;t t
d24620 2
a24624 3
s,@@LIB_loadquery@@,$LIB_loadquery,;t t
s,@@AIX_DYNAMIC_AFS_TRUE@@,$AIX_DYNAMIC_AFS_TRUE,;t t
s,@@AIX_DYNAMIC_AFS_FALSE@@,$AIX_DYNAMIC_AFS_FALSE,;t t
a24643 2
s,@@HAVE_OPENSSL_TRUE@@,$HAVE_OPENSSL_TRUE,;t t
s,@@HAVE_OPENSSL_FALSE@@,$HAVE_OPENSSL_FALSE,;t t
d24662 1
a24662 1
_ACEOF
d24664 1
a24664 1
  cat >>$CONFIG_STATUS <<\_ACEOF
d24703 2
a24704 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d24718 1
a24718 2
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d24729 2
a24730 1
  { case "$ac_dir" in
d24741 1
a24741 5
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }
d24746 6
a24751 1
  ac_builddir=.
d24753 10
a24762 19
if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
d24764 3
a24766 10
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

d24770 1
a24770 1
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d24774 1
a24774 1
    { echo "$as_me:$LINENO: creating $ac_file" >&5
d24780 3
a24782 8
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated from `echo $ac_file_in |
                                     sed 's,.*/,,'` by configure."
d24792 1
a24792 1
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24805 1
a24805 1
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24811 2
a24812 2
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
d24815 2
a24816 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
a24820 1
s,@@abs_srcdir@@,$ac_abs_srcdir,;t t
a24821 5
s,@@abs_top_srcdir@@,$ac_abs_top_srcdir,;t t
s,@@builddir@@,$ac_builddir,;t t
s,@@abs_builddir@@,$ac_abs_builddir,;t t
s,@@top_builddir@@,$ac_top_builddir,;t t
s,@@abs_top_builddir@@,$ac_abs_top_builddir,;t t
d24833 2
a24834 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d24866 1
a24866 1
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
d24877 1
a24877 1
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24890 1
a24890 1
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24899 1
a24899 1
_ACEOF
d24915 1
a24915 1
cat >confdef2sed.sed <<\_ACEOF
d24920 1
a24920 1
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
d24924 1
a24924 1
_ACEOF
d24935 1
a24935 1
cat >>conftest.undefs <<\_ACEOF
d24937 1
a24937 1
_ACEOF
d24994 1
a24994 1
cat >>$CONFIG_STATUS <<\_ACEOF
d24997 1
a24997 1
  #    /* config.h.  Generated by config.status.  */
d24999 1
a24999 1
    echo "/* Generated by configure.  */" >$tmp/config.h
d25001 1
a25001 1
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
d25007 1
a25007 1
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
d25010 1
a25010 2
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d25021 2
a25022 1
      { case "$ac_dir" in
d25033 1
a25033 5
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }
d25038 1
d25049 1
a25049 1
echo 'timestamp for include/config.h' >"include/stamp-h1"
d25053 2
a25054 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
a25061 43
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_dest" : 'X\(//\)[^/]' \| \
         X"$ac_dest" : 'X\(//\)$' \| \
         X"$ac_dest" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a25062 3

  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
d25064 8
a25071 25
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  # Strip MF so we end up with the name of the file.
  mf=`echo "$mf" | sed -e 's/:.*$//'`
  # Check whether this is an Automake generated Makefile or not.
  # We used to match only the files named `Makefile.in', but
  # some people rename them; so instead we look at the file content.
  # Grep'ing the first line is not enough: some people post-process
  # each Makefile.in and add a new line on top of each file to say so.
  # So let's grep whole file.
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    dirpart=`(dirname "$mf") 2>/dev/null ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$mf" : 'X\(//\)[^/]' \| \
         X"$mf" : 'X\(//\)$' \| \
         X"$mf" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  else
    continue
  fi
d25096 2
a25097 32
    fdir=`(dirname "$file") 2>/dev/null ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$file" : 'X\(//\)[^/]' \| \
         X"$file" : 'X\(//\)$' \| \
         X"$file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    { case $dirpart/$fdir in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy=$dirpart/$fdir
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
   { (exit 1); exit 1; }; }
    ;;
  esac
done; }

d25105 1
a25105 1
_ACEOF
d25107 1
a25107 1
cat >>$CONFIG_STATUS <<\_ACEOF
d25110 1
a25110 1
_ACEOF
a25113 1

d25132 1
a25132 1

d25135 2
a25136 2
const char *heimdal_long_version = "@@(#)\$Version: $PACKAGE_STRING by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
const char *heimdal_version = "Heimdal 0.4f";
@


1.1.1.4.2.4
log
@MFC: Update Heimdal Kerberos to 0.5 around 2002/09/16.

Approved by:	re (jhb)
@
text
@d2 1
a2 1
# From configure.in Revision: 1.325 .
a422 1
ac_unique_file="kuser/kinit.c"
a1003 1
  --disable-largefile     omit support for large files
d1008 1
a1009 1
  --disable-berkeley-db   if you don't want berkeley db
a1011 1
  --disable-mmap          disable use of mmap
d1023 1
a1033 5
  --with-openssl=dir      use openssl in dir
  --with-openssl-lib=dir  use openssl libraries in dir
  --with-openssl-include=dir
                          use openssl headers in dir
  --without-ipv6          do not enable IPv6 support
d1047 4
a1419 1

a3068 314
# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then

cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
_ACEOF

fi
rm -f conftest*
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF

fi
rm -f conftest*
fi


d4921 1
a4921 1
  echo '#line 5239 "configure"' > conftest.$ac_ext
d5457 1
a5457 1
if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
d7250 1
a7250 1
#line 7568 "configure"
d7348 1
a7348 1
#line 7666 "configure"
d8089 3
a8092 3
# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"
d8096 2
a8097 11
# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;
d8099 1
a8099 11
# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;
a8100 3
# Check whether --with-openldap-config or --without-openldap-config was given.
if test "${with_openldap_config+set}" = set; then
  withval="$with_openldap_config"
a8101 1
fi;
d8105 5
a8109 2
echo "$as_me:$LINENO: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6
d8111 41
a8151 5
case "$with_openldap" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_openldap" ;;
esac
d8153 34
a8186 17
header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_openldap_include" = ""; then
		if test -d "$i/include/openldap"; then
			header_dirs="$header_dirs $i/include/openldap"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_openldap_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done
d8188 21
a8208 2
if test "$with_openldap_include"; then
	header_dirs="$with_openldap_include $header_dirs"
d8210 3
a8212 2
if test "$with_openldap_lib"; then
	lib_dirs="$with_openldap_lib $lib_dirs"
d8214 4
a8218 2
if test "$with_openldap_config" = ""; then
	with_openldap_config=''
d8221 6
a8226 2
openldap_cflags=
openldap_libs=
d8228 5
a8232 8
case "$with_openldap_config" in
yes|no|"")
	;;
*)
	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
	openldap_libs="`$with_openldap_config --libs 2>&1`"
	;;
esac
d8234 11
a8244 7
found=no
if test "$with_openldap" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$openldap_cflags" -a "$openldap_libs"; then
		CFLAGS="$openldap_cflags $save_CFLAGS"
		LIBS="$openldap_libs $save_LIBS"
d8248 10
a8257 2
#include <lber.h>
#include <ldap.h>
d8267 1
a8267 1

d8284 1
a8284 6

			INCLUDE_openldap="$openldap_cflags"
			LIB_openldap="$openldap_libs"
			echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
echo "${ECHO_T}from $with_openldap_config" >&6
			found=yes
d8290 21
a8310 6
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
d8313 12
a8324 2
#include <lber.h>
#include <ldap.h>
d8334 7
a8340 36

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lldap -llber  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a8341 3
int
main ()
{
d8359 1
a8359 1
  lres=$i;break
d8363 1
a8365 11
		done
		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
			INCLUDE_openldap="-I$ires"
			LIB_openldap="-L$lres -lldap -llber "
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d8367 9
d8377 5
a8381 1
if test "$found" = yes; then
d8383 6
a8388 2
cat >>confdefs.h <<_ACEOF
#define OPENLDAP 1
d8391 6
a8396 5
	with_openldap=yes
else
	with_openldap=no
	INCLUDE_openldap=
	LIB_openldap=
d8399 7
a8405 1
fi
d8407 3
d8411 4
d8418 7
d8426 3
d8430 1
a8430 17
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"

fi;

# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
a8431 11
# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
a8432 3
# Check whether --with-krb4-config or --without-krb4-config was given.
if test "${with_krb4_config+set}" = set; then
  withval="$with_krb4_config"
a8433 1
fi;
d8436 5
d8442 11
a8452 57
echo "$as_me:$LINENO: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6

case "$with_krb4" in
yes|"") d='/usr/athena' ;;
no)	d= ;;
*)	d="$with_krb4" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_krb4_include" = ""; then
		if test -d "$i/include/krb4"; then
			header_dirs="$header_dirs $i/include/krb4"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_krb4_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_krb4_include"; then
	header_dirs="$with_krb4_include $header_dirs"
fi
if test "$with_krb4_lib"; then
	lib_dirs="$with_krb4_lib $lib_dirs"
fi

if test "$with_krb4_config" = ""; then
	with_krb4_config='krb4-config'
fi

krb4_cflags=
krb4_libs=

case "$with_krb4_config" in
yes|no|"")
	;;
*)
	krb4_cflags="`$with_krb4_config --cflags 2>&1`"
	krb4_libs="`$with_krb4_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_krb4" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$krb4_cflags" -a "$krb4_libs"; then
		CFLAGS="$krb4_cflags $save_CFLAGS"
		LIBS="$krb4_libs $save_LIBS"
d8456 12
a8467 1
#include <krb.h>
d8477 1
a8477 1

d8494 1
a8494 6

			INCLUDE_krb4="$krb4_cflags"
			LIB_krb4="$krb4_libs"
			echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
echo "${ECHO_T}from $with_krb4_config" >&6
			found=yes
d8500 21
a8520 6
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
d8523 6
a8528 6
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8530 4
a8533 3
int
main ()
{
a8534 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lkrb -ldes $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
d8544 8
d8569 1
a8569 1
  lres=$i;break
d8573 1
a8575 11
		done
		if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
			INCLUDE_krb4="-I$ires"
			LIB_krb4="-L$lres -lkrb -ldes"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d8577 9
d8587 5
a8591 1
if test "$found" = yes; then
d8593 6
a8598 2
cat >>confdefs.h <<_ACEOF
#define KRB4 1
d8601 6
a8606 5
	with_krb4=yes
else
	with_krb4=no
	INCLUDE_krb4=
	LIB_krb4=
d8609 26
a8634 1
fi
d8636 3
d8640 2
d8644 1
a8645 7
LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 $LIBS"
	EXTRA_LIB45=lib45.a
d8647 3
a8649 3
	echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
d8652 13
a8664 1
  cat >conftest.$ac_ext <<_ACEOF
d8667 6
a8672 1
#include <krb.h>
d8682 1
a8682 3

		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
d8687 3
a8689 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8693 1
a8693 1
         { ac_try='test -s conftest.$ac_objext'
d8699 1
a8699 1
  ac_cv_func_krb_put_int_four=yes
a8702 1
ac_cv_func_krb_put_int_four=no
d8704 5
a8708 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8710 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then
a8711 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
_ACEOF
d8713 1
a8713 1
	fi
d8715 1
d8717 6
a8722 3
	echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
d8728 12
a8739 1
#include <krb.h>
d8749 8
a8757 1
		int x = KRB_VERIFY_SECURE
d8762 3
a8764 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8768 1
a8768 1
         { ac_try='test -s conftest.$ac_objext'
d8774 1
a8774 1
  ac_cv_func_krb_verify_secure=yes
d8778 11
a8788 1
ac_cv_func_krb_verify_secure=no
d8790 1
a8790 1
rm -f conftest.$ac_objext conftest.$ac_ext
d8793 46
a8838 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then
d8841 1
a8841 1
#define KRB_VERIFY_SECURE 1
d8846 1
a8846 1
#define KRB_VERIFY_SECURE_FAIL 2
d8849 22
a8870 4
	fi
	echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
d8872 3
d8876 4
a8879 1
  cat >conftest.$ac_ext <<_ACEOF
d8882 2
a8883 15
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		int x = KRB_VERIFY_NOT_SECURE
  ;
  return 0;
}
d8897 1
a8897 1
  ac_cv_func_krb_verify_not_secure=yes
d8901 1
a8901 1
ac_cv_func_krb_verify_not_secure=no
d8904 2
d8907 56
d8964 2
a8965 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
d8967 4
a8970 2
cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_NOT_SECURE 0
d8973 4
a8976 1
	fi
d8981 3
a8983 3
echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
d8987 1
a8987 1
if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
d8989 1
a8989 1
	for ac_lib in "" ; do
d9002 8
d9019 1
a9019 1
krb_enable_debug()
d9036 1
a9036 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
d9043 1
a9043 1
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
d9050 1
a9050 1
eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
d9054 1
a9054 1
for ac_func in krb_enable_debug
d9130 2
a9131 2
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d9133 1
a9133 1
eval "LIB_krb_enable_debug=$ac_res"
d9137 2
a9138 2
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
d9147 2
a9148 2
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
d9153 1
a9153 1
	eval "ac_cv_func_krb_enable_debug=yes"
d9169 133
a9301 2
if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
d9304 2
d9310 3
a9312 3
echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
d9316 1
a9316 1
if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
d9318 1
a9318 1
	for ac_lib in "" ; do
d9331 4
d9344 1
a9344 1
krb_disable_debug()
d9361 1
a9361 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d9368 1
a9368 1
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
d9375 1
a9375 1
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
d9379 1
a9379 1
for ac_func in krb_disable_debug
d9455 2
a9456 2
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d9458 1
a9458 1
eval "LIB_krb_disable_debug=$ac_res"
d9462 2
a9463 2
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
d9472 2
a9473 2
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
d9478 1
a9478 1
	eval "ac_cv_func_krb_disable_debug=yes"
a9493 3
if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
fi
d9495 6
d9502 10
d9513 1
d9515 7
a9521 5

echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9523 1
a9523 13

if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d9527 8
a9534 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9536 1
a9536 2
int
main ()
d9538 6
a9543 2
krb_get_our_ip_for_realm()
  ;
d9547 1
a9547 1
rm -f conftest.$ac_objext conftest$ac_exeext
d9552 1
a9552 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
a9557 10
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
	LIBS="$ac_save_LIBS"
fi
d9559 54
a9612 1
fi
a9614 1
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
a9615 1
if false; then
d9617 3
a9619 6
for ac_func in krb_get_our_ip_for_realm
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9622 2
d9627 3
a9629 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
a9631 3
  ;
  return 0;
}
d9633 3
a9635 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9639 1
a9639 1
         { ac_try='test -s conftest$ac_exeext'
d9645 1
a9645 1
  eval "$as_ac_var=yes"
a9648 11
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d9650 1
d9654 7
a9660 11
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d9662 3
a9664 15

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d9666 1
a9666 8

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
d9669 3
a9671 12

if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi





echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
d9674 1
a9674 13

if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d9687 47
a9733 1
krb_kdctimeofday()
d9738 3
a9740 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9744 1
a9744 1
         { ac_try='test -s conftest$ac_exeext'
d9750 1
a9750 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
d9754 1
d9756 1
a9756 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
	LIBS="$ac_save_LIBS"
d9758 7
d9768 3
a9770 11

eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"

if false; then

for ac_func in krb_kdctimeofday
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9776 1
a9776 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9786 4
a9789 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9794 3
a9796 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9800 1
a9800 1
         { ac_try='test -s conftest$ac_exeext'
d9806 1
a9806 1
  eval "$as_ac_var=yes"
d9810 1
a9810 1
eval "$as_ac_var=no"
d9812 1
a9812 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9814 5
a9818 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d9820 2
a9821 31
fi
done

fi
# krb_kdctimeofday
eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_kdctimeofday=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "LIB_krb_kdctimeofday="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_kdctimeofday=no"
	eval "LIB_krb_kdctimeofday="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
a9823 12
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_kdctimeofday"; then
	LIBS="$LIB_krb_kdctimeofday $LIBS"
d9826 3
a9828 9






echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
d9831 1
a9831 13

if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d9834 1
a9834 1

d9844 4
a9847 1
krb_get_kdc_time_diff()
d9852 3
a9854 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9858 1
a9858 1
         { ac_try='test -s conftest$ac_exeext'
d9864 1
a9864 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
d9868 1
d9870 30
a9899 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
	LIBS="$ac_save_LIBS"
d9901 1
d9904 7
d9913 5
a9917 1
eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
a9918 1
if false; then
d9920 3
a9922 6
for ac_func in krb_get_kdc_time_diff
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9928 5
a9932 4
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
d9934 3
a9936 1
extern "C"
a9937 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9948 1
a9948 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9953 3
a9955 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9959 1
a9959 1
         { ac_try='test -s conftest$ac_exeext'
d9965 1
a9965 1
  eval "$as_ac_var=yes"
d9969 1
a9969 1
eval "$as_ac_var=no"
d9971 1
a9971 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9973 5
a9977 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9979 2
fi
done
d9981 1
a9981 5
fi
# krb_get_kdc_time_diff
eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_kdc_time_diff=$ac_res"
d9983 2
a9984 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
	eval "LIB_krb_get_kdc_time_diff="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d9987 1
a9987 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_kdc_time_diff=no"
	eval "LIB_krb_get_kdc_time_diff="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a9988 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
a9989 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d9992 3
a9994 9
if test -n "$LIB_krb_get_kdc_time_diff"; then
	LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
fi



	echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
d10000 3
a10002 36
#include <krb.h>
			#include <prot.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		char *x = KRB_SENDAUTH_VERS
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_sendauth_vers=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_sendauth_vers=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
a10003 22
fi
echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
	if test "$ac_cv_func_krb_sendauth_vers" != yes; then

cat >>confdefs.h <<\_ACEOF
#define KRB_SENDAUTH_VERS "AUTHV0.1"
_ACEOF

	fi
	echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
d10013 2
a10014 1

d10031 1
a10031 1
  ac_cv_func_krb_mk_req_const=yes
d10035 1
a10035 1
ac_cv_func_krb_mk_req_const=no
a10037 1

d10039 3
a10041 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
d10044 1
a10044 1
#define KRB_MK_REQ_CONST 1
a10046 14
	fi

	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
fi


if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
d10051 8
a10058 6
if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
d10060 2
a10061 6



if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
d10063 4
a10066 84
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi



cat >>confdefs.h <<\_ACEOF
#define KRB5 1
_ACEOF


crypto_lib=unknown


# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"

fi;


# Check whether --with-openssl-lib or --without-openssl-lib was given.
if test "${with_openssl_lib+set}" = set; then
  withval="$with_openssl_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;


# Check whether --with-openssl-include or --without-openssl-include was given.
if test "${with_openssl_include+set}" = set; then
  withval="$with_openssl_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
echo "$as_me: error: No argument for --with-openssl-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;

case "$with_openssl" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openssl_include" = ""; then
		with_openssl_include="$with_openssl/include"
	fi
	if test "$with_openssl_lib" = ""; then
		with_openssl_lib="$with_openssl/lib$abilibdirext"
	fi
	;;
esac


DIR_des=

echo "$as_me:$LINENO: checking for crypto library" >&5
echo $ECHO_N "checking for crypto library... $ECHO_C" >&6

openssl=no
old_hash=no

if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
	save_CPPFLAGS="$CPPFLAGS"
	save_LIBS="$LIBS"

	cdirs= clibs=
	for i in $LIB_krb4; do
		case "$i" in
		-L*) cdirs="$cdirs $i";;
		-l*) clibs="$clibs $i";;
		esac
	done

	ires=
	for i in $INCLUDE_krb4; do
		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
d10069 2
a10070 54

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
d10084 1
a10084 1
  openssl=yes ires="$i"; break
d10088 1
d10091 2
a10092 4
		CFLAGS="$i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
d10094 4
a10097 74
		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  openssl=no ires="$i"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CFLAGS="-DOLD_HASH_NAMES $i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
d10100 1
a10100 54

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
d10102 2
a10103 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d10105 3
d10109 6
a10114 8
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  openssl=no ires="$i" old_hash=yes; break
d10116 1
a10116 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10118 2
a10119 77
rm -f conftest.$ac_objext conftest.$ac_ext
	done
	lres=
	for i in $cdirs; do
		for j in $clibs; do
			LIBS="$i $j $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lres="$i $j"; break 2
d10122 2
a10123 17
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		done
	done
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
	if test "$ires" -a "$lres"; then
		INCLUDE_des="$ires"
		LIB_des="$lres"
		crypto_lib=krb4
		echo "$as_me:$LINENO: result: same as krb4" >&5
echo "${ECHO_T}same as krb4" >&6
		LIB_des_a='$(LIB_des)'
		LIB_des_so='$(LIB_des)'
		LIB_des_appl='$(LIB_des)'
	fi
d10125 3
d10129 19
a10147 92
if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	INCLUDE_des=
	LIB_des=
	if test "$with_openssl_include" != ""; then
		INCLUDE_des="-I${with_openssl}/include"
	fi
	if test "$with_openssl_lib" != ""; then
		LIB_des="-L${with_openssl}/lib"
	fi
	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
	LIB_des="${LIB_des} -lcrypto"
	LIB_des_a="$LIB_des"
	LIB_des_so="$LIB_des"
	LIB_des_appl="$LIB_des"
	LIBS="${LIBS} ${LIB_des}"
	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

		crypto_lib=libcrypto openssl=yes
		echo "$as_me:$LINENO: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6

d10149 1
a10149 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10151 2
a10152 40
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$crypto_lib" = "unknown"; then

  DIR_des='des'
  LIB_des='$(top_builddir)/lib/des/libdes.la'
  LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
  LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
  LIB_des_appl="-ldes"

  echo "$as_me:$LINENO: result: included libdes" >&5
echo "${ECHO_T}included libdes" >&6

fi

if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
	{ { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
required by Kerberos 5; to continue, you need to install a newer
Kerberos 4 or configure --without-krb4" >&5
echo "$as_me: error: the crypto library used by krb4 lacks features
required by Kerberos 5; to continue, you need to install a newer
Kerberos 4 or configure --without-krb4" >&2;}
   { (exit 1); exit 1; }; }
fi

if test "$openssl" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENSSL 1
_ACEOF

fi
if test "$old_hash" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OLD_HASH_NAMES 1
_ACEOF
d10155 4
a10159 7

if test "$openssl" = yes; then
  HAVE_OPENSSL_TRUE=
  HAVE_OPENSSL_FALSE='#'
else
  HAVE_OPENSSL_TRUE='#'
  HAVE_OPENSSL_FALSE=
d10162 1
d10164 1
d10166 1
d10168 13
a10181 13




# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\_ACEOF
#define DCE 1
d10183 15
a10197 1

d10199 2
a10200 5


if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
d10202 5
a10206 2
  DCE_TRUE='#'
  DCE_FALSE=
d10208 8
a10216 10

## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
	dpagaix_ldflags=
else
	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
d10218 2
d10222 1
a10222 25



# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
if test "${enable_berkeley_db+set}" = set; then
  enableval="$enable_berkeley_db"


fi;

have_ndbm=no
db_type=unknown

if test "$enable_berkeley_db" != no; then





for ac_header in 				\
	db4/db.h				\
	db3/db.h				\
	db.h					\
	db_185.h				\

a10334 72





echo "$as_me:$LINENO: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db4 db3 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

  #include <stdio.h>
  #ifdef HAVE_DB4_DB_H
  #include <db4/db.h>
  #elif defined(HAVE_DB3_DB_H)
  #include <db3/db.h>
  #else
  #include <db.h>
  #endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
db_create(NULL, NULL, 0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

a10337 1
eval "ac_res=\$ac_cv_funclib_db_create"
a10338 1
if false; then
d10340 1
a10340 1
for ac_func in db_create
d10415 13
d10429 3
a10431 4
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"
d10433 2
a10434 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d10437 26
a10462 14
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d10464 26
d10491 2
a10492 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d10495 23
a10517 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d10520 12
a10532 7
  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi
a10533 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_DB3 1
_ACEOF
a10534 1
  else
d10540 4
a10543 3
echo "$as_me:$LINENO: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
d10546 1
a10546 13

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db2 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d10549 6
a10554 12

    #include <stdio.h>
    #if defined(HAVE_DB2_DB_H)
    #include <db2/db.h>
    #elif defined(HAVE_DB_185_H)
    #include <db_185.h>
    #elif defined(HAVE_DB_H)
    #include <db.h>
    #else
    #error no db.h
    #endif

d10564 1
a10564 1
dbopen(NULL, 0, 0, 0, NULL)
d10569 3
a10571 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10575 1
a10575 1
         { ac_try='test -s conftest$ac_exeext'
d10581 1
a10581 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
d10585 1
d10587 1
a10587 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
d10589 5
a10593 6

fi


eval "ac_res=\$ac_cv_funclib_dbopen"

d10595 3
a10597 7

for ac_func in dbopen
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10603 1
a10603 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10613 4
a10616 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10621 3
a10623 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10627 1
a10627 1
         { ac_try='test -s conftest$ac_exeext'
d10633 1
a10633 1
  eval "$as_ac_var=yes"
d10637 1
a10637 1
eval "$as_ac_var=no"
d10639 1
a10639 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10641 6
a10646 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d10649 1
a10650 1
done
a10652 47
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbopen" = "yes"; then
      db_type=db1
      if test "$ac_cv_funclib_dbopen" != "yes"; then
        DBLIB="$ac_cv_funclib_dbopen"
      else
        DBLIB=""
      fi
d10654 2
a10655 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_DB1 1
d10658 2
a10659 2
    fi
  fi
a10661 1
  if test "$ac_cv_func_dbm_firstkey" != yes; then
d10664 4
a10667 3
echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d10670 1
a10670 13

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d10673 5
a10677 5

    #include <stdio.h>
    #define DB_DBM_HSEARCH 1
    #include <db.h>
    DBM *dbm;
d10688 1
a10688 1
dbm_firstkey(NULL)
d10693 3
a10695 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10699 1
a10699 1
         { ac_try='test -s conftest$ac_exeext'
d10705 1
a10705 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d10709 1
d10711 1
a10711 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
d10713 5
a10717 6

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

d10719 3
a10721 7

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10727 1
a10727 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10737 4
a10740 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10745 3
a10747 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10751 1
a10751 1
         { ac_try='test -s conftest$ac_exeext'
d10757 1
a10757 1
  eval "$as_ac_var=yes"
d10761 1
a10761 1
eval "$as_ac_var=no"
d10763 1
a10763 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10765 6
a10770 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d10773 1
a10774 1
done
a10776 4
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"
d10778 2
a10779 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d10782 38
a10819 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a10820 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
a10821 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10824 6
    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi
a10825 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_DB_NDBM 1
_ACEOF
a10827 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF
a10828 5
    else
      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey
    fi
  fi
a10829 1
fi # berkeley db
a10830 1
if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
d10834 45
a10878 3
for ac_header in 				\
	dbm.h					\
	ndbm.h					\
d10996 48
a11043 3
echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d11047 1
a11047 1
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
d11049 1
a11049 1
	for ac_lib in "" ndbm; do
a11061 8
  #include <stdio.h>
  #if defined(HAVE_NDBM_H)
  #include <ndbm.h>
  #elif defined(HAVE_DBM_H)
  #include <dbm.h>
  #endif
  DBM *dbm;

d11071 1
a11071 1
dbm_firstkey(NULL)
d11088 1
a11088 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d11095 1
a11095 1
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
d11102 1
a11102 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d11106 1
a11106 1
for ac_func in dbm_firstkey
d11182 2
a11183 2
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11185 1
a11185 1
eval "LIB_dbm_firstkey=$ac_res"
d11189 2
a11190 2
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
d11199 2
a11200 2
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
d11205 1
a11205 1
	eval "ac_cv_func_dbm_firstkey=yes"
d11221 2
a11222 133

  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
    have_ndbm=yes
    if test "$db_type" = "unknown"; then
      db_type=ndbm
      DBLIB="$LIB_NDBM"
    fi
  else

    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey


for ac_header in 				\
	  gdbm/ndbm.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

a11224 1
done
d11229 3
a11231 4

echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d11235 1
a11235 1
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
d11237 1
a11237 1
	for ac_lib in "" gdbm; do
a11249 4
    #include <stdio.h>
    #include <gdbm/ndbm.h>
    DBM *dbm;

d11259 1
a11259 1
dbm_firstkey(NULL)
d11276 1
a11276 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d11283 1
a11283 1
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
d11290 1
a11290 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d11294 1
a11294 1
for ac_func in dbm_firstkey
d11370 2
a11371 2
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11373 1
a11373 1
eval "LIB_dbm_firstkey=$ac_res"
d11377 2
a11378 2
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
d11387 2
a11388 2
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
d11393 1
a11393 1
	eval "ac_cv_func_dbm_firstkey=yes"
d11409 4
a11413 6
    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
	LIB_NDBM=""
      fi
a11414 10
cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
	db_type=ndbm
	DBLIB="$LIB_NDBM"
      fi
    fi
  fi
a11415 1
fi # unknown
d11417 4
a11420 7
if test "$have_ndbm" = "yes"; then
  echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d11422 13
a11434 1
  cat >conftest.$ac_ext <<_ACEOF
d11438 5
a11442 8
#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
d11444 2
a11445 1
int main()
d11447 2
a11448 6
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
d11452 1
a11452 1
rm -f conftest$ac_exeext
d11457 2
a11458 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d11464 1
a11464 13

    if test -f conftest.db; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
d11466 1
a11466 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a11467 5
( exit $ac_status )
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11469 4
a11474 8


if test "$db_type" = db1; then
  HAVE_DB1_TRUE=
  HAVE_DB1_FALSE='#'
else
  HAVE_DB1_TRUE='#'
  HAVE_DB1_FALSE=
d11478 1
a11478 7
if test "$db_type" = db3; then
  HAVE_DB3_TRUE=
  HAVE_DB3_FALSE='#'
else
  HAVE_DB3_TRUE='#'
  HAVE_DB3_FALSE=
fi
d11480 1
d11482 6
a11487 23
if test "$db_type" = ndbm; then
  HAVE_NDBM_TRUE=
  HAVE_NDBM_FALSE='#'
else
  HAVE_NDBM_TRUE='#'
  HAVE_NDBM_FALSE=
fi

z=""
for i in $LDFLAGS; do
	case "$i" in
	-L*) z="$z $i";;
	esac
done
DBLIB="$z $DBLIB"





echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
a11489 2
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
d11493 28
a11520 3
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
d11523 3
d11527 3
a11529 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11533 1
a11533 1
         { ac_try='test -s conftest.$ac_objext'
d11539 1
a11539 1
  ac_cv_c_inline=$ac_kw; break
d11543 11
a11554 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11558 27
a11584 7
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\_ACEOF
#define inline
d11586 3
a11588 3
 ;;
  *)  cat >>confdefs.h <<_ACEOF
#define inline $ac_cv_c_inline
d11590 4
a11593 1
 ;;
d11596 20
a11615 3
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
d11618 7
a11624 1
  cat >conftest.$ac_ext <<_ACEOF
d11628 3
a11630 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11632 14
a11645 27
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;
d11647 3
a11649 20
    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
d11651 14
d11666 4
a11669 3
  ;
  return 0;
}
d11671 5
a11675 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d11677 16
a11692 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11694 7
a11700 3
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
d11702 4
a11705 2
cat >>confdefs.h <<\_ACEOF
#define const
d11707 41
d11749 16
a11764 1
fi
a11765 9
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
d11775 11
a11785 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d11790 3
a11792 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11796 1
a11796 1
         { ac_try='test -s conftest.$ac_objext'
d11802 1
a11802 1
  ac_cv_type_size_t=yes
d11806 1
a11806 1
ac_cv_type_size_t=no
d11808 1
a11808 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11810 3
a11812 5
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
d11814 2
a11815 2
cat >>confdefs.h <<_ACEOF
#define size_t unsigned
d11818 2
d11822 4
a11825 3
echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
d11828 2
a11829 1
  cat >conftest.$ac_ext <<_ACEOF
d11832 13
a11844 1
$ac_includes_default
d11854 4
a11857 4
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
d11862 3
a11864 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11868 1
a11868 1
         { ac_try='test -s conftest.$ac_objext'
d11874 1
a11874 1
  ac_cv_type_pid_t=yes
d11878 1
a11878 1
ac_cv_type_pid_t=no
d11880 1
a11880 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11882 3
a11884 5
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else
d11886 2
a11887 2
cat >>confdefs.h <<_ACEOF
#define pid_t int
d11890 1
a11892 23
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
a11893 3
cat >>confdefs.h <<\_ACEOF
#define uid_t int
_ACEOF
a11895 3
cat >>confdefs.h <<\_ACEOF
#define gid_t int
_ACEOF
a11896 1
fi
d11898 3
a11900 4

echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
d11903 13
a11915 1
  cat >conftest.$ac_ext <<_ACEOF
a11917 10
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif
d11928 1
a11928 1
int i;
d11933 3
a11935 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11939 1
a11939 1
         { ac_try='test -s conftest.$ac_objext'
d11945 1
a11945 1
  ac_cv_type_signal=void
a11948 1
ac_cv_type_signal=int
d11950 4
a11953 1
rm -f conftest.$ac_objext conftest.$ac_ext
a11954 13
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\_ACEOF
#define VOID_RETSIGTYPE 1
_ACEOF
d11959 1
d11961 1
d11963 6
a11968 3
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
d11974 11
a11984 3
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
d11995 9
a12003 2
if ((struct tm *) 0)
return 0;
d12008 3
a12010 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12014 1
a12014 1
         { ac_try='test -s conftest.$ac_objext'
d12020 1
a12020 1
  ac_cv_header_time=yes
d12024 1
a12024 1
ac_cv_header_time=no
d12026 1
a12026 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12028 5
a12032 6
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
d12036 1
d12038 5
d12044 7
d12052 14
a12065 20
for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
a12066 21
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d12068 2
a12069 7
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
a12070 26
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d12072 3
a12074 14
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
d12076 4
a12079 6
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
a12080 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a12081 5
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a12082 1
fi
a12083 1
done
a12084 1
for i in netinet/ip.h netinet/tcp.h; do
a12085 1
cv=`echo "$i" | sed 'y%./+-%__p_%'`
d12087 3
a12089 3
echo "$as_me:$LINENO: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
d12092 13
a12104 1
  cat >conftest.$ac_ext <<_ACEOF
d12107 13
a12119 3
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
a12120 1
#include <$i>
d12122 13
d12136 3
a12138 63
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
done
if false;then


for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12142 1
a12142 1
         { ac_try='test -s conftest.$ac_objext'
d12148 1
a12148 1
  ac_header_compiler=yes
a12151 1
ac_header_compiler=no
d12153 4
a12156 70
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

a12158 2
done

d12162 1
d12164 1
d12166 1
a12166 1
for ac_func in getlogin setlogin
d12241 5
a12245 6
if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:$LINENO: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d12247 7
a12253 5
if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi
d12255 15
a12269 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then
d12271 2
a12272 2
cat >>confdefs.h <<\_ACEOF
#define POSIX_GETLOGIN 1
d12275 8
a12282 1
fi
d12287 6
a12292 7
for ac_header in stdlib.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a12293 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d12295 13
a12307 4
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
d12310 28
a12337 2
$ac_includes_default
#include <$ac_header>
d12339 3
a12341 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12345 1
a12345 1
         { ac_try='test -s conftest.$ac_objext'
d12351 1
a12351 1
  ac_header_compiler=yes
a12354 1
ac_header_compiler=no
d12356 4
a12359 60
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
a12360 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a12362 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a12363 1
fi
d12365 1
a12365 1
done
d12367 1
d12369 1
a12369 1
for ac_func in getpagesize
a12443 156
echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !STDC_HEADERS && !HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    exit (1);
  if (write (fd, data, pagesize) != pagesize)
    exit (1);
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    exit (1);
  if (read (fd, data3, pagesize) != pagesize)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      exit (1);
  close (fd);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mmap_fixed_mapped=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
d12445 4
a12448 6
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
d12450 6
a12455 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
d12458 14
a12471 26
fi
rm -f conftest.mmap


echo "$as_me:$LINENO: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>

int main()
{
	return realloc(NULL, 17) == NULL;
}

a12472 21
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_realloc_broken=yes
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d12474 2
a12475 7
fi
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then

cat >>confdefs.h <<\_ACEOF
#define BROKEN_REALLOC 1
d12478 4
a12481 1
fi
d12484 2
a12485 33





DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'














WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
d12490 3
a12492 9





cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d12495 2
a12496 1
  cat >conftest.$ac_ext <<_ACEOF
d12499 2
a12500 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
d12510 1
a12510 1
ssize_t foo;
d12515 3
a12517 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12521 1
a12521 1
         { ac_try='test -s conftest.$ac_objext'
d12527 1
a12527 1
  eval "ac_cv_type_$cv=yes"
d12531 1
a12531 1
eval "ac_cv_type_$cv=no"
d12533 2
a12534 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12536 2
a12537 1
ac_foo=`eval echo \\$ac_cv_type_$cv`
d12541 9
a12549 5
  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
d12552 2
a12553 1
  cat >conftest.$ac_ext <<_ACEOF
d12556 14
a12569 1
$ac_includes_default
d12579 1
a12579 4
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_t))
  return 0;
d12596 1
a12596 1
  ac_cv_type_ssize_t=yes
d12600 1
a12600 1
ac_cv_type_ssize_t=no
d12603 1
a12604 3
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = yes; then
a12605 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF
a12607 1
fi
d12609 3
a12611 1
fi
d12613 2
a12614 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d12620 2
d12625 3
a12627 4
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d12630 4
a12636 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d12638 3
a12640 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d12642 3
a12644 3
long long foo;
  ;
  return 0;
d12647 3
a12649 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12652 1
a12652 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d12658 1
a12658 1
  eval "ac_cv_type_$cv=yes"
d12660 2
a12661 1
  echo "$as_me: failed program was:" >&5
d12663 5
a12667 1
eval "ac_cv_type_$cv=no"
d12669 9
a12677 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12679 6
a12684 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d12690 1
a12690 1
$ac_includes_default
d12700 4
a12703 4
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
d12720 1
a12720 1
  ac_cv_type_long_long=yes
d12724 1
a12724 1
ac_cv_type_long_long=no
d12728 3
a12730 3
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
d12732 2
a12733 2
cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
a12735 1

a12736 1

a12738 4
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

d12742 12
d12755 3
d12759 9
d12770 4
a12773 112














































for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	grp.h					\
	ifaddrs.h				\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/mman.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
d12775 3
a12777 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12780 1
a12780 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d12786 1
a12786 1
  ac_header_compiler=yes
d12788 2
a12789 1
  echo "$as_me: failed program was:" >&5
d12791 2
a12792 1
ac_header_compiler=no
d12794 1
a12794 27
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a12795 6
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
d12797 2
a12798 3
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d12800 1
a12800 24
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d12802 2
a12803 4
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d12807 1
d12809 4
a12812 54
done






if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi



if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi



if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi



if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi







echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
d12815 1
a12815 13

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d12818 1
a12818 1

d12828 4
a12831 1
socket()
d12836 3
a12838 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12842 1
a12842 1
         { ac_try='test -s conftest$ac_exeext'
d12848 1
a12848 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d12852 1
d12854 1
a12854 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d12856 7
d12865 1
d12867 1
a12868 1
eval "ac_res=\$ac_cv_funclib_socket"
a12869 1
if false; then
d12871 3
a12873 6
for ac_func in socket
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12876 2
a12877 1
  cat >conftest.$ac_ext <<_ACEOF
a12879 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12881 2
d12892 4
a12895 5
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
d12897 1
a12897 1
f = $ac_func;
d12899 2
d12918 1
a12918 1
  eval "$as_ac_var=yes"
d12922 1
a12922 1
eval "$as_ac_var=no"
d12926 2
a12927 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d12929 1
a12929 2
fi
done
d12931 2
a12932 32
fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
a12934 8
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d12936 1
d12938 4
a12941 7




echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
d12944 1
a12944 13

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d12947 2
a12948 1

d12958 4
a12961 1
gethostbyname()
d12966 3
a12968 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12972 1
a12972 1
         { ac_try='test -s conftest$ac_exeext'
d12978 1
a12978 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d12982 15
d12998 3
a13000 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d13003 7
a13012 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
a13013 1
if false; then
d13015 53
a13067 1
for ac_func in gethostbyname
d13142 3
a13145 38
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

a13146 3
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi
d13152 3
a13154 3
echo "$as_me:$LINENO: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
d13158 1
a13158 1
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
d13160 1
a13160 1
	for ac_lib in "" syslog; do
d13172 6
a13177 1

d13187 1
a13187 1
syslog()
d13204 1
a13204 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d13211 1
a13211 1
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
d13218 1
a13218 1
eval "ac_res=\$ac_cv_funclib_syslog"
d13222 1
a13222 1
for ac_func in syslog
d13298 2
a13299 2
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d13301 1
a13301 1
eval "LIB_syslog=$ac_res"
d13305 2
a13306 2
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
d13315 2
a13316 2
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
d13321 1
a13321 1
	eval "ac_cv_func_syslog=yes"
a13336 5
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi


a13338 3
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"
d13340 3
a13342 8
if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
save_CFLAGS="${CFLAGS}"
echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
if test "${v6type+set}" = set; then
a13344 2
  v6type=unknown
v6lib=none
d13346 11
a13356 77
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
a13359 52

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi

fi
echo "$as_me:$LINENO: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

echo "$as_me:$LINENO: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

a13365 7
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

d13375 1
a13375 11

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

d13392 1
a13392 1
  ac_cv_lib_ipv6=yes
a13395 1
ac_cv_lib_ipv6=no
d13398 3
a13401 3
echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then
d13403 4
a13406 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_IPV6 1
_ACEOF
d13408 1
a13408 3
else
  CFLAGS="${save_CFLAGS}"
fi
d13410 6
a13415 4
if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
d13418 14
a13432 16
	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
d13442 8
a13449 3

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;
d13467 1
a13467 1
  ac_cv_var_in6addr_loopback=yes
d13471 1
a13471 1
ac_cv_var_in6addr_loopback=no
d13475 39
a13513 3
echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then
d13515 2
a13516 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_IN6ADDR_LOOPBACK 1
d13519 5
a13523 2
	fi
fi
d13530 3
a13532 3
echo "$as_me:$LINENO: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
d13536 1
a13536 1
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
d13538 1
a13538 1
	for ac_lib in "" inet6 ip6; do
d13550 3
a13552 1

d13562 1
a13562 1
gethostbyname2()
d13579 1
a13579 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d13586 1
a13586 1
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
d13593 1
a13593 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
d13597 1
a13597 1
for ac_func in gethostbyname2
d13673 2
a13674 2
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d13676 1
a13676 1
eval "LIB_gethostbyname2=$ac_res"
d13680 2
a13681 2
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
d13690 2
a13691 2
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
d13696 1
a13696 1
	eval "ac_cv_func_gethostbyname2=yes"
d13712 300
a14011 2
if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
d14013 7
d14021 2
d14028 3
a14030 3
echo "$as_me:$LINENO: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
d14034 1
a14034 1
if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
d14036 1
a14036 1
	for ac_lib in "" resolv; do
d14048 2
a14049 13

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
a14050 1

d14060 1
a14060 1
res_search(0,0,0,0,0)
d14077 1
a14077 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d14084 1
a14084 1
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
d14091 1
a14091 1
eval "ac_res=\$ac_cv_funclib_res_search"
d14095 1
a14095 1
for ac_func in res_search
d14171 2
a14172 2
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d14174 1
a14174 1
eval "LIB_res_search=$ac_res"
d14178 2
a14179 2
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
d14188 2
a14189 2
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
d14194 1
a14194 1
	eval "ac_cv_func_res_search=yes"
a14209 5
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi


d14214 3
a14216 3
echo "$as_me:$LINENO: checking for res_nsearch" >&5
echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
if test "${ac_cv_funclib_res_nsearch+set}" = set; then
d14220 1
a14220 1
if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
d14222 1
a14222 1
	for ac_lib in "" resolv; do
d14234 2
a14235 10

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
a14236 4
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

d14246 1
a14246 1
res_nsearch(0,0,0,0,0)
d14263 1
a14263 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
d14270 1
a14270 1
	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
d14277 1
a14277 1
eval "ac_res=\$ac_cv_funclib_res_nsearch"
d14281 1
a14281 1
for ac_func in res_nsearch
d14357 2
a14358 2
# res_nsearch
eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d14360 1
a14360 1
eval "LIB_res_nsearch=$ac_res"
d14364 2
a14365 2
	eval "ac_cv_func_res_nsearch=yes"
	eval "LIB_res_nsearch="
d14374 2
a14375 2
	eval "ac_cv_func_res_nsearch=no"
	eval "LIB_res_nsearch="
d14380 1
a14380 1
	eval "ac_cv_func_res_nsearch=yes"
a14395 3
if test -n "$LIB_res_nsearch"; then
	LIBS="$LIB_res_nsearch $LIBS"
fi
d14400 3
a14402 5


echo "$as_me:$LINENO: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
d14406 1
a14406 1
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
d14408 1
a14408 1
	for ac_lib in "" resolv; do
d14420 2
a14421 4

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
a14422 10
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

d14432 1
a14432 1
dn_expand(0,0,0,0,0)
d14449 1
a14449 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d14456 1
a14456 1
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
d14463 1
a14463 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d14467 1
a14467 1
for ac_func in dn_expand
d14543 2
a14544 2
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d14546 1
a14546 1
eval "LIB_dn_expand=$ac_res"
d14550 2
a14551 2
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
d14560 2
a14561 2
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
d14566 1
a14566 1
	eval "ac_cv_func_dn_expand=yes"
a14581 3
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi
d14585 5
a14589 3
echo "$as_me:$LINENO: checking for _res" >&5
echo $ECHO_N "checking for _res... $ECHO_C" >&6
if test "${ac_cv_var__res+set}" = set; then
d14593 12
a14604 1
cat >conftest.$ac_ext <<_ACEOF
d14607 3
a14609 2
extern int _res;
int foo() { return _res; }
d14619 1
a14619 1
foo()
d14636 1
a14636 1
  ac_cv_var__res=yes
a14639 1
ac_cv_var__res=no
d14642 3
a14644 67

fi

ac_foo=`eval echo \\$ac_cv_var__res`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE__RES 1
_ACEOF


echo "$as_me:$LINENO: checking if _res is properly declared" >&5
echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
if test "${ac_cv_var__res_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
extern struct { int foo; } _res;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
_res.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var__res_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var__res_declaration=yes"
a14645 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14650 1
d14652 1
d14654 6
a14659 19
echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE__RES_DECLARATION 1
_ACEOF

fi


fi




echo "$as_me:$LINENO: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
a14661 4
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
d14665 11
a14676 53
#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_snprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6

if test "$ac_cv_func_snprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_snprintf_working" = yes; then

if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
d14686 8
a14693 3
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
d14699 3
a14701 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14705 1
a14705 1
         { ac_try='test -s conftest.$ac_objext'
d14711 1
a14711 1
  eval "ac_cv_func_snprintf_noproto=yes"
d14715 1
a14715 1
eval "ac_cv_func_snprintf_noproto=no"
d14717 1
a14717 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14719 5
a14723 6
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
if test "$ac_cv_func_snprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SNPRINTF_PROTO 1
d14727 1
a14727 1
fi
d14730 4
d14735 6
a14740 33

echo "$as_me:$LINENO: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>

int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}


int main()
{
	return foo(0, "12");
}
a14741 24
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_vsnprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
d14743 14
a14756 4
if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VSNPRINTF 1
d14759 2
a14760 29
fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);

  ;
  return 0;
}
a14761 23
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
d14763 4
a14766 3
cat >>confdefs.h <<\_ACEOF
#define NEED_VSNPRINTF_PROTO 1
_ACEOF
a14767 2
fi
fi
d14769 2
d14772 3
a14774 57



echo "$as_me:$LINENO: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <glob.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a14775 2
echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6
a14776 1
if test "$ac_cv_func_glob_working" = yes; then
a14777 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_GLOB 1
_ACEOF
a14778 2
fi
if test "$ac_cv_func_glob_working" = yes; then
d14780 5
a14784 4
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
d14787 13
a14799 1
  cat >conftest.$ac_ext <<_ACEOF
d14802 3
a14804 2
#include <stdio.h>
#include <glob.h>
d14814 1
a14814 4
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);

d14819 3
a14821 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14825 1
a14825 1
         { ac_try='test -s conftest.$ac_objext'
d14831 1
a14831 1
  eval "ac_cv_func_glob_noproto=yes"
a14834 12
eval "ac_cv_func_glob_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
if test "$ac_cv_func_glob_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GLOB_PROTO 1
_ACEOF

d14836 4
a14843 3
if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.$ac_objext"
fi
d14845 1
d14847 1
a14847 63
if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi





























for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	initstate				\
	issetugid				\
	on_exit					\
	random					\
	setprogname				\
	setstate				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\
d14849 1
d14924 39
d14964 2
a14965 2
if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.$ac_objext"
d14968 3
d14977 3
a14979 4

echo "$as_me:$LINENO: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
d14983 1
a14983 1
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
d14997 2
a14998 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d15009 1
a15009 1
getsockopt(0,0,0,0,0)
d15026 1
a15026 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d15033 1
a15033 1
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
d15040 1
a15040 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
d15044 1
a15044 1
for ac_func in getsockopt
d15120 2
a15121 2
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d15123 1
a15123 1
eval "LIB_getsockopt=$ac_res"
d15127 2
a15128 2
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
d15137 2
a15138 2
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
d15143 1
a15143 1
	eval "ac_cv_func_getsockopt=yes"
d15159 10
d15172 3
a15174 3
echo "$as_me:$LINENO: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
d15178 1
a15178 1
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
d15192 2
a15193 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d15204 1
a15204 1
setsockopt(0,0,0,0,0)
d15221 1
a15221 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d15228 1
a15228 1
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
d15235 1
a15235 1
eval "ac_res=\$ac_cv_funclib_setsockopt"
d15239 1
a15239 1
for ac_func in setsockopt
d15315 2
a15316 2
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d15318 1
a15318 1
eval "LIB_setsockopt=$ac_res"
d15322 2
a15323 2
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
d15332 2
a15333 2
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
d15338 1
a15338 1
	eval "ac_cv_func_setsockopt=yes"
d15341 233
a15573 2
#define $ac_tr_func 1
_ACEOF
d15575 2
a15576 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d15579 6
a15584 14
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac







echo "$as_me:$LINENO: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
d15587 1
a15587 13

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d15590 6
a15595 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d15597 5
d15611 9
a15619 1
hstrerror(17)
d15636 1
a15636 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
d15640 1
a15642 3
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
d15644 3
d15648 6
d15655 3
a15657 12


eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then

for ac_func in hstrerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15664 1
a15664 1
    which can conflict with char $ac_func (); below.  */
d15672 1
a15672 1
char $ac_func ();
d15687 1
a15687 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d15690 1
a15690 1
f = $ac_func;
d15709 1
a15709 1
  eval "$as_ac_var=yes"
d15713 1
a15713 1
eval "$as_ac_var=no"
d15717 3
a15719 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d15721 2
a15722 15
fi
done

fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d15725 2
a15726 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
d15728 3
a15730 10

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
	LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
fi


if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
d15736 11
a15747 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d15757 8
a15764 3
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);
d15770 3
a15772 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15776 1
a15776 1
         { ac_try='test -s conftest.$ac_objext'
d15782 1
a15782 1
  eval "ac_cv_func_hstrerror_noproto=yes"
d15786 1
a15786 1
eval "ac_cv_func_hstrerror_noproto=no"
d15788 1
a15788 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15790 3
a15792 3
echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
if test "$ac_cv_func_hstrerror_noproto" = yes; then
d15794 2
a15795 2
cat >>confdefs.h <<\_ACEOF
#define NEED_HSTRERROR_PROTO 1
d15798 2
d15801 3
a15803 8
fi



if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
d15809 11
a15820 2
	#include <stdio.h>
	#include <string.h>
d15830 8
a15837 3
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d15843 3
a15845 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15849 1
a15849 1
         { ac_try='test -s conftest.$ac_objext'
d15855 1
a15855 1
  eval "ac_cv_func_asprintf_noproto=yes"
d15859 1
a15859 1
eval "ac_cv_func_asprintf_noproto=no"
d15861 1
a15861 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15863 3
a15865 3
echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
if test "$ac_cv_func_asprintf_noproto" = yes; then
d15867 2
a15868 2
cat >>confdefs.h <<\_ACEOF
#define NEED_ASPRINTF_PROTO 1
d15871 2
d15874 3
a15876 6
fi

if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
d15882 11
a15893 2
	#include <stdio.h>
	#include <string.h>
d15903 8
a15910 3
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);
d15916 3
a15918 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15922 1
a15922 1
         { ac_try='test -s conftest.$ac_objext'
d15928 1
a15928 1
  eval "ac_cv_func_vasprintf_noproto=yes"
d15932 1
a15932 1
eval "ac_cv_func_vasprintf_noproto=no"
d15934 1
a15934 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15936 3
a15938 3
echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
if test "$ac_cv_func_vasprintf_noproto" = yes; then
d15940 2
a15941 2
cat >>confdefs.h <<\_ACEOF
#define NEED_VASPRINTF_PROTO 1
d15944 2
d15947 3
a15949 6
fi

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
d15955 11
a15966 2
	#include <stdio.h>
	#include <string.h>
d15976 8
a15983 3
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
d15989 3
a15991 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15995 1
a15995 1
         { ac_try='test -s conftest.$ac_objext'
d16001 1
a16001 1
  eval "ac_cv_func_asnprintf_noproto=yes"
d16005 1
a16005 1
eval "ac_cv_func_asnprintf_noproto=no"
d16007 1
a16007 1
rm -f conftest.$ac_objext conftest.$ac_ext
d16009 3
a16011 3
echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
if test "$ac_cv_func_asnprintf_noproto" = yes; then
d16013 2
a16014 2
cat >>confdefs.h <<\_ACEOF
#define NEED_ASNPRINTF_PROTO 1
d16017 2
d16020 3
a16022 6
fi

if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
d16028 11
a16039 2
	#include <stdio.h>
	#include <string.h>
d16049 8
a16056 3
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);
d16062 3
a16064 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d16068 1
a16068 1
         { ac_try='test -s conftest.$ac_objext'
d16074 1
a16074 1
  eval "ac_cv_func_vasnprintf_noproto=yes"
d16078 1
a16078 1
eval "ac_cv_func_vasnprintf_noproto=no"
d16080 1
a16080 1
rm -f conftest.$ac_objext conftest.$ac_ext
d16082 3
a16084 3
echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
if test "$ac_cv_func_vasnprintf_noproto" = yes; then
d16086 2
a16087 2
cat >>confdefs.h <<\_ACEOF
#define NEED_VASNPRINTF_PROTO 1
d16090 2
d16093 3
a16095 9
fi





echo "$as_me:$LINENO: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap16+set}" = set; then
d16098 1
a16098 13

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16101 6
a16106 2
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
d16108 5
d16122 9
a16130 1
bswap16(0)
d16147 1
a16147 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
d16151 1
a16153 3
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
d16155 7
d16163 2
d16166 3
a16168 12


eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then

for ac_func in bswap16
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16175 1
a16175 1
    which can conflict with char $ac_func (); below.  */
d16183 1
a16183 1
char $ac_func ();
d16198 1
a16198 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16201 1
a16201 1
f = $ac_func;
d16220 1
a16220 1
  eval "$as_ac_var=yes"
d16224 1
a16224 1
eval "$as_ac_var=no"
d16228 6
a16233 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16236 2
d16239 3
a16241 49
done

fi
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap32+set}" = set; then
d16244 1
a16244 13

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16247 6
a16252 2
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
d16254 5
d16268 9
a16276 1
bswap32(0)
d16293 1
a16293 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
d16297 1
a16299 3
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
d16301 7
d16309 2
d16312 3
a16314 12


eval "ac_res=\$ac_cv_funclib_bswap32"

if false; then

for ac_func in bswap32
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16321 1
a16321 1
    which can conflict with char $ac_func (); below.  */
d16329 1
a16329 1
char $ac_func ();
d16344 1
a16344 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16347 1
a16347 1
f = $ac_func;
d16366 1
a16366 1
  eval "$as_ac_var=yes"
d16370 1
a16370 1
eval "$as_ac_var=no"
d16374 6
a16379 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16382 2
d16385 3
a16387 49
done

fi
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
d16390 1
a16390 13

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16393 6
a16398 2
#ifdef HAVE_UTIL_H
#include <util.h>
d16400 5
d16414 9
a16422 1
pidfile(0)
d16439 1
a16439 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d16443 1
a16445 3
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d16447 7
d16455 2
d16458 3
a16460 12


eval "ac_res=\$ac_cv_funclib_pidfile"

if false; then

for ac_func in pidfile
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16467 1
a16467 1
    which can conflict with char $ac_func (); below.  */
d16475 1
a16475 1
char $ac_func ();
d16490 1
a16490 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16493 1
a16493 1
f = $ac_func;
d16512 1
a16512 1
  eval "$as_ac_var=yes"
d16516 1
a16516 1
eval "$as_ac_var=no"
d16520 6
a16525 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16528 2
d16531 3
a16533 50
done

fi
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac







echo "$as_me:$LINENO: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
d16536 1
a16536 13

if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16539 6
a16544 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16546 5
d16560 9
a16568 1
getaddrinfo(0,0,0,0)
d16585 1
a16585 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
d16589 1
a16591 3
	done
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d16593 7
d16601 2
d16604 3
a16606 12


eval "ac_res=\$ac_cv_funclib_getaddrinfo"

if false; then

for ac_func in getaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16613 1
a16613 1
    which can conflict with char $ac_func (); below.  */
d16621 1
a16621 1
char $ac_func ();
d16636 1
a16636 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16639 1
a16639 1
f = $ac_func;
d16658 1
a16658 1
  eval "$as_ac_var=yes"
d16662 1
a16662 1
eval "$as_ac_var=no"
d16666 3
a16668 39
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d16670 2
a16671 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d16674 2
a16675 8
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
d16677 3
a16679 13

if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
fi






echo "$as_me:$LINENO: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getnameinfo+set}" = set; then
d16682 1
a16682 13

if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16685 6
a16690 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16692 5
d16706 9
a16714 1
getnameinfo(0,0,0,0,0,0,0)
d16731 1
a16731 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
d16735 1
a16737 3
	done
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
	LIBS="$ac_save_LIBS"
d16739 7
d16747 2
d16750 3
a16752 12


eval "ac_res=\$ac_cv_funclib_getnameinfo"

if false; then

for ac_func in getnameinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16759 1
a16759 1
    which can conflict with char $ac_func (); below.  */
d16767 1
a16767 1
char $ac_func ();
d16782 1
a16782 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16785 1
a16785 1
f = $ac_func;
d16804 1
a16804 1
  eval "$as_ac_var=yes"
d16808 1
a16808 1
eval "$as_ac_var=no"
d16812 3
a16814 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16816 2
a16817 15
fi
done

fi
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getnameinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d16820 2
a16821 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getnameinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
d16823 3
a16825 13

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
fi






echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
d16828 1
a16828 13

if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16831 6
a16836 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16838 5
d16852 9
a16860 1
freeaddrinfo(0)
d16877 1
a16877 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
d16881 1
a16883 3
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d16885 3
d16889 6
d16896 3
a16898 12


eval "ac_res=\$ac_cv_funclib_freeaddrinfo"

if false; then

for ac_func in freeaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16905 1
a16905 1
    which can conflict with char $ac_func (); below.  */
d16913 1
a16913 1
char $ac_func ();
d16928 1
a16928 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16931 1
a16931 1
f = $ac_func;
d16950 1
a16950 1
  eval "$as_ac_var=yes"
d16954 1
a16954 1
eval "$as_ac_var=no"
d16958 3
a16960 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16962 2
a16963 15
fi
done

fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d16966 2
a16967 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
d16969 3
a16971 13

if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
fi






echo "$as_me:$LINENO: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
if test "${ac_cv_funclib_gai_strerror+set}" = set; then
d16974 1
a16974 13

if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16977 6
a16982 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16984 5
d16998 9
a17006 1
gai_strerror(0)
d17023 1
a17023 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
d17027 1
a17029 3
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
d17031 7
d17039 2
d17042 3
a17044 12


eval "ac_res=\$ac_cv_funclib_gai_strerror"

if false; then

for ac_func in gai_strerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17051 1
a17051 1
    which can conflict with char $ac_func (); below.  */
d17059 1
a17059 1
char $ac_func ();
d17074 1
a17074 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d17077 1
a17077 1
f = $ac_func;
d17096 1
a17096 1
  eval "$as_ac_var=yes"
d17100 1
a17100 1
eval "$as_ac_var=no"
d17104 3
a17106 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d17108 2
a17109 15
fi
done

fi
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d17112 2
a17113 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
d17115 3
a17117 9

if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
	LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
fi


echo "$as_me:$LINENO: checking for chown" >&5
echo $ECHO_N "checking for chown... $ECHO_C" >&6
if test "${ac_cv_func_chown+set}" = set; then
d17124 1
a17124 1
    which can conflict with char chown (); below.  */
d17132 1
a17132 1
char chown ();
d17147 1
a17147 1
#if defined (__stub_chown) || defined (__stub___chown)
d17150 1
a17150 1
f = chown;
d17169 1
a17169 1
  ac_cv_func_chown=yes
d17173 1
a17173 1
ac_cv_func_chown=no
d17177 3
a17179 3
echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
echo "${ECHO_T}$ac_cv_func_chown" >&6
if test $ac_cv_func_chown = yes; then
d17182 1
a17182 1
#define HAVE_CHOWN 1
d17186 1
a17186 1
  LIBOBJS="$LIBOBJS chown.$ac_objext"
d17188 3
a17190 3
echo "$as_me:$LINENO: checking for copyhostent" >&5
echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
if test "${ac_cv_func_copyhostent+set}" = set; then
d17197 1
a17197 1
    which can conflict with char copyhostent (); below.  */
d17205 1
a17205 1
char copyhostent ();
d17220 1
a17220 1
#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
d17223 1
a17223 1
f = copyhostent;
d17242 1
a17242 1
  ac_cv_func_copyhostent=yes
d17246 1
a17246 1
ac_cv_func_copyhostent=no
d17250 3
a17252 3
echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
if test $ac_cv_func_copyhostent = yes; then
d17255 1
a17255 1
#define HAVE_COPYHOSTENT 1
d17259 1
a17259 1
  LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
d17261 3
a17263 3
echo "$as_me:$LINENO: checking for daemon" >&5
echo $ECHO_N "checking for daemon... $ECHO_C" >&6
if test "${ac_cv_func_daemon+set}" = set; then
d17270 1
a17270 1
    which can conflict with char daemon (); below.  */
d17278 1
a17278 1
char daemon ();
d17293 1
a17293 1
#if defined (__stub_daemon) || defined (__stub___daemon)
d17296 1
a17296 1
f = daemon;
d17315 1
a17315 1
  ac_cv_func_daemon=yes
d17319 1
a17319 1
ac_cv_func_daemon=no
d17323 3
a17325 3
echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
echo "${ECHO_T}$ac_cv_func_daemon" >&6
if test $ac_cv_func_daemon = yes; then
d17328 1
a17328 1
#define HAVE_DAEMON 1
d17332 1
a17332 1
  LIBOBJS="$LIBOBJS daemon.$ac_objext"
d17334 3
a17336 3
echo "$as_me:$LINENO: checking for ecalloc" >&5
echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
if test "${ac_cv_func_ecalloc+set}" = set; then
d17343 1
a17343 1
    which can conflict with char ecalloc (); below.  */
d17351 1
a17351 1
char ecalloc ();
d17366 1
a17366 1
#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
d17369 1
a17369 1
f = ecalloc;
d17388 1
a17388 1
  ac_cv_func_ecalloc=yes
d17392 1
a17392 1
ac_cv_func_ecalloc=no
d17396 3
a17398 3
echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
if test $ac_cv_func_ecalloc = yes; then
d17401 1
a17401 1
#define HAVE_ECALLOC 1
d17405 1
a17405 1
  LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
d17407 3
a17409 3
echo "$as_me:$LINENO: checking for emalloc" >&5
echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
if test "${ac_cv_func_emalloc+set}" = set; then
d17416 1
a17416 1
    which can conflict with char emalloc (); below.  */
d17424 1
a17424 1
char emalloc ();
d17439 1
a17439 1
#if defined (__stub_emalloc) || defined (__stub___emalloc)
d17442 1
a17442 1
f = emalloc;
d17461 1
a17461 1
  ac_cv_func_emalloc=yes
d17465 1
a17465 1
ac_cv_func_emalloc=no
d17469 3
a17471 3
echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
echo "${ECHO_T}$ac_cv_func_emalloc" >&6
if test $ac_cv_func_emalloc = yes; then
d17474 1
a17474 1
#define HAVE_EMALLOC 1
d17478 1
a17478 1
  LIBOBJS="$LIBOBJS emalloc.$ac_objext"
d17480 3
a17482 3
echo "$as_me:$LINENO: checking for erealloc" >&5
echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
if test "${ac_cv_func_erealloc+set}" = set; then
d17489 1
a17489 1
    which can conflict with char erealloc (); below.  */
d17497 1
a17497 1
char erealloc ();
d17512 1
a17512 1
#if defined (__stub_erealloc) || defined (__stub___erealloc)
d17515 1
a17515 1
f = erealloc;
d17534 1
a17534 1
  ac_cv_func_erealloc=yes
d17538 1
a17538 1
ac_cv_func_erealloc=no
d17542 3
a17544 3
echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
echo "${ECHO_T}$ac_cv_func_erealloc" >&6
if test $ac_cv_func_erealloc = yes; then
d17547 1
a17547 1
#define HAVE_EREALLOC 1
d17551 1
a17551 1
  LIBOBJS="$LIBOBJS erealloc.$ac_objext"
d17553 3
a17555 3
echo "$as_me:$LINENO: checking for estrdup" >&5
echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
if test "${ac_cv_func_estrdup+set}" = set; then
d17562 1
a17562 1
    which can conflict with char estrdup (); below.  */
d17570 1
a17570 1
char estrdup ();
d17585 1
a17585 1
#if defined (__stub_estrdup) || defined (__stub___estrdup)
d17588 1
a17588 1
f = estrdup;
d17607 1
a17607 1
  ac_cv_func_estrdup=yes
d17611 1
a17611 1
ac_cv_func_estrdup=no
d17615 3
a17617 3
echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
echo "${ECHO_T}$ac_cv_func_estrdup" >&6
if test $ac_cv_func_estrdup = yes; then
d17620 1
a17620 1
#define HAVE_ESTRDUP 1
d17624 1
a17624 1
  LIBOBJS="$LIBOBJS estrdup.$ac_objext"
d17626 3
a17628 3
echo "$as_me:$LINENO: checking for err" >&5
echo $ECHO_N "checking for err... $ECHO_C" >&6
if test "${ac_cv_func_err+set}" = set; then
d17635 1
a17635 1
    which can conflict with char err (); below.  */
d17643 1
a17643 1
char err ();
d17658 1
a17658 1
#if defined (__stub_err) || defined (__stub___err)
d17661 1
a17661 1
f = err;
d17680 1
a17680 1
  ac_cv_func_err=yes
d17684 1
a17684 1
ac_cv_func_err=no
d17688 3
a17690 3
echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
echo "${ECHO_T}$ac_cv_func_err" >&6
if test $ac_cv_func_err = yes; then
d17693 1
a17693 1
#define HAVE_ERR 1
d17697 1
a17697 1
  LIBOBJS="$LIBOBJS err.$ac_objext"
d17699 3
a17701 3
echo "$as_me:$LINENO: checking for errx" >&5
echo $ECHO_N "checking for errx... $ECHO_C" >&6
if test "${ac_cv_func_errx+set}" = set; then
d17708 1
a17708 1
    which can conflict with char errx (); below.  */
d17716 1
a17716 1
char errx ();
d17731 1
a17731 1
#if defined (__stub_errx) || defined (__stub___errx)
d17734 1
a17734 1
f = errx;
d17753 1
a17753 1
  ac_cv_func_errx=yes
d17757 1
a17757 1
ac_cv_func_errx=no
d17761 3
a17763 3
echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
echo "${ECHO_T}$ac_cv_func_errx" >&6
if test $ac_cv_func_errx = yes; then
d17766 1
a17766 1
#define HAVE_ERRX 1
d17770 1
a17770 1
  LIBOBJS="$LIBOBJS errx.$ac_objext"
d17772 3
a17774 3
echo "$as_me:$LINENO: checking for fchown" >&5
echo $ECHO_N "checking for fchown... $ECHO_C" >&6
if test "${ac_cv_func_fchown+set}" = set; then
d17781 1
a17781 1
    which can conflict with char fchown (); below.  */
d17789 1
a17789 1
char fchown ();
d17804 1
a17804 1
#if defined (__stub_fchown) || defined (__stub___fchown)
d17807 1
a17807 1
f = fchown;
d17826 1
a17826 1
  ac_cv_func_fchown=yes
d17830 1
a17830 1
ac_cv_func_fchown=no
d17834 3
a17836 3
echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
echo "${ECHO_T}$ac_cv_func_fchown" >&6
if test $ac_cv_func_fchown = yes; then
d17839 1
a17839 1
#define HAVE_FCHOWN 1
d17843 1
a17843 1
  LIBOBJS="$LIBOBJS fchown.$ac_objext"
d17845 3
a17847 3
echo "$as_me:$LINENO: checking for flock" >&5
echo $ECHO_N "checking for flock... $ECHO_C" >&6
if test "${ac_cv_func_flock+set}" = set; then
d17854 1
a17854 1
    which can conflict with char flock (); below.  */
d17862 1
a17862 1
char flock ();
d17877 1
a17877 1
#if defined (__stub_flock) || defined (__stub___flock)
d17880 1
a17880 1
f = flock;
d17899 1
a17899 1
  ac_cv_func_flock=yes
d17903 1
a17903 1
ac_cv_func_flock=no
d17907 3
a17909 3
echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
echo "${ECHO_T}$ac_cv_func_flock" >&6
if test $ac_cv_func_flock = yes; then
d17912 1
a17912 1
#define HAVE_FLOCK 1
d17916 1
a17916 1
  LIBOBJS="$LIBOBJS flock.$ac_objext"
d17918 3
a17920 3
echo "$as_me:$LINENO: checking for fnmatch" >&5
echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
if test "${ac_cv_func_fnmatch+set}" = set; then
d17927 1
a17927 1
    which can conflict with char fnmatch (); below.  */
d17935 1
a17935 1
char fnmatch ();
d17950 1
a17950 1
#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
d17953 1
a17953 1
f = fnmatch;
d17972 1
a17972 1
  ac_cv_func_fnmatch=yes
d17976 1
a17976 1
ac_cv_func_fnmatch=no
d17980 3
a17982 3
echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
if test $ac_cv_func_fnmatch = yes; then
d17985 1
a17985 1
#define HAVE_FNMATCH 1
d17989 1
a17989 1
  LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
d17991 3
a17993 3
echo "$as_me:$LINENO: checking for freehostent" >&5
echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
if test "${ac_cv_func_freehostent+set}" = set; then
d18000 1
a18000 1
    which can conflict with char freehostent (); below.  */
d18008 1
a18008 1
char freehostent ();
d18023 1
a18023 1
#if defined (__stub_freehostent) || defined (__stub___freehostent)
d18026 1
a18026 1
f = freehostent;
d18045 1
a18045 1
  ac_cv_func_freehostent=yes
d18049 1
a18049 1
ac_cv_func_freehostent=no
d18053 3
a18055 3
echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
echo "${ECHO_T}$ac_cv_func_freehostent" >&6
if test $ac_cv_func_freehostent = yes; then
d18058 1
a18058 1
#define HAVE_FREEHOSTENT 1
d18062 1
a18062 1
  LIBOBJS="$LIBOBJS freehostent.$ac_objext"
d18064 3
a18066 3
echo "$as_me:$LINENO: checking for getcwd" >&5
echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
if test "${ac_cv_func_getcwd+set}" = set; then
d18073 1
a18073 1
    which can conflict with char getcwd (); below.  */
d18081 1
a18081 1
char getcwd ();
d18096 1
a18096 1
#if defined (__stub_getcwd) || defined (__stub___getcwd)
d18099 1
a18099 1
f = getcwd;
d18118 1
a18118 1
  ac_cv_func_getcwd=yes
d18122 1
a18122 1
ac_cv_func_getcwd=no
d18126 3
a18128 3
echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
echo "${ECHO_T}$ac_cv_func_getcwd" >&6
if test $ac_cv_func_getcwd = yes; then
d18131 1
a18131 1
#define HAVE_GETCWD 1
d18135 1
a18135 1
  LIBOBJS="$LIBOBJS getcwd.$ac_objext"
d18137 3
a18139 3
echo "$as_me:$LINENO: checking for getdtablesize" >&5
echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
if test "${ac_cv_func_getdtablesize+set}" = set; then
d18146 1
a18146 1
    which can conflict with char getdtablesize (); below.  */
d18154 1
a18154 1
char getdtablesize ();
d18169 1
a18169 1
#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
d18172 1
a18172 1
f = getdtablesize;
d18191 1
a18191 1
  ac_cv_func_getdtablesize=yes
d18195 1
a18195 1
ac_cv_func_getdtablesize=no
d18199 3
a18201 3
echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
if test $ac_cv_func_getdtablesize = yes; then
d18204 1
a18204 1
#define HAVE_GETDTABLESIZE 1
d18208 1
a18208 1
  LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
d18210 3
a18212 3
echo "$as_me:$LINENO: checking for getegid" >&5
echo $ECHO_N "checking for getegid... $ECHO_C" >&6
if test "${ac_cv_func_getegid+set}" = set; then
d18219 1
a18219 1
    which can conflict with char getegid (); below.  */
d18227 1
a18227 1
char getegid ();
d18242 1
a18242 1
#if defined (__stub_getegid) || defined (__stub___getegid)
d18245 1
a18245 1
f = getegid;
d18264 1
a18264 1
  ac_cv_func_getegid=yes
d18268 1
a18268 1
ac_cv_func_getegid=no
d18272 3
a18274 3
echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
echo "${ECHO_T}$ac_cv_func_getegid" >&6
if test $ac_cv_func_getegid = yes; then
d18277 1
a18277 1
#define HAVE_GETEGID 1
d18281 1
a18281 1
  LIBOBJS="$LIBOBJS getegid.$ac_objext"
d18283 3
a18285 3
echo "$as_me:$LINENO: checking for geteuid" >&5
echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
if test "${ac_cv_func_geteuid+set}" = set; then
d18292 1
a18292 1
    which can conflict with char geteuid (); below.  */
d18300 1
a18300 1
char geteuid ();
d18315 1
a18315 1
#if defined (__stub_geteuid) || defined (__stub___geteuid)
d18318 1
a18318 1
f = geteuid;
d18337 1
a18337 1
  ac_cv_func_geteuid=yes
d18341 1
a18341 1
ac_cv_func_geteuid=no
d18345 3
a18347 3
echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
echo "${ECHO_T}$ac_cv_func_geteuid" >&6
if test $ac_cv_func_geteuid = yes; then
d18350 1
a18350 1
#define HAVE_GETEUID 1
d18354 1
a18354 1
  LIBOBJS="$LIBOBJS geteuid.$ac_objext"
d18356 3
a18358 3
echo "$as_me:$LINENO: checking for getgid" >&5
echo $ECHO_N "checking for getgid... $ECHO_C" >&6
if test "${ac_cv_func_getgid+set}" = set; then
d18365 1
a18365 1
    which can conflict with char getgid (); below.  */
d18373 1
a18373 1
char getgid ();
d18388 1
a18388 1
#if defined (__stub_getgid) || defined (__stub___getgid)
d18391 1
a18391 1
f = getgid;
d18410 1
a18410 1
  ac_cv_func_getgid=yes
d18414 1
a18414 1
ac_cv_func_getgid=no
d18418 3
a18420 3
echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
echo "${ECHO_T}$ac_cv_func_getgid" >&6
if test $ac_cv_func_getgid = yes; then
d18423 1
a18423 1
#define HAVE_GETGID 1
d18427 1
a18427 1
  LIBOBJS="$LIBOBJS getgid.$ac_objext"
d18429 3
a18431 3
echo "$as_me:$LINENO: checking for gethostname" >&5
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
if test "${ac_cv_func_gethostname+set}" = set; then
d18438 1
a18438 1
    which can conflict with char gethostname (); below.  */
d18446 1
a18446 1
char gethostname ();
d18461 1
a18461 1
#if defined (__stub_gethostname) || defined (__stub___gethostname)
d18464 1
a18464 1
f = gethostname;
d18483 1
a18483 1
  ac_cv_func_gethostname=yes
d18487 1
a18487 1
ac_cv_func_gethostname=no
d18491 3
a18493 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
if test $ac_cv_func_gethostname = yes; then
d18496 1
a18496 1
#define HAVE_GETHOSTNAME 1
d18500 1
a18500 1
  LIBOBJS="$LIBOBJS gethostname.$ac_objext"
d18502 3
a18504 3
echo "$as_me:$LINENO: checking for getifaddrs" >&5
echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
if test "${ac_cv_func_getifaddrs+set}" = set; then
d18511 1
a18511 1
    which can conflict with char getifaddrs (); below.  */
d18519 1
a18519 1
char getifaddrs ();
d18534 1
a18534 1
#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
d18537 1
a18537 1
f = getifaddrs;
d18556 1
a18556 1
  ac_cv_func_getifaddrs=yes
d18560 1
a18560 1
ac_cv_func_getifaddrs=no
d18564 3
a18566 3
echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
if test $ac_cv_func_getifaddrs = yes; then
d18569 1
a18569 1
#define HAVE_GETIFADDRS 1
d18573 1
a18573 1
  LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
d18575 3
a18577 3
echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
d18584 1
a18584 1
    which can conflict with char getipnodebyaddr (); below.  */
d18592 1
a18592 1
char getipnodebyaddr ();
d18607 1
a18607 1
#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
d18610 1
a18610 1
f = getipnodebyaddr;
d18629 1
a18629 1
  ac_cv_func_getipnodebyaddr=yes
d18633 1
a18633 1
ac_cv_func_getipnodebyaddr=no
d18637 3
a18639 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
if test $ac_cv_func_getipnodebyaddr = yes; then
d18642 1
a18642 1
#define HAVE_GETIPNODEBYADDR 1
d18646 1
a18646 1
  LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
d18648 3
a18650 3
echo "$as_me:$LINENO: checking for getipnodebyname" >&5
echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyname+set}" = set; then
d18657 1
a18657 1
    which can conflict with char getipnodebyname (); below.  */
d18665 1
a18665 1
char getipnodebyname ();
d18680 1
a18680 1
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
d18683 1
a18683 1
f = getipnodebyname;
d18702 1
a18702 1
  ac_cv_func_getipnodebyname=yes
d18706 1
a18706 1
ac_cv_func_getipnodebyname=no
d18710 3
a18712 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
if test $ac_cv_func_getipnodebyname = yes; then
d18715 1
a18715 1
#define HAVE_GETIPNODEBYNAME 1
d18719 1
a18719 1
  LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
d18721 3
a18723 3
echo "$as_me:$LINENO: checking for getopt" >&5
echo $ECHO_N "checking for getopt... $ECHO_C" >&6
if test "${ac_cv_func_getopt+set}" = set; then
d18730 1
a18730 1
    which can conflict with char getopt (); below.  */
d18738 1
a18738 1
char getopt ();
d18753 1
a18753 1
#if defined (__stub_getopt) || defined (__stub___getopt)
d18756 1
a18756 1
f = getopt;
d18775 1
a18775 1
  ac_cv_func_getopt=yes
d18779 1
a18779 1
ac_cv_func_getopt=no
d18783 3
a18785 3
echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
echo "${ECHO_T}$ac_cv_func_getopt" >&6
if test $ac_cv_func_getopt = yes; then
d18788 1
a18788 1
#define HAVE_GETOPT 1
d18792 1
a18792 1
  LIBOBJS="$LIBOBJS getopt.$ac_objext"
d18794 3
a18796 3
echo "$as_me:$LINENO: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
d18803 1
a18803 1
    which can conflict with char gettimeofday (); below.  */
d18811 1
a18811 1
char gettimeofday ();
d18826 1
a18826 1
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
d18829 1
a18829 1
f = gettimeofday;
d18848 1
a18848 1
  ac_cv_func_gettimeofday=yes
d18852 1
a18852 1
ac_cv_func_gettimeofday=no
d18856 3
a18858 3
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
d18861 1
a18861 1
#define HAVE_GETTIMEOFDAY 1
d18865 1
a18865 1
  LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
d18867 3
a18869 3
echo "$as_me:$LINENO: checking for getuid" >&5
echo $ECHO_N "checking for getuid... $ECHO_C" >&6
if test "${ac_cv_func_getuid+set}" = set; then
d18876 1
a18876 1
    which can conflict with char getuid (); below.  */
d18884 1
a18884 1
char getuid ();
d18899 1
a18899 1
#if defined (__stub_getuid) || defined (__stub___getuid)
d18902 1
a18902 1
f = getuid;
d18921 1
a18921 1
  ac_cv_func_getuid=yes
d18925 1
a18925 1
ac_cv_func_getuid=no
d18929 3
a18931 3
echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
echo "${ECHO_T}$ac_cv_func_getuid" >&6
if test $ac_cv_func_getuid = yes; then
d18934 1
a18934 1
#define HAVE_GETUID 1
d18938 1
a18938 1
  LIBOBJS="$LIBOBJS getuid.$ac_objext"
d18940 3
a18942 3
echo "$as_me:$LINENO: checking for getusershell" >&5
echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
if test "${ac_cv_func_getusershell+set}" = set; then
d18949 1
a18949 1
    which can conflict with char getusershell (); below.  */
d18957 1
a18957 1
char getusershell ();
d18972 1
a18972 1
#if defined (__stub_getusershell) || defined (__stub___getusershell)
d18975 1
a18975 1
f = getusershell;
d18994 1
a18994 1
  ac_cv_func_getusershell=yes
d18998 1
a18998 1
ac_cv_func_getusershell=no
d19002 3
a19004 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
echo "${ECHO_T}$ac_cv_func_getusershell" >&6
if test $ac_cv_func_getusershell = yes; then
d19007 1
a19007 1
#define HAVE_GETUSERSHELL 1
d19011 1
a19011 1
  LIBOBJS="$LIBOBJS getusershell.$ac_objext"
d19013 3
a19015 3
echo "$as_me:$LINENO: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
if test "${ac_cv_func_initgroups+set}" = set; then
d19022 1
a19022 1
    which can conflict with char initgroups (); below.  */
d19030 1
a19030 1
char initgroups ();
d19045 1
a19045 1
#if defined (__stub_initgroups) || defined (__stub___initgroups)
d19048 1
a19048 1
f = initgroups;
d19067 1
a19067 1
  ac_cv_func_initgroups=yes
d19071 1
a19071 1
ac_cv_func_initgroups=no
d19075 3
a19077 3
echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
echo "${ECHO_T}$ac_cv_func_initgroups" >&6
if test $ac_cv_func_initgroups = yes; then
d19080 1
a19080 1
#define HAVE_INITGROUPS 1
d19084 1
a19084 1
  LIBOBJS="$LIBOBJS initgroups.$ac_objext"
d19086 3
a19088 3
echo "$as_me:$LINENO: checking for innetgr" >&5
echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
if test "${ac_cv_func_innetgr+set}" = set; then
d19095 1
a19095 1
    which can conflict with char innetgr (); below.  */
d19103 1
a19103 1
char innetgr ();
d19118 1
a19118 1
#if defined (__stub_innetgr) || defined (__stub___innetgr)
d19121 1
a19121 1
f = innetgr;
d19140 1
a19140 1
  ac_cv_func_innetgr=yes
d19144 1
a19144 1
ac_cv_func_innetgr=no
d19148 3
a19150 3
echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
echo "${ECHO_T}$ac_cv_func_innetgr" >&6
if test $ac_cv_func_innetgr = yes; then
d19153 1
a19153 1
#define HAVE_INNETGR 1
d19157 1
a19157 1
  LIBOBJS="$LIBOBJS innetgr.$ac_objext"
d19159 3
a19161 3
echo "$as_me:$LINENO: checking for iruserok" >&5
echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
if test "${ac_cv_func_iruserok+set}" = set; then
d19168 1
a19168 1
    which can conflict with char iruserok (); below.  */
d19176 1
a19176 1
char iruserok ();
d19191 1
a19191 1
#if defined (__stub_iruserok) || defined (__stub___iruserok)
d19194 1
a19194 1
f = iruserok;
d19213 1
a19213 1
  ac_cv_func_iruserok=yes
d19217 1
a19217 1
ac_cv_func_iruserok=no
d19221 3
a19223 3
echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
echo "${ECHO_T}$ac_cv_func_iruserok" >&6
if test $ac_cv_func_iruserok = yes; then
d19226 1
a19226 1
#define HAVE_IRUSEROK 1
d19230 1
a19230 1
  LIBOBJS="$LIBOBJS iruserok.$ac_objext"
d19232 3
a19234 3
echo "$as_me:$LINENO: checking for localtime_r" >&5
echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
if test "${ac_cv_func_localtime_r+set}" = set; then
d19241 1
a19241 1
    which can conflict with char localtime_r (); below.  */
d19249 1
a19249 1
char localtime_r ();
d19264 1
a19264 1
#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
d19267 1
a19267 1
f = localtime_r;
d19286 1
a19286 1
  ac_cv_func_localtime_r=yes
d19290 1
a19290 1
ac_cv_func_localtime_r=no
d19294 3
a19296 3
echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
if test $ac_cv_func_localtime_r = yes; then
d19299 1
a19299 1
#define HAVE_LOCALTIME_R 1
d19303 1
a19303 1
  LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
d19305 3
a19307 3
echo "$as_me:$LINENO: checking for lstat" >&5
echo $ECHO_N "checking for lstat... $ECHO_C" >&6
if test "${ac_cv_func_lstat+set}" = set; then
d19314 1
a19314 1
    which can conflict with char lstat (); below.  */
d19322 1
a19322 1
char lstat ();
d19337 1
a19337 1
#if defined (__stub_lstat) || defined (__stub___lstat)
d19340 1
a19340 1
f = lstat;
d19359 1
a19359 1
  ac_cv_func_lstat=yes
d19363 1
a19363 1
ac_cv_func_lstat=no
d19367 3
a19369 3
echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
echo "${ECHO_T}$ac_cv_func_lstat" >&6
if test $ac_cv_func_lstat = yes; then
d19372 1
a19372 1
#define HAVE_LSTAT 1
d19376 1
a19376 1
  LIBOBJS="$LIBOBJS lstat.$ac_objext"
d19378 3
a19380 3
echo "$as_me:$LINENO: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
d19387 1
a19387 1
    which can conflict with char memmove (); below.  */
d19395 1
a19395 1
char memmove ();
d19410 1
a19410 1
#if defined (__stub_memmove) || defined (__stub___memmove)
d19413 1
a19413 1
f = memmove;
d19432 1
a19432 1
  ac_cv_func_memmove=yes
d19436 1
a19436 1
ac_cv_func_memmove=no
d19440 3
a19442 3
echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
d19445 1
a19445 1
#define HAVE_MEMMOVE 1
d19449 1
a19449 1
  LIBOBJS="$LIBOBJS memmove.$ac_objext"
d19451 3
a19453 3
echo "$as_me:$LINENO: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
d19460 1
a19460 1
    which can conflict with char mkstemp (); below.  */
d19468 1
a19468 1
char mkstemp ();
d19483 1
a19483 1
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
d19486 1
a19486 1
f = mkstemp;
d19505 1
a19505 1
  ac_cv_func_mkstemp=yes
d19509 1
a19509 1
ac_cv_func_mkstemp=no
d19513 3
a19515 3
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
if test $ac_cv_func_mkstemp = yes; then
d19518 1
a19518 1
#define HAVE_MKSTEMP 1
d19522 1
a19522 1
  LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
d19524 3
a19526 3
echo "$as_me:$LINENO: checking for putenv" >&5
echo $ECHO_N "checking for putenv... $ECHO_C" >&6
if test "${ac_cv_func_putenv+set}" = set; then
d19533 1
a19533 1
    which can conflict with char putenv (); below.  */
d19541 1
a19541 1
char putenv ();
d19556 1
a19556 1
#if defined (__stub_putenv) || defined (__stub___putenv)
d19559 1
a19559 1
f = putenv;
d19578 1
a19578 1
  ac_cv_func_putenv=yes
d19582 1
a19582 1
ac_cv_func_putenv=no
d19586 3
a19588 3
echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
echo "${ECHO_T}$ac_cv_func_putenv" >&6
if test $ac_cv_func_putenv = yes; then
d19591 1
a19591 1
#define HAVE_PUTENV 1
d19595 1
a19595 1
  LIBOBJS="$LIBOBJS putenv.$ac_objext"
d19597 3
a19599 3
echo "$as_me:$LINENO: checking for rcmd" >&5
echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
if test "${ac_cv_func_rcmd+set}" = set; then
d19606 1
a19606 1
    which can conflict with char rcmd (); below.  */
d19614 1
a19614 1
char rcmd ();
d19629 1
a19629 1
#if defined (__stub_rcmd) || defined (__stub___rcmd)
d19632 1
a19632 1
f = rcmd;
d19651 1
a19651 1
  ac_cv_func_rcmd=yes
d19655 1
a19655 1
ac_cv_func_rcmd=no
d19659 3
a19661 3
echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
echo "${ECHO_T}$ac_cv_func_rcmd" >&6
if test $ac_cv_func_rcmd = yes; then
d19664 1
a19664 1
#define HAVE_RCMD 1
d19668 1
a19668 1
  LIBOBJS="$LIBOBJS rcmd.$ac_objext"
d19670 3
a19672 3
echo "$as_me:$LINENO: checking for readv" >&5
echo $ECHO_N "checking for readv... $ECHO_C" >&6
if test "${ac_cv_func_readv+set}" = set; then
d19679 1
a19679 1
    which can conflict with char readv (); below.  */
d19687 1
a19687 1
char readv ();
d19702 1
a19702 1
#if defined (__stub_readv) || defined (__stub___readv)
d19705 1
a19705 1
f = readv;
d19724 1
a19724 1
  ac_cv_func_readv=yes
d19728 1
a19728 1
ac_cv_func_readv=no
d19732 3
a19734 3
echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
echo "${ECHO_T}$ac_cv_func_readv" >&6
if test $ac_cv_func_readv = yes; then
d19737 1
a19737 1
#define HAVE_READV 1
d19741 1
a19741 1
  LIBOBJS="$LIBOBJS readv.$ac_objext"
d19743 3
a19745 3
echo "$as_me:$LINENO: checking for recvmsg" >&5
echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
if test "${ac_cv_func_recvmsg+set}" = set; then
d19752 1
a19752 1
    which can conflict with char recvmsg (); below.  */
d19760 1
a19760 1
char recvmsg ();
d19775 1
a19775 1
#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
d19778 1
a19778 1
f = recvmsg;
d19797 1
a19797 1
  ac_cv_func_recvmsg=yes
d19801 1
a19801 1
ac_cv_func_recvmsg=no
d19805 3
a19807 3
echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
if test $ac_cv_func_recvmsg = yes; then
d19810 1
a19810 1
#define HAVE_RECVMSG 1
d19814 1
a19814 1
  LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
d19816 3
a19818 3
echo "$as_me:$LINENO: checking for sendmsg" >&5
echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
if test "${ac_cv_func_sendmsg+set}" = set; then
d19825 1
a19825 1
    which can conflict with char sendmsg (); below.  */
d19833 1
a19833 1
char sendmsg ();
d19848 1
a19848 1
#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
d19851 1
a19851 1
f = sendmsg;
d19870 1
a19870 1
  ac_cv_func_sendmsg=yes
d19874 1
a19874 1
ac_cv_func_sendmsg=no
d19878 3
a19880 3
echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
if test $ac_cv_func_sendmsg = yes; then
d19883 1
a19883 1
#define HAVE_SENDMSG 1
d19887 1
a19887 1
  LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
d19889 3
a19891 3
echo "$as_me:$LINENO: checking for setegid" >&5
echo $ECHO_N "checking for setegid... $ECHO_C" >&6
if test "${ac_cv_func_setegid+set}" = set; then
d19898 1
a19898 1
    which can conflict with char setegid (); below.  */
d19906 1
a19906 1
char setegid ();
d19921 1
a19921 1
#if defined (__stub_setegid) || defined (__stub___setegid)
d19924 1
a19924 1
f = setegid;
d19943 1
a19943 1
  ac_cv_func_setegid=yes
d19947 1
a19947 1
ac_cv_func_setegid=no
d19951 3
a19953 3
echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
echo "${ECHO_T}$ac_cv_func_setegid" >&6
if test $ac_cv_func_setegid = yes; then
d19956 1
a19956 1
#define HAVE_SETEGID 1
d19960 1
a19960 1
  LIBOBJS="$LIBOBJS setegid.$ac_objext"
d19962 3
a19964 3
echo "$as_me:$LINENO: checking for setenv" >&5
echo $ECHO_N "checking for setenv... $ECHO_C" >&6
if test "${ac_cv_func_setenv+set}" = set; then
d19971 1
a19971 1
    which can conflict with char setenv (); below.  */
d19979 1
a19979 1
char setenv ();
d19994 1
a19994 1
#if defined (__stub_setenv) || defined (__stub___setenv)
d19997 1
a19997 1
f = setenv;
d20016 1
a20016 1
  ac_cv_func_setenv=yes
d20020 1
a20020 1
ac_cv_func_setenv=no
d20024 3
a20026 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
echo "${ECHO_T}$ac_cv_func_setenv" >&6
if test $ac_cv_func_setenv = yes; then
d20029 1
a20029 1
#define HAVE_SETENV 1
d20033 1
a20033 1
  LIBOBJS="$LIBOBJS setenv.$ac_objext"
d20035 3
a20037 3
echo "$as_me:$LINENO: checking for seteuid" >&5
echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
if test "${ac_cv_func_seteuid+set}" = set; then
d20044 1
a20044 1
    which can conflict with char seteuid (); below.  */
d20052 1
a20052 1
char seteuid ();
d20067 1
a20067 1
#if defined (__stub_seteuid) || defined (__stub___seteuid)
d20070 1
a20070 1
f = seteuid;
d20089 1
a20089 1
  ac_cv_func_seteuid=yes
d20093 1
a20093 1
ac_cv_func_seteuid=no
d20097 3
a20099 3
echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
echo "${ECHO_T}$ac_cv_func_seteuid" >&6
if test $ac_cv_func_seteuid = yes; then
d20102 1
a20102 1
#define HAVE_SETEUID 1
d20106 1
a20106 1
  LIBOBJS="$LIBOBJS seteuid.$ac_objext"
d20108 3
a20110 3
echo "$as_me:$LINENO: checking for strcasecmp" >&5
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strcasecmp+set}" = set; then
d20117 1
a20117 1
    which can conflict with char strcasecmp (); below.  */
d20125 1
a20125 1
char strcasecmp ();
d20140 1
a20140 1
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
d20143 1
a20143 1
f = strcasecmp;
d20162 1
a20162 1
  ac_cv_func_strcasecmp=yes
d20166 1
a20166 1
ac_cv_func_strcasecmp=no
d20170 3
a20172 3
echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
if test $ac_cv_func_strcasecmp = yes; then
d20175 1
a20175 1
#define HAVE_STRCASECMP 1
d20179 1
a20179 1
  LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
d20181 7
a20187 3
echo "$as_me:$LINENO: checking for strdup" >&5
echo $ECHO_N "checking for strdup... $ECHO_C" >&6
if test "${ac_cv_func_strdup+set}" = set; then
d20193 1
a20193 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strdup ();
char (*f) ();

d20203 3
a20205 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strdup) || defined (__stub___strdup)
choke me
#else
f = strdup;
#endif
d20211 3
a20213 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20217 1
a20217 1
         { ac_try='test -s conftest$ac_exeext'
d20223 1
a20223 1
  ac_cv_func_strdup=yes
d20227 1
a20227 1
ac_cv_func_strdup=no
d20229 1
a20229 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20231 3
a20233 3
echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
echo "${ECHO_T}$ac_cv_func_strdup" >&6
if test $ac_cv_func_strdup = yes; then
d20235 2
a20236 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRDUP 1
a20238 2
else
  LIBOBJS="$LIBOBJS strdup.$ac_objext"
d20240 6
a20245 3
echo "$as_me:$LINENO: checking for strerror" >&5
echo $ECHO_N "checking for strerror... $ECHO_C" >&6
if test "${ac_cv_func_strerror+set}" = set; then
d20251 1
a20251 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strerror (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strerror ();
char (*f) ();

d20261 3
a20263 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strerror) || defined (__stub___strerror)
choke me
#else
f = strerror;
#endif
d20269 3
a20271 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20275 1
a20275 1
         { ac_try='test -s conftest$ac_exeext'
d20281 1
a20281 1
  ac_cv_func_strerror=yes
d20285 1
a20285 1
ac_cv_func_strerror=no
d20287 1
a20287 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20289 3
a20291 3
echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
echo "${ECHO_T}$ac_cv_func_strerror" >&6
if test $ac_cv_func_strerror = yes; then
d20293 2
a20294 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR 1
a20296 2
else
  LIBOBJS="$LIBOBJS strerror.$ac_objext"
d20298 6
a20303 3
echo "$as_me:$LINENO: checking for strftime" >&5
echo $ECHO_N "checking for strftime... $ECHO_C" >&6
if test "${ac_cv_func_strftime+set}" = set; then
d20309 1
a20309 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strftime (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strftime ();
char (*f) ();

d20319 3
a20321 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strftime) || defined (__stub___strftime)
choke me
#else
f = strftime;
#endif
d20327 3
a20329 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20333 1
a20333 1
         { ac_try='test -s conftest$ac_exeext'
d20339 1
a20339 1
  ac_cv_func_strftime=yes
d20343 1
a20343 1
ac_cv_func_strftime=no
d20345 1
a20345 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20347 3
a20349 3
echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
echo "${ECHO_T}$ac_cv_func_strftime" >&6
if test $ac_cv_func_strftime = yes; then
d20351 2
a20352 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRFTIME 1
a20354 2
else
  LIBOBJS="$LIBOBJS strftime.$ac_objext"
d20356 8
a20363 3
echo "$as_me:$LINENO: checking for strlcat" >&5
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
if test "${ac_cv_func_strlcat+set}" = set; then
d20369 2
a20370 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcat (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20371 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcat ();
char (*f) ();

d20381 3
a20383 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcat) || defined (__stub___strlcat)
choke me
#else
f = strlcat;
#endif
d20389 3
a20391 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20395 1
a20395 1
         { ac_try='test -s conftest$ac_exeext'
d20401 1
a20401 1
  ac_cv_func_strlcat=yes
d20405 1
a20405 1
ac_cv_func_strlcat=no
d20407 1
a20407 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20409 3
a20411 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
echo "${ECHO_T}$ac_cv_func_strlcat" >&6
if test $ac_cv_func_strlcat = yes; then
d20413 2
a20414 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCAT 1
a20416 2
else
  LIBOBJS="$LIBOBJS strlcat.$ac_objext"
d20418 6
a20423 3
echo "$as_me:$LINENO: checking for strlcpy" >&5
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
if test "${ac_cv_func_strlcpy+set}" = set; then
d20429 2
a20430 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcpy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20431 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcpy ();
char (*f) ();

d20441 3
a20443 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
choke me
#else
f = strlcpy;
#endif
d20449 3
a20451 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20455 1
a20455 1
         { ac_try='test -s conftest$ac_exeext'
d20461 1
a20461 1
  ac_cv_func_strlcpy=yes
d20465 1
a20465 1
ac_cv_func_strlcpy=no
d20467 1
a20467 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20469 3
a20471 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
if test $ac_cv_func_strlcpy = yes; then
d20473 2
a20474 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCPY 1
a20476 2
else
  LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
d20478 6
a20483 3
echo "$as_me:$LINENO: checking for strlwr" >&5
echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
if test "${ac_cv_func_strlwr+set}" = set; then
d20489 2
a20490 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlwr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20491 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlwr ();
char (*f) ();

d20501 3
a20503 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlwr) || defined (__stub___strlwr)
choke me
#else
f = strlwr;
#endif
d20509 3
a20511 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20515 1
a20515 1
         { ac_try='test -s conftest$ac_exeext'
d20521 1
a20521 1
  ac_cv_func_strlwr=yes
d20525 1
a20525 1
ac_cv_func_strlwr=no
d20527 1
a20527 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20529 3
a20531 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
echo "${ECHO_T}$ac_cv_func_strlwr" >&6
if test $ac_cv_func_strlwr = yes; then
d20533 2
a20534 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLWR 1
a20536 2
else
  LIBOBJS="$LIBOBJS strlwr.$ac_objext"
d20538 6
a20543 3
echo "$as_me:$LINENO: checking for strncasecmp" >&5
echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strncasecmp+set}" = set; then
d20549 2
a20550 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strncasecmp (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20551 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strncasecmp ();
char (*f) ();

d20561 3
a20563 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
choke me
#else
f = strncasecmp;
#endif
d20569 3
a20571 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20575 1
a20575 1
         { ac_try='test -s conftest$ac_exeext'
d20581 1
a20581 1
  ac_cv_func_strncasecmp=yes
d20585 1
a20585 1
ac_cv_func_strncasecmp=no
d20587 1
a20587 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20589 3
a20591 3
echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
if test $ac_cv_func_strncasecmp = yes; then
d20593 2
a20594 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNCASECMP 1
a20596 2
else
  LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
d20598 6
a20603 3
echo "$as_me:$LINENO: checking for strndup" >&5
echo $ECHO_N "checking for strndup... $ECHO_C" >&6
if test "${ac_cv_func_strndup+set}" = set; then
d20609 2
a20610 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strndup (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20611 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strndup ();
char (*f) ();

d20621 3
a20623 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strndup) || defined (__stub___strndup)
choke me
#else
f = strndup;
#endif
d20629 3
a20631 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20635 1
a20635 1
         { ac_try='test -s conftest$ac_exeext'
d20641 1
a20641 1
  ac_cv_func_strndup=yes
d20645 1
a20645 1
ac_cv_func_strndup=no
d20647 1
a20647 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20649 3
a20651 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
echo "${ECHO_T}$ac_cv_func_strndup" >&6
if test $ac_cv_func_strndup = yes; then
d20653 2
a20654 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNDUP 1
a20656 2
else
  LIBOBJS="$LIBOBJS strndup.$ac_objext"
d20658 6
a20663 3
echo "$as_me:$LINENO: checking for strnlen" >&5
echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
if test "${ac_cv_func_strnlen+set}" = set; then
d20669 2
a20670 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strnlen (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20671 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strnlen ();
char (*f) ();

d20681 3
a20683 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strnlen) || defined (__stub___strnlen)
choke me
#else
f = strnlen;
#endif
d20689 3
a20691 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20695 1
a20695 1
         { ac_try='test -s conftest$ac_exeext'
d20701 1
a20701 1
  ac_cv_func_strnlen=yes
d20705 1
a20705 1
ac_cv_func_strnlen=no
d20707 1
a20707 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20709 3
a20711 3
echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
echo "${ECHO_T}$ac_cv_func_strnlen" >&6
if test $ac_cv_func_strnlen = yes; then
d20713 2
a20714 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNLEN 1
a20716 2
else
  LIBOBJS="$LIBOBJS strnlen.$ac_objext"
d20718 6
a20723 3
echo "$as_me:$LINENO: checking for strptime" >&5
echo $ECHO_N "checking for strptime... $ECHO_C" >&6
if test "${ac_cv_func_strptime+set}" = set; then
d20729 2
a20730 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strptime (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20731 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strptime ();
char (*f) ();

d20741 3
a20743 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strptime) || defined (__stub___strptime)
choke me
#else
f = strptime;
#endif
d20749 3
a20751 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20755 1
a20755 1
         { ac_try='test -s conftest$ac_exeext'
d20761 1
a20761 1
  ac_cv_func_strptime=yes
d20765 1
a20765 1
ac_cv_func_strptime=no
d20767 1
a20767 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20769 3
a20771 3
echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
echo "${ECHO_T}$ac_cv_func_strptime" >&6
if test $ac_cv_func_strptime = yes; then
d20773 2
a20774 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRPTIME 1
a20776 2
else
  LIBOBJS="$LIBOBJS strptime.$ac_objext"
d20778 6
a20783 3
echo "$as_me:$LINENO: checking for strsep" >&5
echo $ECHO_N "checking for strsep... $ECHO_C" >&6
if test "${ac_cv_func_strsep+set}" = set; then
d20789 11
a20799 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20800 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strsep ();
char (*f) ();

d20810 1
d20814 1
a20814 1
#if defined (__stub_strsep) || defined (__stub___strsep)
d20817 1
a20817 1
f = strsep;
d20836 1
a20836 1
  ac_cv_func_strsep=yes
d20840 1
a20840 1
ac_cv_func_strsep=no
d20844 2
a20845 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
echo "${ECHO_T}$ac_cv_func_strsep" >&6
if test $ac_cv_func_strsep = yes; then
d20848 1
a20848 1
#define HAVE_STRSEP 1
d20851 2
d20854 3
a20856 1
  LIBOBJS="$LIBOBJS strsep.$ac_objext"
d20858 4
a20861 3
echo "$as_me:$LINENO: checking for strsep_copy" >&5
echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
if test "${ac_cv_func_strsep_copy+set}" = set; then
d20867 11
a20877 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep_copy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20878 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strsep_copy ();
char (*f) ();

d20888 1
d20892 1
a20892 1
#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
d20895 1
a20895 1
f = strsep_copy;
d20914 1
a20914 1
  ac_cv_func_strsep_copy=yes
d20918 1
a20918 1
ac_cv_func_strsep_copy=no
d20922 2
a20923 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
if test $ac_cv_func_strsep_copy = yes; then
d20926 1
a20926 1
#define HAVE_STRSEP_COPY 1
d20929 2
d20932 3
a20934 1
  LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
d20936 4
a20939 3
echo "$as_me:$LINENO: checking for strtok_r" >&5
echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r+set}" = set; then
d20945 11
a20955 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strtok_r (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20956 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strtok_r ();
char (*f) ();

d20966 1
d20970 1
a20970 1
#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
d20973 1
a20973 1
f = strtok_r;
d20992 1
a20992 1
  ac_cv_func_strtok_r=yes
d20996 1
a20996 1
ac_cv_func_strtok_r=no
d21000 2
a21001 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
if test $ac_cv_func_strtok_r = yes; then
d21004 1
a21004 1
#define HAVE_STRTOK_R 1
d21007 2
d21010 3
a21012 1
  LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
d21014 6
a21019 3
echo "$as_me:$LINENO: checking for strupr" >&5
echo $ECHO_N "checking for strupr... $ECHO_C" >&6
if test "${ac_cv_func_strupr+set}" = set; then
d21022 2
a21023 1
  cat >conftest.$ac_ext <<_ACEOF
d21026 2
a21027 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strupr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strupr ();
char (*f) ();

d21037 1
a21037 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strupr) || defined (__stub___strupr)
choke me
#else
f = strupr;
#endif

d21042 3
a21044 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21048 1
a21048 1
         { ac_try='test -s conftest$ac_exeext'
d21054 1
a21054 1
  ac_cv_func_strupr=yes
d21058 1
a21058 1
ac_cv_func_strupr=no
d21060 1
a21060 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21062 4
a21065 3
echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
echo "${ECHO_T}$ac_cv_func_strupr" >&6
if test $ac_cv_func_strupr = yes; then
d21067 2
a21068 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUPR 1
d21071 1
a21071 2
else
  LIBOBJS="$LIBOBJS strupr.$ac_objext"
d21073 8
a21080 3
echo "$as_me:$LINENO: checking for swab" >&5
echo $ECHO_N "checking for swab... $ECHO_C" >&6
if test "${ac_cv_func_swab+set}" = set; then
d21083 5
d21091 5
a21095 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char swab (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char swab ();
char (*f) ();
a21096 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21098 1
a21098 1
main ()
d21100 5
a21104 7
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_swab) || defined (__stub___swab)
choke me
#else
f = swab;
d21106 6
a21112 3
  ;
  return 0;
}
d21114 1
a21114 1
rm -f conftest.$ac_objext conftest$ac_exeext
d21119 1
a21119 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
d21125 1
a21125 1
  ac_cv_func_swab=yes
d21127 2
a21128 1
  echo "$as_me: failed program was:" >&5
d21130 5
a21134 1
ac_cv_func_swab=no
d21136 5
a21140 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a21141 3
echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
echo "${ECHO_T}$ac_cv_func_swab" >&6
if test $ac_cv_func_swab = yes; then
d21143 1
a21143 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SWAB 1
_ACEOF
d21145 4
d21150 4
a21153 6
  LIBOBJS="$LIBOBJS swab.$ac_objext"
fi
echo "$as_me:$LINENO: checking for unsetenv" >&5
echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d21158 4
a21161 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char unsetenv (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char unsetenv ();
char (*f) ();
a21162 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21164 1
a21164 1
main ()
d21166 9
a21174 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
choke me
#else
f = unsetenv;
#endif
a21175 3
  ;
  return 0;
}
d21177 1
a21177 1
rm -f conftest.$ac_objext conftest$ac_exeext
d21182 1
a21182 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
d21188 1
a21188 1
  ac_cv_func_unsetenv=yes
d21190 2
a21191 1
  echo "$as_me: failed program was:" >&5
d21193 5
a21197 1
ac_cv_func_unsetenv=no
d21199 6
a21204 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a21205 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
if test $ac_cv_func_unsetenv = yes; then
a21206 3
cat >>confdefs.h <<_ACEOF
#define HAVE_UNSETENV 1
_ACEOF
d21208 4
a21211 6
else
  LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
fi
echo "$as_me:$LINENO: checking for verr" >&5
echo $ECHO_N "checking for verr... $ECHO_C" >&6
if test "${ac_cv_func_verr+set}" = set; then
d21217 1
a21217 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verr ();
char (*f) ();

d21227 3
a21229 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verr) || defined (__stub___verr)
choke me
#else
f = verr;
#endif
d21235 3
a21237 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21241 1
a21241 1
         { ac_try='test -s conftest$ac_exeext'
d21247 1
a21247 1
  ac_cv_func_verr=yes
d21251 1
a21251 1
ac_cv_func_verr=no
d21253 1
a21253 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21255 3
a21257 3
echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
echo "${ECHO_T}$ac_cv_func_verr" >&6
if test $ac_cv_func_verr = yes; then
d21259 2
a21260 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VERR 1
a21262 2
else
  LIBOBJS="$LIBOBJS verr.$ac_objext"
d21264 7
a21270 3
echo "$as_me:$LINENO: checking for verrx" >&5
echo $ECHO_N "checking for verrx... $ECHO_C" >&6
if test "${ac_cv_func_verrx+set}" = set; then
d21276 1
a21276 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verrx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verrx ();
char (*f) ();

d21286 3
a21288 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verrx) || defined (__stub___verrx)
choke me
#else
f = verrx;
#endif
d21294 3
a21296 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21300 1
a21300 1
         { ac_try='test -s conftest$ac_exeext'
d21306 1
a21306 1
  ac_cv_func_verrx=yes
d21310 1
a21310 1
ac_cv_func_verrx=no
d21312 1
a21312 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21314 3
a21316 3
echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
echo "${ECHO_T}$ac_cv_func_verrx" >&6
if test $ac_cv_func_verrx = yes; then
d21318 2
a21319 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VERRX 1
a21321 2
else
  LIBOBJS="$LIBOBJS verrx.$ac_objext"
d21323 7
a21329 3
echo "$as_me:$LINENO: checking for vsyslog" >&5
echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
if test "${ac_cv_func_vsyslog+set}" = set; then
d21335 1
a21335 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vsyslog (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vsyslog ();
char (*f) ();

d21345 3
a21347 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
choke me
#else
f = vsyslog;
#endif
d21353 3
a21355 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21359 1
a21359 1
         { ac_try='test -s conftest$ac_exeext'
d21365 1
a21365 1
  ac_cv_func_vsyslog=yes
d21369 1
a21369 1
ac_cv_func_vsyslog=no
d21371 1
a21371 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21373 3
a21375 3
echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
if test $ac_cv_func_vsyslog = yes; then
d21377 2
a21378 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VSYSLOG 1
a21380 2
else
  LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
d21382 7
a21388 3
echo "$as_me:$LINENO: checking for vwarn" >&5
echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
if test "${ac_cv_func_vwarn+set}" = set; then
d21394 1
a21394 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarn ();
char (*f) ();

d21404 3
a21406 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarn) || defined (__stub___vwarn)
choke me
#else
f = vwarn;
#endif
d21412 3
a21414 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21418 1
a21418 1
         { ac_try='test -s conftest$ac_exeext'
d21424 1
a21424 1
  ac_cv_func_vwarn=yes
d21428 1
a21428 1
ac_cv_func_vwarn=no
d21430 1
a21430 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21432 3
a21434 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
echo "${ECHO_T}$ac_cv_func_vwarn" >&6
if test $ac_cv_func_vwarn = yes; then
d21436 2
a21437 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARN 1
a21439 2
else
  LIBOBJS="$LIBOBJS vwarn.$ac_objext"
d21441 7
a21447 3
echo "$as_me:$LINENO: checking for vwarnx" >&5
echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
if test "${ac_cv_func_vwarnx+set}" = set; then
d21453 1
a21453 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarnx ();
char (*f) ();

d21463 3
a21465 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
choke me
#else
f = vwarnx;
#endif
d21471 3
a21473 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21477 1
a21477 1
         { ac_try='test -s conftest$ac_exeext'
d21483 1
a21483 1
  ac_cv_func_vwarnx=yes
d21487 1
a21487 1
ac_cv_func_vwarnx=no
d21489 1
a21489 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21491 3
a21493 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
if test $ac_cv_func_vwarnx = yes; then
d21495 2
a21496 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARNX 1
a21498 2
else
  LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
d21500 8
a21507 3
echo "$as_me:$LINENO: checking for warn" >&5
echo $ECHO_N "checking for warn... $ECHO_C" >&6
if test "${ac_cv_func_warn+set}" = set; then
d21513 12
a21524 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a21525 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warn ();
char (*f) ();

d21535 3
a21537 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warn) || defined (__stub___warn)
choke me
#else
f = warn;
#endif
d21543 3
a21545 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21549 1
a21549 1
         { ac_try='test -s conftest$ac_exeext'
d21555 1
a21555 1
  ac_cv_func_warn=yes
d21559 1
a21559 1
ac_cv_func_warn=no
d21561 1
a21561 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21563 3
a21565 3
echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
echo "${ECHO_T}$ac_cv_func_warn" >&6
if test $ac_cv_func_warn = yes; then
d21567 2
a21568 2
cat >>confdefs.h <<_ACEOF
#define HAVE_WARN 1
a21570 2
else
  LIBOBJS="$LIBOBJS warn.$ac_objext"
d21572 9
a21580 3
echo "$as_me:$LINENO: checking for warnx" >&5
echo $ECHO_N "checking for warnx... $ECHO_C" >&6
if test "${ac_cv_func_warnx+set}" = set; then
d21583 13
a21595 1
  cat >conftest.$ac_ext <<_ACEOF
a21597 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warnx ();
char (*f) ();
d21608 1
a21608 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warnx) || defined (__stub___warnx)
choke me
#else
f = warnx;
#endif

d21625 1
a21625 1
  ac_cv_func_warnx=yes
a21628 1
ac_cv_func_warnx=no
d21631 9
a21639 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
echo "${ECHO_T}$ac_cv_func_warnx" >&6
if test $ac_cv_func_warnx = yes; then
d21641 1
a21641 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WARNX 1
_ACEOF
d21643 6
a21648 6
else
  LIBOBJS="$LIBOBJS warnx.$ac_objext"
fi
echo "$as_me:$LINENO: checking for writev" >&5
echo $ECHO_N "checking for writev... $ECHO_C" >&6
if test "${ac_cv_func_writev+set}" = set; then
d21655 1
a21655 1
    which can conflict with char writev (); below.  */
d21663 1
a21663 1
char writev ();
d21678 1
a21678 1
#if defined (__stub_writev) || defined (__stub___writev)
d21681 1
a21681 1
f = writev;
d21700 1
a21700 1
  ac_cv_func_writev=yes
d21704 1
a21704 1
ac_cv_func_writev=no
d21708 39
a21746 3
echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
echo "${ECHO_T}$ac_cv_func_writev" >&6
if test $ac_cv_func_writev = yes; then
d21748 2
a21749 2
cat >>confdefs.h <<_ACEOF
#define HAVE_WRITEV 1
d21752 7
a21758 3
else
  LIBOBJS="$LIBOBJS writev.$ac_objext"
fi
d21762 3
a21764 4
if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strndup_noproto+set}" = set; then
d21770 17
a21786 1
#include <string.h>
d21796 1
a21796 4
struct foo { int foo; } xx;
extern int strndup (struct foo*);
strndup(&xx);

d21813 1
a21813 1
  eval "ac_cv_func_strndup_noproto=yes"
d21817 1
a21817 1
eval "ac_cv_func_strndup_noproto=no"
d21821 4
a21824 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
if test "$ac_cv_func_strndup_noproto" = yes; then
d21827 1
a21827 1
#define NEED_STRNDUP_PROTO 1
a21830 1
fi
d21832 6
a21837 4
if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
d21843 17
a21859 1
#include <string.h>
d21869 1
a21869 4
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);

d21886 1
a21886 1
  eval "ac_cv_func_strsep_noproto=yes"
d21890 1
a21890 1
eval "ac_cv_func_strsep_noproto=no"
d21894 4
a21897 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
if test "$ac_cv_func_strsep_noproto" = yes; then
d21900 1
a21900 1
#define NEED_STRSEP_PROTO 1
a21903 1
fi
d21905 6
a21910 4
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
d21916 17
a21932 1
#include <string.h>
d21942 1
a21942 4
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

d21959 1
a21959 1
  eval "ac_cv_func_strtok_r_noproto=yes"
d21963 1
a21963 1
eval "ac_cv_func_strtok_r_noproto=no"
d21967 4
a21970 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
if test "$ac_cv_func_strtok_r_noproto" = yes; then
d21973 1
a21973 1
#define NEED_STRTOK_R_PROTO 1
a21976 1
fi
d21980 4
a21983 4
if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsvis_noproto+set}" = set; then
d21989 6
a21994 2
#ifdef HAVE_VIS_H
#include <vis.h>
d21996 1
d22006 1
a22006 4
struct foo { int foo; } xx;
extern int strsvis (struct foo*);
strsvis(&xx);

d22023 1
a22023 1
  eval "ac_cv_func_strsvis_noproto=yes"
d22027 1
a22027 1
eval "ac_cv_func_strsvis_noproto=no"
d22031 4
a22034 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
if test "$ac_cv_func_strsvis_noproto" = yes; then
d22037 1
a22037 1
#define NEED_STRSVIS_PROTO 1
a22040 1
fi
d22042 6
a22047 4
if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strunvis_noproto+set}" = set; then
d22053 3
a22055 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22057 1
d22067 1
a22067 4
struct foo { int foo; } xx;
extern int strunvis (struct foo*);
strunvis(&xx);

d22084 1
a22084 1
  eval "ac_cv_func_strunvis_noproto=yes"
d22088 1
a22088 1
eval "ac_cv_func_strunvis_noproto=no"
d22092 4
a22095 3
echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
if test "$ac_cv_func_strunvis_noproto" = yes; then
d22098 1
a22098 1
#define NEED_STRUNVIS_PROTO 1
a22101 1
fi
d22103 7
a22109 4
if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvis_noproto+set}" = set; then
d22115 6
a22120 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22122 1
d22133 2
a22134 2
extern int strvis (struct foo*);
strvis(&xx);
d22152 1
a22152 1
  eval "ac_cv_func_strvis_noproto=yes"
d22156 1
a22156 1
eval "ac_cv_func_strvis_noproto=no"
d22160 3
a22162 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
if test "$ac_cv_func_strvis_noproto" = yes; then
d22165 1
a22165 1
#define NEED_STRVIS_PROTO 1
d22171 6
a22176 4
if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvisx_noproto+set}" = set; then
d22179 2
a22180 1
  cat >conftest.$ac_ext <<_ACEOF
d22183 2
a22184 3
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
d22194 1
a22194 4
struct foo { int foo; } xx;
extern int strvisx (struct foo*);
strvisx(&xx);

d22199 3
a22201 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d22205 1
a22205 1
         { ac_try='test -s conftest.$ac_objext'
d22211 1
a22211 1
  eval "ac_cv_func_strvisx_noproto=yes"
d22215 1
a22215 1
eval "ac_cv_func_strvisx_noproto=no"
d22217 2
a22218 1
rm -f conftest.$ac_objext conftest.$ac_ext
a22219 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
if test "$ac_cv_func_strvisx_noproto" = yes; then
d22221 7
a22227 2
cat >>confdefs.h <<\_ACEOF
#define NEED_STRVISX_PROTO 1
a22229 2
fi
fi
d22231 3
a22233 4
if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_svis_noproto+set}" = set; then
d22236 2
a22237 1
  cat >conftest.$ac_ext <<_ACEOF
d22240 5
a22244 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22246 1
d22256 1
a22256 4
struct foo { int foo; } xx;
extern int svis (struct foo*);
svis(&xx);

d22273 1
a22273 1
  eval "ac_cv_func_svis_noproto=yes"
d22277 1
a22277 1
eval "ac_cv_func_svis_noproto=no"
d22280 1
d22282 7
a22288 3
echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
if test "$ac_cv_func_svis_noproto" = yes; then
d22291 1
a22291 1
#define NEED_SVIS_PROTO 1
d22295 2
d22299 5
a22303 4
if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unvis_noproto+set}" = set; then
d22306 2
a22307 1
  cat >conftest.$ac_ext <<_ACEOF
d22310 2
a22311 3
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
d22321 1
a22321 4
struct foo { int foo; } xx;
extern int unvis (struct foo*);
unvis(&xx);

d22326 3
a22328 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d22332 1
a22332 1
         { ac_try='test -s conftest.$ac_objext'
d22338 1
a22338 1
  eval "ac_cv_func_unvis_noproto=yes"
d22342 1
a22342 1
eval "ac_cv_func_unvis_noproto=no"
d22344 2
a22345 1
rm -f conftest.$ac_objext conftest.$ac_ext
a22346 3
echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
if test "$ac_cv_func_unvis_noproto" = yes; then
d22348 7
a22354 2
cat >>confdefs.h <<\_ACEOF
#define NEED_UNVIS_PROTO 1
a22356 2
fi
fi
d22358 3
a22360 4
if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vis_noproto+set}" = set; then
d22363 2
a22364 1
  cat >conftest.$ac_ext <<_ACEOF
d22367 2
a22368 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22370 1
d22380 1
a22380 4
struct foo { int foo; } xx;
extern int vis (struct foo*);
vis(&xx);

d22397 1
a22397 1
  eval "ac_cv_func_vis_noproto=yes"
d22401 12
a22412 7
eval "ac_cv_func_vis_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
if test "$ac_cv_func_vis_noproto" = yes; then
d22415 1
a22415 1
#define NEED_VIS_PROTO 1
d22419 2
d22424 4
a22427 3
echo "$as_me:$LINENO: checking for inet_aton" >&5
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton+set}" = set; then
d22430 2
a22431 1
  cat >conftest.$ac_ext <<_ACEOF
d22434 2
a22435 12
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d22445 1
a22445 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton(0,0)
#endif

d22462 1
a22462 1
  eval "ac_cv_func_inet_aton=yes"
d22466 1
a22466 1
eval "ac_cv_func_inet_aton=no"
d22469 1
d22472 4
a22475 1
if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
d22478 1
a22478 1
#define HAVE_INET_ATON 1
a22480 7
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
fi
d22482 3
a22484 3
echo "$as_me:$LINENO: checking for inet_ntop" >&5
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
if test "${ac_cv_func_inet_ntop+set}" = set; then
d22487 2
a22488 1
  cat >conftest.$ac_ext <<_ACEOF
d22491 2
a22492 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d22494 1
d22504 1
a22504 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop(0, 0, 0, 0)
#endif

d22509 3
a22511 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d22515 1
a22515 1
         { ac_try='test -s conftest$ac_exeext'
d22521 1
a22521 1
  eval "ac_cv_func_inet_ntop=yes"
d22525 1
a22525 1
eval "ac_cv_func_inet_ntop=no"
d22527 2
a22528 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a22530 1
if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
d22532 8
a22539 2
cat >>confdefs.h <<_ACEOF
#define HAVE_INET_NTOP 1
a22541 6
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
d22544 8
a22551 3
echo "$as_me:$LINENO: checking for inet_pton" >&5
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
if test "${ac_cv_func_inet_pton+set}" = set; then
d22554 2
a22555 1
  cat >conftest.$ac_ext <<_ACEOF
d22558 2
a22559 12
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d22569 1
a22569 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton(0,0,0)
#endif

d22586 1
a22586 1
  eval "ac_cv_func_inet_pton=yes"
d22590 1
a22590 1
eval "ac_cv_func_inet_pton=no"
d22593 1
d22596 4
a22599 1
if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
d22602 1
a22602 1
#define HAVE_INET_PTON 1
a22604 7
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
fi
d22606 3
a22608 5


echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
d22615 4
a22618 2
#include <sys/types.h>
#include <sys/socket.h>
d22628 1
a22628 1
struct sockaddr x; x.sa_len;
d22645 1
a22645 1
  ac_cv_type_struct_sockaddr_sa_len=yes
d22649 1
a22649 1
ac_cv_type_struct_sockaddr_sa_len=no
d22652 1
a22653 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
d22656 6
d22663 1
a22663 1
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
d22666 2
d22673 3
a22675 5
if test "$ac_cv_func_getnameinfo" = "yes"; then

echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
d22678 2
a22679 6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
d22682 11
a22692 6
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

d22694 1
a22694 1
main(int argc, char **argv)
d22696 3
a22698 11
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
a22699 1

d22701 3
a22703 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d22706 2
a22707 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d22713 1
a22713 1
  ac_cv_func_getnameinfo_broken=no
d22715 1
a22715 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d22717 1
a22717 2
( exit $ac_status )
ac_cv_func_getnameinfo_broken=yes
d22719 2
a22720 8
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
  fi
a22722 1
if test "$ac_cv_func_getaddrinfo" = "yes"; then
a22723 17
echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
a22724 12
int
main(int argc, char **argv)
{
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
		return 1;
	return 0;
}
d22726 6
d22733 1
a22733 28
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getaddrinfo_numserv=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_getaddrinfo_numserv=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
  fi
d22737 4
a22740 4
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
d22743 2
a22744 1
  cat >conftest.$ac_ext <<_ACEOF
d22748 4
d22761 1
a22761 4
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);

d22778 1
a22778 1
  eval "ac_cv_func_setenv_noproto=yes"
d22782 1
a22782 1
eval "ac_cv_func_setenv_noproto=no"
d22785 1
d22787 7
a22793 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
if test "$ac_cv_func_setenv_noproto" = yes; then
d22796 1
a22796 1
#define NEED_SETENV_PROTO 1
a22799 1
fi
d22802 4
a22805 4
if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
d22808 2
a22809 1
  cat >conftest.$ac_ext <<_ACEOF
d22813 4
d22826 1
a22826 4
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);

d22843 1
a22843 1
  eval "ac_cv_func_unsetenv_noproto=yes"
d22847 1
a22847 1
eval "ac_cv_func_unsetenv_noproto=no"
d22850 1
d22852 7
a22858 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d22861 1
a22861 1
#define NEED_UNSETENV_PROTO 1
a22864 1
fi
d22867 4
a22870 4
if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
d22873 2
a22874 1
  cat >conftest.$ac_ext <<_ACEOF
d22877 2
d22880 2
d22891 1
a22891 4
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

d22908 1
a22908 1
  eval "ac_cv_func_gethostname_noproto=yes"
d22912 1
a22912 1
eval "ac_cv_func_gethostname_noproto=no"
d22915 1
d22917 7
a22923 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
if test "$ac_cv_func_gethostname_noproto" = yes; then
d22926 1
a22926 1
#define NEED_GETHOSTNAME_PROTO 1
a22929 1
fi
d22932 5
a22936 4
if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
d22939 2
a22940 1
  cat >conftest.$ac_ext <<_ACEOF
d22943 2
a22944 1
#include <unistd.h>
d22954 1
a22954 4
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

d22971 1
a22971 1
  eval "ac_cv_func_mkstemp_noproto=yes"
d22975 1
a22975 1
eval "ac_cv_func_mkstemp_noproto=no"
d22978 9
a22986 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
if test "$ac_cv_func_mkstemp_noproto" = yes; then
d22989 1
a22989 1
#define NEED_MKSTEMP_PROTO 1
a22992 1
fi
d22995 7
a23001 4
if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
d23004 2
a23005 1
  cat >conftest.$ac_ext <<_ACEOF
d23008 1
a23008 1
#include <unistd.h>
d23018 1
a23018 4
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);

d23035 1
a23035 1
  eval "ac_cv_func_getusershell_noproto=yes"
d23039 1
a23039 1
eval "ac_cv_func_getusershell_noproto=no"
d23043 4
a23046 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
if test "$ac_cv_func_getusershell_noproto" = yes; then
d23049 1
a23049 1
#define NEED_GETUSERSHELL_PROTO 1
d23052 1
a23052 1
fi
d23057 4
a23060 4
if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
d23063 2
a23064 1
  cat >conftest.$ac_ext <<_ACEOF
d23067 1
a23067 13

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d23077 1
a23077 4
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

d23094 1
a23094 1
  eval "ac_cv_func_inet_aton_noproto=yes"
d23098 1
a23098 1
eval "ac_cv_func_inet_aton_noproto=no"
d23102 4
a23105 3
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
if test "$ac_cv_func_inet_aton_noproto" = yes; then
d23108 1
a23108 1
#define NEED_INET_ATON_PROTO 1
d23111 1
a23111 1
fi
d23118 3
a23120 3
echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
d23124 1
a23124 12
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d23127 2
a23128 1

d23138 1
a23138 1
crypt()
d23155 1
a23155 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d23159 1
a23161 4
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
fi
d23165 4
d23170 3
a23172 1
eval "ac_res=\$ac_cv_funclib_crypt"
a23173 1
if false; then
d23175 3
a23177 6
for ac_func in crypt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d23180 2
a23181 1
  cat >conftest.$ac_ext <<_ACEOF
d23184 2
a23185 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d23195 1
a23195 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d23200 3
a23202 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23206 1
a23206 1
         { ac_try='test -s conftest$ac_exeext'
d23212 1
a23212 1
  eval "$as_ac_var=yes"
d23216 1
a23216 1
eval "$as_ac_var=no"
d23218 2
a23219 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a23220 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a23221 2
fi
done
a23222 5
fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"
a23223 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d23225 3
a23227 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d23229 2
a23230 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d23233 1
a23233 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d23236 1
d23239 3
a23241 5


echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
d23244 2
a23245 1
  cat >conftest.$ac_ext <<_ACEOF
d23248 2
a23249 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d23259 1
a23259 1
struct hostent *gethostbyname(const char *);
d23264 3
a23266 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d23270 1
a23270 1
         { ac_try='test -s conftest.$ac_objext'
d23276 1
a23276 1
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
d23280 1
a23280 1
eval "ac_cv_func_gethostbyname_proto_compat=no"
d23282 2
a23283 1
rm -f conftest.$ac_objext conftest.$ac_ext
a23284 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
d23286 4
a23289 1
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
d23291 2
a23292 2
cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
a23294 1
fi
d23296 3
a23298 6



echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
d23301 2
a23302 1
  cat >conftest.$ac_ext <<_ACEOF
d23305 2
a23306 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d23316 1
a23316 1
struct hostent *gethostbyaddr(const void *, size_t, int);
d23333 1
a23333 1
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
d23337 1
a23337 1
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d23340 1
a23341 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
d23343 6
a23348 1
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
d23351 1
a23351 1
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
d23357 3
d23362 4
a23365 3
echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
a23370 2

#ifdef HAVE_SYS_TYPES_H
d23372 3
a23375 1
#ifdef HAVE_SYS_SOCKET_H
a23376 11
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d23386 1
a23386 1
struct servent *getservbyname(const char *, const char *);
d23403 1
a23403 1
  eval "ac_cv_func_getservbyname_proto_compat=yes"
d23407 1
a23407 1
eval "ac_cv_func_getservbyname_proto_compat=no"
d23411 9
a23419 17
echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
_ACEOF

fi




echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
d23425 1
a23425 8

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

d23435 4
a23438 1
int getsockname(int, struct sockaddr*, socklen_t*);
d23455 1
a23455 1
  eval "ac_cv_func_getsockname_proto_compat=yes"
d23459 1
a23459 1
eval "ac_cv_func_getsockname_proto_compat=no"
d23463 10
a23472 2
echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
d23474 1
a23474 1
if test "$ac_cv_func_getsockname_proto_compat" = yes; then
d23476 2
a23477 2
cat >>confdefs.h <<\_ACEOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
d23484 4
a23487 4

echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
d23493 4
a23496 3

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
d23498 1
a23498 1

d23508 1
a23508 1
void openlog(const char *, int, int);
d23525 1
a23525 1
  eval "ac_cv_func_openlog_proto_compat=yes"
d23529 1
a23529 1
eval "ac_cv_func_openlog_proto_compat=no"
d23533 9
a23541 18
echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6

if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OPENLOG_PROTO_COMPATIBLE 1
_ACEOF

fi




if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
d23547 1
a23547 8

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

d23557 4
a23560 4
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

d23577 1
a23577 1
  eval "ac_cv_func_crypt_noproto=yes"
d23581 13
a23593 1
eval "ac_cv_func_crypt_noproto=no"
d23595 1
a23595 1
rm -f conftest.$ac_objext conftest.$ac_ext
a23596 3
echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
if test "$ac_cv_func_crypt_noproto" = yes; then
d23598 2
a23599 2
cat >>confdefs.h <<\_ACEOF
#define NEED_CRYPT_PROTO 1
a23602 1
fi
d23606 4
a23609 4

echo "$as_me:$LINENO: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
d23612 1
a23612 2

cat >conftest.$ac_ext <<_ACEOF
d23615 6
a23620 2
extern int h_errno;
int foo() { return h_errno; }
d23630 1
a23630 1
foo()
d23635 3
a23637 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23641 1
a23641 1
         { ac_try='test -s conftest$ac_exeext'
d23647 1
a23647 1
  ac_cv_var_h_errno=yes
d23651 1
a23651 1
ac_cv_var_h_errno=no
d23653 1
a23653 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d23655 1
a23655 2

ac_foo=`eval echo \\$ac_cv_var_h_errno`
d23659 5
a23663 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRNO 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
d23666 1
a23666 2

cat >conftest.$ac_ext <<_ACEOF
d23669 1
a23669 7
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
d23679 4
a23682 1
h_errno.foo = 1;
d23699 1
a23699 1
  eval "ac_cv_var_h_errno_declaration=no"
d23703 1
a23703 1
eval "ac_cv_var_h_errno_declaration=yes"
a23705 1

d23707 3
d23711 3
d23716 1
d23718 1
a23718 3
echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
d23720 2
a23721 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRNO_DECLARATION 1
a23726 1
fi
d23728 4
a23731 5


echo "$as_me:$LINENO: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
d23734 1
a23734 2

cat >conftest.$ac_ext <<_ACEOF
d23737 6
a23742 2
extern int h_errlist;
int foo() { return h_errlist; }
d23752 1
a23752 1
foo()
d23757 3
a23759 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23763 1
a23763 1
         { ac_try='test -s conftest$ac_exeext'
d23769 1
a23769 1
  ac_cv_var_h_errlist=yes
d23773 1
a23773 1
ac_cv_var_h_errlist=no
d23775 1
a23775 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d23777 1
a23777 2

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
d23781 5
a23785 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRLIST 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
d23788 1
a23788 2

cat >conftest.$ac_ext <<_ACEOF
d23791 1
a23791 4
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
d23801 4
a23804 1
h_errlist.foo = 1;
d23821 1
a23821 1
  eval "ac_cv_var_h_errlist_declaration=no"
d23825 1
a23825 1
eval "ac_cv_var_h_errlist_declaration=yes"
a23827 1

d23829 3
d23833 3
d23838 1
d23840 1
a23840 3
echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
d23842 2
a23843 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRLIST_DECLARATION 1
a23848 1
fi
d23850 4
a23853 5


echo "$as_me:$LINENO: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
d23856 1
a23856 2

cat >conftest.$ac_ext <<_ACEOF
d23859 6
a23864 2
extern int h_nerr;
int foo() { return h_nerr; }
d23874 1
a23874 1
foo()
d23879 3
a23881 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23885 1
a23885 1
         { ac_try='test -s conftest$ac_exeext'
d23891 1
a23891 1
  ac_cv_var_h_nerr=yes
d23895 1
a23895 1
ac_cv_var_h_nerr=no
d23897 1
a23897 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d23899 1
a23899 2

ac_foo=`eval echo \\$ac_cv_var_h_nerr`
d23903 5
a23907 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_NERR 1
_ACEOF


echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
d23910 1
a23910 2

cat >conftest.$ac_ext <<_ACEOF
d23913 1
a23913 4
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
d23923 4
a23926 1
h_nerr.foo = 1;
d23943 1
a23943 1
  eval "ac_cv_var_h_nerr_declaration=no"
d23947 1
a23947 1
eval "ac_cv_var_h_nerr_declaration=yes"
a23949 1

d23951 3
d23955 3
d23960 1
d23962 1
a23962 3
echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
d23964 2
a23965 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_H_NERR_DECLARATION 1
a23970 1
fi
d23972 4
a23975 5


echo "$as_me:$LINENO: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
d23978 1
a23978 2

cat >conftest.$ac_ext <<_ACEOF
d23981 6
a23986 2
extern int __progname;
int foo() { return __progname; }
d23996 1
a23996 1
foo()
d24001 3
a24003 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d24007 1
a24007 1
         { ac_try='test -s conftest$ac_exeext'
d24013 1
a24013 1
  ac_cv_var___progname=yes
d24017 1
a24017 1
ac_cv_var___progname=no
d24019 1
a24019 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d24021 1
a24021 2

ac_foo=`eval echo \\$ac_cv_var___progname`
d24025 5
a24029 9

cat >>confdefs.h <<_ACEOF
#define HAVE___PROGNAME 1
_ACEOF


echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
d24032 1
a24032 2

cat >conftest.$ac_ext <<_ACEOF
d24035 1
a24035 4
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
d24045 4
a24048 1
__progname.foo = 1;
d24065 1
a24065 1
  eval "ac_cv_var___progname_declaration=no"
d24069 1
a24069 1
eval "ac_cv_var___progname_declaration=yes"
a24071 1

d24073 3
d24077 3
d24082 1
d24084 1
a24084 3
echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
d24086 2
a24087 2
cat >>confdefs.h <<\_ACEOF
#define HAVE___PROGNAME_DECLARATION 1
a24092 1
fi
d24094 4
a24097 5


echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
d24100 1
a24100 2

cat >conftest.$ac_ext <<_ACEOF
d24103 2
d24106 1
a24106 2
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d24108 4
a24111 1
extern struct { int foo; } optarg;
d24121 1
a24121 1
optarg.foo = 1;
d24138 1
a24138 1
  eval "ac_cv_var_optarg_declaration=no"
d24142 1
a24142 1
eval "ac_cv_var_optarg_declaration=yes"
a24144 1

d24146 9
a24154 19




echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTARG_DECLARATION 1
_ACEOF

fi



echo "$as_me:$LINENO: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
d24157 1
a24157 2

cat >conftest.$ac_ext <<_ACEOF
d24160 1
a24160 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
d24170 4
a24173 1
optind.foo = 1;
d24190 1
a24190 1
  eval "ac_cv_var_optind_declaration=no"
d24194 1
a24194 1
eval "ac_cv_var_optind_declaration=yes"
a24196 1

d24198 3
d24202 3
d24207 1
d24209 1
a24209 3
echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
d24211 2
a24212 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTIND_DECLARATION 1
d24219 4
a24222 3
echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
d24225 1
a24225 2

cat >conftest.$ac_ext <<_ACEOF
d24228 2
d24231 1
a24231 2
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d24233 4
a24236 1
extern struct { int foo; } opterr;
d24246 1
a24246 1
opterr.foo = 1;
d24263 1
a24263 1
  eval "ac_cv_var_opterr_declaration=no"
d24267 1
a24267 1
eval "ac_cv_var_opterr_declaration=yes"
a24269 1

d24271 9
a24279 19




echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTERR_DECLARATION 1
_ACEOF

fi



echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
d24282 1
a24282 2

cat >conftest.$ac_ext <<_ACEOF
d24285 1
a24285 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
d24295 4
a24298 1
optopt.foo = 1;
d24315 1
a24315 1
  eval "ac_cv_var_optopt_declaration=no"
d24319 1
a24319 1
eval "ac_cv_var_optopt_declaration=yes"
a24321 1

d24323 3
d24327 3
d24332 1
d24334 1
a24334 3
echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
d24336 2
a24337 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTOPT_DECLARATION 1
d24345 3
a24347 3
echo "$as_me:$LINENO: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
d24351 2
d24356 2
a24357 15
#include <stdlib.h>
extern struct { int foo; } environ;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
environ.foo = 1;
  ;
  return 0;
}
d24359 3
a24361 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_environ_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_environ_declaration=yes"
d24363 2
a24364 1
rm -f conftest.$ac_objext conftest.$ac_ext
d24368 1
d24370 3
d24374 7
d24382 3
a24384 3
echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
d24387 1
a24387 1
#define HAVE_ENVIRON_DECLARATION 1
d24391 14
d24406 2
d24413 3
a24415 3
echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
d24422 4
a24425 1
#include <time.h>
d24435 1
a24435 1
struct tm x; x.tm_gmtoff;
d24452 1
a24452 1
  ac_cv_type_struct_tm_tm_gmtoff=yes
d24456 1
a24456 1
ac_cv_type_struct_tm_tm_gmtoff=no
d24459 1
a24460 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
d24462 4
d24468 1
a24468 1
#define HAVE_STRUCT_TM_TM_GMTOFF 1
d24471 28
d24500 9
d24510 12
d24523 30
d24554 3
d24558 2
d24561 8
a24568 5
echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d24570 8
a24577 1
cat >conftest.$ac_ext <<_ACEOF
d24580 2
a24581 1
#include <time.h>
d24591 1
a24591 1
struct tm x; x.tm_zone;
d24596 3
a24598 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d24602 1
a24602 1
         { ac_try='test -s conftest.$ac_objext'
d24608 6
a24613 1
  ac_cv_type_struct_tm_tm_zone=yes
a24616 1
ac_cv_type_struct_tm_tm_zone=no
d24618 7
a24624 25
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF


fi





echo "$as_me:$LINENO: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
d24627 2
a24628 2
extern int timezone;
int foo() { return timezone; }
d24638 1
a24638 1
foo()
d24643 3
a24645 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d24649 1
a24649 1
         { ac_try='test -s conftest$ac_exeext'
d24655 1
a24655 1
  ac_cv_var_timezone=yes
a24658 1
ac_cv_var_timezone=no
d24660 5
a24664 21
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEZONE 1
_ACEOF


echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
d24667 2
a24668 2
#include <time.h>
extern struct { int foo; } timezone;
d24678 1
a24678 1
timezone.foo = 1;
d24683 3
a24685 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d24689 1
a24689 1
         { ac_try='test -s conftest.$ac_objext'
d24695 1
a24695 1
  eval "ac_cv_var_timezone_declaration=no"
a24698 1
eval "ac_cv_var_timezone_declaration=yes"
d24700 32
a24731 1
rm -f conftest.$ac_objext conftest.$ac_ext
d24733 2
d24739 3
d24743 1
a24743 3
echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
d24745 11
a24755 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_TIMEZONE_DECLARATION 1
_ACEOF
d24757 9
d24767 36
d24804 6
d24811 2
d24815 2
d24818 8
a24825 5
echo "$as_me:$LINENO: checking for altzone" >&5
echo $ECHO_N "checking for altzone... $ECHO_C" >&6
if test "${ac_cv_var_altzone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d24827 8
a24834 1
cat >conftest.$ac_ext <<_ACEOF
d24837 1
a24837 2
extern int altzone;
int foo() { return altzone; }
d24847 1
a24847 1
foo()
a24863 18
  ac_cv_var_altzone=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_altzone=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

ac_foo=`eval echo \\$ac_cv_var_altzone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ALTZONE 1
_ACEOF
d24865 5
a24869 5

echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_altzone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d24871 10
a24880 2

cat >conftest.$ac_ext <<_ACEOF
d24883 1
a24883 2
#include <time.h>
extern struct { int foo; } altzone;
d24893 1
a24893 1
altzone.foo = 1;
d24910 1
a24910 1
  eval "ac_cv_var_altzone_declaration=no"
a24913 1
eval "ac_cv_var_altzone_declaration=yes"
d24916 4
a24919 29

fi




echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ALTZONE_DECLARATION 1
_ACEOF

fi


fi




cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
d24922 1
a24922 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d24932 1
a24932 1
sa_family_t foo;
d24937 3
a24939 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d24943 1
a24943 1
         { ac_try='test -s conftest.$ac_objext'
d24949 1
a24949 1
  eval "ac_cv_type_$cv=yes"
a24952 1
eval "ac_cv_type_$cv=no"
d24954 27
a24980 1
rm -f conftest.$ac_objext conftest.$ac_ext
d24982 16
a24997 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
d25003 1
a25003 1
$ac_includes_default
d25013 3
a25015 4
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
d25032 1
a25032 1
  ac_cv_type_sa_family_t=yes
d25036 1
a25036 1
ac_cv_type_sa_family_t=no
a25038 9
fi
echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SA_FAMILY_T 1
_ACEOF

d25041 3
d25045 2
a25046 4
fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25049 1
a25049 1
fi
d25052 3
a25054 5

cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25060 1
a25060 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d25070 2
a25071 1
socklen_t foo;
d25088 1
a25088 1
  eval "ac_cv_type_$cv=yes"
d25092 1
a25092 1
eval "ac_cv_type_$cv=no"
d25095 1
d25097 17
a25113 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
d25119 1
a25119 1
$ac_includes_default
d25129 2
a25130 4
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
d25147 1
a25147 1
  ac_cv_type_socklen_t=yes
d25151 1
a25151 1
ac_cv_type_socklen_t=no
d25154 1
d25156 3
a25158 3
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
d25160 2
a25161 2
cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
d25164 1
a25165 9
fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
d25169 3
a25171 4
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25174 13
a25186 1
  cat >conftest.$ac_ext <<_ACEOF
d25189 1
a25189 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d25199 1
a25199 1
struct sockaddr foo;
d25204 3
a25206 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25210 1
a25210 1
         { ac_try='test -s conftest.$ac_objext'
d25216 1
a25216 1
  eval "ac_cv_type_$cv=yes"
a25219 1
eval "ac_cv_type_$cv=no"
d25221 6
a25226 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25228 4
a25231 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25233 7
a25239 3
	echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
d25245 12
a25256 1
$ac_includes_default
d25266 9
a25274 4
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
d25279 3
a25281 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25285 1
a25285 1
         { ac_try='test -s conftest.$ac_objext'
d25291 1
a25291 1
  ac_cv_type_struct_sockaddr=yes
d25295 1
a25295 1
ac_cv_type_struct_sockaddr=no
d25297 1
a25297 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25299 5
a25303 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR 1
d25306 2
d25310 12
d25323 15
a25337 1
fi
d25339 2
a25340 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25343 8
d25355 5
a25359 4
cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25362 13
a25374 1
  cat >conftest.$ac_ext <<_ACEOF
d25377 1
a25377 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d25387 1
a25387 1
struct sockaddr_storage foo;
d25392 3
a25394 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25398 1
a25398 1
         { ac_try='test -s conftest.$ac_objext'
d25404 1
a25404 1
  eval "ac_cv_type_$cv=yes"
a25407 1
eval "ac_cv_type_$cv=no"
d25409 6
a25414 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25416 4
a25419 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25421 7
a25427 3
	echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
d25433 12
a25444 1
$ac_includes_default
d25454 9
a25462 4
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
d25466 4
a25469 4
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25473 1
a25473 1
         { ac_try='test -s conftest.$ac_objext'
d25479 1
a25479 1
  ac_cv_type_struct_sockaddr_storage=yes
d25483 1
a25483 1
ac_cv_type_struct_sockaddr_storage=no
d25485 1
a25485 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25487 5
a25491 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
d25494 2
d25498 12
d25511 15
a25525 1
fi
d25527 2
a25528 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25531 8
d25543 5
a25547 4
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25550 13
a25562 1
  cat >conftest.$ac_ext <<_ACEOF
d25565 1
a25565 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
d25575 1
a25575 1
struct addrinfo foo;
d25580 3
a25582 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25586 1
a25586 1
         { ac_try='test -s conftest.$ac_objext'
d25592 1
a25592 1
  eval "ac_cv_type_$cv=yes"
a25595 1
eval "ac_cv_type_$cv=no"
d25597 6
a25602 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25604 4
a25607 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25609 7
a25615 3
	echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
d25621 12
a25632 1
$ac_includes_default
d25642 9
a25650 4
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
d25655 3
a25657 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25661 1
a25661 1
         { ac_try='test -s conftest.$ac_objext'
d25667 1
a25667 1
  ac_cv_type_struct_addrinfo=yes
d25671 1
a25671 1
ac_cv_type_struct_addrinfo=no
d25673 1
a25673 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25675 5
a25679 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_ADDRINFO 1
d25682 2
d25686 12
d25699 15
a25713 1
fi
d25715 2
a25716 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25719 8
d25731 5
a25735 4
cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25738 13
a25750 1
  cat >conftest.$ac_ext <<_ACEOF
d25753 1
a25753 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
d25763 1
a25763 1
struct ifaddrs foo;
d25768 3
a25770 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25774 1
a25774 1
         { ac_try='test -s conftest.$ac_objext'
d25780 1
a25780 1
  eval "ac_cv_type_$cv=yes"
a25783 1
eval "ac_cv_type_$cv=no"
d25785 6
a25790 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25792 4
a25795 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25797 7
a25803 3
	echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
d25809 12
a25820 1
$ac_includes_default
d25830 9
a25838 4
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
d25843 3
a25845 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25849 1
a25849 1
         { ac_try='test -s conftest.$ac_objext'
d25855 1
a25855 1
  ac_cv_type_struct_ifaddrs=yes
d25859 1
a25859 1
ac_cv_type_struct_ifaddrs=no
d25861 1
a25861 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25863 5
a25867 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFADDRS 1
d25870 2
d25874 12
d25887 15
a25901 1
fi
d25903 2
a25904 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25907 8
d25919 7
a25925 4
cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25928 13
a25940 1
  cat >conftest.$ac_ext <<_ACEOF
a25942 8
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/uio.h>
d25953 1
a25953 1
struct iovec foo;
d25958 3
a25960 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25964 1
a25964 1
         { ac_try='test -s conftest.$ac_objext'
d25970 1
a25970 1
  eval "ac_cv_type_$cv=yes"
a25973 1
eval "ac_cv_type_$cv=no"
d25975 6
a25980 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25982 4
a25985 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25987 7
a25993 3
	echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if test "${ac_cv_type_struct_iovec+set}" = set; then
d25999 12
a26010 1
$ac_includes_default
d26020 9
a26028 4
if ((struct iovec *) 0)
  return 0;
if (sizeof (struct iovec))
  return 0;
d26033 3
a26035 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d26039 1
a26039 1
         { ac_try='test -s conftest.$ac_objext'
d26045 1
a26045 1
  ac_cv_type_struct_iovec=yes
d26049 14
a26062 1
ac_cv_type_struct_iovec=no
d26064 4
a26067 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
if test $ac_cv_type_struct_iovec = yes; then
d26069 6
a26074 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IOVEC 1
d26077 15
d26093 3
a26095 1
fi
d26097 4
a26100 1
fi
a26101 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d26103 2
d26109 3
a26111 4
cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d26117 2
a26118 9
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/socket.h>

d26128 2
a26129 1
struct msghdr foo;
d26146 1
a26146 1
  eval "ac_cv_type_$cv=yes"
d26150 1
a26150 1
eval "ac_cv_type_$cv=no"
d26153 1
d26155 12
a26166 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if test "${ac_cv_type_struct_msghdr+set}" = set; then
d26172 4
a26175 1
$ac_includes_default
d26185 1
a26185 4
if ((struct msghdr *) 0)
  return 0;
if (sizeof (struct msghdr))
  return 0;
d26202 1
a26202 1
  ac_cv_type_struct_msghdr=yes
d26206 1
a26206 1
ac_cv_type_struct_msghdr=no
d26209 1
d26211 3
a26213 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
if test $ac_cv_type_struct_msghdr = yes; then
d26215 2
a26216 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_MSGHDR 1
d26219 1
d26221 7
a26229 5
fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d26231 6
d26241 3
a26243 5

echo "$as_me:$LINENO: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d26245 3
a26248 6
ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$i>
a26249 7
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
fi
rm -f conftest*
done
d26251 6
a26258 13
if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_WINSIZE 1
_ACEOF

fi
echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>
a26259 3
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then
d26262 1
a26262 1
#define HAVE_WS_XPIXEL 1
d26265 3
a26267 2
fi
rm -f conftest*
d26269 2
a26270 8
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then
d26273 1
a26273 1
#define HAVE_WS_YPIXEL 1
a26276 1
rm -f conftest*
d26279 3
a26281 7



echo "$as_me:$LINENO: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d26283 2
a26284 39

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_struct_spwd=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
a26285 1
rm -f conftest.$ac_objext conftest.$ac_ext
a26286 10
fi

echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6

if test "$ac_cv_struct_spwd" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SPWD 1
_ACEOF
d26288 9
a26300 4
LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"


LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
a26361 13
# Check whether --enable-mmap or --disable-mmap was given.
if test "${enable_mmap+set}" = set; then
  enableval="$enable_mmap"

fi;
if test "$enable_mmap" = "no"; then

cat >>confdefs.h <<\_ACEOF
#define NO_MMAP 1
_ACEOF

fi

d26739 1
a26739 1
			LIB_readline="-L$lres -lreadline "
d26989 1
a26989 1
			LIB_hesiod="-L$lres -lhesiod "
a30270 2


a30283 1
	netgroup.h				\
a30298 1
	sys/mman.h				\
d31281 2
a31282 362
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done




for ac_header in stdlib.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_func in getpagesize
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !STDC_HEADERS && !HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    exit (1);
  if (write (fd, data, pagesize) != pagesize)
    exit (1);
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    exit (1);
  if (read (fd, data3, pagesize) != pagesize)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      exit (1);
  close (fd);
  exit (0);
d31285 1
a31285 1
rm -f conftest$ac_exeext
d31290 2
a31291 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d31297 1
a31297 1
  ac_cv_func_mmap_fixed_mapped=yes
d31299 1
a31299 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d31301 1
a31301 2
( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
d31303 1
a31303 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d31305 5
a31309 7
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
d31313 1
a31313 1
rm -f conftest.mmap
d33187 428
a34234 1
z='sia afskauthlib'
d34236 1
a34236 3
for i in $z; do
case $i in
sia)
d34240 1
a34240 2
;;
pam)
d34251 1
a34251 2
;;
afskauthlib)
d34255 2
a34256 5
;;
esac
done
if test "$LIB_AUTH_SUBDIRS"; then
	echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
a34257 4
else
	echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
fi
a34427 35
if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
d34484 28
d34575 7
a35182 30
s,@@INCLUDE_openldap@@,$INCLUDE_openldap,;t t
s,@@LIB_openldap@@,$LIB_openldap,;t t
s,@@INCLUDE_krb4@@,$INCLUDE_krb4,;t t
s,@@LIB_krb4@@,$LIB_krb4,;t t
s,@@EXTRA_LIB45@@,$EXTRA_LIB45,;t t
s,@@LIB_krb_enable_debug@@,$LIB_krb_enable_debug,;t t
s,@@LIB_krb_disable_debug@@,$LIB_krb_disable_debug,;t t
s,@@LIB_krb_get_our_ip_for_realm@@,$LIB_krb_get_our_ip_for_realm,;t t
s,@@LIB_krb_kdctimeofday@@,$LIB_krb_kdctimeofday,;t t
s,@@LIB_krb_get_kdc_time_diff@@,$LIB_krb_get_kdc_time_diff,;t t
s,@@KRB4_TRUE@@,$KRB4_TRUE,;t t
s,@@KRB4_FALSE@@,$KRB4_FALSE,;t t
s,@@KRB5_TRUE@@,$KRB5_TRUE,;t t
s,@@KRB5_FALSE@@,$KRB5_FALSE,;t t
s,@@do_roken_rename_TRUE@@,$do_roken_rename_TRUE,;t t
s,@@do_roken_rename_FALSE@@,$do_roken_rename_FALSE,;t t
s,@@LIB_kdb@@,$LIB_kdb,;t t
s,@@HAVE_OPENSSL_TRUE@@,$HAVE_OPENSSL_TRUE,;t t
s,@@HAVE_OPENSSL_FALSE@@,$HAVE_OPENSSL_FALSE,;t t
s,@@DIR_des@@,$DIR_des,;t t
s,@@INCLUDE_des@@,$INCLUDE_des,;t t
s,@@LIB_des@@,$LIB_des,;t t
s,@@LIB_des_a@@,$LIB_des_a,;t t
s,@@LIB_des_so@@,$LIB_des_so,;t t
s,@@LIB_des_appl@@,$LIB_des_appl,;t t
s,@@DCE_TRUE@@,$DCE_TRUE,;t t
s,@@DCE_FALSE@@,$DCE_FALSE,;t t
s,@@dpagaix_cflags@@,$dpagaix_cflags,;t t
s,@@dpagaix_ldadd@@,$dpagaix_ldadd,;t t
s,@@dpagaix_ldflags@@,$dpagaix_ldflags,;t t
a35207 1
s,@@LIB_res_nsearch@@,$LIB_res_nsearch,;t t
d35226 22
d35291 8
@


1.1.1.4.2.5
log
@MFC: Heimdal 0.5.1
@
text
@d2 1
a2 1
# From configure.in Revision: 1.325.2.2 .
d4 1
a4 1
# Generated by GNU Autoconf 2.53 for Heimdal 0.5.1.
d419 2
a420 2
PACKAGE_VERSION='0.5.1'
PACKAGE_STRING='Heimdal 0.5.1'
d926 1
a926 1
\`configure' configures Heimdal 0.5.1 to adapt to many kinds of systems.
d996 1
a996 1
     short | recursive ) echo "Configuration of Heimdal 0.5.1:";;
d1130 1
a1130 1
Heimdal configure 0.5.1
d1145 1
a1145 1
It was created by Heimdal $as_me 0.5.1, which was
d2815 1
a2815 1
 VERSION=0.5.1
d29184 1
a29184 1
*-*-solaris2.[89])
d36243 1
a36243 1
This file was extended by Heimdal $as_me 0.5.1, which was
d36305 1
a36305 1
Heimdal config.status 0.5.1
d37197 7
a37203 1
  if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
d37314 1
a37314 1
const char *heimdal_version = "Heimdal 0.5.1";
@


1.1.1.5
log
@import of heimdal 0.3e
@
text
@d2 20
a21 3
# From configure.in Revision: 1.270 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.49d for heimdal 0.3e.
d23 1
a23 1
# Report bugs to <heimdal-bugs@@pdc.kth.se>.
a24 4
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
a25 31
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conftest conftest.exe conftest.file
echo >conftest.file
if ln -s conftest.file conftest 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conftest.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conftest.file conftest 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conftest conftest.exe conftest.file
a26 24
# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conftest.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conftest.file
if test -x conftest.file >/dev/null 2>&1; then
  as_executable_p="test -x"
elif test -f conftest.file >/dev/null 2>&1; then
  as_executable_p="test -f"
else
  { { echo "$as_me:57: error: cannot check whether a file is executable on this system" >&5
echo "$as_me: error: cannot check whether a file is executable on this system" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.file

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi
a27 23
# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
a28 2
# Name of the executable.
as_me=`echo "$0" | sed 's,.*/,,'`
a29 3
cat >config.log <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
a30 2
It was created by $as_me (heimdal 0.3e) 2.49d, executed with
 > $0 $@@
a31 33
EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >>config.log

cat >>config.log <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##
a32 1
EOF
a33 8
# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 5 compiler messages saved in config.log
# 6 checking for... messages and results
exec 5>>config.log
exec 6>&1
d35 140
d176 5
a180 2
# Initializations.
#
d182 1
a182 20
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

# Avoid depending upon Character Ranges.
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ac_cr_09='0123456789'
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09

# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"

d184 46
a229 29
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
a231 2
ac_init_help=
ac_init_version=false
d234 2
a235 1
cache_file=/dev/null
d237 1
d239 1
d248 1
a251 6

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
d265 6
a270 6
# Identity of this package.
PACKAGE_NAME='heimdal'
PACKAGE_TARNAME='heimdal'
PACKAGE_VERSION='0.3e'
PACKAGE_STRING='heimdal 0.3e'
PACKAGE_BUGREPORT='heimdal-bugs@@pdc.kth.se'
d275 1
d283 4
a286 1
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d290 1
a290 1
  case $ac_option in
d295 1
a295 1
    bindir=$ac_optarg ;;
d298 1
a298 1
    ac_prev=build_alias ;;
d300 1
a300 1
    build_alias=$ac_optarg ;;
d307 1
a307 4
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;
d313 1
a313 1
    datadir=$ac_optarg ;;
d316 1
a316 1
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d318 5
a322 6
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:295: error: invalid feature name: $ac_feature" >&5
echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;
d325 1
a325 1
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d327 6
a332 7
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:305: error: invalid feature name: $ac_feature" >&5
echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d335 1
a335 1
    eval "enable_$ac_feature='$ac_optarg'" ;;
d344 1
a344 1
    exec_prefix=$ac_optarg ;;
d350 54
a403 6
  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;
d406 1
a406 1
    ac_prev=host_alias ;;
d408 1
a408 1
    host_alias=$ac_optarg ;;
d415 1
a415 1
    includedir=$ac_optarg ;;
d420 1
a420 1
    infodir=$ac_optarg ;;
d425 1
a425 1
    libdir=$ac_optarg ;;
d432 1
a432 1
    libexecdir=$ac_optarg ;;
d441 1
a441 1
    localstatedir=$ac_optarg ;;
d446 1
a446 1
    mandir=$ac_optarg ;;
d467 1
a467 1
    oldincludedir=$ac_optarg ;;
d472 1
a472 1
    prefix=$ac_optarg ;;
d479 1
a479 1
    program_prefix=$ac_optarg ;;
d486 1
a486 1
    program_suffix=$ac_optarg ;;
d503 1
a503 1
    program_transform_name=$ac_optarg ;;
d513 1
a513 1
    sbindir=$ac_optarg ;;
d524 1
a524 1
    sharedstatedir=$ac_optarg ;;
d529 1
a529 1
    site=$ac_optarg ;;
d534 1
a534 1
    srcdir=$ac_optarg ;;
d541 1
a541 1
    sysconfdir=$ac_optarg ;;
d544 1
a544 1
    ac_prev=target_alias ;;
d546 1
a546 1
    target_alias=$ac_optarg ;;
d551 3
a553 2
  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;
d556 1
a556 1
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d558 3
a560 4
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:488: error: invalid package name: $ac_package" >&5
echo "$as_me: error: invalid package name: $ac_package" >&2;}
   { (exit 1); exit 1; }; }
d562 2
a563 2
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d566 1
a566 1
    eval "with_$ac_package='$ac_optarg'" ;;
d569 1
a569 1
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d571 5
a575 6
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:502: error: invalid package name: $ac_package" >&5
echo "$as_me: error: invalid package name: $ac_package" >&2;}
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;
d586 1
a586 1
    x_includes=$ac_optarg ;;
d593 1
a593 1
    x_libraries=$ac_optarg ;;
d595 1
a595 5
  -*) { { echo "$as_me:526: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; }
a597 11
  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
      { { echo "$as_me:537: error: invalid variable name: $ac_envvar" >&5
echo "$as_me: error: invalid variable name: $ac_envvar" >&2;}
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

d599 7
a605 7
    # FIXME: should be removed in autoconf 3.0.
    { echo "$as_me:546: WARNING: you should use --build, --host, --target" >&5
echo "$as_me: WARNING: you should use --build, --host, --target" >&2;}
    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
      { echo "$as_me:549: WARNING: invalid host type: $ac_option" >&5
echo "$as_me: WARNING: invalid host type: $ac_option" >&2;}
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d612 17
a628 4
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { { echo "$as_me:559: error: missing argument to $ac_option" >&5
echo "$as_me: error: missing argument to $ac_option" >&2;}
   { (exit 1); exit 1; }; }
d630 6
d637 4
a640 4
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir \
              exec_prefix prefix
d642 8
a649 7
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    NONE ) ;;
    *)  { { echo "$as_me:573: error: expected an absolute path for --$ac_var: $ac_val" >&5
echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
   { (exit 1); exit 1; }; };;
d653 9
a661 18
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    { echo "$as_me:589: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&5
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2;}
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi
d663 4
a666 2
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
d668 3
a670 1
test "$silent" = yes && exec 6>/dev/null
d677 1
a677 1
  ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
d688 1
a688 3
    { { echo "$as_me:619: error: cannot find sources in $ac_confdir or .." >&5
echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;}
   { (exit 1); exit 1; }; }
d690 1
a690 3
    { { echo "$as_me:623: error: cannot find sources in $srcdir" >&5
echo "$as_me: error: cannot find sources in $srcdir" >&2;}
   { (exit 1); exit 1; }; }
d693 1
a693 33
srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
d695 14
a708 8
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures heimdal 0.3e to adapt to many kinds of systems.
d710 7
a716 1
Usage: $0 [OPTION]... [VAR=VALUE]...
d718 20
a737 2
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
a738 1
Defaults for the options are specified in brackets.
a739 10
Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
a740 1
EOF
a741 6
  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]
a742 38
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
EOF

  cat <<\EOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
EOF
fi
d744 14
a757 60
if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of heimdal 0.3e:";;
   esac
  cat <<\EOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking Speeds up one-time builds
  --enable-dependency-tracking  Do not reject slow dependency extractors
  --enable-shared=PKGS  build shared libraries default=no
  --enable-static=PKGS  build static libraries default=yes
  --enable-fast-install=PKGS  optimize for fast installation default=yes
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-dce	if you want support for DCE/DFS PAG's.
  --enable-kaserver	  if you want the KDC to try to emulate a kaserver
  --enable-kaserver-db	  if you want support for reading kaserver databases in hprop
  --disable-otp          if you don't want OTP support
  --enable-osfc2          enable some OSF C2 support
  --enable-bigendian	the target is big endian
  --enable-littleendian	the target is little endian
  --enable-netinfo      enable netinfo for configuration lookup

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-pic              try to use only PIC/non-PIC objects default=use both
  --without-berkeley-db   if you don't want berkeley db
  --without-ipv6	do not enable IPv6 support
  --with-openldap=dir                use openldap in dir
  --with-openldap-lib=dir            use openldap libraries in dir
  --with-openldap-include=dir        use openldap headers in dir
  --with-krb4=dir                use krb4 in dir
  --with-krb4-lib=dir            use krb4 libraries in dir
  --with-krb4-include=dir        use krb4 headers in dir
  --with-readline=dir                use readline in dir
  --with-readline-lib=dir            use readline libraries in dir
  --with-readline-include=dir        use readline headers in dir
  --with-hesiod=dir                use hesiod in dir
  --with-hesiod-lib=dir            use hesiod libraries in dir
  --with-hesiod-include=dir        use hesiod headers in dir
  --with-x                use the X Window System

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPP         C preprocessor
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <heimdal-bugs@@pdc.kth.se>.
EOF
d759 3
d763 39
a801 16
if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
d803 2
a805 17
    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      { echo "$as_me:829: WARNING: no configuration information is in $ac_subdir" >&5
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
    fi
    cd $ac_popdir
  done
d807 11
d819 3
a821 4
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF
configure (heimdal 0.3e) 2.49d
d823 1
a823 7
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
d825 1
a825 21
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done
d827 18
a844 45
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
done
ac_signal=0
d846 7
a852 4
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
d854 8
a861 8
# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
d863 4
a866 18
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:942: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
d868 6
a873 41
  { echo "$as_me:950: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_suggest_removing_cache=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:966: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,set)
      { echo "$as_me:970: WARNING: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
      ac_suggest_removing_cache=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:976: WARNING: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:978: WARNING:   former value:  $ac_old_val" >&5
echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:980: WARNING:   current value: $ac_new_val" >&5
echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
        ac_suggest_removing_cache=:
      fi;;
  esac
done
if $ac_suggest_removing_cache; then
  { echo "$as_me:987: WARNING: changes in the environment can compromise the build" >&5
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
  { echo "$as_me:989: WARNING: consider removing $cache_file and starting over" >&5
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
d875 5
d881 2
a882 12
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d884 5
a888 16
ac_config_headers="$ac_config_headers include/config.h"

ac_config_commands="$ac_config_commands default-1"

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1018: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d890 8
a897 2
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
d899 1
a899 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
break
done

d901 1
d903 3
a905 4
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1040: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d907 2
a908 2
  echo "$as_me:1043: result: no" >&5
echo "${ECHO_T}no" >&6
d911 7
d919 9
a927 21
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:1052: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
break
done
d929 64
d994 9
d1004 42
a1045 7
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1074: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1077: result: no" >&5
echo "${ECHO_T}no" >&6
d1048 11
a1058 4
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi
d1060 6
a1065 8
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1090: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1070 10
a1079 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
break
done

d1082 1
a1082 1
CC=$ac_cv_prog_CC
d1084 1
a1084 36
  echo "$as_me:1112: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1115: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1124: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1146: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d1086 1
a1086 2
  echo "$as_me:1149: result: no" >&5
echo "${ECHO_T}no" >&6
a1088 6
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

fi
d1092 4
a1095 4
echo "$as_me:1162: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1100 1
d1102 13
a1114 14
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
break
done

d1119 1
a1119 1
  if test $# != 0; then
d1124 1
a1124 1
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
d1131 1
a1131 1
CC=$ac_cv_prog_CC
d1133 1
a1133 2
  echo "$as_me:1203: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1135 1
a1135 2
  echo "$as_me:1206: result: no" >&5
echo "${ECHO_T}no" >&6
d1138 9
a1146 11
fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1217: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1151 10
a1160 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
break
done

d1163 1
a1163 1
CC=$ac_cv_prog_CC
d1165 1
a1165 2
  echo "$as_me:1239: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1167 1
a1167 2
  echo "$as_me:1242: result: no" >&5
echo "${ECHO_T}no" >&6
d1169 4
a1172 3

    test -n "$CC" && break
  done
a1173 23
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1255: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
break
done
d1175 2
a1176 10
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1277: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1280: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d1178 6
a1183 5
  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
fi
d1185 1
a1185 5
fi

test -z "$CC" && { { echo "$as_me:1292: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
d1187 1
a1187 7
echo "$as_me:1296: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1302 "configure"
d1190 10
a1199 21
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1314: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1317: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
d1201 3
a1203 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1329: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
d1205 7
d1213 3
a1215 1
rm -f conftest.$ac_cv_objext conftest.$ac_ext
d1217 4
a1220 16
echo "$as_me:1336: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1340: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if test "${ac_cv_exeext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1346 "configure"
#include "confdefs.h"

int
main ()
{
d1222 4
a1225 20
  ;
  return 0;
}
_ACEOF
# Try without -o first, disregard a.out.
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1359: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1362: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
d1227 7
a1233 26
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi

rm -f a.out a.exe conftest$ac_cv_exeext

# We have not set ac_exeext yet which is needed by `ac_link'.
ac_exeext=$ac_cv_exeext
if { (eval echo "$as_me:1382: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1385: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
d1235 1
a1235 3
  { { echo "$as_me:1401: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
a1236 3

rm -f conftest.$ac_ext conftest$ac_cv_exeext

a1237 9
echo "$as_me:1409: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1413: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 1416 "configure"
#include "confdefs.h"
d1239 1
a1239 3
int
main ()
{
d1241 4
a1244 35
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:1428: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1431: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1433: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:1436: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # FIXME: these cross compiler hacks should be removed for autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { (eval echo "$as_me:1441: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:1444: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
      cross_compiling=yes
    else
      { { echo "$as_me:1451: error: cannot run C compiled programs.
To enable cross compilation, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
To enable cross compilation, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
a1245 32
echo "$as_me:1459: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:1464: result: no" >&5
echo "${ECHO_T}no" >&6
{ { echo "$as_me:1466: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi
rm -f conftest$ac_exeext conftest.$ac_ext
echo "$as_me:1471: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1473: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:1476: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1482 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
d1247 7
a1253 35
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1497: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1500: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1502: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1505: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:1517: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1523: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1255 2
a1256 23
  cat >conftest.$ac_ext <<_ACEOF
#line 1529 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1541: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1544: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1546: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1549: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d1259 1
a1259 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
d1261 2
a1262 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1264 2
a1265 2
echo "$as_me:1559: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d1267 1
a1267 1
  CFLAGS=$ac_save_CFLAGS
d1281 9
a1289 31
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1586: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1589: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1591: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1594: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 1606 "configure"
d1291 12
a1302 22
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1619: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1622: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1624: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1627: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d1304 7
a1310 32
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 1637 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1649: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1652: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1654: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1657: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a1311 5
rm -f conftest.$ac_objext conftest.$ac_ext
done
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration      >>confdefs.h
echo '#endif'             >>confdefs.h
d1313 17
d1331 3
a1333 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a1334 6
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d1336 8
a1343 14
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:1686: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1345 2
a1346 10
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      # Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
ac_c_preproc_warn_flag=maybe
cat >conftest.$ac_ext <<_ACEOF
#line 1705 "configure"
d1348 8
a1355 16
#include <assert.h>
Syntax error
_ACEOF
if { (eval echo "$as_me:1710: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1716: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d1357 4
a1360 1
  ac_cpp_err=yes
d1362 27
a1388 19
if test -z "$ac_cpp_err"; then
  # Now check whether non-existent headers can be detected and how
# Skip if ac_cpp_err is not empty - ac_cpp is broken
if test -z "$ac_cpp_err"; then
  cat >conftest.$ac_ext <<_ACEOF
#line 1731 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:1735: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1741: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
d1390 1
a1390 1
    ac_cpp_err=
d1392 19
d1412 2
a1413 5
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # cannot detect missing includes at all
ac_cpp_err=yes
d1415 7
a1421 6
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  if test "x$ac_cpp_err" = xmaybe; then
      ac_c_preproc_warn_flag=yes
    else
      ac_c_preproc_warn_flag=
d1423 2
a1424 1
    ac_cpp_err=
a1425 1
rm -f conftest.err conftest.$ac_ext
d1427 3
d1431 2
a1432 2
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1434 3
a1436 7
fi
rm -f conftest.err conftest.$ac_ext
      if test -z "$ac_cpp_err"; then
        break
      fi
    done
    ac_cv_prog_CPP=$CPP
d1438 5
d1444 37
a1480 1
  CPP=$ac_cv_prog_CPP
d1482 7
a1488 7
  # Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
ac_c_preproc_warn_flag=maybe
cat >conftest.$ac_ext <<_ACEOF
#line 1787 "configure"
d1491 7
a1497 15
Syntax error
_ACEOF
if { (eval echo "$as_me:1792: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1798: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d1499 7
a1505 1
  ac_cpp_err=yes
d1507 6
a1512 22
if test -z "$ac_cpp_err"; then
  # Now check whether non-existent headers can be detected and how
# Skip if ac_cpp_err is not empty - ac_cpp is broken
if test -z "$ac_cpp_err"; then
  cat >conftest.$ac_ext <<_ACEOF
#line 1813 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:1817: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1823: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d1514 1
a1514 1
  ac_cpp_err=yes
d1516 14
a1529 3
if test -z "$ac_cpp_err"; then
  # cannot detect missing includes at all
ac_cpp_err=yes
d1531 7
a1537 6
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  if test "x$ac_cpp_err" = xmaybe; then
      ac_c_preproc_warn_flag=yes
    else
      ac_c_preproc_warn_flag=
d1539 2
a1540 1
    ac_cpp_err=
a1541 1
rm -f conftest.err conftest.$ac_ext
d1543 3
d1547 6
a1552 2
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1554 21
a1575 2
rm -f conftest.err conftest.$ac_ext
  ac_cv_prog_CPP=$CPP
d1577 5
a1581 6
echo "$as_me:1856: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
if test -n "$ac_cpp_err"; then
  { { echo "$as_me:1859: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
d1583 17
a1599 15
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

echo "$as_me:1869: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 1877 "configure"
d1601 12
a1612 59
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:1926: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1929: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:1931: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:1934: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
d1614 4
a1617 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d1619 2
a1620 4
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC
d1623 6
d1630 1
a1630 9
case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:1951: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:1954: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac
d1632 13
a1644 42
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:1976: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:1996: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1646 1
a1646 32
    ac_save_IFS=$IFS; IFS=':'
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if test -f "$ac_dir/$ac_prog"; then
	  if test $ac_prog = install &&
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS=$ac_save_IFS

a1647 9
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL=$ac_install_sh
  fi
a1648 2
echo "$as_me:2045: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
d1650 20
a1669 3
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
d1671 12
a1682 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d1684 1
a1684 1
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
d1686 5
a1690 18
echo "$as_me:2056: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftestfile`
   fi
   if test "$*" != "X $srcdir/configure conftestfile" \
      && test "$*" != "X conftestfile $srcdir/configure"; then
d1692 1
a1692 10
      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      { { echo "$as_me:2079: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi
d1694 9
a1702 5
   test "$2" = conftestfile
   )
then
   # Ok.
   :
d1704 12
a1715 5
   { { echo "$as_me:2092: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
d1717 3
a1719 5
rm -f conftest*
echo "$as_me:2099: result: yes" >&5
echo "${ECHO_T}yes" >&6
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
d1721 1
a1721 25
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF >conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF
  program_transform_name=`echo $program_transform_name | sed -f conftestsed`
  rm -f conftestsed
fi
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"

# sed with no file args requires a program.
test -z "$program_transform_name" && program_transform_name="s,x,x,"

test x"${MISSING+set}" = xset || \
  MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
if eval "$MISSING --run :"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  am_backtick='`'
  { echo "$as_me:2127: WARNING: ${am_backtick}missing' script is too old or missing" >&5
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
d1726 1
a1726 1
  # Extract the first word of "$ac_prog", so it can be a program name with args.
d1728 4
a1731 4
echo "$as_me:2135: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1736 10
a1745 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
break
done

d1748 1
a1748 1
AWK=$ac_cv_prog_AWK
d1750 1
a1750 2
  echo "$as_me:2157: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
d1752 1
a1752 2
  echo "$as_me:2160: result: no" >&5
echo "${ECHO_T}no" >&6
d1755 1
a1755 1
  test -n "$AWK" && break
d1758 4
a1761 5
echo "$as_me:2167: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1763 5
a1767 8
  cat >conftestmake <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
d1769 4
a1772 25
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:2187: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:2191: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
  enableval="$enable_dependency_tracking"

fi;
if test "x$enable_dependency_tracking" = xno; then
  AMDEP="#"
else
  am_depcomp="$ac_aux_dir/depcomp"
  if test ! -f "$am_depcomp"; then
    AMDEP="#"
d1774 1
a1774 1
    AMDEP=
a1776 5

if test -z "$AMDEP"; then
  AMDEPBACKSLASH='\'
else
  AMDEPBACKSLASH=
d1778 2
a1780 5
if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
  DEPDIR=.deps
else
  DEPDIR=_deps
fi
a1781 1
ac_config_commands="$ac_config_commands default-2"
d1783 4
a1786 6
# test to see if srcdir already configured
if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
   test -f $srcdir/config.status; then
  { { echo "$as_me:2229: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
a1788 3
# Define the identity of the package.
PACKAGE=heimdal
VERSION=0.3e
d1790 4
a1793 3
cat >>confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
d1795 8
a1802 3
cat >>confdefs.h <<EOF
#define VERSION "$VERSION"
EOF
d1804 13
a1816 27
# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}

AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}

AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}

AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}

MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

AMTAR=${AMTAR-"${am_missing_run}tar"}

if test -z "$install_sh"; then
   install_sh="$ac_aux_dir/install-sh"
   test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
   test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
         install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
fi

depcc="$CC"
depcpp="$CPP"
echo "$as_me:2269: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1818 6
d1825 7
a1831 29
if test -z "$AMDEP"; then
  echo '#include "conftest.h"' > conftest.c
  echo 'int i;' > conftest.h

  am_cv_CC_dependencies_compiler_type=none
  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
    case "$depmode" in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    if depmode="$depmode" \
       source=conftest.c object=conftest.o \
       depfile=conftest.Po tmpdepfile=conftest.TPo \
       $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
       grep conftest.h conftest.Po > /dev/null 2>&1; then
      am_cv_CC_dependencies_compiler_type="$depmode"
      break
    fi
  done

  rm -f conftest.*
d1833 4
a1836 1
  am_cv_CC_dependencies_compiler_type=none
d1838 2
d1843 11
a1853 3
echo "$as_me:2310: result: $am_cv_CC_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
d1855 22
a1876 58
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:2316: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:2320: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:2329: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:2333: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:2338: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:2345: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:2354: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:2359: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

CANONICAL_HOST=$host

sunos=no
case "$host" in
*-*-sunos4*)
	sunos=40
d1878 9
a1886 8
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2.8)
	sunos=58
	;;
*-*-solaris2*)
	sunos=50
d1889 27
a1915 1
if test "$sunos" != no; then
d1917 1
a1917 3
cat >>confdefs.h <<EOF
#define SunOS $sunos
EOF
d1919 1
a1919 1
fi
d1921 1
a1921 9
aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*)
	aix=4
	;;
esac
d1923 5
a1927 1
#test -z "$CFLAGS" && CFLAGS="-g"
d1929 5
a1933 8
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2407: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_YACC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1935 4
a1938 13
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_YACC="$ac_prog"
break
done

d1940 1
d1942 6
a1947 7
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  echo "$as_me:2429: result: $YACC" >&5
echo "${ECHO_T}$YACC" >&6
else
  echo "$as_me:2432: result: no" >&5
echo "${ECHO_T}no" >&6
d1949 1
a1950 3
  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
d1952 19
a1970 8
for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2444: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1972 22
a1993 2
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
d1995 2
a1996 9
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LEX="$ac_prog"
break
done
d1998 4
a2001 6
fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  echo "$as_me:2466: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
d2003 1
a2003 2
  echo "$as_me:2469: result: no" >&5
echo "${ECHO_T}no" >&6
a2005 3
  test -n "$LEX" && break
done
test -n "$LEX" || LEX="${am_missing_run}flex"
d2007 29
a2035 8
for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2481: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2037 17
a2053 2
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
d2055 1
a2055 10
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LEX="$ac_prog"
break
done

d2058 4
a2061 4
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  echo "$as_me:2503: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
d2063 1
a2063 2
  echo "$as_me:2506: result: no" >&5
echo "${ECHO_T}no" >&6
d2065 1
d2067 12
a2078 3
  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"
d2080 1
a2080 12
if test -z "$LEXLIB"
then
  echo "$as_me:2516: checking for yywrap in -lfl" >&5
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 2524 "configure"
#include "confdefs.h"
a2081 50
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char yywrap ();
int
main ()
{
yywrap ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2543: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2546: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2548: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:2551: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_fl_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_fl_yywrap=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:2562: result: $ac_cv_lib_fl_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
if test $ac_cv_lib_fl_yywrap = yes; then
  LEXLIB="-lfl"
else
  echo "$as_me:2567: checking for yywrap in -ll" >&5
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
if test "${ac_cv_lib_l_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ll  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 2575 "configure"
#include "confdefs.h"
d2083 29
a2111 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char yywrap ();
int
main ()
{
yywrap ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2594: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2597: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2599: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:2602: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_l_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_l_yywrap=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:2613: result: $ac_cv_lib_l_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
if test $ac_cv_lib_l_yywrap = yes; then
  LEXLIB="-ll"
d2114 2
a2115 1
fi
a2116 1
fi
d2118 4
a2121 5
if test "x$LEX" != "x:"; then
  echo "$as_me:2624: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2123 5
a2127 8
  # The minimal lex program is just a single line: %%.  But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
echo '%%
%%' | $LEX
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
d2129 1
a2129 3
  { { echo "$as_me:2638: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
d2132 3
a2134 31
echo "$as_me:2643: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

echo "$as_me:2647: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS=$LIBS
LIBS="$LIBS $LEXLIB"
cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:2663: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2666: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2668: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:2671: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_prog_lex_yytext_pointer=yes
d2136 1
a2136 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a2137 3
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS
rm -f "${LEX_OUTPUT_ROOT}.c"
d2139 38
a2176 4
fi
echo "$as_me:2683: result: $ac_cv_prog_lex_yytext_pointer" >&5
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
if test $ac_cv_prog_lex_yytext_pointer = yes; then
d2178 6
a2183 3
cat >>confdefs.h <<\EOF
#define YYTEXT_POINTER 1
EOF
d2185 3
a2187 1
fi
a2188 1
fi
a2189 20
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:2698: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
break
done
d2191 11
a2201 9
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:2720: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:2723: result: no" >&5
echo "${ECHO_T}no" >&6
d2204 8
a2212 21
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:2732: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
break
done
a2213 10
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:2755: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:2758: result: no" >&5
echo "${ECHO_T}no" >&6
a2215 4
  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi
a2216 21
for ac_prog in mawk gawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2771: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
break
done
d2218 4
d2223 8
a2231 7
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:2793: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
  echo "$as_me:2796: result: no" >&5
echo "${ECHO_T}no" >&6
d2234 7
a2240 21
  test -n "$AWK" && break
done

echo "$as_me:2803: checking for ln -s or something else" >&5
echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
if test "${ac_cv_prog_LN_S+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  touch conftestdata1
  if ln conftestdata1 conftestdata2; then
    rm -f conftestdata*
    ac_cv_prog_LN_S=ln
  else
    ac_cv_prog_LN_S=cp
  fi
a2242 3
LN_S="$ac_cv_prog_LN_S"
echo "$as_me:2824: result: $ac_cv_prog_LN_S" >&5
echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
a2243 3
# Check whether --with-mips_abi or --without-mips_abi was given.
if test "${with_mips_abi+set}" = set; then
  withval="$with_mips_abi"
d2245 2
a2246 1
fi;
d2248 19
a2266 4
case "$host_os" in
irix*)
with_mips_abi="${with_mips_abi:-yes}"
if test -n "$GCC"; then
d2268 9
a2276 17
# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
#
# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
# GCC and revert back to O32. The same goes if O32 is asked for - old
# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
#
# Don't you just love *all* the different SGI ABIs?

case "${with_mips_abi}" in
        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
        64) abi='-mabi=64';  abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { { echo "$as_me:2852: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
a2277 7
if test -n "$abi" ; then
ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
echo "$as_me:2858: checking if $CC supports the $abi option" >&5
echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
if eval "test \"\${$ac_foo+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d2280 25
a2304 3
CFLAGS="$CFLAGS $abi"
cat >conftest.$ac_ext <<_ACEOF
#line 2867 "configure"
d2306 2
d2309 5
a2313 20
int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2879: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2882: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2884: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:2887: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval $ac_foo=yes
d2315 2
a2316 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval $ac_foo=no
d2318 2
a2319 1
rm -f conftest.$ac_objext conftest.$ac_ext
d2321 1
d2323 16
d2341 5
a2345 7
ac_res=`eval echo \\\$$ac_foo`
echo "$as_me:2901: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6
if test $ac_res = no; then
# Try to figure out why that failed...
case $abi in
	-mabi=32)
d2347 12
a2358 3
	CFLAGS="$CFLAGS -mabi=n32"
	cat >conftest.$ac_ext <<_ACEOF
#line 2910 "configure"
d2360 2
d2363 7
a2369 20
int
main ()
{
int x;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2922: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2925: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:2927: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:2930: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_res=yes
d2371 4
a2374 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_res=no
d2376 2
a2377 2679
rm -f conftest.$ac_objext conftest.$ac_ext
	CLAGS="$save_CFLAGS"
	if test $ac_res = yes; then
		# New GCC
		{ { echo "$as_me:2942: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
	fi
	# Old GCC
	abi=''
	abilibdirext=''
	;;
	-mabi=n32|-mabi=64)
		if test $with_mips_abi = yes; then
			# Old GCC, default to O32
			abi=''
			abilibdirext=''
		else
			# Some broken GCC
			{ { echo "$as_me:2957: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
		fi
	;;
esac
fi #if test $ac_res = no; then
fi #if test -n "$abi" ; then
else
case "${with_mips_abi}" in
        32|o32) abi='-32'; abilibdirext=''     ;;
       n32|yes) abi='-n32'; abilibdirext='32'  ;;
        64) abi='-64'; abilibdirext='64'   ;;
	no) abi=''; abilibdirext='';;
         *) { { echo "$as_me:2971: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
esac
fi #if test -n "$GCC"; then
;;
esac

CC="$CC $abi"
libdir="$libdir$abilibdirext"

echo "$as_me:2982: checking for __attribute__" >&5
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
if test "${ac_cv___attribute__+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 2989 "configure"
#include "confdefs.h"

#include <stdlib.h>

int
main ()
{

static void foo(void) __attribute__ ((noreturn));

static void
foo(void)
{
  exit(1);
}

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:3011: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3014: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:3016: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:3019: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv___attribute__=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv___attribute__=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$ac_cv___attribute__" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE___ATTRIBUTE__ 1
EOF

fi
echo "$as_me:3037: result: $ac_cv___attribute__" >&5
echo "${ECHO_T}$ac_cv___attribute__" >&6

# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
  enable_shared=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_shared=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_shared=no
fi;
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
  enableval="$enable_static"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
  enable_static=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_static=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_static=yes
fi;
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval="$enable_fast_install"
  p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
  enable_fast_install=no
  # Look at the argument we got.  We use all the common list separators.
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  for pkg in $enableval; do
    if test "X$pkg" = "X$p"; then
      enable_fast_install=yes
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
else
  enable_fast_install=yes
fi;

# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi;
ac_prog=ld
if test "$ac_cv_c_compiler_gnu" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo "$as_me:3117: checking for ld used by GCC" >&5
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case "$ac_prog" in
    # Accept absolute paths.
    [\\/]* | [A-Za-z]:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the path of ld
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo "$as_me:3147: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
else
  echo "$as_me:3150: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
fi
if test "${ac_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      ac_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some GNU ld's only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
	test "$with_gnu_ld" != no && break
      else
	test "$with_gnu_ld" != yes && break
      fi
    fi
  done
  IFS="$ac_save_ifs"
else
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$ac_cv_path_LD"
if test -n "$LD"; then
  echo "$as_me:3180: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:3183: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { { echo "$as_me:3186: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:3189: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${ac_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  ac_cv_prog_gnu_ld=yes
else
  ac_cv_prog_gnu_ld=no
fi
fi
echo "$as_me:3201: result: $ac_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
with_gnu_ld=$ac_cv_prog_gnu_ld

echo "$as_me:3205: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
echo "$as_me:3212: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
test -n "$reload_flag" && reload_flag=" $reload_flag"

echo "$as_me:3217: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
if test "${ac_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  ac_cv_path_NM="$NM"
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    test -z "$ac_dir" && ac_dir=.
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$tmp_nm -B"
	break
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$tmp_nm -p"
	break
      else
	ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
	continue # so that we can try to find one that supports BSD flags
      fi
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi

NM="$ac_cv_path_NM"
echo "$as_me:3252: result: $NM" >&5
echo "${ECHO_T}$NM" >&6

echo "$as_me:3255: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:3259: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:3262: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:3266: checking how to recognise dependant libraries" >&5
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='${MAGIC}'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [regex]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case "$host_os" in
aix4*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi4*)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
    lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin* | mingw*)
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='${OBJDUMP} -f'
  ;;

freebsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case "$host_cpu" in
    i*86 )
            lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
            lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20*)
  # TODO:  Does this work for hpux-11 too?
  lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
  ;;

irix5* | irix6*)
  case "$host_os" in
  irix5*)
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    ;;
  *)
    case "$LD" in
    *-32|*"-32 ") libmagic=32-bit;;
    *-n32|*"-n32 ") libmagic=N32;;
    *-64|*"-64 ") libmagic=64-bit;;
    *) libmagic=never-match;;
    esac
    # this will be overridden with pass_all, but let us keep it just in case
        lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
        ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux-gnu*)
  case "$host_cpu" in
  alpha* | i*86 | powerpc* | sparc* | ia64* )
    lt_cv_deplibs_check_method=pass_all ;;
  *)
    # glibc up to 2.1.1 does not perform some relocations on ARM
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
      esac
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
  else
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
        lt_cv_file_magic_cmd='/usr/bin/file -L'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  fi
  ;;

osf3* | osf4* | osf5*)
  # this will be overridden with pass_all, but let us keep it just in case
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  lt_cv_file_magic_test_file=/shlib/libc.so
  lt_cv_deplibs_check_method=pass_all
  ;;

sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_file_magic_test_file=/lib/libc.so
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  case "$host_vendor" in
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  motorola)
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  esac
  ;;
esac

fi
echo "$as_me:3402: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method

# Only perform the check for file, if the check method requires it
case "$deplibs_check_method" in
file_magic*)
  if test "$file_magic_cmd" = '${MAGIC}'; then
    echo "$as_me:3411: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case "$MAGIC" in
  /*)
  lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
  ;;
  ?:/*)
  ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC="$MAGIC"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case "$deplibs_check_method" in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC="$lt_cv_path_MAGIC"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC="$ac_save_MAGIC"
  ;;
esac
fi

MAGIC="$lt_cv_path_MAGIC"
if test -n "$MAGIC"; then
  echo "$as_me:3466: result: $MAGIC" >&5
echo "${ECHO_T}$MAGIC" >&6
else
  echo "$as_me:3469: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$lt_cv_path_MAGIC"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:3475: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case "$MAGIC" in
  /*)
  lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
  ;;
  ?:/*)
  ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC="$MAGIC"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case "$deplibs_check_method" in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC="$lt_cv_path_MAGIC"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC="$ac_save_MAGIC"
  ;;
esac
fi

MAGIC="$lt_cv_path_MAGIC"
if test -n "$MAGIC"; then
  echo "$as_me:3530: result: $MAGIC" >&5
echo "${ECHO_T}$MAGIC" >&6
else
  echo "$as_me:3533: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  else
    MAGIC=:
  fi
fi

  fi
  ;;
esac

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:3549: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
break
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:3571: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:3574: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:3583: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
break
done

  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:3606: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:3609: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:3621: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
break
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:3643: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:3646: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:3655: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_STRIP="strip"
break
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:3678: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:3681: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi

# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"

# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$host" in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 3721 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:3722: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3725: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:3746: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
#line 3759 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3771: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3774: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:3776: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:3779: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
lt_cv_cc_needs_belf=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
echo "$as_me:3795: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;

esac

# Save cache, so that ltconfig can load it
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# Actually configure libtool.  ac_aux_dir is where install-sh is found.
AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|| { { echo "$as_me:3870: error: libtool configure failed" >&5
echo "$as_me: error: libtool configure failed" >&2;}
   { (exit 1); exit 1; }; }

# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:3879: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:3887: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi

berkeley_db=db

# Check whether --with-berkeley-db or --without-berkeley-db was given.
if test "${with_berkeley_db+set}" = set; then
  withval="$with_berkeley_db"

if test "$withval" = no; then
	berkeley_db=""
fi

fi;
if test "$berkeley_db"; then

for ac_header in 				\
	db.h					\
	db_185.h				\

do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:3934: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 3940 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:3944: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:3950: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:3969: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

fi

echo "$as_me:3981: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $berkeley_db; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 3997 "configure"
#include "confdefs.h"

#include <stdio.h>
#if defined(HAVE_DB_185_H)
#include <db_185.h>
#elif defined(HAVE_DB_H)
#include <db.h>
#endif

int
main ()
{
dbopen(NULL, 0, 0, 0, NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4016: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4019: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4021: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4024: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_dbopen"

if false; then

for ac_func in dbopen
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:4046: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4052 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4083: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4086: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4088: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4091: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4101: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:4125: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:4131: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4145: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:4150: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" $berkeley_db gdbm ndbm; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4166 "configure"
#include "confdefs.h"

int
main ()
{
dbm_firstkey()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4178: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4181: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4183: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4186: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:4208: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4214 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4245: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4248: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4250: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4253: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4263: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:4287: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4293: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4307: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:4312: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" $berkeley_db; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4328 "configure"
#include "confdefs.h"

int
main ()
{
db_create()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4340: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4343: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4345: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4348: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_db_create"

if false; then

for ac_func in db_create
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:4370: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4376 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4407: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4410: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4412: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4415: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4425: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:4449: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:4455: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4469: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

DBLIB="$LIB_dbopen"
if test "$LIB_dbopen" != "$LIB_db_create"; then
        DBLIB="$DBLIB $LIB_db_create"
fi
if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
	DBLIB="$DBLIB $LIB_dbm_firstkey"
fi

echo "$as_me:4482: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line 4490 "configure"
#include "confdefs.h"
#ifndef __cplusplus
$ac_kw int foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4498: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4501: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4503: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4506: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:4517: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
EOF
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

echo "$as_me:4532: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4538 "configure"
#include "confdefs.h"

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4596: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4599: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4601: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4604: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4614: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
EOF

fi

echo "$as_me:4624: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4630 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:4638: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4644: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 4666 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 4684 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4705 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:4731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4734: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:4735: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:4738: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
fi
fi
echo "$as_me:4751: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:4764: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4770 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:4774: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4780: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:4799: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

echo "$as_me:4809: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4815 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4830: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4833: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4835: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4838: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4848: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define size_t unsigned
EOF

fi

echo "$as_me:4860: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4866 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4884: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4886: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4889: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4899: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define pid_t int
EOF

fi

echo "$as_me:4911: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4917 "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
echo "$as_me:4931: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then

cat >>confdefs.h <<\EOF
#define uid_t int
EOF

cat >>confdefs.h <<\EOF
#define gid_t int
EOF

fi

echo "$as_me:4945: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4951 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4973: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4976: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:4978: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:4981: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_signal=void
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:4991: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF

if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
EOF

fi

echo "$as_me:5006: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5012 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
struct tm *tp;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5027: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5030: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5032: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:5035: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:5045: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

for ac_header in standards.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5058: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5064 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5068: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5074: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5093: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:5107: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5113 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

_ACEOF
if { (eval echo "$as_me:5122: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5128: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5147: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi
done
if false;then

for ac_header in netinet/ip.h netinet/tcp.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5163: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5169 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5173: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5179: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5198: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

fi

for ac_func in getlogin setlogin
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:5213: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5219 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5250: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5253: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5255: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5258: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5268: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:5279: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi

fi
echo "$as_me:5292: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then

cat >>confdefs.h <<\EOF
#define POSIX_GETLOGIN 1
EOF

fi
fi

echo "$as_me:5303: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5314 "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>

int main()
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5327: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5330: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:5331: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5334: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_realloc_broken=yes
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi

fi
echo "$as_me:5347: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then

cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
EOF

fi

DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi

echo "$as_me:5374: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5380 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_ssize_t=yes
else
  ac_cv_type_ssize_t=no
fi
rm -f conftest*

fi
echo "$as_me:5398: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then

cat >>confdefs.h <<\EOF
#define ssize_t int
EOF

fi

cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:5409: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5415 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5432: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5435: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5437: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:5440: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:5451: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:5456: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5462 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5477: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5480: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5482: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:5485: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:5495: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
EOF

fi

fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dbm.h					\
	db.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	gdbm/ndbm.h				\
	grp.h					\
	ifaddrs.h				\
	ndbm.h					\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/dbm.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\
	winsock.h				\

do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:5566: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5572 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5576: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5582: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5601: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF

fi
done

if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
d2380 5
a2384 84
if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi

if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi

if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi

# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"

if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  v6type=unknown
v6lib=none

echo "$as_me:5657: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line 5663 "configure"
#include "confdefs.h"

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line 5682 "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line 5701 "configure"
#include "confdefs.h"
a2385 61
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line 5720 "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line 5737 "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
d2387 4
a2390 249
done
echo "$as_me:5767: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi
cat >conftest.$ac_ext <<_ACEOF
#line 5779 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5814: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5817: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5819: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5822: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ipv6=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi

echo "$as_me:5833: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "$as_me:5835: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_IPV6 1
EOF

fi

echo "$as_me:5845: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 5861 "configure"
#include "confdefs.h"

int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5873: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5876: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5878: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5881: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_socket"

if false; then

for ac_func in socket
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:5903: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5909 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5940: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5943: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:5945: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:5948: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5958: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:5982: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:5988: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:6002: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi

echo "$as_me:6011: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2392 2
a2393 12

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 6027 "configure"
d2395 2
d2398 6
a2403 20
int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6039: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6042: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6044: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6047: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d2405 4
a2408 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2410 2
a2411 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d2414 5
a2418 1
fi
d2420 3
a2422 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
d2424 5
a2428 9
if false; then

for ac_func in gethostbyname
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6069: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2430 2
a2431 2
  cat >conftest.$ac_ext <<_ACEOF
#line 6075 "configure"
d2433 2
a2434 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2436 2
a2437 40
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6106: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6109: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6111: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6114: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6124: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d2439 8
a2446 1

d2448 2
a2449 2
done

a2450 4
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"
d2452 4
a2455 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d2458 2
a2459 15
	echo "$as_me:6148: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:6154: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a2460 8
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:6168: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a2461 3
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi
d2463 4
a2466 4
echo "$as_me:6177: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2468 2
a2469 2

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
d2471 2
a2472 2
	for ac_lib in "" syslog; do
		if test -n "$ac_lib"; then
d2478 2
a2479 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6193 "configure"
d2482 7
a2488 20
int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6205: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6208: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6210: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6213: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d2490 2
a2491 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2493 1
a2493 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2495 1
a2495 1
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
a2500 1
eval "ac_res=\$ac_cv_funclib_syslog"
d2502 1
a2502 1
if false; then
d2504 4
a2507 22
for ac_func in syslog
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6235: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6241 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2509 2
a2510 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6272: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6275: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6277: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6280: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6290: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2512 1
a2512 1
eval "LIB_syslog=$ac_res"
d2516 3
a2518 3
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<EOF
d2522 1
a2522 2
	echo "$as_me:6314: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2525 3
a2527 4
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:6320: result: no" >&5
echo "${ECHO_T}no" >&6
d2530 1
a2530 1
	eval "ac_cv_func_syslog=yes"
d2532 1
a2532 1
	cat >>confdefs.h <<EOF
d2536 1
a2536 1
	cat >>confdefs.h <<EOF
d2540 1
a2540 2
	echo "$as_me:6334: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2544 3
a2546 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
d2549 8
a2556 4
echo "$as_me:6343: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2558 2
a2559 2

if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
d2561 2
a2562 2
	for ac_lib in "" inet6 ip6; do
		if test -n "$ac_lib"; then
d2568 2
a2569 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6359 "configure"
d2572 7
a2578 20
int
main ()
{
gethostbyname2()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6371: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6374: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6376: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6379: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d2580 2
a2581 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2583 1
a2583 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2585 1
a2585 1
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
a2590 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
d2592 1
a2592 1
if false; then
d2594 4
a2597 22
for ac_func in gethostbyname2
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6401: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6407 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2599 2
a2600 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6438: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6441: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6443: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6446: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6456: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2602 1
a2602 1
eval "LIB_gethostbyname2=$ac_res"
d2606 3
a2608 3
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<EOF
d2612 1
a2612 2
	echo "$as_me:6480: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2615 3
a2617 4
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:6486: result: no" >&5
echo "${ECHO_T}no" >&6
d2620 1
a2620 1
	eval "ac_cv_func_gethostbyname2=yes"
d2622 1
a2622 1
	cat >>confdefs.h <<EOF
d2626 1
a2626 1
	cat >>confdefs.h <<EOF
d2630 1
a2630 2
	echo "$as_me:6500: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2634 3
a2636 2
if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
d2639 8
a2646 4
echo "$as_me:6509: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2648 2
a2649 2

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
d2651 2
a2652 2
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
d2658 2
a2659 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6525 "configure"
d2662 7
a2668 34
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6551: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6554: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6556: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6559: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d2670 2
a2671 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2673 1
a2673 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2675 1
a2675 1
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
a2680 1
eval "ac_res=\$ac_cv_funclib_res_search"
d2682 1
a2682 1
if false; then
d2684 4
a2687 22
for ac_func in res_search
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6581: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6587 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2689 2
a2690 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6618: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6621: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6623: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6626: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6636: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2692 1
a2692 1
eval "LIB_res_search=$ac_res"
d2696 3
a2698 3
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<EOF
d2702 1
a2702 2
	echo "$as_me:6660: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2705 3
a2707 4
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:6666: result: no" >&5
echo "${ECHO_T}no" >&6
d2710 1
a2710 1
	eval "ac_cv_func_res_search=yes"
d2712 1
a2712 1
	cat >>confdefs.h <<EOF
d2716 1
a2716 1
	cat >>confdefs.h <<EOF
d2720 1
a2720 2
	echo "$as_me:6680: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2724 50
a2773 2
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
d2775 1
d2777 4
a2780 4
echo "$as_me:6689: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2782 4
d2787 8
a2794 1
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
d2796 2
a2797 2
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
d2803 2
a2804 2
		cat >conftest.$ac_ext <<_ACEOF
#line 6705 "configure"
d2807 7
a2813 34
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6734: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6736: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6739: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d2815 2
a2816 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2818 1
a2818 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2820 1
a2820 1
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
a2825 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d2827 1
a2827 1
if false; then
d2829 4
a2832 22
for ac_func in dn_expand
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:6761: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6767 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d2834 2
a2835 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6798: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6801: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6803: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6806: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6816: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d2837 1
a2837 1
eval "LIB_dn_expand=$ac_res"
d2841 3
a2843 3
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<EOF
d2847 1
a2847 2
	echo "$as_me:6840: result: yes" >&5
echo "${ECHO_T}yes" >&6
d2850 3
a2852 4
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:6846: result: no" >&5
echo "${ECHO_T}no" >&6
d2855 1
a2855 1
	eval "ac_cv_func_dn_expand=yes"
d2857 1
a2857 1
	cat >>confdefs.h <<EOF
d2861 1
a2861 1
	cat >>confdefs.h <<EOF
d2865 1
a2865 2
	echo "$as_me:6860: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d2869 14
a2882 2
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d2885 5
a2889 4
echo "$as_me:6869: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2891 6
a2896 2
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
d2898 12
a2909 4
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6879 "configure"
#include "confdefs.h"
d2911 3
a2913 19
#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:6892: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6895: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:6896: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:6899: \$? = $ac_status" >&5
  (exit $ac_status); }; then
a2914 5
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_snprintf_working=no
d2916 10
a2925 1
rm -f conftest$ac_exeext conftest.$ac_ext
d2927 8
a2935 2
echo "$as_me:6911: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
d2937 1
a2937 1
if test "$ac_cv_func_snprintf_working" = yes; then
d2939 3
a2941 2
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
d2944 1
a2945 1
if test "$ac_cv_func_snprintf_working" = yes; then
a2946 16
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:6924: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6930 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
d2948 4
a2951 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6945: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6948: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:6950: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:6953: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_snprintf_noproto=yes"
d2953 2
a2954 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
d2956 5
a2960 1
rm -f conftest.$ac_objext conftest.$ac_ext
a2961 2
echo "$as_me:6963: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
d2963 4
a2966 4
if test "$ac_cv_func_snprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
d2969 1
d2972 29
d3002 5
a3006 1

d3009 6
a3014 4
echo "$as_me:6978: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3016 24
a3039 3
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
d3041 2
a3042 3
  cat >conftest.$ac_ext <<_ACEOF
#line 6988 "configure"
#include "confdefs.h"
d3044 13
a3056 3
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
d3058 8
a3065 31
int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}

int main()
{
	return foo(0, "12");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:7011: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7014: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:7015: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7018: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_vsnprintf_working=no
d3067 8
a3074 1
rm -f conftest$ac_exeext conftest.$ac_ext
d3076 2
a3078 2
echo "$as_me:7030: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
d3080 1
a3080 5
if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
EOF
d3082 4
a3086 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
a3087 16
if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:7043: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7049 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);
d3089 3
a3091 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7064: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7067: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7069: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7072: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
d3093 2
a3094 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
d3096 9
a3104 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3105 8
echo "$as_me:7082: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6

if test "$ac_cv_func_vsnprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_VSNPRINTF_PROTO 1
EOF
d3109 5
a3115 1
fi
a3116 9
echo "$as_me:7097: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line 7104 "configure"
#include "confdefs.h"
a3117 5
#include <stdio.h>
#include <glob.h>
int
main ()
{
a3118 1
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
d3120 3
a3122 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7120: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7123: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7125: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7128: \$? = $ac_status" >&5
  (exit $ac_status); }; then
a3123 4
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
d3125 8
a3132 1
rm -f conftest$ac_exeext conftest.$ac_ext
a3133 9
echo "$as_me:7138: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6

if test "$ac_cv_func_glob_working" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_GLOB 1
EOF

a3134 1
if test "$ac_cv_func_glob_working" = yes; then
d3136 7
a3142 38
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:7151: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7157 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <glob.h>
int
main ()
{
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7173: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7176: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7178: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7181: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_glob_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_glob_noproto=no"
a3143 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3144 2
echo "$as_me:7191: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
a3145 1
if test "$ac_cv_func_glob_noproto" = yes; then
d3147 2
a3148 3
cat >>confdefs.h <<\EOF
#define NEED_GLOB_PROTO 1
EOF
d3150 19
a3168 1
fi
d3170 10
a3179 1
fi
d3181 11
a3191 1
fi
d3193 5
a3197 7
if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.o"
fi

if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
d3199 2
a3200 2
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
d3202 6
a3207 30

for ac_func in 				\
	asnprintf				\
	asprintf				\
	cgetent					\
	getconfattr				\
	getrlimit				\
	getspnam				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\

do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7240: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7246 "configure"
d3209 3
a3211 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d3213 1
a3213 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7277: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7280: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7282: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7285: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7295: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3215 6
a3220 1

d3222 1
d3224 2
d3227 8
a3234 3
if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.o"
fi
d3236 2
a3237 4
echo "$as_me:7309: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3239 4
a3242 47

if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7325 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7342: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7345: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7347: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7350: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
a3244 1
fi
a3245 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
a3246 1
if false; then
a3247 22
for ac_func in getsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7372: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7378 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d3249 5
a3253 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d3255 9
a3263 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7409: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7412: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7414: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7417: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7427: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
d3265 7
a3272 2
done

a3273 12
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a3274 15
	echo "$as_me:7451: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:7457: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d3276 2
a3277 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d3279 10
a3288 2
	echo "$as_me:7471: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d3291 7
d3299 10
a3308 5
echo "$as_me:7476: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d3310 7
a3316 11
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7492 "configure"
d3318 8
a3325 26
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7509: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7512: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7514: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7517: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d3327 2
a3328 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3330 6
a3335 22
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_setsockopt"

if false; then

for ac_func in setsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7539: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7545 "configure"
d3337 2
a3338 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d3340 1
a3340 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7576: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7579: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7581: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7584: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7594: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3342 6
a3347 1

d3349 1
d3351 2
d3354 7
a3360 12
fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d3363 9
a3371 15
	echo "$as_me:7618: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:7624: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a3372 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a3373 4
	echo "$as_me:7638: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a3374 5
echo "$as_me:7643: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d3376 4
a3379 43
if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7659 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
hstrerror(17)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7673: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7676: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7678: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7681: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
d3382 4
d3388 4
a3391 11
eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then

for ac_func in hstrerror
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7703: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3393 2
a3394 2
  cat >conftest.$ac_ext <<_ACEOF
#line 7709 "configure"
a3395 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d3397 6
a3402 10
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d3404 1
a3404 29

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7740: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7743: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7745: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:7748: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7758: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3406 10
a3415 1

a3416 1
done
d3418 14
a3431 5
fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"
d3433 3
a3435 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d3437 4
a3440 14
	echo "$as_me:7782: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:7788: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d3442 27
a3468 3

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
d3470 11
d3482 3
a3484 4
	echo "$as_me:7802: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d3486 6
a3491 2
if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
d3493 4
a3496 3

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
LIBOBJS="$LIBOBJS hstrerror.o"
d3499 4
a3502 7
if test "$ac_cv_func_hstrerror" = yes; then

if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:7818: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3504 4
a3507 2
  cat >conftest.$ac_ext <<_ACEOF
#line 7824 "configure"
d3510 7
a3516 26
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7842: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7845: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7847: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7850: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_hstrerror_noproto=yes"
d3518 2
a3519 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_hstrerror_noproto=no"
d3521 3
a3523 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3524 2
echo "$as_me:7860: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
d3526 12
a3537 1
if test "$ac_cv_func_hstrerror_noproto" = yes; then
a3538 3
cat >>confdefs.h <<\EOF
#define NEED_HSTRERROR_PROTO 1
EOF
d3540 6
a3545 1
fi
d3547 4
d3553 46
d3601 3
a3603 1
if test "$ac_cv_func_asprintf" = yes; then
d3605 13
a3617 5
if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:7878: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3619 50
a3668 3
  cat >conftest.$ac_ext <<_ACEOF
#line 7884 "configure"
#include "confdefs.h"
d3670 2
a3671 8
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d3673 2
a3674 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7901: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7904: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7906: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7909: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_asprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7919: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
d3676 7
a3682 1
if test "$ac_cv_func_asprintf_noproto" = yes; then
d3684 3
a3686 2
cat >>confdefs.h <<\EOF
#define NEED_ASPRINTF_PROTO 1
d3688 56
a3743 1

d3745 2
d3748 7
d3757 3
a3759 1
if test "$ac_cv_func_vasprintf" = yes; then
d3761 3
a3763 5
if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:7935: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3765 7
a3771 33
  cat >conftest.$ac_ext <<_ACEOF
#line 7941 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7958: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7961: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:7963: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:7966: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vasprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasprintf_noproto=no"
a3772 4
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7976: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
a3773 1
if test "$ac_cv_func_vasprintf_noproto" = yes; then
d3775 4
a3778 2
cat >>confdefs.h <<\EOF
#define NEED_VASPRINTF_PROTO 1
d3781 5
a3785 1
fi
d3787 12
a3798 12
fi
fi
if test "$ac_cv_func_asnprintf" = yes; then

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:7992: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7998 "configure"
d3801 1
a3801 8
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
d3803 5
a3807 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8015: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8020: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:8023: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_asnprintf_noproto=yes"
d3809 4
a3812 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asnprintf_noproto=no"
d3814 9
a3822 4
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8033: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
d3824 1
a3824 1
if test "$ac_cv_func_asnprintf_noproto" = yes; then
d3826 1
a3826 2
cat >>confdefs.h <<\EOF
#define NEED_ASNPRINTF_PROTO 1
d3828 8
a3835 1

d3837 11
d3849 3
a3851 3
fi
fi
if test "$ac_cv_func_vasnprintf" = yes; then
d3853 11
a3863 5
if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:8049: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3865 4
a3868 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8055 "configure"
d3870 4
d3875 7
a3881 25
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8072: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8075: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8077: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:8080: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vasnprintf_noproto=yes"
d3883 4
a3886 15
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8090: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6

if test "$ac_cv_func_vasnprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_VASNPRINTF_PROTO 1
EOF

d3888 2
d3892 5
d3899 6
a3904 4
echo "$as_me:8104: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3906 9
d3916 7
a3922 35
if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8120 "configure"
#include "confdefs.h"
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
int
main ()
{
pidfile(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8134: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8137: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8139: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8142: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d3924 4
a3927 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3929 3
a3931 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d3933 5
a3937 1

d3940 1
a3940 1
eval "ac_res=\$ac_cv_funclib_pidfile"
d3942 10
a3951 9
if false; then

for ac_func in pidfile
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8164: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3953 2
a3954 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8170 "configure"
d3957 1
a3957 1
    which can conflict with char $ac_func (); below.  */
a3959 3
#ifdef __cplusplus
extern "C"
#endif
d3961 4
a3964 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a3965 3
int
main ()
{
d3969 1
a3969 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3972 1
a3972 1
f = $ac_func;
d3975 1
a3975 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8201: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8204: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8206: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8209: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8219: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d3977 10
a3986 1

a3987 1
done
d3989 5
a3994 4
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"
d3996 6
a4001 106
case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:8243: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:8249: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8263: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

for ac_func in 					\
	chown					\
	copyhostent				\
	daemon					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freeaddrinfo				\
	freehostent				\
	gai_strerror				\
	getaddrinfo				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getnameinfo				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\

do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8337: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4003 4
a4006 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8343 "configure"
a4007 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
a4008 3
#ifdef __cplusplus
extern "C"
#endif
d4010 2
a4011 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4013 3
a4015 42
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8374: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8377: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8379: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8382: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8392: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then

ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d4017 11
d4029 4
d4034 1
a4034 1
  LIBOBJS="$LIBOBJS ${ac_func}.o"
d4037 1
a4037 68
if false; then

for ac_func in \
	chown					\
	copyhostent				\
	daemon					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freeaddrinfo				\
	freehostent				\
	gai_strerror				\
	getaddrinfo				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getnameinfo				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\
d4039 11
a4049 6
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8476: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4051 2
a4052 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8482 "configure"
d4055 1
a4055 1
    which can conflict with char $ac_func (); below.  */
a4057 3
#ifdef __cplusplus
extern "C"
#endif
d4059 4
a4062 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a4063 3
int
main ()
{
d4067 1
a4067 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4070 1
a4070 1
f = $ac_func;
d4073 1
a4073 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8513: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8516: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8518: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8521: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8531: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4075 10
a4084 1

a4085 1
done
d4087 5
a4092 1
done
d4094 6
a4099 6
for ac_func in inet_aton
do
echo "$as_me:8546: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4101 4
a4104 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8552 "configure"
d4106 4
a4109 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
d4111 7
a4117 25
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
$ac_func(0,0)
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8584: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8587: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8589: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8592: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_$ac_func=yes"
d4119 4
a4122 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
d4124 3
a4126 1
rm -f conftest$ac_exeext conftest.$ac_ext
d4128 3
a4130 9

if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

  echo "$as_me:8609: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4132 1
a4132 3
  echo "$as_me:8612: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a4133 2
done
if false; then
d4135 7
a4141 7
for ac_func in inet_aton
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8622: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4143 2
a4144 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8628 "configure"
d4147 1
a4147 1
    which can conflict with char $ac_func (); below.  */
a4149 3
#ifdef __cplusplus
extern "C"
#endif
d4151 4
a4154 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a4155 3
int
main ()
{
d4159 1
a4159 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4162 1
a4162 1
f = $ac_func;
d4165 1
a4165 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8659: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8662: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8664: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8667: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8677: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4167 10
a4176 1

a4177 1
done
d4179 5
d4186 6
a4191 6
for ac_func in inet_ntop
do
echo "$as_me:8691: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4193 4
a4196 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8697 "configure"
d4198 4
a4201 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
d4203 7
a4209 25
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
$ac_func(0, 0, 0, 0)
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8729: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8732: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8734: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8737: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_$ac_func=yes"
d4211 4
a4214 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
d4216 3
a4218 1
rm -f conftest$ac_exeext conftest.$ac_ext
d4220 3
a4222 9

if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

  echo "$as_me:8754: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4224 1
a4224 3
  echo "$as_me:8757: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a4225 2
done
if false; then
d4227 7
a4233 7
for ac_func in inet_ntop
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8767: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4235 2
a4236 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8773 "configure"
d4239 1
a4239 1
    which can conflict with char $ac_func (); below.  */
a4241 3
#ifdef __cplusplus
extern "C"
#endif
d4243 4
a4246 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a4247 3
int
main ()
{
d4251 1
a4251 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4254 1
a4254 1
f = $ac_func;
d4257 1
a4257 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8804: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8807: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8809: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8812: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8822: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4259 10
a4268 1

a4269 1
done
d4271 5
d4278 6
a4283 6
for ac_func in inet_pton
do
echo "$as_me:8836: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4285 4
a4288 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8842 "configure"
d4290 4
a4293 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
d4295 15
a4309 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
$ac_func(0,0,0)
#endif
d4311 4
a4314 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8874: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8877: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8879: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8882: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_$ac_func=yes"
d4316 1
a4316 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
d4319 31
a4349 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d4351 11
d4363 4
a4366 2
  echo "$as_me:8899: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4368 5
a4372 3
  echo "$as_me:8902: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a4373 2
done
if false; then
d4375 34
a4408 7
for ac_func in inet_pton
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:8912: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4410 2
a4411 2
  cat >conftest.$ac_ext <<_ACEOF
#line 8918 "configure"
a4412 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4414 10
a4423 40
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8949: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:8954: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:8957: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8967: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d4425 11
d4437 4
a4441 1
done
d4443 2
a4446 5
echo "$as_me:8979: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d4448 8
a4455 29
cat >conftest.$ac_ext <<_ACEOF
#line 8986 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr x; x.sa_len;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8999: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9002: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9004: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9007: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr_sa_len=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
a4456 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9017: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
a4457 3
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
EOF
d4459 6
a4464 1
fi
a4465 1
if test "$ac_cv_func_getnameinfo" = "yes"; then
a4466 18
echo "$as_me:9029: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:9035: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9040 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
a4467 15
int
main(int argc, char **argv)
{
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
}
a4468 27
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9066: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9069: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:9070: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:9073: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getnameinfo_broken=no
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getnameinfo_broken=yes
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
fi
echo "$as_me:9085: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
    LIBOBJS="$LIBOBJS getnameinfo.o"
  fi
fi
d4470 4
a4473 5
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:9093: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4475 12
a4486 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9099 "configure"
a4487 7
#include <stdlib.h>
int
main ()
{
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);
d4489 7
a4495 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9114: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9117: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9119: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9122: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_setenv_noproto=yes"
d4497 2
a4498 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_setenv_noproto=no"
d4500 4
a4503 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4504 8
echo "$as_me:9132: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6

if test "$ac_cv_func_setenv_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_SETENV_PROTO 1
EOF
a4507 1
fi
d4509 1
a4509 16
if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:9146: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9152 "configure"
#include "confdefs.h"
#include <stdlib.h>
int
main ()
{
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);
d4511 4
a4514 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9167: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9170: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9172: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9175: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_unsetenv_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_unsetenv_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9185: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
d4516 4
a4519 1
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d4521 6
a4526 2
cat >>confdefs.h <<\EOF
#define NEED_UNSETENV_PROTO 1
d4529 13
a4541 1
fi
d4543 3
a4545 1
fi
d4547 3
a4549 42
if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:9199: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9205 "configure"
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9220: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9223: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9225: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9228: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_gethostname_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostname_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9238: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
a4550 1
if test "$ac_cv_func_gethostname_noproto" = yes; then
d4552 2
a4553 3
cat >>confdefs.h <<\EOF
#define NEED_GETHOSTNAME_PROTO 1
EOF
a4554 1
fi
a4555 1
fi
d4557 4
a4560 5
if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:9252: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4562 12
a4573 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9258 "configure"
a4574 7
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);
d4576 7
a4582 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9273: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9276: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9278: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9281: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_mkstemp_noproto=yes"
d4584 2
a4585 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_mkstemp_noproto=no"
d4587 4
a4590 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4591 8
echo "$as_me:9291: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6

if test "$ac_cv_func_mkstemp_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_MKSTEMP_PROTO 1
EOF
a4594 1
fi
d4596 1
a4596 16
if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:9305: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9311 "configure"
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);
d4598 4
a4601 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9326: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9329: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9331: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9334: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_getusershell_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getusershell_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9344: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
d4603 4
a4606 1
if test "$ac_cv_func_getusershell_noproto" = yes; then
d4608 6
a4613 2
cat >>confdefs.h <<\EOF
#define NEED_GETUSERSHELL_PROTO 1
d4616 13
a4628 1
fi
d4630 3
a4632 1
fi
d4634 3
a4636 54
if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:9358: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9364 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9391: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9394: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9396: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9399: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_inet_aton_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_inet_aton_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9409: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
a4637 1
if test "$ac_cv_func_inet_aton_noproto" = yes; then
d4639 1
a4639 3
cat >>confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
EOF
a4640 1
fi
a4641 1
fi
d4643 4
a4646 4
echo "$as_me:9422: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4648 2
a4649 2

if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
d4651 2
a4652 2
	for ac_lib in "" crypt; do
		if test -n "$ac_lib"; then
d4658 2
a4659 2
		cat >conftest.$ac_ext <<_ACEOF
#line 9438 "configure"
d4662 7
a4668 20
int
main ()
{
crypt()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9450: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9453: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9455: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:9458: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d4670 2
a4671 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d4673 1
a4673 1
rm -f conftest$ac_exeext conftest.$ac_ext
d4675 1
a4675 1
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
a4680 1
eval "ac_res=\$ac_cv_funclib_crypt"
d4682 1
a4682 1
if false; then
d4684 4
a4687 22
for ac_func in crypt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:9480: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9486 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4689 2
a4690 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9517: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9520: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9522: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:9525: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:9535: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d4692 1
a4692 1
eval "LIB_crypt=$ac_res"
d4696 3
a4698 3
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<EOF
d4702 1
a4702 2
	echo "$as_me:9559: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4705 3
a4707 4
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:9565: result: no" >&5
echo "${ECHO_T}no" >&6
d4710 1
a4710 1
	eval "ac_cv_func_crypt=yes"
d4712 1
a4712 1
	cat >>confdefs.h <<EOF
d4716 1
a4716 1
	cat >>confdefs.h <<EOF
d4720 1
a4720 2
	echo "$as_me:9579: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a4723 8
echo "$as_me:9584: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9590 "configure"
#include "confdefs.h"
d4725 1
a4725 15
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d4727 18
a4744 29
int
main ()
{
struct hostent *gethostbyname(const char *);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9618: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9621: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9623: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9626: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyname_proto_compat=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9636: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
d4746 2
a4747 5
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
EOF
d4749 6
a4755 5

echo "$as_me:9647: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4757 9
a4765 44
  cat >conftest.$ac_ext <<_ACEOF
#line 9653 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct hostent *gethostbyaddr(const void *, size_t, int);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9681: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9684: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9686: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9689: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d4767 3
a4769 6
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9699: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6

if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
a4770 3
cat >>confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
EOF
a4771 1
fi
d4773 51
a4823 31
echo "$as_me:9710: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9716 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

int
main ()
{
struct servent *getservbyname(const char *, const char *);
  ;
  return 0;
a4824 24
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9749: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9752: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_getservbyname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getservbyname_proto_compat=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9762: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
d4826 1
a4826 2
cat >>confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
d4828 3
a4830 7

fi

echo "$as_me:9773: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4832 4
a4835 35
  cat >conftest.$ac_ext <<_ACEOF
#line 9779 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{
int getsockname(int, struct sockaddr*, socklen_t*);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9798: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9801: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9803: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9806: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_getsockname_proto_compat=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getsockname_proto_compat=no"
d4837 1
a4837 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4838 2
echo "$as_me:9816: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
d4840 4
a4843 4
if test "$ac_cv_func_getsockname_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
d4848 4
a4851 4
echo "$as_me:9827: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4853 2
a4854 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9833 "configure"
d4856 11
a4866 25

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

int
main ()
{
void openlog(const char *, int, int);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9849: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9852: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9854: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9857: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_openlog_proto_compat=yes"
d4868 5
a4872 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_openlog_proto_compat=no"
d4874 1
a4874 4
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9867: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
d4876 6
a4881 4
if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define OPENLOG_PROTO_COMPATIBLE 1
d4883 3
a4885 8

fi

if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:9879: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4887 2
a4888 38
  cat >conftest.$ac_ext <<_ACEOF
#line 9885 "configure"
#include "confdefs.h"

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int
main ()
{
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9907: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9910: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9912: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9915: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_crypt_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_crypt_noproto=no"
d4890 2
a4891 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4892 2
echo "$as_me:9925: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
d4894 6
a4899 4
if test "$ac_cv_func_crypt_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_CRYPT_PROTO 1
d4901 6
a4906 1

d4908 1
d4912 4
a4915 5
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:9939: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4917 2
a4918 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9945 "configure"
d4920 7
d4928 4
a4931 25
#include <string.h>

int
main ()
{
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9962: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9965: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:9967: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:9970: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_strtok_r_noproto=yes"
d4933 4
a4936 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_strtok_r_noproto=no"
d4938 1
a4938 1
rm -f conftest.$ac_objext conftest.$ac_ext
a4939 2
echo "$as_me:9980: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
d4941 2
a4942 1
if test "$ac_cv_func_strtok_r_noproto" = yes; then
d4944 4
a4947 2
cat >>confdefs.h <<\EOF
#define NEED_STRTOK_R_PROTO 1
d4952 4
a4955 7
fi

if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:9994: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4957 2
a4958 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10000 "configure"
d4960 10
a4969 26

#include <string.h>

int
main ()
{
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10017: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10020: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10022: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10025: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_strsep_noproto=yes"
d4971 2
a4972 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_strsep_noproto=no"
d4974 2
a4975 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4977 4
a4980 7
echo "$as_me:10035: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6

if test "$ac_cv_func_strsep_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_STRSEP_PROTO 1
d4985 4
a4988 6
fi

echo "$as_me:10048: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4990 2
a4991 3

cat >conftest.$ac_ext <<_ACEOF
#line 10055 "configure"
d4993 10
a5002 22
extern int h_errno;
int foo() { return h_errno; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10068: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10071: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10073: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10076: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_h_errno=yes
d5004 2
a5005 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errno=no
d5007 1
a5007 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5010 5
d5016 1
a5016 8
ac_foo=`eval echo \\$ac_cv_var_h_errno`
echo "$as_me:10089: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<EOF
#define HAVE_H_ERRNO 1
EOF
d5018 4
a5021 4
echo "$as_me:10097: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5023 2
a5024 3

cat >conftest.$ac_ext <<_ACEOF
#line 10104 "configure"
a5025 1
#ifdef HAVE_SYS_TYPES_H
d5027 3
d5031 6
a5036 24
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
int
main ()
{
h_errno.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10122: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10125: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10127: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10130: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_h_errno_declaration=no"
d5038 2
a5039 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errno_declaration=yes"
d5041 1
a5041 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5044 4
a5047 7

echo "$as_me:10142: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_H_ERRNO_DECLARATION 1
d5052 4
a5055 6
fi

echo "$as_me:10154: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5057 2
a5058 3

cat >conftest.$ac_ext <<_ACEOF
#line 10161 "configure"
d5060 10
a5069 22
extern int h_errlist;
int foo() { return h_errlist; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10174: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10177: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10179: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10182: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_h_errlist=yes
d5071 2
a5072 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errlist=no
d5074 1
a5074 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5077 5
d5083 1
a5083 8
ac_foo=`eval echo \\$ac_cv_var_h_errlist`
echo "$as_me:10195: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<EOF
#define HAVE_H_ERRLIST 1
EOF
d5085 4
a5088 4
echo "$as_me:10203: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5090 2
a5091 3

cat >conftest.$ac_ext <<_ACEOF
#line 10210 "configure"
d5093 6
a5098 24
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
int
main ()
{
h_errlist.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10225: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10228: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10230: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10233: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_h_errlist_declaration=no"
d5100 2
a5101 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errlist_declaration=yes"
d5103 1
a5103 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5107 5
a5111 3
echo "$as_me:10245: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
d5113 2
a5114 2
cat >>confdefs.h <<\EOF
#define HAVE_H_ERRLIST_DECLARATION 1
d5119 4
a5122 6
fi

echo "$as_me:10257: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5124 8
d5133 5
a5137 25
cat >conftest.$ac_ext <<_ACEOF
#line 10264 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10277: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10280: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10282: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10285: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_h_nerr=yes
d5139 2
a5140 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_nerr=no
d5142 1
a5142 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5145 5
d5151 1
a5151 4
ac_foo=`eval echo \\$ac_cv_var_h_nerr`
echo "$as_me:10298: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d5153 4
a5156 8
cat >>confdefs.h <<EOF
#define HAVE_H_NERR 1
EOF

echo "$as_me:10306: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5158 2
a5159 3

cat >conftest.$ac_ext <<_ACEOF
#line 10313 "configure"
d5161 4
a5164 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d5166 6
a5171 21
extern struct { int foo; } h_nerr;
int
main ()
{
h_nerr.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10328: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10331: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10333: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10336: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_h_nerr_declaration=no"
d5173 2
a5174 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_nerr_declaration=yes"
d5176 1
a5176 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5179 4
a5182 7

echo "$as_me:10348: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_H_NERR_DECLARATION 1
a5186 1
fi
d5188 6
a5193 4
echo "$as_me:10360: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5195 8
d5204 7
a5210 25
cat >conftest.$ac_ext <<_ACEOF
#line 10367 "configure"
#include "confdefs.h"
extern int __progname;
int foo() { return __progname; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10380: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10383: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10385: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10388: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var___progname=yes
d5212 4
a5215 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var___progname=no
d5217 1
a5217 2
rm -f conftest$ac_exeext conftest.$ac_ext

d5219 3
d5223 3
a5225 4
ac_foo=`eval echo \\$ac_cv_var___progname`
echo "$as_me:10401: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d5227 2
a5228 2
cat >>confdefs.h <<EOF
#define HAVE___PROGNAME 1
d5231 6
a5236 4
echo "$as_me:10409: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5238 2
a5239 3

cat >conftest.$ac_ext <<_ACEOF
#line 10416 "configure"
d5241 10
a5250 24
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
int
main ()
{
__progname.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10431: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10434: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10436: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10439: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var___progname_declaration=no"
d5252 4
a5255 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var___progname_declaration=yes"
d5257 1
a5257 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5260 4
a5263 6
echo "$as_me:10451: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE___PROGNAME_DECLARATION 1
d5268 4
a5271 6
fi

echo "$as_me:10463: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5273 2
a5274 3

cat >conftest.$ac_ext <<_ACEOF
#line 10470 "configure"
d5276 9
a5284 25
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optarg;
int
main ()
{
optarg.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10486: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10489: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10491: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10494: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_optarg_declaration=no"
d5286 4
a5289 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optarg_declaration=yes"
d5291 1
a5291 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5294 4
a5297 6
echo "$as_me:10506: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTARG_DECLARATION 1
d5302 5
a5306 4
echo "$as_me:10516: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5308 2
a5309 3

cat >conftest.$ac_ext <<_ACEOF
#line 10523 "configure"
d5312 10
a5321 24
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
int
main ()
{
optind.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10539: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10544: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10547: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_optind_declaration=no"
d5323 5
a5327 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optind_declaration=yes"
d5329 1
a5329 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5331 13
d5345 1
d5347 1
a5347 3
echo "$as_me:10559: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
d5349 6
a5354 2
cat >>confdefs.h <<\EOF
#define HAVE_OPTIND_DECLARATION 1
d5356 8
d5367 4
a5370 4
echo "$as_me:10569: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5372 10
d5383 4
a5386 28
cat >conftest.$ac_ext <<_ACEOF
#line 10576 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
int
main ()
{
opterr.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10592: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10595: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10597: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10600: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_opterr_declaration=no"
d5388 6
a5393 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_opterr_declaration=yes"
a5394 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5397 1
d5399 4
a5402 6
echo "$as_me:10612: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTERR_DECLARATION 1
d5407 24
a5430 4
echo "$as_me:10622: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5432 15
a5446 29

cat >conftest.$ac_ext <<_ACEOF
#line 10629 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
int
main ()
{
optopt.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10645: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10648: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10650: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10653: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_optopt_declaration=no"
d5448 1
a5448 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optopt_declaration=yes"
d5450 1
a5450 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5454 87
a5540 7
echo "$as_me:10665: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTOPT_DECLARATION 1
EOF
d5542 18
a5559 6
fi

echo "$as_me:10675: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5561 5
a5565 30

cat >conftest.$ac_ext <<_ACEOF
#line 10682 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } environ;
int
main ()
{
environ.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10695: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10698: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10700: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10703: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_environ_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_environ_declaration=yes"
d5567 1
a5567 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5569 5
a5573 7

echo "$as_me:10715: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_ENVIRON_DECLARATION 1
d5575 1
a5575 33

fi

echo "$as_me:10725: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 10732 "configure"
#include "confdefs.h"
#include <time.h>
int
main ()
{
struct tm x; x.tm_gmtoff;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10749: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10752: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_tm_tm_gmtoff=yes
d5577 1
a5577 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
d5579 1
a5579 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10762: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
a5580 3
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
EOF
a5581 1
fi
d5583 7
a5589 4
echo "$as_me:10772: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5591 2
a5592 3

cat >conftest.$ac_ext <<_ACEOF
#line 10779 "configure"
d5594 8
a5601 21
#include <time.h>
int
main ()
{
struct tm x; x.tm_zone;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10791: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10794: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10796: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10799: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_tm_tm_zone=yes
d5603 5
a5607 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
d5609 1
a5609 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5611 5
a5615 6
echo "$as_me:10809: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_ZONE 1
d5617 1
a5617 34

fi

echo "$as_me:10819: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 10826 "configure"
#include "confdefs.h"
extern int timezone;
int foo() { return timezone; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10839: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10842: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10844: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:10847: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_var_timezone=yes
d5619 1
a5619 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
d5621 1
a5621 1
rm -f conftest$ac_exeext conftest.$ac_ext
d5623 1
a5623 1
fi
d5625 1
a5625 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:10860: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d5627 4
a5630 8
cat >>confdefs.h <<EOF
#define HAVE_TIMEZONE 1
EOF

echo "$as_me:10868: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5632 8
d5641 7
a5647 25
cat >conftest.$ac_ext <<_ACEOF
#line 10875 "configure"
#include "confdefs.h"
#include <time.h>
extern struct { int foo; } timezone;
int
main ()
{
timezone.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10888: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10891: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10893: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10896: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_var_timezone_declaration=no"
d5649 5
a5653 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
d5655 1
a5655 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5658 5
a5662 6
echo "$as_me:10908: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_TIMEZONE_DECLARATION 1
d5666 4
a5670 1
fi
a5671 90
cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:10921: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10927 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
sa_family_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10944: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10947: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10949: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10952: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:10963: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:10968: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10974 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10989: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10992: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:10994: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:10997: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11007: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then
a5672 3
cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
EOF
d5674 4
a5679 1
fi
d5681 3
a5683 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d5688 5
a5692 5
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:11026: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5694 2
a5695 78
  cat >conftest.$ac_ext <<_ACEOF
#line 11032 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
socklen_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11049: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11052: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11054: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11057: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11068: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11073: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11079 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11094: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11097: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11099: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11102: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_socklen_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
a5696 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11112: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
a5697 3
cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
EOF
d5699 6
d5707 7
a5714 5

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

d5717 2
a5718 5
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:11131: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5720 10
a5729 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11137 "configure"
d5731 4
a5734 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
a5735 79
#include <sys/socket.h>
int
main ()
{
struct sockaddr foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11154: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11157: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11159: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11162: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11173: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11178: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11184 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11199: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11202: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11204: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11207: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11217: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
d5737 6
a5742 1

d5744 1
d5746 4
a5749 16
fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:11236: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11242 "configure"
d5751 4
a5754 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
a5755 79
#include <sys/socket.h>
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11259: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11262: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11264: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11267: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11278: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11283: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11289 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11304: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11307: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11309: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11312: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11322: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
d5757 6
a5762 3

fi

d5764 1
d5766 10
a5775 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d5777 6
a5782 1

d5784 1
d5786 4
a5789 8
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:11341: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11347 "configure"
d5791 4
a5794 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d5796 5
a5800 70
#include <netdb.h>
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11364: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11367: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11369: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11372: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11383: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11388: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11394 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11409: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11412: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11414: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11417: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
d5802 1
a5802 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11427: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then
d5804 10
a5813 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
d5815 6
a5820 1

d5822 1
d5824 15
a5838 5
fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d5840 7
d5848 3
d5852 1
a5852 9
cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:11446: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11452 "configure"
#include "confdefs.h"
a5853 3
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d5855 11
a5865 76
#include <ifaddrs.h>
int
main ()
{
struct ifaddrs foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11469: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11472: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11474: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11477: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:11488: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:11493: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11499 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11514: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11517: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11519: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11522: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_ifaddrs=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_ifaddrs=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11532: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then
d5867 2
a5868 3
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_IFADDRS 1
EOF
d5870 1
a5870 1
fi
d5872 4
a5875 1
fi
d5877 1
a5877 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d5879 3
a5881 7

fi

echo "$as_me:11550: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5883 4
a5886 12

ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line 11559 "configure"
#include "confdefs.h"
#include <$i>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
a5888 2
done

d5891 6
a5896 4
if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_WINSIZE 1
a5899 6
echo "$as_me:11580: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 11583 "configure"
#include "confdefs.h"
#include <termios.h>
a5900 7
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\EOF
#define HAVE_WS_XPIXEL 1
EOF
a5901 2
fi
rm -f conftest*
a5902 4
cat >conftest.$ac_ext <<_ACEOF
#line 11599 "configure"
#include "confdefs.h"
#include <termios.h>
a5903 3
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then
a5904 3
cat >>confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF
a5905 2
fi
rm -f conftest*
d5907 4
a5910 4
echo "$as_me:11614: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5912 13
d5926 7
a5932 27
cat >conftest.$ac_ext <<_ACEOF
#line 11621 "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11636: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11639: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11641: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11644: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_struct_spwd=yes
d5934 7
a5940 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
a5941 1
rm -f conftest.$ac_objext conftest.$ac_ext
a5944 2
echo "$as_me:11656: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6
d5946 11
a5956 1
if test "$ac_cv_struct_spwd" = "yes"; then
d5958 6
a5963 2
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SPWD 1
d5966 13
a5978 1
fi
d5980 3
a5982 1
LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
d5984 3
a5986 1
LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
a5987 3
# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"
d5989 2
a5990 23
fi;

# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11681: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;

# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11693: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
a5991 1
fi;
a5992 22
echo "$as_me:11701: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6

case "$with_openldap" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openldap_include" = ""; then
		with_openldap_include="$with_openldap/include"
	fi
	if test "$with_openldap_lib" = ""; then
		with_openldap_lib="$with_openldap/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
a5993 10
case "$with_openldap_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_openldap_include $header_dirs";;
esac
case "$with_openldap_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_openldap_lib $lib_dirs";;
esac
a5994 12
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11741 "configure"
#include "confdefs.h"
#include <ldap.h>
int
main ()
{
a5995 31
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11753: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11756: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11758: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11761: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lldap -llber  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11773 "configure"
#include "confdefs.h"
#include <ldap.h>
int
main ()
{
d5997 4
a6000 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11785: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11788: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11790: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:11793: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
d6002 13
a6014 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
d6016 3
a6018 8
if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
	openldap_includedir="$ires"
	openldap_libdir="$lres"
	INCLUDE_openldap="-I$openldap_includedir"
	LIB_openldap="-L$openldap_libdir -lldap -llber"

cat >>confdefs.h <<EOF
#define OPENLDAP 1
d6020 3
a6022 4

	with_openldap=yes
	echo "$as_me:11816: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
d6024 7
a6030 5
	INCLUDE_openldap=
	LIB_openldap=
	with_openldap=no
	echo "$as_me:11822: result: $with_openldap" >&5
echo "${ECHO_T}$with_openldap" >&6
a6032 2
if test "$openldap_libdir"; then
	LIB_openldap="-R $openldap_libdir $LIB_openldap"
a6034 3
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"
d6036 1
a6036 1
fi;
d6038 4
a6041 11
# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11840: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
d6043 4
a6046 11
# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:11852: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
d6048 7
a6054 2
echo "$as_me:11860: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6
d6056 6
a6061 10
case "$with_krb4" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_krb4_include" = ""; then
		with_krb4_include="$with_krb4/include"
	fi
	if test "$with_krb4_lib" = ""; then
		with_krb4_lib="$with_krb4/lib$abilibdirext"
	fi
d6063 10
a6072 8
esac
header_dirs=
lib_dirs=
d='/usr/athena'
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
d6074 2
a6075 9
case "$with_krb4_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_krb4_include $header_dirs";;
esac
case "$with_krb4_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_krb4_lib $lib_dirs";;
a6077 44
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11900 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11912: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11915: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11917: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:11920: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lkrb -ldes $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 11932 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
d6079 2
a6080 19
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11944: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11947: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:11949: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:11952: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a6081 4
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
a6082 5
if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
	krb4_includedir="$ires"
	krb4_libdir="$lres"
	INCLUDE_krb4="-I$krb4_includedir"
	LIB_krb4="-L$krb4_libdir -lkrb"
a6083 3
cat >>confdefs.h <<EOF
#define KRB4 1
EOF
a6084 10
	with_krb4=yes
	echo "$as_me:11975: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_krb4=
	LIB_krb4=
	with_krb4=no
	echo "$as_me:11981: result: $with_krb4" >&5
echo "${ECHO_T}$with_krb4" >&6
fi
a6085 7
LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 -ldes $LIBS"
	EXTRA_LIB45=lib45.a
d6087 4
a6090 4
	echo "$as_me:11993: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6092 12
a6103 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11999 "configure"
a6104 4
#include <krb.h>
int
main ()
{
d6106 7
a6112 18
		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12013: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12016: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12018: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12021: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_put_int_four=yes
d6114 7
a6120 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_put_int_four=no
a6121 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6123 3
echo "$as_me:12032: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then
a6124 3
cat >>confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
EOF
d6126 1
a6126 1
	fi
d6128 4
a6131 12
	echo "$as_me:12042: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12048 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
d6133 4
a6136 23
		int x = KRB_VERIFY_SECURE
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12061: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12064: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12066: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12069: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_verify_secure=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_secure=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d6138 7
a6144 4
fi
echo "$as_me:12080: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then
d6146 12
a6157 2
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE 1
d6160 2
a6161 2
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE_FAIL 2
d6164 4
a6167 13
	fi
	echo "$as_me:12093: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12099 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
d6169 2
a6170 21
		int x = KRB_VERIFY_NOT_SECURE
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12112: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12115: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12117: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12120: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_verify_not_secure=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_not_secure=no
a6171 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6172 4
fi
echo "$as_me:12131: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
a6173 3
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_NOT_SECURE 0
EOF
a6174 1
	fi
d6176 5
a6180 4
echo "$as_me:12141: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6182 2
a6183 2

if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
d6185 2
a6186 2
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
d6192 2
a6193 2
		cat >conftest.$ac_ext <<_ACEOF
#line 12157 "configure"
d6196 7
a6202 20
int
main ()
{
krb_enable_debug()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12169: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12172: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12174: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12177: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
d6204 2
a6205 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6207 1
a6207 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6209 1
a6209 1
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
d6213 1
a6213 28
fi

eval "ac_res=\$ac_cv_funclib_krb_enable_debug"

if false; then

for ac_func in krb_enable_debug
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12199: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12205 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a6214 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d6216 1
a6216 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12236: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12239: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12241: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12244: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12254: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
d6218 4
a6221 2
fi
done
d6223 2
a6224 3
fi
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6226 1
a6226 1
eval "LIB_krb_enable_debug=$ac_res"
d6230 3
a6232 3
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
	cat >>confdefs.h <<EOF
d6236 1
a6236 2
	echo "$as_me:12278: result: yes" >&5
echo "${ECHO_T}yes" >&6
d6239 3
a6241 4
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
	echo "$as_me:12284: result: no" >&5
echo "${ECHO_T}no" >&6
d6244 1
a6244 1
	eval "ac_cv_func_krb_enable_debug=yes"
d6246 1
a6246 1
	cat >>confdefs.h <<EOF
d6250 1
a6250 1
	cat >>confdefs.h <<EOF
d6254 1
a6254 2
	echo "$as_me:12298: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a6257 3
if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
fi
d6259 7
a6265 4
echo "$as_me:12307: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6267 2
a6268 2

if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
d6270 2
a6271 2
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
d6277 2
a6278 2
		cat >conftest.$ac_ext <<_ACEOF
#line 12323 "configure"
d6281 7
a6287 20
int
main ()
{
krb_disable_debug()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12335: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12338: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12340: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12343: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d6289 2
a6290 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6292 1
a6292 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6294 1
a6294 1
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
a6299 1
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
d6301 1
a6301 1
if false; then
d6303 4
a6306 22
for ac_func in krb_disable_debug
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12365: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12371 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d6308 2
a6309 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12402: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12405: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12407: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12410: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12420: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6311 1
a6311 1
eval "LIB_krb_disable_debug=$ac_res"
d6315 3
a6317 3
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
	cat >>confdefs.h <<EOF
d6321 1
a6321 2
	echo "$as_me:12444: result: yes" >&5
echo "${ECHO_T}yes" >&6
d6324 3
a6326 4
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
	echo "$as_me:12450: result: no" >&5
echo "${ECHO_T}no" >&6
d6329 1
a6329 1
	eval "ac_cv_func_krb_disable_debug=yes"
d6331 1
a6331 1
	cat >>confdefs.h <<EOF
d6335 1
a6335 1
	cat >>confdefs.h <<EOF
d6339 1
a6339 2
	echo "$as_me:12464: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a6342 3
if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
fi
d6344 8
a6351 4
echo "$as_me:12473: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6353 2
a6354 2

if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
d6356 2
a6357 2
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
d6363 2
a6364 2
		cat >conftest.$ac_ext <<_ACEOF
#line 12489 "configure"
d6367 7
a6373 20
int
main ()
{
krb_get_our_ip_for_realm()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12501: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12504: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12506: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12509: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
d6375 2
a6376 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6378 1
a6378 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6380 1
a6380 1
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
a6385 1
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
d6387 1
a6387 1
if false; then
d6389 4
a6392 22
for ac_func in krb_get_our_ip_for_realm
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:12531: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12537 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d6394 2
a6395 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12568: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12571: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12573: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:12576: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12586: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6397 1
a6397 1
eval "LIB_krb_get_our_ip_for_realm=$ac_res"
d6401 3
a6403 3
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<EOF
d6407 1
a6407 2
	echo "$as_me:12610: result: yes" >&5
echo "${ECHO_T}yes" >&6
d6410 3
a6412 4
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:12616: result: no" >&5
echo "${ECHO_T}no" >&6
d6415 1
a6415 1
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
d6417 1
a6417 1
	cat >>confdefs.h <<EOF
d6421 1
a6421 1
	cat >>confdefs.h <<EOF
d6425 1
a6425 2
	echo "$as_me:12630: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d6429 3
a6431 2
if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
a6433 47
	echo "$as_me:12639: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12645 "configure"
#include "confdefs.h"
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12660: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12663: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:12665: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:12668: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_krb_mk_req_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_mk_req_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:12679: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then

cat >>confdefs.h <<\EOF
#define KRB_MK_REQ_CONST 1
EOF
a6434 1
	fi
a6435 8
	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
	if test "$krb4_libdir"; then
		LIB_krb4="-R $krb4_libdir $LIB_krb4"
		LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
	fi
fi
a6436 7
if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi
a6437 7
if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
fi
d6439 4
a6442 3
if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
d6444 13
a6456 3
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi
d6458 13
a6470 3
cat >>confdefs.h <<\EOF
#define KRB5 1
EOF
d6472 3
a6474 9
# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\EOF
#define DCE 1
d6476 3
a6478 6

fi

if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
d6480 2
a6481 2
  DCE_TRUE='#'
  DCE_FALSE=
d6483 4
a6486 8

## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^^=*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^^=*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
else
	dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
d6489 1
a6489 6
# Check whether --enable-kaserver or --disable-kaserver was given.
if test "${enable_kaserver+set}" = set; then
  enableval="$enable_kaserver"

fi;
if test "$enable_kaserver" = yes; then
a6490 3
cat >>confdefs.h <<\EOF
#define KASERVER 1
EOF
d6492 1
a6492 7
	if test "$with_krb4" = "no"; then
		{ { echo "$as_me:12768: error: kaserver requires krb4" >&5
echo "$as_me: error: kaserver requires krb4" >&2;}
   { (exit 1); exit 1; }; }
		exit 1
	fi
fi
d6494 4
a6497 3
# Check whether --enable-kaserver-db or --disable-kaserver-db was given.
if test "${enable_kaserver_db+set}" = set; then
  enableval="$enable_kaserver_db"
d6499 4
a6502 2
fi;
if test "$enable_kaserver_db" = yes; then
d6504 6
a6509 2
cat >>confdefs.h <<\EOF
#define KASERVER_DB 1
d6512 13
a6524 7
	if test "$with_krb4" = "no"; then
		{ { echo "$as_me:12787: error: kaserver-db requires krb4" >&5
echo "$as_me: error: kaserver-db requires krb4" >&2;}
   { (exit 1); exit 1; }; }
		exit 1
	fi
fi
d6526 3
a6528 4
otp=yes
# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval="$enable_otp"
d6530 3
a6532 3
if test "$enableval" = "no"; then
	otp=no
fi
a6533 2
fi;
if test "$otp" = "yes"; then
d6535 2
a6536 5
cat >>confdefs.h <<\EOF
#define OTP 1
EOF

	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
a6538 7
if test "$otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi
a6539 3
# Check whether --enable-osfc2 or --disable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
  enableval="$enable_osfc2"
a6540 3
fi;
LIB_security=
if test "$enable_osfc2" = yes; then
a6541 3
cat >>confdefs.h <<\EOF
#define HAVE_OSFC2 1
EOF
a6542 2
	LIB_security=-lsecurity
fi
d6544 4
a6547 6
# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo "$as_me:12838: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_NROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6549 13
a6561 15
  case $NROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_NROFF="$ac_dir/$ac_word"
   break
fi
done
d6563 13
a6575 4
  ;;
esac
fi
NROFF=$ac_cv_path_NROFF
d6577 7
a6583 3
if test -n "$NROFF"; then
  echo "$as_me:12865: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6
d6585 7
a6591 2
  echo "$as_me:12868: result: no" >&5
echo "${ECHO_T}no" >&6
a6593 20
# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
echo "$as_me:12874: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_GROFF="$ac_dir/$ac_word"
   break
a6594 1
done
a6595 4
  ;;
esac
fi
GROFF=$ac_cv_path_GROFF
d6597 1
a6597 7
if test -n "$GROFF"; then
  echo "$as_me:12901: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6
else
  echo "$as_me:12904: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d6599 3
a6601 12
echo "$as_me:12908: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
if test "${ac_cv_sys_man_format+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
d6604 4
a6607 21
if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
fi
d6609 7
a6615 5
fi
echo "$as_me:12945: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"
d6617 13
a6629 1
fi
d6631 3
a6633 17
if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
else
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi
echo "$as_me:12959: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
if test "${ac_cv_sys_catman_ext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
fi
d6635 3
a6637 12
fi
echo "$as_me:12971: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$section'
else
	CATMANEXT=0
fi

# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
  withval="$with_readline"
a6638 1
fi;
d6640 2
a6641 9
# Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval="$with_readline_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:12989: error: No argument for --with-readline-lib" >&5
echo "$as_me: error: No argument for --with-readline-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
a6642 1
fi;
a6643 11
# Check whether --with-readline-include or --without-readline-include was given.
if test "${with_readline_include+set}" = set; then
  withval="$with_readline_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13001: error: No argument for --with-readline-include" >&5
echo "$as_me: error: No argument for --with-readline-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi;
a6644 2
echo "$as_me:13009: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6
a6645 19
case "$with_readline" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_readline_include" = ""; then
		with_readline_include="$with_readline/include"
	fi
	if test "$with_readline_lib" = ""; then
		with_readline_lib="$with_readline/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
d6647 12
a6658 10
case "$with_readline_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_readline_include $header_dirs";;
esac
case "$with_readline_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_readline_lib $lib_dirs";;
esac
a6659 8
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13049 "configure"
#include "confdefs.h"
d6661 2
a6662 3
 #include <readline.h>
int
main ()
d6664 3
a6666 3

  ;
  return 0;
d6668 4
a6671 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13062: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13065: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13067: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13070: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
d6673 8
a6680 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6682 19
a6700 6
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lreadline  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13082 "configure"
d6703 4
a6706 4
 #include <readline.h>
int
main ()
{
d6708 5
a6712 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13095: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13098: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13100: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13103: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
d6714 6
a6719 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a6720 4
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
d6722 1
a6722 5
if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
	readline_includedir="$ires"
	readline_libdir="$lres"
	INCLUDE_readline="-I$readline_includedir"
	LIB_readline="-L$readline_libdir -lreadline"
d6724 3
a6726 2
cat >>confdefs.h <<EOF
#define READLINE 1
a6728 9
	with_readline=yes
	echo "$as_me:13126: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_readline=
	LIB_readline=
	with_readline=no
	echo "$as_me:13132: result: $with_readline" >&5
echo "${ECHO_T}$with_readline" >&6
a6730 15
# Check whether --with-hesiod or --without-hesiod was given.
if test "${with_hesiod+set}" = set; then
  withval="$with_hesiod"

fi;

# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
  withval="$with_hesiod_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13146: error: No argument for --with-hesiod-lib" >&5
echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
a6731 1
fi;
a6732 9
# Check whether --with-hesiod-include or --without-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
  withval="$with_hesiod_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:13158: error: No argument for --with-hesiod-include" >&5
echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
a6733 1
fi;
a6734 2
echo "$as_me:13166: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
d6736 12
a6747 19
case "$with_hesiod" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_hesiod_include" = ""; then
		with_hesiod_include="$with_hesiod/include"
	fi
	if test "$with_hesiod_lib" = ""; then
		with_hesiod_lib="$with_hesiod/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
d6749 3
a6751 10
case "$with_hesiod_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_hesiod_include $header_dirs";;
esac
case "$with_hesiod_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_hesiod_lib $lib_dirs";;
esac
d6753 1
a6753 11
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13206 "configure"
#include "confdefs.h"
#include <hesiod.h>
int
main ()
d6755 8
d6764 3
a6766 2
  ;
  return 0;
d6768 4
a6771 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13218: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13221: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13223: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13226: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ires=$i;break
d6773 17
a6789 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6791 10
a6800 6
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lhesiod  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 13238 "configure"
d6802 5
a6806 4
#include <hesiod.h>
int
main ()
{
d6808 5
a6812 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13250: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13253: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13255: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13258: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  lres=$i;break
d6814 6
a6819 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a6820 4
rm -f conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
d6822 1
a6822 5
if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
	hesiod_includedir="$ires"
	hesiod_libdir="$lres"
	INCLUDE_hesiod="-I$hesiod_includedir"
	LIB_hesiod="-L$hesiod_libdir -lhesiod"
d6824 3
a6826 2
cat >>confdefs.h <<EOF
#define HESIOD 1
a6828 9
	with_hesiod=yes
	echo "$as_me:13281: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_hesiod=
	LIB_hesiod=
	with_hesiod=no
	echo "$as_me:13287: result: $with_hesiod" >&5
echo "${ECHO_T}$with_hesiod" >&6
d6831 10
a6840 14
# Check whether --enable-bigendian or --disable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
  enableval="$enable_bigendian"
  krb_cv_c_bigendian=yes
fi;
# Check whether --enable-littleendian or --disable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
  enableval="$enable_littleendian"
  krb_cv_c_bigendian=no
fi;
echo "$as_me:13301: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
if test "${krb_cv_c_bigendian_compile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6842 3
a6844 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13307 "configure"
d6847 5
a6851 5
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
d6853 5
a6857 19
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13324: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13327: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13329: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13332: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_c_bigendian_compile=yes
d6859 9
a6867 18
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian_compile=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:13342: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
echo "$as_me:13344: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${krb_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  if test "$krb_cv_c_bigendian_compile" = "yes"; then
    cat >conftest.$ac_ext <<_ACEOF
#line 13352 "configure"
#include "confdefs.h"
d6869 4
a6872 5
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
a6873 23
#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13369: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13372: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13374: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13377: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_c_bigendian=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=no
d6875 7
a6881 6
rm -f conftest.$ac_objext conftest.$ac_ext
  else
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:13388: error: specify either --enable-bigendian or --enable-littleendian" >&5
echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
   { (exit 1); exit 1; }; }
d6883 2
a6884 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13393 "configure"
d6886 12
a6897 22
main () {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
    } u;
    u.l = 1;
    exit (u.c[sizeof (long) - 1] == 1);
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13407: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13410: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:13411: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13414: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_c_bigendian=no
d6899 4
a6902 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=yes
d6904 1
a6904 1
rm -f conftest$ac_exeext conftest.$ac_ext
a6905 1
  fi
d6907 1
a6907 4
fi
echo "$as_me:13428: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6
if test "$krb_cv_c_bigendian" = "yes"; then
d6909 3
a6911 2
cat >>confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
d6913 1
a6914 1
if test "$krb_cv_c_bigendian_compile" = "yes"; then
a6915 3
cat >>confdefs.h <<\EOF
#define ENDIANESS_IN_SYS_PARAM_H 1
EOF
d6918 1
a6918 13
echo "$as_me:13443: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line 13451 "configure"
#include "confdefs.h"
#ifndef __cplusplus
$ac_kw int foo () {return 0; }
#endif
a6919 19
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13459: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13462: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13464: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:13467: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
d6921 2
a6923 14
echo "$as_me:13478: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
EOF
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac
a6924 9
aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*)
	aix=4
	;;
esac
d6926 3
a6928 3
if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
d6930 2
a6931 2
  AIX_TRUE='#'
  AIX_FALSE=
a6933 8
if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
else
  AIX4_TRUE='#'
  AIX4_FALSE=
fi
aix_dynamic_afs=yes
a6934 7
if test "$aix_dynamic_afs" = yes; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi
d6936 6
a6941 4
echo "$as_me:13528: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6943 2
a6944 2

if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
d6946 2
a6947 2
	for ac_lib in "" dl; do
		if test -n "$ac_lib"; then
d6953 2
a6954 2
		cat >conftest.$ac_ext <<_ACEOF
#line 13544 "configure"
d6957 7
a6963 20
int
main ()
{
dlopen()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13556: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13559: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13561: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13564: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
d6965 2
a6966 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6968 1
a6968 1
rm -f conftest$ac_exeext conftest.$ac_ext
d6970 1
a6970 1
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
a6975 1
eval "ac_res=\$ac_cv_funclib_dlopen"
d6977 1
a6977 1
if false; then
d6979 4
a6982 22
for ac_func in dlopen
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:13586: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13592 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d6984 2
a6985 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13623: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13626: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13628: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13631: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13641: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6987 1
a6987 1
eval "LIB_dlopen=$ac_res"
d6991 3
a6993 3
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >>confdefs.h <<EOF
d6997 1
a6997 2
	echo "$as_me:13665: result: yes" >&5
echo "${ECHO_T}yes" >&6
d7000 3
a7002 4
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	echo "$as_me:13671: result: no" >&5
echo "${ECHO_T}no" >&6
d7005 1
a7005 1
	eval "ac_cv_func_dlopen=yes"
d7007 1
a7007 1
	cat >>confdefs.h <<EOF
d7011 1
a7011 1
	cat >>confdefs.h <<EOF
d7015 1
a7015 2
	echo "$as_me:13685: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d7019 15
a7033 6
if test "$aix" != no; then
	if test "$aix_dynamic_afs" = yes; then
		if test "$ac_cv_funclib_dlopen" = yes; then
			AIX_EXTRA_KAFS=
		elif test "$ac_cv_funclib_dlopen" != no; then
			AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
d7035 1
a7035 1
			AIX_EXTRA_KAFS=-lld
d7037 20
a7056 3
	else
		AIX_EXTRA_KAFS=
	fi
a7058 6
if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
d7061 41
a7101 3
irix=no
case "$host_os" in
irix*) irix=yes ;;
a7103 7
if test "$irix" != no; then
  IRIX_TRUE=
  IRIX_FALSE='#'
else
  IRIX_TRUE='#'
  IRIX_FALSE=
fi
a7104 2
echo "$as_me:13725: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6
d7106 4
a7109 3
# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"
d7111 6
a7116 5
fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
d7118 10
a7127 42
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
    if test "${ac_cv_have_x+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat >Imakefile <<'EOF'
acfindx:
	@@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
         test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi
d7129 1
a7129 33
# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include
d7131 8
a7138 2
/usr/openwin/include
/usr/openwin/share/include'
d7140 5
a7144 21
if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Intrinsic.h.
  # First, try using that file with no special directory specified.
  cat >conftest.$ac_ext <<_ACEOF
#line 13822 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
_ACEOF
if { (eval echo "$as_me:13826: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13832: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d7146 6
a7151 1
  ac_cpp_err=yes
d7153 8
a7160 3
if test -z "$ac_cpp_err"; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
d7162 2
a7163 7
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Intrinsic.h"; then
    ac_x_includes=$ac_dir
    break
  fi
a7164 3
fi
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no
d7166 6
a7171 32
if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lXt $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
#line 13865 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
int
main ()
{
XtMalloc (0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13877: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13880: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13882: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13885: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
d7173 21
a7193 16
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl; do
    if test -r $ac_dir/libXt.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no
d7195 5
a7199 3
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
d7201 4
a7204 3
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
d7206 1
d7209 11
a7219 3
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no
d7221 6
a7226 4
if test "$have_x" != yes; then
  echo "$as_me:13923: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
  no_x=yes
d7228 12
a7239 9
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$as_me:13933: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi
d7241 8
a7248 2
if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.
d7250 1
a7250 2
cat >>confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1
d7252 11
d7264 7
a7270 1
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
d7272 3
a7274 3
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi
d7276 9
a7284 12
  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case `(uname -sr) 2>/dev/null` in
    "SunOS 5"*)
      echo "$as_me:13957: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
      cat >conftest.$ac_ext <<_ACEOF
#line 13961 "configure"
d7286 7
d7294 10
a7303 3
int
main ()
{
d7305 5
a7309 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13973: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13976: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:13978: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:13981: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_R_nospace=yes
d7311 6
a7316 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_nospace=no
a7317 10
rm -f conftest$ac_exeext conftest.$ac_ext
      if test $ac_R_nospace = yes; then
	echo "$as_me:13991: result: no" >&5
echo "${ECHO_T}no" >&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat >conftest.$ac_ext <<_ACEOF
#line 13997 "configure"
#include "confdefs.h"
d7319 7
a7325 20
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14009: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14012: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14014: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14017: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_R_space=yes
d7327 1
a7327 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_space=no
d7329 1
a7329 13
rm -f conftest$ac_exeext conftest.$ac_ext
	if test $ac_R_space = yes; then
	  echo "$as_me:14027: result: yes" >&5
echo "${ECHO_T}yes" >&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$as_me:14031: result: neither works" >&5
echo "${ECHO_T}neither works" >&6
	fi
      fi
      LIBS=$ac_xsave_LIBS
    esac
  fi
d7331 6
a7336 14
  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    echo "$as_me:14049: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7338 2
a7339 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14057 "configure"
d7341 3
a7343 1

a7344 3
#ifdef __cplusplus
extern "C"
#endif
d7346 2
a7347 35
   builtin and then its argument prototype would still apply.  */
char dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14076: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14079: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14081: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14084: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_dnet_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_dnet_ntoa=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14095: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi
d7349 1
a7349 11
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo "$as_me:14102: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14110 "configure"
#include "confdefs.h"
d7351 7
a7357 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7359 13
a7371 35
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dnet_ntoa ();
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14129: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14132: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14134: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14137: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14148: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
d7374 11
a7384 1
    fi
d7386 6
a7391 12
    # msh@@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    echo "$as_me:14164: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7393 2
a7394 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14170 "configure"
d7397 1
a7397 1
    which can conflict with char gethostbyname (); below.  */
a7399 3
#ifdef __cplusplus
extern "C"
#endif
d7401 4
a7404 3
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
char (*f) ();
a7405 3
int
main ()
{
d7409 1
a7409 1
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
d7412 1
a7412 1
f = gethostbyname;
d7415 12
a7426 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14201: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14204: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14206: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14209: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gethostbyname=no
d7428 10
a7437 1
rm -f conftest$ac_exeext conftest.$ac_ext
d7439 1
a7439 2
echo "$as_me:14219: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
d7441 6
a7446 5
    if test $ac_cv_func_gethostbyname = no; then
      echo "$as_me:14223: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7448 2
a7449 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14231 "configure"
d7451 3
a7453 1

a7454 3
#ifdef __cplusplus
extern "C"
#endif
d7456 2
a7457 35
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14250: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14253: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14255: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14258: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_nsl_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_gethostbyname=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14269: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi
d7459 1
a7459 11
      if test $ac_cv_lib_nsl_gethostbyname = no; then
        echo "$as_me:14276: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14284 "configure"
#include "confdefs.h"
d7461 7
a7467 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7469 13
a7481 35
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14303: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14306: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14308: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14311: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_bsd_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gethostbyname=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14322: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test $ac_cv_lib_bsd_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
d7484 11
a7494 2
      fi
    fi
d7496 6
a7501 11
    # lieder@@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the nameserver (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    echo "$as_me:14338: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7503 2
a7504 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14344 "configure"
d7507 1
a7507 1
    which can conflict with char connect (); below.  */
a7509 3
#ifdef __cplusplus
extern "C"
#endif
d7511 4
a7514 3
   builtin and then its argument prototype would still apply.  */
char connect ();
char (*f) ();
a7515 3
int
main ()
{
d7519 1
a7519 1
#if defined (__stub_connect) || defined (__stub___connect)
d7522 1
a7522 1
f = connect;
d7525 10
a7534 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14378: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14380: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14383: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_connect=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_connect=no
d7536 1
a7536 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7537 2
echo "$as_me:14393: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6
d7539 7
a7545 5
    if test $ac_cv_func_connect = no; then
      echo "$as_me:14397: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7547 1
a7547 45
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14405 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char connect ();
int
main ()
{
connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14424: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14427: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14429: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14432: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_socket_connect=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_socket_connect=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14443: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test $ac_cv_lib_socket_connect = yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
d7549 1
d7551 6
a7556 7
    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    echo "$as_me:14452: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7558 2
a7559 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14458 "configure"
d7562 1
a7562 1
    which can conflict with char remove (); below.  */
a7564 3
#ifdef __cplusplus
extern "C"
#endif
d7566 4
a7569 3
   builtin and then its argument prototype would still apply.  */
char remove ();
char (*f) ();
a7570 3
int
main ()
{
d7574 1
a7574 1
#if defined (__stub_remove) || defined (__stub___remove)
d7577 1
a7577 1
f = remove;
d7580 10
a7589 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14489: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14492: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14494: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14497: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_remove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_remove=no
d7591 1
a7591 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7592 2
echo "$as_me:14507: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6
d7594 7
a7600 5
    if test $ac_cv_func_remove = no; then
      echo "$as_me:14511: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7602 4
a7605 5
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14519 "configure"
#include "confdefs.h"
d7607 2
a7608 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char remove ();
int
main ()
{
remove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14538: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14541: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14543: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14546: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_posix_remove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_posix_remove=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14557: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test $ac_cv_lib_posix_remove = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a7610 1
    fi
d7612 6
a7617 5
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo "$as_me:14566: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7619 2
a7620 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14572 "configure"
d7623 1
a7623 1
    which can conflict with char shmat (); below.  */
a7625 3
#ifdef __cplusplus
extern "C"
#endif
d7627 4
a7630 3
   builtin and then its argument prototype would still apply.  */
char shmat ();
char (*f) ();
a7631 3
int
main ()
{
d7635 1
a7635 1
#if defined (__stub_shmat) || defined (__stub___shmat)
d7638 1
a7638 1
f = shmat;
d7641 10
a7650 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14603: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14606: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14608: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14611: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_shmat=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shmat=no
d7652 1
a7652 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7653 2
echo "$as_me:14621: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6
d7655 7
a7661 5
    if test $ac_cv_func_shmat = no; then
      echo "$as_me:14625: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7663 3
a7665 5
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14633 "configure"
#include "confdefs.h"
d7667 11
a7677 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shmat ();
int
main ()
{
shmat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14652: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14655: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14657: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14660: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ipc_shmat=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipc_shmat=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14671: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test $ac_cv_lib_ipc_shmat = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d7680 1
a7680 2
    fi
  fi
d7682 5
a7686 19
  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  echo "$as_me:14689: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14697 "configure"
#include "confdefs.h"
d7688 1
a7688 39
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char IceConnectionNumber ();
int
main ()
{
IceConnectionNumber ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14716: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14719: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14721: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14724: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ICE_IceConnectionNumber=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ICE_IceConnectionNumber=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14735: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a7690 1
  LDFLAGS=$ac_save_LDFLAGS
d7692 39
d7732 1
a7733 8
# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
	echo "$as_me:14748: checking for special X linker flags" >&5
echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d7735 6
a7740 26
	ac_save_libs="$LIBS"
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS $X_CFLAGS"
	krb_cv_sys_x_libs_rpath=""
	krb_cv_sys_x_libs=""
	for rflag in "" "-R" "-R " "-rpath "; do
		if test "$rflag" = ""; then
			foo="$X_LIBS"
		else
			foo=""
			for flag in $X_LIBS; do
			case $flag in
			-L*)
				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
				;;
			*)
				foo="$foo $flag"
				;;
			esac
			done
		fi
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
		if test "$cross_compiling" = yes; then
  { { echo "$as_me:14777: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d7742 2
a7743 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14782 "configure"
d7745 9
d7755 8
a7762 9
		#include <X11/Xlib.h>
		foo()
		{
		XOpenDisplay(NULL);
		}
		main()
		{
		return 0;
		}
d7764 5
a7768 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14797: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14800: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:14801: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14804: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
d7770 4
a7773 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
:
d7775 1
a7775 1
rm -f conftest$ac_exeext conftest.$ac_ext
a7776 3
	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"
d7778 9
d7788 5
a7792 4
echo "$as_me:14820: result: $krb_cv_sys_x_libs_rpath" >&5
echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
	X_LIBS="$krb_cv_sys_x_libs"
fi
a7793 7
if test "$no_x" != yes; then
  HAVE_X_TRUE=
  HAVE_X_FALSE='#'
else
  HAVE_X_TRUE='#'
  HAVE_X_FALSE=
fi
a7794 6
save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"
d7796 4
a7799 4
echo "$as_me:14840: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7801 2
a7802 2

if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
d7804 2
a7805 2
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then
d7811 2
a7812 2
		cat >conftest.$ac_ext <<_ACEOF
#line 14856 "configure"
d7815 7
a7821 20
int
main ()
{
XauWriteAuth()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14868: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14871: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14873: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14876: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
d7823 2
a7824 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d7826 1
a7826 1
rm -f conftest$ac_exeext conftest.$ac_ext
d7828 1
a7828 1
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
a7833 1
eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
d7835 1
a7835 1
if false; then
d7837 4
a7840 22
for ac_func in XauWriteAuth
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:14898: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14904 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d7842 2
a7843 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14935: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14938: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:14940: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:14943: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:14953: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d7845 1
a7845 1
eval "LIB_XauWriteAuth=$ac_res"
d7849 3
a7851 3
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >>confdefs.h <<EOF
d7855 1
a7855 2
	echo "$as_me:14977: result: yes" >&5
echo "${ECHO_T}yes" >&6
d7858 3
a7860 4
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	echo "$as_me:14983: result: no" >&5
echo "${ECHO_T}no" >&6
d7863 1
a7863 1
	eval "ac_cv_func_XauWriteAuth=yes"
d7865 1
a7865 1
	cat >>confdefs.h <<EOF
d7869 1
a7869 1
	cat >>confdefs.h <<EOF
d7873 1
a7873 2
	echo "$as_me:14997: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a7876 2
ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"
d7878 10
a7887 4
echo "$as_me:15005: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7889 2
a7890 12

if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 15021 "configure"
d7893 2
a7894 2
int
main ()
d7896 2
a7897 3
XauReadAuth()
  ;
  return 0;
d7899 5
a7903 13
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15033: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15036: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15038: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15041: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
d7905 6
a7910 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d7912 2
a7913 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
	LIBS="$ac_save_LIBS"
d7916 7
a7924 1
eval "ac_res=\$ac_cv_funclib_XauReadAuth"
a7925 1
if false; then
d7927 6
a7932 7
for ac_func in XauReadAuth
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:15063: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7934 12
a7945 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15069 "configure"
d7947 2
a7948 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7950 2
a7951 15
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d7953 3
a7955 29

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15100: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15103: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15105: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15108: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:15118: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d7957 12
a7970 1
done
d7972 10
a7981 3
fi
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d7983 1
a7983 1
eval "LIB_XauReadAuth=$ac_res"
d7987 3
a7989 3
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >>confdefs.h <<EOF
d7993 1
a7993 2
	echo "$as_me:15142: result: yes" >&5
echo "${ECHO_T}yes" >&6
d7996 3
a7998 4
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	echo "$as_me:15148: result: no" >&5
echo "${ECHO_T}no" >&6
d8001 1
a8001 1
	eval "ac_cv_func_XauReadAuth=yes"
d8003 1
a8003 1
	cat >>confdefs.h <<EOF
d8007 1
a8007 1
	cat >>confdefs.h <<EOF
d8011 1
a8011 2
	echo "$as_me:15162: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
a8014 1
LIBS="$LIB_XauReadAauth $LIBS"
d8016 7
a8022 4
echo "$as_me:15169: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
if test "${ac_cv_funclib_XauFileName+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8024 2
a8025 2

if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
d8027 2
a8028 2
	for ac_lib in "" X11 Xau; do
		if test -n "$ac_lib"; then
d8034 2
a8035 2
		cat >conftest.$ac_ext <<_ACEOF
#line 15185 "configure"
d8037 13
a8049 21

int
main ()
{
XauFileName()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15197: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15200: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15202: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15205: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
d8051 2
a8052 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d8054 1
a8054 1
rm -f conftest$ac_exeext conftest.$ac_ext
d8056 1
a8056 1
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
a8061 1
eval "ac_res=\$ac_cv_funclib_XauFileName"
d8063 1
a8063 1
if false; then
d8065 4
a8068 22
for ac_func in XauFileName
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:15227: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15233 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d8070 2
a8071 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15264: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15267: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15269: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:15272: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:15282: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d8073 1
a8073 1
eval "LIB_XauFileName=$ac_res"
d8077 3
a8079 3
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
	cat >>confdefs.h <<EOF
d8083 1
a8083 2
	echo "$as_me:15306: result: yes" >&5
echo "${ECHO_T}yes" >&6
d8086 3
a8088 4
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	echo "$as_me:15312: result: no" >&5
echo "${ECHO_T}no" >&6
d8091 1
a8091 1
	eval "ac_cv_func_XauFileName=yes"
d8093 1
a8093 1
	cat >>confdefs.h <<EOF
d8097 1
a8097 1
	cat >>confdefs.h <<EOF
d8101 1
a8101 23
	echo "$as_me:15326: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

LIBS="$ac_xxx"

case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
	fi
a8104 1
if test "$AUTOMAKE" != ""; then
a8105 8
if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
else
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
fi
else
d8107 6
a8112 16
	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS

echo "$as_me:15375: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8114 2
a8115 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15381 "configure"
d8117 9
d8127 7
a8133 48
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
d8136 5
a8140 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15439: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15442: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15444: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15447: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_c_const=yes
d8142 4
a8145 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d8147 1
a8147 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8148 3
echo "$as_me:15457: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
d8150 5
a8154 2
cat >>confdefs.h <<\EOF
#define const
d8156 5
a8161 1
fi
d8163 4
a8166 4
echo "$as_me:15467: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8168 2
a8169 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15473 "configure"
d8171 18
a8188 35
$ac_includes_default
int
main ()
{
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15488: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15491: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15493: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15496: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_off_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_off_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:15506: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
d8190 13
d8204 3
a8206 2
cat >>confdefs.h <<EOF
#define off_t long
a8210 44
echo "$as_me:15518: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15524 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15539: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15544: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15547: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:15557: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
a8211 3
cat >>confdefs.h <<EOF
#define size_t unsigned
EOF
a8212 1
fi
d8214 6
a8219 4
echo "$as_me:15569: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8221 12
a8232 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15575 "configure"
d8234 2
a8235 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d8237 7
a8243 5
#include <unistd.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_ssize_t=yes
d8245 2
a8246 1
  ac_cv_type_ssize_t=no
d8249 4
a8254 3
echo "$as_me:15593: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then
d8256 19
a8274 2
cat >>confdefs.h <<\EOF
#define ssize_t int
d8277 13
a8289 1
fi
d8291 2
a8292 47
echo "$as_me:15603: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15609 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15624: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15627: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15629: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15632: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:15642: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define pid_t int
d8295 3
a8297 1
fi
a8298 9
echo "$as_me:15654: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15660 "configure"
#include "confdefs.h"
#include <sys/types.h>
d8300 2
a8301 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
a8302 1
rm -f conftest*
d8304 2
a8306 3
echo "$as_me:15674: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
d8308 1
a8308 3
cat >>confdefs.h <<\EOF
#define uid_t int
EOF
d8310 5
a8314 10
cat >>confdefs.h <<\EOF
#define gid_t int
EOF

fi

echo "$as_me:15688: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8316 2
a8317 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15694 "configure"
d8319 3
a8321 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d8323 4
d8328 5
a8332 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_mode_t=yes
d8334 4
a8337 1
  ac_cv_type_mode_t=no
d8340 1
d8342 1
a8342 4
fi
echo "$as_me:15712: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = no; then
d8344 3
a8346 2
cat >>confdefs.h <<\EOF
#define mode_t unsigned short
a8350 20
echo "$as_me:15722: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15728 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_sig_atomic_t=yes
else
  ac_cv_type_sig_atomic_t=no
a8351 1
rm -f conftest*
a8353 3
echo "$as_me:15746: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
if test $ac_cv_type_sig_atomic_t = no; then
d8355 1
a8355 3
cat >>confdefs.h <<\EOF
#define sig_atomic_t int
EOF
d8357 5
a8361 7
fi

cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:15757: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8363 2
a8364 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15763 "configure"
a8365 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d8367 12
a8378 65
int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15780: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15783: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15785: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15788: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:15799: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:15804: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15810 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15825: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15828: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15830: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15833: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_long_long=yes
d8380 4
a8383 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
d8385 1
a8385 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8386 3
echo "$as_me:15843: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
d8388 5
a8392 2
cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
a8397 5

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

d8399 1
d8401 5
a8405 4
echo "$as_me:15861: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8407 2
a8408 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15867 "configure"
a8409 3
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
d8411 12
a8422 20
int
main ()
{
struct tm *tp;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15882: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15885: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15887: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15890: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_header_time=yes
d8424 4
a8427 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
d8429 1
a8429 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8430 3
echo "$as_me:15900: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
d8432 5
a8436 2
cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
d8441 9
a8449 4
echo "$as_me:15910: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8451 2
a8452 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15916 "configure"
a8453 2
#include <sys/types.h>
#include <time.h>
d8455 12
a8466 20
int
main ()
{
struct tm *tp; tp->tm_sec;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15930: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15933: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:15935: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:15938: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_struct_tm=time.h
d8468 4
a8471 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_tm=sys/time.h
d8473 1
a8473 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8474 3
echo "$as_me:15948: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then
d8476 5
a8480 2
cat >>confdefs.h <<\EOF
#define TM_IN_SYS_TIME 1
d8485 9
a8493 4
echo "$as_me:15958: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8495 2
a8496 2
  cat >conftest.$ac_ext <<_ACEOF
#line 15964 "configure"
d8498 2
a8499 2
#include <stdlib.h>
#include <stdarg.h>
d8501 4
a8504 1
#include <float.h>
d8506 5
a8510 14
_ACEOF
if { (eval echo "$as_me:15972: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15978: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8512 4
a8515 1
  ac_cpp_err=yes
d8517 1
a8517 6
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
a8518 1
rm -f conftest.err conftest.$ac_ext
d8520 6
a8525 6
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 16000 "configure"
#include "confdefs.h"
#include <string.h>
a8526 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
a8527 1
rm -f conftest*
d8530 1
d8532 9
a8540 4
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 16018 "configure"
d8542 18
a8559 1
#include <stdlib.h>
d8561 5
a8565 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
d8567 4
a8570 1
  ac_cv_header_stdc=no
d8573 9
d8583 3
d8588 11
a8598 4
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
d8600 2
a8601 2
  cat >conftest.$ac_ext <<_ACEOF
#line 16039 "configure"
d8603 15
a8617 4
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
d8619 1
a8619 4
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
d8622 5
a8626 23
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:16065: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16068: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:16069: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16072: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d8628 4
a8631 7
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
d8633 1
a8634 3
echo "$as_me:16085: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
d8636 6
a8641 2
cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
d8644 3
d8649 4
a8652 90
for ac_header in \
	arpa/ftp.h				\
	arpa/inet.h				\
	arpa/nameser.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	crypt.h					\
	curses.h				\
	dbm.h					\
	dirent.h				\
	dlfcn.h					\
	err.h					\
	errno.h					\
	fcntl.h					\
	fnmatch.h				\
	gdbm/ndbm.h				\
	grp.h					\
	inttypes.h				\
	io.h					\
	limits.h				\
	maillock.h				\
	ndbm.h					\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in6_machtypes.h			\
	netinet/in6_var.h			\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinfo/ni.h				\
	paths.h					\
	pthread.h				\
	pty.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/dbm.h				\
	sac.h					\
	security/pam_modules.h			\
	sgtty.h					\
	shadow.h				\
	siad.h					\
	signal.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/ptyvar.h				\
	sys/resource.h				\
	sys/select.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/strtty.h				\
	sys/syscall.h				\
	sys/sysctl.h				\
	sys/termio.h				\
	sys/time.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/un.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	term.h					\
	termio.h				\
	termios.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	utmp.h					\
	utmpx.h					\
d8654 1
d8656 4
a8659 24
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:16188: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16194 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:16198: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16204: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8661 27
a8687 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d8689 1
a8689 1
  echo "$as_me: failed program was:" >&5
d8691 2
a8692 1
  eval "$ac_ac_Header=no"
d8694 1
a8694 1
rm -f conftest.err conftest.$ac_ext
d8696 7
a8702 5
echo "$as_me:16223: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d8705 3
d8709 4
d8715 1
a8715 1
for ac_header in standards.h
d8717 4
a8720 24
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:16236: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16242 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:16246: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16252: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8722 27
a8748 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d8750 1
a8750 1
  echo "$as_me: failed program was:" >&5
d8752 2
a8753 1
  eval "$ac_ac_Header=no"
d8755 1
a8755 1
rm -f conftest.err conftest.$ac_ext
d8757 7
a8763 5
echo "$as_me:16271: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d8766 3
d8770 4
d8776 17
a8792 1
for i in netinet/ip.h netinet/tcp.h; do
d8794 1
a8794 1
cv=`echo "$i" | sed 'y%./+-%__p_%'`
d8796 7
a8802 11
echo "$as_me:16285: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16291 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
a8803 1
#include <$i>
d8805 5
a8809 19
_ACEOF
if { (eval echo "$as_me:16300: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16306: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
d8811 1
a8811 1
  echo "$as_me: failed program was:" >&5
d8813 2
a8814 1
  eval "ac_cv_header_$cv=no"
d8816 1
a8816 1
rm -f conftest.err conftest.$ac_ext
d8818 7
a8824 7
echo "$as_me:16325: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d8827 3
d8831 4
a8835 1
if false;then
d8837 1
a8837 1
for ac_header in netinet/ip.h netinet/tcp.h
d8839 4
a8842 24
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:16341: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16347 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:16351: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:16357: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d8844 27
a8870 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d8872 1
a8872 1
  echo "$as_me: failed program was:" >&5
d8874 2
a8875 1
  eval "$ac_ac_Header=no"
d8877 1
a8877 1
rm -f conftest.err conftest.$ac_ext
d8879 7
a8885 5
echo "$as_me:16376: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d8888 3
d8892 4
d8898 17
a8914 1
fi
d8916 1
a8916 3
# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval="$enable_netinfo"
d8918 8
a8925 3
fi;

if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
d8927 1
a8927 2
cat >>confdefs.h <<\EOF
#define HAVE_NETINFO 1
d8929 10
a8938 1

d8941 7
a8947 7
if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi
a8948 3
if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
d8950 2
a8951 2
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
d8954 4
a8957 3
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"
d8959 6
a8964 6
if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8966 10
a8975 2
  v6type=unknown
v6lib=none
d8977 1
a8977 8
echo "$as_me:16432: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line 16438 "configure"
#include "confdefs.h"
d8979 7
a8985 3
#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
d8987 11
a8997 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
d9000 14
d9015 14
a9028 4
		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line 16457 "configure"
d9030 9
d9040 7
a9046 3
#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
d9048 11
a9058 6
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
d9061 1
d9063 7
a9069 5
		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line 16476 "configure"
#include "confdefs.h"
d9071 3
a9073 10
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
a9074 1
rm -f conftest*
d9076 14
a9089 4
		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line 16495 "configure"
d9091 7
d9099 9
a9107 3
#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
d9109 11
a9119 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
d9122 1
d9124 7
a9130 5
		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line 16512 "configure"
#include "confdefs.h"
d9132 3
a9134 10
#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
a9135 1
rm -f conftest*
d9137 3
a9139 13
		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
a9140 2
echo "$as_me:16542: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6
d9142 9
a9150 10
if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi
cat >conftest.$ac_ext <<_ACEOF
#line 16554 "configure"
d9152 7
d9160 9
a9168 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
d9171 5
a9175 30
int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16589: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16592: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16594: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16597: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_lib_ipv6=yes
d9177 4
a9180 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
d9182 1
a9182 1
rm -f conftest$ac_exeext conftest.$ac_ext
d9185 6
a9190 8
echo "$as_me:16608: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "$as_me:16610: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_IPV6 1
d9193 3
d9198 11
a9208 4
echo "$as_me:16620: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9210 12
d9223 8
a9230 12
if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 16636 "configure"
#include "confdefs.h"
d9232 5
a9236 20
int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16648: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16651: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16653: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16656: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d9238 4
a9241 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9243 1
a9243 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d9246 11
d9259 4
a9262 3
eval "ac_res=\$ac_cv_funclib_socket"

if false; then
d9264 1
a9264 1
for ac_func in socket
d9266 4
a9269 5
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:16678: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9271 2
a9272 2
  cat >conftest.$ac_ext <<_ACEOF
#line 16684 "configure"
d9275 1
a9275 1
    which can conflict with char $ac_func (); below.  */
a9277 3
#ifdef __cplusplus
extern "C"
#endif
d9279 4
a9282 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a9283 3
int
main ()
{
d9290 1
a9290 1
f = $ac_func;
d9293 1
a9293 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16715: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16718: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16720: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16723: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:16733: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9295 8
a9302 1

d9304 1
a9304 2
done

a9305 4
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"
d9307 5
a9311 5
case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<EOF
d9315 4
a9318 15
	echo "$as_me:16757: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:16763: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9320 4
a9323 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9324 4
	echo "$as_me:16777: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9325 3
if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi
d9327 5
a9331 4
echo "$as_me:16786: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9333 2
a9334 12

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 16802 "configure"
d9336 5
d9342 5
a9346 20
int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16814: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16817: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16819: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16822: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d9348 4
a9351 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9353 1
a9353 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d9356 7
d9365 1
a9365 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
a9366 1
if false; then
d9368 5
a9372 7
for ac_func in gethostbyname
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:16844: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9374 2
a9375 2
  cat >conftest.$ac_ext <<_ACEOF
#line 16850 "configure"
d9377 5
a9381 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9383 1
a9383 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16881: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16884: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16886: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16889: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:16899: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9385 8
a9392 1

d9394 1
a9394 2
done

a9395 4
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"
d9397 1
a9397 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9399 3
a9401 14
	echo "$as_me:16923: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:16929: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9404 1
a9404 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d9406 1
a9406 4
	echo "$as_me:16943: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9407 3
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi
d9409 5
a9413 4
echo "$as_me:16952: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9415 2
a9416 12

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 16968 "configure"
d9418 5
d9424 5
a9428 20
int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16980: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16983: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:16985: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:16988: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d9430 4
a9433 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9435 1
a9435 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
d9438 7
d9447 1
a9447 1
eval "ac_res=\$ac_cv_funclib_syslog"
a9448 1
if false; then
d9450 5
a9454 7
for ac_func in syslog
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17010: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9456 2
a9457 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17016 "configure"
d9459 5
a9463 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9465 1
a9465 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17047: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17050: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17052: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17055: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17065: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9467 8
a9474 1

d9476 1
a9476 2
done

a9477 4
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"
d9479 1
a9479 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9481 3
a9483 14
	echo "$as_me:17089: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:17095: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9486 1
a9486 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d9488 1
a9488 4
	echo "$as_me:17109: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9489 3
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi
d9491 5
a9495 4
echo "$as_me:17118: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
if test "${ac_cv_funclib_logwtmp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9497 2
a9498 12

if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17134 "configure"
d9500 5
d9506 5
a9510 20
int
main ()
{
logwtmp()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17146: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17149: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17151: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17154: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d9512 4
a9515 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9517 10
a9526 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
	LIBS="$ac_save_LIBS"
a9530 1
eval "ac_res=\$ac_cv_funclib_logwtmp"
a9531 1
if false; then
d9533 5
a9537 7
for ac_func in logwtmp
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17176: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9539 2
a9540 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17182 "configure"
d9542 9
a9550 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d9552 2
a9553 15
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d9555 4
d9560 1
a9560 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17213: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17216: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17218: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17221: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17231: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9562 10
a9571 1

a9572 1
done
d9574 1
a9574 5
fi
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logwtmp=$ac_res"
d9576 3
a9578 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9581 5
a9585 15
	echo "$as_me:17255: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	echo "$as_me:17261: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_logwtmp=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a9586 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9587 4
	echo "$as_me:17275: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d9589 4
a9592 4
echo "$as_me:17280: checking for tgetent" >&5
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
if test "${ac_cv_funclib_tgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9594 2
a9595 2

if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
d9597 2
a9598 2
	for ac_lib in "" termcap ncurses curses; do
		if test -n "$ac_lib"; then
d9604 2
a9605 2
		cat >conftest.$ac_ext <<_ACEOF
#line 17296 "configure"
d9608 7
a9614 20
int
main ()
{
tgetent()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17308: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17311: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17313: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17316: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
d9616 2
a9617 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9619 1
a9619 1
rm -f conftest$ac_exeext conftest.$ac_ext
d9621 1
a9621 1
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
a9626 1
eval "ac_res=\$ac_cv_funclib_tgetent"
d9628 1
a9628 1
if false; then
d9630 4
a9633 22
for ac_func in tgetent
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17338: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17344 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9635 2
a9636 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17378: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17380: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17383: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17393: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d9638 1
a9638 1
eval "LIB_tgetent=$ac_res"
d9642 3
a9644 3
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >>confdefs.h <<EOF
d9648 1
a9648 2
	echo "$as_me:17417: result: yes" >&5
echo "${ECHO_T}yes" >&6
d9651 3
a9653 4
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	echo "$as_me:17423: result: no" >&5
echo "${ECHO_T}no" >&6
d9656 1
a9656 1
	eval "ac_cv_func_tgetent=yes"
d9658 1
a9658 1
	cat >>confdefs.h <<EOF
d9662 1
a9662 1
	cat >>confdefs.h <<EOF
d9666 1
a9666 2
	echo "$as_me:17437: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d9670 13
a9682 4
echo "$as_me:17442: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9684 3
d9688 2
a9689 12
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17458 "configure"
#include "confdefs.h"
d9691 1
a9691 2
int
main ()
d9693 1
a9693 3
gethostbyname2()
  ;
  return 0;
d9695 5
a9699 13
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17470: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17473: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17475: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17478: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d9701 6
a9706 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9708 2
a9709 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
d9712 6
a9719 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
a9720 1
if false; then
d9722 5
a9726 7
for ac_func in gethostbyname2
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17500: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9728 2
a9729 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17506 "configure"
d9731 15
a9745 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a9746 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9748 17
a9764 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9766 3
a9768 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17537: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17540: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17542: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17545: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17555: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a9771 1
done
d9773 42
a9815 4
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"
d9817 5
a9821 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9824 1
a9824 15
	echo "$as_me:17579: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:17585: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a9825 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9826 4
	echo "$as_me:17599: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9827 3
if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
fi
d9829 4
a9832 4
echo "$as_me:17608: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9834 2
a9835 12

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17624 "configure"
a9837 1
#include <stdio.h>
d9841 3
d9847 2
a9848 2
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
d9850 2
a9851 2
#ifdef HAVE_RESOLV_H
#include <resolv.h>
d9854 7
a9860 20
int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17650: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17653: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17655: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17658: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d9862 4
a9865 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9867 1
a9867 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
d9870 7
a9878 1
eval "ac_res=\$ac_cv_funclib_res_search"
a9879 1
if false; then
d9881 5
a9885 7
for ac_func in res_search
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17680: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9887 2
a9888 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17686 "configure"
a9889 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9891 2
a9892 10
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d9895 3
a9897 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17717: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17720: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17722: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17725: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17735: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d9899 10
a9908 1

a9909 1
done
d9911 1
a9911 5
fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"
d9913 3
a9915 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9918 1
a9918 15
	echo "$as_me:17759: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:17765: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a9919 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a9920 4
	echo "$as_me:17779: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a9921 3
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi
d9923 5
a9927 4
echo "$as_me:17788: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9929 2
a9930 12

if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 17804 "configure"
d9933 2
a9934 3
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d9936 2
a9937 8
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
d9940 10
a9949 20
int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17830: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17833: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17835: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17838: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d9951 6
a9956 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d9958 8
a9965 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
a9969 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
a9970 1
if false; then
d9972 5
a9976 7
for ac_func in dn_expand
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:17860: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9978 2
a9979 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17866 "configure"
a9980 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9982 22
a10003 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10005 3
a10007 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:17897: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17900: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:17902: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17905: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:17915: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a10010 1
done
a10012 4
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"
d10014 20
a10033 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d10035 11
d10047 1
a10047 15
	echo "$as_me:17939: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:17945: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d10049 3
a10051 2
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
d10054 1
a10054 4
	echo "$as_me:17959: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10055 2
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d10058 10
a10067 11
echo "$as_me:17968: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17978 "configure"
d10069 9
a10077 21

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:17991: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17994: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:17995: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:17998: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d10079 4
a10082 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_snprintf_working=no
d10084 2
a10085 1
rm -f conftest$ac_exeext conftest.$ac_ext
a10086 3
fi
echo "$as_me:18010: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
a10087 1
if test "$ac_cv_func_snprintf_working" = yes; then
d10089 38
a10126 3
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
EOF
a10128 1
if test "$ac_cv_func_snprintf_working" = yes; then
a10129 16
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:18023: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18029 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
a10130 25
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:18044: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:18047: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18049: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:18052: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_snprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:18062: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
a10131 1
if test "$ac_cv_func_snprintf_noproto" = yes; then
d10133 4
a10136 2
cat >>confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
a10140 1
fi
a10143 12
echo "$as_me:18077: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18087 "configure"
#include "confdefs.h"
a10144 3
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
a10145 9
int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}
d10147 18
a10164 16
int main()
{
	return foo(0, "12");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:18110: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18113: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:18114: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18117: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d10166 4
a10169 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_vsnprintf_working=no
d10171 2
a10172 1
rm -f conftest$ac_exeext conftest.$ac_ext
a10173 3
fi
echo "$as_me:18129: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
a10174 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
d10176 5
a10180 2
cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
d10183 9
a10191 11
fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:18142: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18148 "configure"
d10193 11
a10203 24
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:18163: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:18166: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18168: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:18171: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
d10205 4
a10208 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
d10210 2
a10211 1
rm -f conftest.$ac_objext conftest.$ac_ext
a10212 2
echo "$as_me:18181: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
a10213 1
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
d10215 6
a10220 2
cat >>confdefs.h <<\EOF
#define NEED_VSNPRINTF_PROTO 1
a10224 1
fi
a10227 32
for ac_func in 				\
	_getpty					\
	_scrsize				\
	fcntl					\
	gettimeofday				\
	getuid					\
	grantpt					\
	mktime					\
	ptsname					\
	rand					\
	random					\
	revoke					\
	select					\
	setitimer				\
	setpcred				\
	setpgid					\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	strstr					\
	timegm					\
	ttyname					\
	ttyslot					\
	umask					\
	unlockpt				\
	vhangup					\
	yp_get_default_domain			\
a10228 21
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18231: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18237 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10229 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10231 14
a10244 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18268: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18271: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18273: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18276: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18286: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10246 3
a10248 35

fi
done

for ac_header in capability.h sys/capability.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:18299: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18305 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:18309: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:18315: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d10250 1
a10250 1
  echo "$as_me: failed program was:" >&5
d10252 2
a10253 1
  eval "$ac_ac_Header=no"
d10255 1
a10255 8
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:18334: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
a10257 1
done
a10258 22
for ac_func in sgi_getcapabilitybyname cap_set_proc
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18347: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18353 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10259 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10261 4
a10264 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18384: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18387: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18389: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18392: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18402: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10267 9
a10275 20
fi
done

echo "$as_me:18412: checking for getpwnam_r" >&5
echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" c_r; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18428 "configure"
d10277 11
a10287 21

int
main ()
{
getpwnam_r()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18440: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18443: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18445: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18448: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
d10289 4
a10292 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
d10294 1
a10297 3
eval "ac_res=\$ac_cv_funclib_getpwnam_r"

if false; then
a10298 22
for ac_func in getpwnam_r
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18470: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18476 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10299 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10301 4
a10304 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18507: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18510: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18512: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18515: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18525: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10308 1
a10308 1
done
a10310 12
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a10311 15
	echo "$as_me:18549: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	echo "$as_me:18555: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
a10312 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a10313 4
	echo "$as_me:18569: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d10315 8
a10322 13
if test "$ac_cv_func_getpwnam_r" = yes; then
	echo "$as_me:18575: checking if getpwnam_r is posix" >&5
echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18586 "configure"
d10324 9
a10332 20

#include <pwd.h>
int main()
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:18598: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18601: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:18602: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18605: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getpwnam_r_posix=yes
d10334 4
a10337 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getpwnam_r_posix=no
d10339 2
a10340 3
rm -f conftest$ac_exeext conftest.$ac_ext
fi
LIBS="$ac_libs"
a10341 3
echo "$as_me:18618: result: $ac_cv_func_getpwnam_r_posix" >&5
echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
if test "$ac_cv_func_getpwnam_r_posix" = yes; then
a10342 3
cat >>confdefs.h <<\EOF
#define POSIX_GETPWNAM_R 1
EOF
a10343 2
fi
fi
d10345 5
a10349 5
echo "$as_me:18629: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10351 9
a10359 11
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18645 "configure"
d10361 2
a10362 2
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d10364 8
a10371 23
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18662: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18665: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18667: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18670: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d10373 7
a10379 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10381 10
a10390 4
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
d10393 1
a10395 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
a10396 1
if false; then
d10398 9
a10406 10
for ac_func in getsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18692: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18698 "configure"
d10408 3
a10410 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10412 4
a10415 45
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18729: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18732: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18734: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18737: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18747: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d10417 10
a10428 1
done
a10429 5
fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"
a10430 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d10432 5
a10436 14
	echo "$as_me:18771: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:18777: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d10439 1
a10439 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a10440 4
	echo "$as_me:18791: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10441 5
echo "$as_me:18796: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10443 8
a10450 11
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18812 "configure"
d10452 3
a10454 2
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
d10456 8
a10463 23
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18829: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18832: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18834: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18837: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d10465 4
a10468 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
d10470 1
a10473 1
eval "ac_res=\$ac_cv_funclib_setsockopt"
a10474 1
if false; then
a10475 22
for ac_func in setsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18859: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18865 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d10477 4
a10480 40
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18896: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18899: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:18901: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:18904: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:18914: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a10483 1
done
a10484 5
fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"
a10485 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d10487 17
a10503 14
	echo "$as_me:18938: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:18944: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d10505 10
d10516 1
a10516 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a10517 4
	echo "$as_me:18958: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10518 22
for ac_func in getudbnam setlim
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:18966: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 18972 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a10519 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d10521 4
a10524 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:19003: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19006: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19008: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:19011: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:19021: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
a10527 1
done
d10529 10
a10538 7
echo "$as_me:19031: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19037 "configure"
d10540 3
a10542 4
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
d10544 8
a10551 26
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19064: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19067: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_signal=void
d10553 4
a10556 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
d10558 2
a10559 1
rm -f conftest.$ac_objext conftest.$ac_ext
a10560 2
echo "$as_me:19077: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6
a10561 3
cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
a10562 1
if test "$ac_cv_type_signal" = "void" ; then
d10564 5
a10568 2
cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
a10572 5
echo "$as_me:19092: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10574 10
a10583 6
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19103 "configure"
a10584 2

#include <stddef.h>
d10586 8
a10593 18

int main()
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:19116: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19119: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:19120: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:19123: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  :
d10595 4
a10598 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_realloc_broken=yes
d10600 2
a10601 1
rm -f conftest$ac_exeext conftest.$ac_ext
a10603 4
fi
echo "$as_me:19136: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then
d10605 6
a10610 2
cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
a10614 5
echo "$as_me:19146: checking for ut_addr in struct utmp" >&5
echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10616 12
a10627 2
cat >conftest.$ac_ext <<_ACEOF
#line 19153 "configure"
d10630 1
a10630 3
int
main ()
{
d10632 4
a10635 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19165: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19168: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19170: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19173: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10638 4
a10641 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_addr=no
d10643 1
a10643 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10645 2
a10646 2
echo "$as_me:19183: result: $ac_cv_type_struct_utmp_ut_addr" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
d10648 2
a10649 2

cat >>confdefs.h <<\EOF
d10653 1
d10656 7
a10662 4
echo "$as_me:19193: checking for ut_host in struct utmp" >&5
echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10664 3
a10666 3

cat >conftest.$ac_ext <<_ACEOF
#line 19200 "configure"
d10669 1
a10669 3
int
main ()
{
d10671 4
a10674 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19212: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19215: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19217: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19220: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10677 4
a10680 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_host=no
d10682 1
a10682 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10684 2
a10685 2
echo "$as_me:19230: result: $ac_cv_type_struct_utmp_ut_host" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
d10687 2
a10688 2

cat >>confdefs.h <<\EOF
d10692 1
d10695 7
a10701 4
echo "$as_me:19240: checking for ut_id in struct utmp" >&5
echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10703 3
a10705 3

cat >conftest.$ac_ext <<_ACEOF
#line 19247 "configure"
d10708 1
a10708 3
int
main ()
{
d10710 4
a10713 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19259: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19262: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19264: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19267: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10716 4
a10719 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_id=no
d10721 1
a10721 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10723 2
a10724 2
echo "$as_me:19277: result: $ac_cv_type_struct_utmp_ut_id" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
d10726 2
a10727 2

cat >>confdefs.h <<\EOF
d10731 1
d10734 7
a10740 4
echo "$as_me:19287: checking for ut_pid in struct utmp" >&5
echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10742 3
a10744 3

cat >conftest.$ac_ext <<_ACEOF
#line 19294 "configure"
d10747 1
a10747 3
int
main ()
{
d10749 4
a10752 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19306: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19309: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19311: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19314: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10755 4
a10758 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_pid=no
d10760 1
a10760 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10762 2
a10763 2
echo "$as_me:19324: result: $ac_cv_type_struct_utmp_ut_pid" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
d10765 2
a10766 2

cat >>confdefs.h <<\EOF
d10770 1
d10773 7
a10779 4
echo "$as_me:19334: checking for ut_type in struct utmp" >&5
echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10781 3
a10783 3

cat >conftest.$ac_ext <<_ACEOF
#line 19341 "configure"
d10786 1
a10786 3
int
main ()
{
d10788 4
a10791 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19353: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19356: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19358: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19361: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10794 4
a10797 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_type=no
d10799 1
a10799 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10801 2
a10802 2
echo "$as_me:19371: result: $ac_cv_type_struct_utmp_ut_type" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
d10804 2
a10805 2

cat >>confdefs.h <<\EOF
d10809 1
d10812 7
a10818 4
echo "$as_me:19381: checking for ut_user in struct utmp" >&5
echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10820 3
a10822 3

cat >conftest.$ac_ext <<_ACEOF
#line 19388 "configure"
d10825 1
a10825 3
int
main ()
{
d10827 4
a10830 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19400: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19403: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19405: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19408: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10833 4
a10836 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_user=no
d10838 1
a10838 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10840 2
a10841 2
echo "$as_me:19418: result: $ac_cv_type_struct_utmp_ut_user" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
d10843 2
a10844 2

cat >>confdefs.h <<\EOF
d10848 1
d10851 7
a10857 4
echo "$as_me:19428: checking for ut_exit in struct utmpx" >&5
echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10859 3
a10861 3

cat >conftest.$ac_ext <<_ACEOF
#line 19435 "configure"
d10864 1
a10864 3
int
main ()
{
d10866 4
a10869 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19447: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19450: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19452: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19455: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10872 4
a10875 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_exit=no
d10877 1
a10877 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10879 2
a10880 2
echo "$as_me:19465: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
d10882 2
a10883 2

cat >>confdefs.h <<\EOF
d10887 1
d10890 7
a10896 4
echo "$as_me:19475: checking for ut_syslen in struct utmpx" >&5
echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10898 3
a10900 3

cat >conftest.$ac_ext <<_ACEOF
#line 19482 "configure"
d10903 1
a10903 3
int
main ()
{
d10905 4
a10908 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19494: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19497: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19499: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19502: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10911 4
a10914 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_syslen=no
d10916 1
a10916 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10918 2
a10919 2
echo "$as_me:19512: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
d10921 2
a10922 2

cat >>confdefs.h <<\EOF
d10926 1
d10929 9
a10937 4
echo "$as_me:19522: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10939 3
a10941 3

cat >conftest.$ac_ext <<_ACEOF
#line 19529 "configure"
d10944 1
a10944 3
int
main ()
{
d10946 4
a10949 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19541: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19544: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19546: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19549: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10952 4
a10955 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
d10957 1
a10957 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10959 2
a10960 2
echo "$as_me:19559: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
d10962 2
a10963 2

cat >>confdefs.h <<\EOF
d10967 1
d10970 7
a10976 4
echo "$as_me:19569: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10978 3
a10980 3

cat >conftest.$ac_ext <<_ACEOF
#line 19576 "configure"
d10983 1
a10983 3
int
main ()
{
d10985 4
a10988 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19588: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19591: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19593: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19596: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d10991 4
a10994 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
d10996 1
a10996 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10998 2
a10999 2
echo "$as_me:19606: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
d11001 2
a11002 2

cat >>confdefs.h <<\EOF
d11006 1
d11009 8
a11016 4
echo "$as_me:19616: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11018 3
a11020 3

cat >conftest.$ac_ext <<_ACEOF
#line 19623 "configure"
d11024 1
a11024 3
int
main ()
{
d11026 4
a11029 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:19636: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19639: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19641: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:19644: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11032 4
a11035 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
d11037 1
a11037 1
rm -f conftest$ac_exeext conftest.$ac_ext
a11040 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:19657: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d11042 4
a11045 1
cat >>confdefs.h <<EOF
d11049 9
a11057 8
echo "$as_me:19665: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 19672 "configure"
d11061 1
a11061 3
int
main ()
{
d11063 4
a11066 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19685: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19688: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19690: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19693: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11069 4
a11072 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
d11074 1
a11074 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11078 4
a11081 2
echo "$as_me:19705: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
d11083 1
a11083 2

cat >>confdefs.h <<\EOF
d11089 1
d11092 4
d11097 4
a11100 4
echo "$as_me:19718: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11102 2
a11103 2
  cat >conftest.$ac_ext <<_ACEOF
#line 19724 "configure"
d11111 1
a11111 3
int
main ()
{
d11113 4
a11116 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19741: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19744: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19746: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19749: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11119 4
a11122 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:19760: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:19765: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19771 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19786: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19789: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19791: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19794: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
d11124 1
a11124 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11126 7
a11132 3
echo "$as_me:19804: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then
d11134 2
a11135 2
cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
a11139 1
fi
a11140 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11141 1
fi
d11144 4
a11147 4
echo "$as_me:19823: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11149 2
a11150 2
  cat >conftest.$ac_ext <<_ACEOF
#line 19829 "configure"
d11158 1
a11158 3
int
main ()
{
d11160 4
a11163 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19846: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19849: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19851: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19854: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11166 4
a11169 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:19865: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:19870: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19876 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19891: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19894: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19896: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19899: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_socklen_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
d11171 1
a11171 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11173 3
a11175 3
echo "$as_me:19909: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
d11177 6
a11182 2
cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
a11186 1
fi
a11187 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11188 1
fi
d11191 4
a11194 4
echo "$as_me:19928: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11196 2
a11197 2
  cat >conftest.$ac_ext <<_ACEOF
#line 19934 "configure"
d11205 1
a11205 3
int
main ()
{
d11207 4
a11210 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19951: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19954: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:19956: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:19959: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11213 4
a11216 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:19970: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:19975: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 19981 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:19996: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:19999: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20001: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20004: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
d11218 1
a11218 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11220 7
a11226 3
echo "$as_me:20014: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then
d11228 2
a11229 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
a11233 1
fi
a11234 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11235 1
fi
d11238 4
a11241 4
echo "$as_me:20033: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11243 2
a11244 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20039 "configure"
d11252 1
a11252 3
int
main ()
{
d11254 4
a11257 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20056: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20059: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20061: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20064: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11260 4
a11263 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:20075: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:20080: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20086 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20101: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20104: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20106: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20109: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
d11265 1
a11265 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11267 7
a11273 3
echo "$as_me:20119: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then
d11275 2
a11276 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
a11280 1
fi
a11281 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11282 1
fi
d11285 4
a11288 4
echo "$as_me:20138: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11290 2
a11291 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20144 "configure"
d11299 1
a11299 3
int
main ()
{
d11301 4
a11304 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20161: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20164: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20166: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20169: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11307 4
a11310 48
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:20180: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:20185: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20191 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20206: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20209: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20211: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20214: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
d11312 1
a11312 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11314 7
a11320 3
echo "$as_me:20224: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then
d11322 2
a11323 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
a11327 1
fi
a11328 3
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
a11329 1
fi
d11331 4
a11334 4
echo "$as_me:20242: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11336 1
a11336 1

d11339 2
a11340 2
cat >conftest.$ac_ext <<_ACEOF
#line 20251 "configure"
d11343 1
a11343 2

_ACEOF
d11346 1
d11355 1
a11355 2

cat >>confdefs.h <<\EOF
d11360 3
a11362 4
echo "$as_me:20272: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 20275 "configure"
d11365 1
a11365 2

_ACEOF
d11368 2
a11369 2

cat >>confdefs.h <<\EOF
d11376 2
a11377 2
cat >conftest.$ac_ext <<_ACEOF
#line 20291 "configure"
d11380 1
a11380 2

_ACEOF
d11383 2
a11384 2

cat >>confdefs.h <<\EOF
a11390 5
echo "$as_me:20306: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11392 11
a11402 2
cat >conftest.$ac_ext <<_ACEOF
#line 20313 "configure"
d11408 1
a11408 3
int
main ()
{
d11410 4
a11413 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20328: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20331: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20333: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20336: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11416 4
a11419 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
d11421 1
a11421 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11425 1
a11425 2
echo "$as_me:20348: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6
d11428 1
a11428 2

cat >>confdefs.h <<\EOF
a11433 5
echo "$as_me:20359: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11435 11
a11445 2
cat >conftest.$ac_ext <<_ACEOF
#line 20366 "configure"
d11449 1
a11449 3
int
main ()
{
d11451 4
a11454 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20379: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20382: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20384: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20387: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11457 4
a11460 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
d11462 1
a11462 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11464 2
a11465 2
echo "$as_me:20397: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
d11467 2
a11468 2

cat >>confdefs.h <<\EOF
d11472 1
a11474 5
for i in int8_t int16_t int32_t int64_t \
	u_int8_t u_int16_t u_int32_t u_int64_t \
	uint8_t uint16_t uint32_t uint64_t; do
	echo "$as_me:20410: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
d11476 9
a11484 2
if eval "test \"\${ac_cv_type_$i+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11486 2
a11487 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20417 "configure"
d11506 1
a11506 3
int
main ()
{
d11509 4
a11512 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:20446: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20449: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20451: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:20454: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11515 4
a11518 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval ac_cv_type_$i=no
d11520 1
a11520 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11526 1
a11526 1
		cat >>confdefs.h <<EOF
d11531 1
a11531 2
	echo "$as_me:20473: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6
a11533 6
for ac_header in 				\
	openssl/md4.h				\
	openssl/md5.h				\
	openssl/sha.h				\
	openssl/des.h				\
	openssl/rc4.h				\
d11535 6
a11540 25
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
echo "$as_me:20486: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20492 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:20496: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5
  (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:20502: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d11542 28
a11569 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$ac_ac_Header=yes"
d11571 1
a11571 1
  echo "$as_me: failed program was:" >&5
d11573 2
a11574 1
  eval "$ac_ac_Header=no"
d11576 1
a11576 1
rm -f conftest.err conftest.$ac_ext
d11578 6
a11583 5
echo "$as_me:20521: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
d11586 2
a11587 1
fi
d11590 31
a11620 4
echo "$as_me:20531: checking for MD4_Init" >&5
echo $ECHO_N "checking for MD4_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD4_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11622 54
d11677 9
d11688 2
a11689 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d11694 3
a11696 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 20547 "configure"
d11699 1
a11699 3
int
main ()
{
d11701 4
a11704 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20559: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20562: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20564: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20567: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11707 2
a11708 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d11710 1
a11710 1
rm -f conftest$ac_exeext conftest.$ac_ext
d11718 1
d11721 43
a11763 1
if false; then
d11765 4
a11768 7
for ac_func in MD4_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:20589: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11770 12
a11781 2
  cat >conftest.$ac_ext <<_ACEOF
#line 20595 "configure"
a11782 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d11784 3
a11786 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20626: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20629: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20631: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20634: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:20644: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
d11788 12
a11801 1
done
d11803 10
a11812 3
fi
# MD4_Init
eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11814 1
a11814 1
eval "LIB_MD4_Init=$ac_res"
d11818 3
a11820 3
	eval "ac_cv_func_MD4_Init=yes"
	eval "LIB_MD4_Init="
	cat >>confdefs.h <<EOF
d11824 1
a11824 2
	echo "$as_me:20668: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11827 3
a11829 4
	eval "ac_cv_func_MD4_Init=no"
	eval "LIB_MD4_Init="
	echo "$as_me:20674: result: no" >&5
echo "${ECHO_T}no" >&6
d11832 1
a11832 1
	eval "ac_cv_func_MD4_Init=yes"
d11834 1
a11834 1
	cat >>confdefs.h <<EOF
d11838 1
a11838 1
	cat >>confdefs.h <<EOF
d11842 1
a11842 2
	echo "$as_me:20688: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d11846 8
a11853 4
echo "$as_me:20693: checking for MD5_Init" >&5
echo $ECHO_N "checking for MD5_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD5_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11855 1
a11855 1

d11858 2
a11859 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d11864 3
a11866 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 20709 "configure"
d11869 1
a11869 3
int
main ()
{
d11871 4
a11874 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20721: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20724: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20726: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20729: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d11877 2
a11878 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d11880 1
a11880 1
rm -f conftest$ac_exeext conftest.$ac_ext
d11888 1
d11891 4
a11894 69
if false; then

for ac_func in MD5_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:20751: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20757 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20788: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20791: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20793: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20796: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:20806: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done
a11895 1
fi
d11905 1
a11905 1
	cat >>confdefs.h <<EOF
d11909 1
a11909 2
	echo "$as_me:20830: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11914 1
a11914 2
	echo "$as_me:20836: result: no" >&5
echo "${ECHO_T}no" >&6
d11919 1
a11919 1
	cat >>confdefs.h <<EOF
d11923 1
a11923 1
	cat >>confdefs.h <<EOF
d11927 1
a11927 2
	echo "$as_me:20850: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d11931 8
a11938 4
echo "$as_me:20855: checking for SHA1_Init" >&5
echo $ECHO_N "checking for SHA1_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_SHA1_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11940 2
a11941 2

if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
d11943 2
a11944 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d11949 3
a11951 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 20871 "configure"
d11954 7
a11960 20
int
main ()
{
SHA1_Init()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20883: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20886: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20888: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20891: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
d11962 2
a11963 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d11965 1
a11965 1
rm -f conftest$ac_exeext conftest.$ac_ext
d11967 1
a11967 1
	eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
a11972 1
eval "ac_res=\$ac_cv_funclib_SHA1_Init"
d11974 1
a11974 1
if false; then
d11976 4
a11979 67
for ac_func in SHA1_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:20913: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 20919 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:20950: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20953: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:20955: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:20958: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:20968: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done
d11981 2
a11982 3
fi
# SHA1_Init
eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11984 1
a11984 1
eval "LIB_SHA1_Init=$ac_res"
d11988 3
a11990 3
	eval "ac_cv_func_SHA1_Init=yes"
	eval "LIB_SHA1_Init="
	cat >>confdefs.h <<EOF
d11994 1
a11994 2
	echo "$as_me:20992: result: yes" >&5
echo "${ECHO_T}yes" >&6
d11997 3
a11999 4
	eval "ac_cv_func_SHA1_Init=no"
	eval "LIB_SHA1_Init="
	echo "$as_me:20998: result: no" >&5
echo "${ECHO_T}no" >&6
d12002 1
a12002 1
	eval "ac_cv_func_SHA1_Init=yes"
d12004 1
a12004 1
	cat >>confdefs.h <<EOF
d12008 1
a12008 1
	cat >>confdefs.h <<EOF
d12012 1
a12012 2
	echo "$as_me:21012: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12016 8
a12023 4
echo "$as_me:21017: checking for des_cbc_encrypt" >&5
echo $ECHO_N "checking for des_cbc_encrypt... $ECHO_C" >&6
if test "${ac_cv_funclib_des_cbc_encrypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12025 2
a12026 2

if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
d12028 2
a12029 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d12034 3
a12036 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 21033 "configure"
d12039 7
a12045 20
int
main ()
{
des_cbc_encrypt()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21045: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21048: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21050: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21053: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break
d12047 2
a12048 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d12050 1
a12050 1
rm -f conftest$ac_exeext conftest.$ac_ext
d12052 1
a12052 1
	eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
a12057 1
eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
d12059 1
a12059 1
if false; then
d12061 4
a12064 22
for ac_func in des_cbc_encrypt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:21075: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21081 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12066 2
a12067 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21112: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21115: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21117: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21120: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21130: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# des_cbc_encrypt
eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d12069 1
a12069 1
eval "LIB_des_cbc_encrypt=$ac_res"
d12073 3
a12075 3
	eval "ac_cv_func_des_cbc_encrypt=yes"
	eval "LIB_des_cbc_encrypt="
	cat >>confdefs.h <<EOF
d12079 1
a12079 2
	echo "$as_me:21154: result: yes" >&5
echo "${ECHO_T}yes" >&6
d12082 3
a12084 4
	eval "ac_cv_func_des_cbc_encrypt=no"
	eval "LIB_des_cbc_encrypt="
	echo "$as_me:21160: result: no" >&5
echo "${ECHO_T}no" >&6
d12087 1
a12087 1
	eval "ac_cv_func_des_cbc_encrypt=yes"
d12089 1
a12089 1
	cat >>confdefs.h <<EOF
d12093 1
a12093 1
	cat >>confdefs.h <<EOF
d12097 1
a12097 2
	echo "$as_me:21174: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12101 8
a12108 4
echo "$as_me:21179: checking for RC4" >&5
echo $ECHO_N "checking for RC4... $ECHO_C" >&6
if test "${ac_cv_funclib_RC4+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12110 2
a12111 2

if eval "test \"\$ac_cv_func_RC4\" != yes" ; then
d12113 2
a12114 2
	for ac_lib in crypto des; do
		if test -n "$ac_lib"; then
d12119 3
a12121 3
		LIBS="$LIB_krb4 $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 21195 "configure"
d12124 7
a12130 20
int
main ()
{
RC4()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21207: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21210: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21212: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21215: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_RC4=$ac_lib; else ac_cv_funclib_RC4=yes; fi";break
d12132 2
a12133 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d12135 1
a12135 1
rm -f conftest$ac_exeext conftest.$ac_ext
d12137 1
a12137 1
	eval "ac_cv_funclib_RC4=\${ac_cv_funclib_RC4-no}"
a12142 1
eval "ac_res=\$ac_cv_funclib_RC4"
d12144 1
a12144 1
if false; then
d12146 4
a12149 22
for ac_func in RC4
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:21237: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21243 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12151 2
a12152 48
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21274: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21277: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21279: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21282: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21292: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# RC4
eval "ac_tr_func=HAVE_`echo RC4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d12154 1
a12154 1
eval "LIB_RC4=$ac_res"
d12158 3
a12160 3
	eval "ac_cv_func_RC4=yes"
	eval "LIB_RC4="
	cat >>confdefs.h <<EOF
d12164 1
a12164 2
	echo "$as_me:21316: result: yes" >&5
echo "${ECHO_T}yes" >&6
d12167 3
a12169 4
	eval "ac_cv_func_RC4=no"
	eval "LIB_RC4="
	echo "$as_me:21322: result: no" >&5
echo "${ECHO_T}no" >&6
d12172 1
a12172 1
	eval "ac_cv_func_RC4=yes"
d12174 1
a12174 1
	cat >>confdefs.h <<EOF
d12178 1
a12178 1
	cat >>confdefs.h <<EOF
d12182 1
a12182 2
	echo "$as_me:21336: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12186 11
a12196 18
if test "$ac_cv_func_des_cbc_encrypt" = "yes" -a \
"$ac_cv_func_MD4_Init"  = "yes" -a \
"$ac_cv_func_MD5_Init"  = "yes" -a \
"$ac_cv_func_SHA1_Init" = "yes" -a \
"$ac_cv_func_RC4" = "yes"; then
  DIR_des=''
  LIB_des="-R $krb4_libdir -L$krb4_libdir $ac_cv_funclib_MD4_Init"
  LIB_des_appl="$LIB_des"
else
  DIR_des='des'
  LIB_des='$(top_builddir)/lib/des/libdes.la'
  LIB_des_appl="-ldes"
fi

echo "$as_me:21355: checking for el_init" >&5
echo $ECHO_N "checking for el_init... $ECHO_C" >&6
if test "${ac_cv_funclib_el_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12198 1
a12198 1

d12202 1
a12202 1
		if test -n "$ac_lib"; then
d12208 2
a12209 2
		cat >conftest.$ac_ext <<_ACEOF
#line 21371 "configure"
d12212 1
a12212 3
int
main ()
{
d12214 4
a12217 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21383: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21386: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21388: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21391: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d12220 2
a12221 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d12223 1
a12223 1
rm -f conftest$ac_exeext conftest.$ac_ext
d12229 1
a12229 5
fi

eval "ac_res=\$ac_cv_funclib_el_init"

if false; then
a12230 22
for ac_func in el_init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:21413: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21419 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12232 1
a12232 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d12234 4
a12237 32
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21450: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21453: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21455: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21458: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21468: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done
a12238 1
fi
d12248 1
a12248 1
	cat >>confdefs.h <<EOF
d12252 1
a12252 2
	echo "$as_me:21492: result: yes" >&5
echo "${ECHO_T}yes" >&6
d12257 1
a12257 2
	echo "$as_me:21498: result: no" >&5
echo "${ECHO_T}no" >&6
d12262 1
a12262 1
	cat >>confdefs.h <<EOF
d12266 1
a12266 1
	cat >>confdefs.h <<EOF
d12270 1
a12270 2
	echo "$as_me:21512: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
d12274 1
d12276 8
a12283 8
	echo "$as_me:21518: checking for four argument el_init" >&5
echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
if test "${ac_cv_func_el_init_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cat >conftest.$ac_ext <<_ACEOF
#line 21525 "configure"
d12287 1
a12287 3
int
main ()
{
d12289 4
a12292 15
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:21538: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21541: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21543: \"test -s conftest.$ac_objext\"") >&5
  (eval test -s conftest.$ac_objext) 2>&5
  ac_status=$?
  echo "$as_me:21546: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d12295 4
a12298 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_el_init_four=no
d12300 1
a12300 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12302 2
a12303 2
echo "$as_me:21556: result: $ac_cv_func_el_init_four" >&5
echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
d12305 1
a12305 2

cat >>confdefs.h <<\EOF
d12312 1
d12320 1
a12320 1
	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la $LIB_el_init"
d12322 1
a12322 1
	LIB_readline='$(top_builddir)/lib/editline/libeditline.la'
d12325 1
d12337 1
a12337 2

cat >>confdefs.h <<\EOF
d12341 2
a12342 1
cat >>confdefs.h <<\EOF
d12345 1
a12345 2

cat >>confdefs.h <<\EOF
d12348 1
a12348 2

cat >>confdefs.h <<\EOF
d12351 1
a12351 2

cat >>confdefs.h <<\EOF
d12354 1
a12354 2

cat >>confdefs.h <<\EOF
d12358 1
a12358 2

cat >>confdefs.h <<\EOF
d12369 2
a12370 118
echo "$as_me:21627: checking for getmsg" >&5
echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
if test "${ac_cv_func_getmsg+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21633 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getmsg (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getmsg ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getmsg) || defined (__stub___getmsg)
choke me
#else
f = getmsg;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21664: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21667: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { (eval echo "$as_me:21669: \"test -s conftest$ac_exeext\"") >&5
  (eval test -s conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21672: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getmsg=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getmsg=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:21682: result: $ac_cv_func_getmsg" >&5
echo "${ECHO_T}$ac_cv_func_getmsg" >&6

if test "$ac_cv_func_getmsg" = "yes"; then

echo "$as_me:21687: checking for working getmsg" >&5
echo $ECHO_N "checking for working getmsg... $ECHO_C" >&6
if test "${ac_cv_func_getmsg_work+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_getmsg_work=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line 21696 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <errno.h>

int main()
{
  int ret;
  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
  if(ret < 0 && errno == ENOSYS)
    return 1;
  return 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:21713: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21716: \$? = $ac_status" >&5
  (exit $ac_status); } && { (eval echo "$as_me:21717: \"./conftest$ac_exeext\"") >&5
  (eval ./conftest$ac_exeext) 2>&5
  ac_status=$?
  echo "$as_me:21720: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_cv_func_getmsg_work=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getmsg_work=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
fi
echo "$as_me:21732: result: $ac_cv_func_getmsg_work" >&5
echo "${ECHO_T}$ac_cv_func_getmsg_work" >&6
test "$ac_cv_func_getmsg_work" = "yes" &&

cat >>confdefs.h <<\EOF
#define HAVE_GETMSG 1
EOF

fi

if test "$ac_cv_func_getmsg_work" = yes; then
echo "$as_me:21743: checking for streamspty" >&5
echo $ECHO_N "checking for streamspty... $ECHO_C" >&6
d12372 1
a12372 1
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
d12376 1
a12376 1
	krb_cv_sys_streamspty=yes
a12378 3
echo "$as_me:21753: result: $krb_cv_sys_streamspty" >&5
echo "${ECHO_T}$krb_cv_sys_streamspty" >&6
fi
d12380 1
a12380 2

cat >>confdefs.h <<\EOF
d12385 2
d12388 2
a12389 2
echo "$as_me:21764: checking which authentication modules should be built" >&5
echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
d12405 4
a12408 2
echo "$as_me:21781: result: $LIB_AUTH_SUBDIRS" >&5
echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
d12422 1
a12422 1
	cat >>confdefs.h <<EOF
d12434 2
a12435 3
ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"

cat >confcache <<\_ACEOF
d12438 2
a12439 3
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
d12441 8
a12448 2
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
d12450 1
a12450 6
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

d12456 17
a12472 25
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
d12474 2
a12475 2
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
d12482 2
d12488 3
a12490 2
# VPATH is dangerous, but if there is a colon in the path, we need to
# keep it.
d12495 2
d12499 1
d12501 4
a12504 5
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:21880: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<\_ACEOF
d12508 5
d12514 1
a12514 1
# configure, is in config.log if it exists.
d12516 2
a12517 163
debug=false
as_me=`echo "$0" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conftest conftest.exe conftest.file
echo >conftest.file
if ln -s conftest.file conftest 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conftest.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conftest.file conftest 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conftest conftest.exe conftest.file

# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conftest.file <<_ASEOF
#! /bin/sh
exit 0
_ASEOF
chmod +x conftest.file
if test -x conftest.file >/dev/null 2>&1; then
  as_executable_p="test -x"
elif test -f conftest.file >/dev/null 2>&1; then
  as_executable_p="test -f"
else
  { { echo "$as_me:21937: error: cannot check whether a file is executable on this system" >&5
echo "$as_me: error: cannot check whether a file is executable on this system" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.file

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 5 compiler messages saved in config.log
# 6 checking for... messages and results
exec 5>>config.log
exec 6>&1

cat >&5 << EOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me (heimdal 0.3e) 2.49d, executed with
 > $0 $@@
on `(hostname || uname -n) 2>/dev/null | sed 1q`

EOF

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
$CONFIG_STATUS generated by $as_me (Autoconf 2.49d).
Configured on host $ac_hostname by
  `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
d12519 1
a12519 18
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
d12521 8
a12528 92
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:22080: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # Handling of arguments.
  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  'include/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
  'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  'lib/45/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
  'lib/auth/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
  'lib/auth/afskauthlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
  'lib/auth/pam/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
  'lib/auth/sia/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
  'lib/asn1/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
  'lib/com_err/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
  'lib/des/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
  'lib/editline/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
  'lib/gssapi/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
  'lib/hdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
  'lib/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
  'lib/kafs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
  'lib/kdfs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
  'lib/krb5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
  'lib/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
  'lib/roken/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
  'lib/sl/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
  'lib/vers/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
  'kuser/Makefile' ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
  'kpasswd/Makefile' ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
  'kadmin/Makefile' ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
  'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
  'kdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
  'appl/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
  'appl/afsutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
  'appl/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
  'appl/ftp/common/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
  'appl/ftp/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
  'appl/ftp/ftpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
  'appl/kx/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
  'appl/login/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
  'appl/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
  'appl/popper/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
  'appl/push/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
  'appl/rsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
  'appl/rcp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
  'appl/su/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
  'appl/xnlock/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
  'appl/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
  'appl/telnet/libtelnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
  'appl/telnet/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
  'appl/telnet/telnetd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
  'appl/test/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
  'appl/kf/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
  'appl/dceutils/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
  'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  'tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
  'include/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;

  # This is an error.
  -*) { { echo "$as_me:22156: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;
  *) { { echo "$as_me:22161: error: invalid argument: $1" >&5
echo "$as_me: error: invalid argument: $1" >&2;}
   { (exit 1); exit 1; }; };;
a12529 1
  shift
d12532 2
a12533 1
EOF
d12535 199
a12733 32
cat >>$CONFIG_STATUS <<\EOF
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit $?); exit $?; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}
d12735 1
d12738 1
a12738 4
cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#
d12740 20
a12759 214
AMDEP="$AMDEP"
ac_aux_dir="$ac_aux_dir"

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@CC@@,$CC,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@CPP@@,$CPP,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@PACKAGE@@,$PACKAGE,;t t
s,@@VERSION@@,$VERSION,;t t
s,@@ACLOCAL@@,$ACLOCAL,;t t
s,@@AUTOCONF@@,$AUTOCONF,;t t
s,@@AUTOMAKE@@,$AUTOMAKE,;t t
s,@@AUTOHEADER@@,$AUTOHEADER,;t t
s,@@MAKEINFO@@,$MAKEINFO,;t t
s,@@AMTAR@@,$AMTAR,;t t
s,@@install_sh@@,$install_sh,;t t
s,@@AWK@@,$AWK,;t t
s,@@SET_MAKE@@,$SET_MAKE,;t t
s,@@AMDEP@@,$AMDEP,;t t
s,@@AMDEPBACKSLASH@@,$AMDEPBACKSLASH,;t t
s,@@DEPDIR@@,$DEPDIR,;t t
s,@@CCDEPMODE@@,$CCDEPMODE,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@CANONICAL_HOST@@,$CANONICAL_HOST,;t t
s,@@YACC@@,$YACC,;t t
s,@@LEX@@,$LEX,;t t
s,@@LEXLIB@@,$LEXLIB,;t t
s,@@LEX_OUTPUT_ROOT@@,$LEX_OUTPUT_ROOT,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@STRIP@@,$STRIP,;t t
s,@@ac_ct_STRIP@@,$ac_ct_STRIP,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@WFLAGS@@,$WFLAGS,;t t
s,@@WFLAGS_NOUNUSED@@,$WFLAGS_NOUNUSED,;t t
s,@@WFLAGS_NOIMPLICITINT@@,$WFLAGS_NOIMPLICITINT,;t t
s,@@LIB_dbopen@@,$LIB_dbopen,;t t
s,@@LIB_dbm_firstkey@@,$LIB_dbm_firstkey,;t t
s,@@LIB_db_create@@,$LIB_db_create,;t t
s,@@DBLIB@@,$DBLIB,;t t
s,@@VOID_RETSIGTYPE@@,$VOID_RETSIGTYPE,;t t
s,@@have_err_h_TRUE@@,$have_err_h_TRUE,;t t
s,@@have_err_h_FALSE@@,$have_err_h_FALSE,;t t
s,@@have_fnmatch_h_TRUE@@,$have_fnmatch_h_TRUE,;t t
s,@@have_fnmatch_h_FALSE@@,$have_fnmatch_h_FALSE,;t t
s,@@have_ifaddrs_h_TRUE@@,$have_ifaddrs_h_TRUE,;t t
s,@@have_ifaddrs_h_FALSE@@,$have_ifaddrs_h_FALSE,;t t
s,@@have_vis_h_TRUE@@,$have_vis_h_TRUE,;t t
s,@@have_vis_h_FALSE@@,$have_vis_h_FALSE,;t t
s,@@LIB_socket@@,$LIB_socket,;t t
s,@@LIB_gethostbyname@@,$LIB_gethostbyname,;t t
s,@@LIB_syslog@@,$LIB_syslog,;t t
s,@@LIB_gethostbyname2@@,$LIB_gethostbyname2,;t t
s,@@LIB_res_search@@,$LIB_res_search,;t t
s,@@LIB_dn_expand@@,$LIB_dn_expand,;t t
s,@@have_glob_h_TRUE@@,$have_glob_h_TRUE,;t t
s,@@have_glob_h_FALSE@@,$have_glob_h_FALSE,;t t
s,@@LIB_getsockopt@@,$LIB_getsockopt,;t t
s,@@LIB_setsockopt@@,$LIB_setsockopt,;t t
s,@@LIB_hstrerror@@,$LIB_hstrerror,;t t
s,@@LIBOBJS@@,$LIBOBJS,;t t
s,@@LIB_pidfile@@,$LIB_pidfile,;t t
s,@@LIB_crypt@@,$LIB_crypt,;t t
s,@@DIR_roken@@,$DIR_roken,;t t
s,@@LIB_roken@@,$LIB_roken,;t t
s,@@INCLUDES_roken@@,$INCLUDES_roken,;t t
s,@@INCLUDE_openldap@@,$INCLUDE_openldap,;t t
s,@@LIB_openldap@@,$LIB_openldap,;t t
s,@@INCLUDE_krb4@@,$INCLUDE_krb4,;t t
s,@@LIB_krb4@@,$LIB_krb4,;t t
s,@@EXTRA_LIB45@@,$EXTRA_LIB45,;t t
s,@@LIB_krb_enable_debug@@,$LIB_krb_enable_debug,;t t
s,@@LIB_krb_disable_debug@@,$LIB_krb_disable_debug,;t t
s,@@LIB_krb_get_our_ip_for_realm@@,$LIB_krb_get_our_ip_for_realm,;t t
s,@@KRB4_TRUE@@,$KRB4_TRUE,;t t
s,@@KRB4_FALSE@@,$KRB4_FALSE,;t t
s,@@KRB5_TRUE@@,$KRB5_TRUE,;t t
s,@@KRB5_FALSE@@,$KRB5_FALSE,;t t
s,@@do_roken_rename_TRUE@@,$do_roken_rename_TRUE,;t t
s,@@do_roken_rename_FALSE@@,$do_roken_rename_FALSE,;t t
s,@@LIB_kdb@@,$LIB_kdb,;t t
s,@@DCE_TRUE@@,$DCE_TRUE,;t t
s,@@DCE_FALSE@@,$DCE_FALSE,;t t
s,@@dpagaix_CFLAGS@@,$dpagaix_CFLAGS,;t t
s,@@dpagaix_LDADD@@,$dpagaix_LDADD,;t t
s,@@LIB_otp@@,$LIB_otp,;t t
s,@@OTP_TRUE@@,$OTP_TRUE,;t t
s,@@OTP_FALSE@@,$OTP_FALSE,;t t
s,@@LIB_security@@,$LIB_security,;t t
s,@@NROFF@@,$NROFF,;t t
s,@@GROFF@@,$GROFF,;t t
s,@@CATMAN@@,$CATMAN,;t t
s,@@CATMAN_TRUE@@,$CATMAN_TRUE,;t t
s,@@CATMAN_FALSE@@,$CATMAN_FALSE,;t t
s,@@CATMANEXT@@,$CATMANEXT,;t t
s,@@INCLUDE_readline@@,$INCLUDE_readline,;t t
s,@@LIB_readline@@,$LIB_readline,;t t
s,@@INCLUDE_hesiod@@,$INCLUDE_hesiod,;t t
s,@@LIB_hesiod@@,$LIB_hesiod,;t t
s,@@AIX_TRUE@@,$AIX_TRUE,;t t
s,@@AIX_FALSE@@,$AIX_FALSE,;t t
s,@@AIX4_TRUE@@,$AIX4_TRUE,;t t
s,@@AIX4_FALSE@@,$AIX4_FALSE,;t t
s,@@AIX_DYNAMIC_AFS_TRUE@@,$AIX_DYNAMIC_AFS_TRUE,;t t
s,@@AIX_DYNAMIC_AFS_FALSE@@,$AIX_DYNAMIC_AFS_FALSE,;t t
s,@@LIB_dlopen@@,$LIB_dlopen,;t t
s,@@HAVE_DLOPEN_TRUE@@,$HAVE_DLOPEN_TRUE,;t t
s,@@HAVE_DLOPEN_FALSE@@,$HAVE_DLOPEN_FALSE,;t t
s,@@AIX_EXTRA_KAFS@@,$AIX_EXTRA_KAFS,;t t
s,@@IRIX_TRUE@@,$IRIX_TRUE,;t t
s,@@IRIX_FALSE@@,$IRIX_FALSE,;t t
s,@@X_CFLAGS@@,$X_CFLAGS,;t t
s,@@X_PRE_LIBS@@,$X_PRE_LIBS,;t t
s,@@X_LIBS@@,$X_LIBS,;t t
s,@@X_EXTRA_LIBS@@,$X_EXTRA_LIBS,;t t
s,@@HAVE_X_TRUE@@,$HAVE_X_TRUE,;t t
s,@@HAVE_X_FALSE@@,$HAVE_X_FALSE,;t t
s,@@LIB_XauWriteAuth@@,$LIB_XauWriteAuth,;t t
s,@@LIB_XauReadAuth@@,$LIB_XauReadAuth,;t t
s,@@LIB_XauFileName@@,$LIB_XauFileName,;t t
s,@@NEED_WRITEAUTH_TRUE@@,$NEED_WRITEAUTH_TRUE,;t t
s,@@NEED_WRITEAUTH_FALSE@@,$NEED_WRITEAUTH_FALSE,;t t
s,@@LIB_logwtmp@@,$LIB_logwtmp,;t t
s,@@LIB_tgetent@@,$LIB_tgetent,;t t
s,@@LIB_getpwnam_r@@,$LIB_getpwnam_r,;t t
s,@@LIB_MD4_Init@@,$LIB_MD4_Init,;t t
s,@@LIB_MD5_Init@@,$LIB_MD5_Init,;t t
s,@@LIB_SHA1_Init@@,$LIB_SHA1_Init,;t t
s,@@LIB_des_cbc_encrypt@@,$LIB_des_cbc_encrypt,;t t
s,@@LIB_RC4@@,$LIB_RC4,;t t
s,@@DIR_des@@,$DIR_des,;t t
s,@@LIB_des@@,$LIB_des,;t t
s,@@LIB_des_appl@@,$LIB_des_appl,;t t
s,@@LIB_el_init@@,$LIB_el_init,;t t
s,@@el_compat_TRUE@@,$el_compat_TRUE,;t t
s,@@el_compat_FALSE@@,$el_compat_FALSE,;t t
s,@@LIB_AUTH_SUBDIRS@@,$LIB_AUTH_SUBDIRS,;t t
s,@@LTLIBOBJS@@,$LTLIBOBJS,;t t
CEOF

EOF

  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
d12761 1
a12761 14
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
d12763 61
a12823 6
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

d12825 2
a12826 2
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
d12828 4
a12831 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d12834 4
a12837 12
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d12839 3
a12841 17
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
d12843 1
a12843 1
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
d12848 5
a12852 10
  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
d12854 2
a12855 2
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
d12858 3
a12860 3
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
d12863 8
a12870 58
  if test x"$ac_file" != x-; then
    { echo "$as_me:22517: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { { echo "$as_me:22535: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:22548: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi
d12872 9
a12880 7
done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_HEADER section.
#
d12886 7
a12892 7
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
d12894 6
a12899 1
ac_uD=',;t'
d12901 8
a12908 1
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d12910 4
a12913 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d12916 1
a12916 2
  test x"$ac_file" != x- && { echo "$as_me:22609: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d12918 3
a12920 29
  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { { echo "$as_me:22620: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:22633: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
d12924 14
a12937 30
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# And first: Protect against being on the right side of a sed subst in
# config.status.  Protect against being in an unquoted here document
# in config.status.
rm -f conftest.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\EOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
t end
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
EOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
d12942 2
a12943 2
cat >>conftest.undefs <<\EOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
d12946 3
a12948 33
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo '  fi # egrep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
d12950 1
a12950 1
while grep . conftest.undefs >/dev/null
d12952 6
a12957 8
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
d12959 18
a12976 16
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs

cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
d12978 2
a12979 20
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:22750: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d12981 2
a12982 19
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
d12984 2
a12985 3
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
d12987 2
a12988 1
done
d12990 2
a12991 1
cat >>$CONFIG_STATUS <<\EOF
a12992 50
#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`

  case $ac_dest in
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
    default-2 )
test x"$AMDEP" != x"" ||
for mf in $CONFIG_FILES; do
  case "$mf" in
  Makefile) dirpart=.;;
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
  *) continue;;
  esac
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  # Extract the definition of DEP_FILES from the Makefile without
  # running `make'.
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  test -z "$DEPDIR" && continue
  # When using ansi2knr, U may be empty or an underscore; expand it
  U=`sed -n -e '/^U = / s///p' < "$mf"`
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  # We invoke sed twice because it is the simplest approach to
  # changing $(DEPDIR) to its actual value in the expansion.
  for file in `sed -n -e '
    /^DEP_FILES = .*\\\\$/ {
      s/^DEP_FILES = //
      :loop
	s/\\\\$//
	p
	n
	/\\\\$/ b loop
      p
    }
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    # Make sure the directory exists.
    test -f "$dirpart/$file" && continue
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
  esac
done
d12994 2
a12995 2

cat >>$CONFIG_STATUS <<\EOF
d13000 2
a13001 1
ac_clean_files=$ac_clean_files_save
a13002 1
test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; }
d13007 2
a13008 2
const char *heimdal_long_version = "@@(#)\$Version: $HEIMDALVERSION by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
const char *heimdal_version = "$HEIMDALVERSION";
@


1.1.1.6
log
@import of heimdal 0.3f
@
text
@d2 1
a2 1
# From configure.in Revision: 1.278 .
d4 1
a4 1
# Generated by Autoconf 2.49b for heimdal 0.3f.
d26 37
d82 1
a82 1
ac_nl='
d84 1
a84 1
IFS=" 	$ac_nl"
d89 9
a97 1
cat >config.log << EOF
d101 1
a101 1
It was created by $as_me (heimdal 0.3f) 2.49b, executed with
d104 6
a109 1
on `(hostname || uname -n) 2>/dev/null | sed 1q`:
d111 1
d117 2
a118 2
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
d120 7
a126 7
/bin/arch              = `(/bin/arch) 2>/dev/null`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
hostinfo               = `(hostinfo) 2>/dev/null`
/bin/machine           = `(/bin/machine) 2>/dev/null`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
/bin/universe          = `(/bin/universe) 2>/dev/null`
d129 9
d144 1
a144 2
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
a145 6
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
d147 1
a162 8
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

# Name of the executable.
as_me=`echo "$0" | sed 's,.*/,,'`

d173 1
a173 6
# By default always use an empty string as the executable extension.
# Only change it if the script calls AC_EXEEXT.
ac_exeext=
# By default assume that objects files use an extension of .o.  Only
# change it if the script calls AC_OBJEXT.
ac_objext=o
a202 1
ac_default_prefix=/usr/heimdal
d223 6
d242 7
d295 3
a297 2
      {  echo "$as_me: error: invalid feature name: $ac_feature" >&2
  { (exit 1); exit; }; }
d305 3
a307 2
      {  echo "$as_me: error: invalid feature name: $ac_feature" >&2
  { (exit 1); exit; }; }
d488 3
a490 2
      {  echo "$as_me: error: invalid package name: $ac_package" >&2
  { (exit 1); exit; }; }
d502 3
a504 2
      {  echo "$as_me: error: invalid package name: $ac_package" >&2
  { (exit 1); exit; }; }
d526 5
a530 3
  -*) {  echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
  { (exit 1); exit; }; }
d537 3
a539 2
      {  echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  { (exit 1); exit; }; }
d546 2
a547 2
    { echo "$as_me:486: WARNING: you should use --build, --host, --target" >&5
echo "$as_me: warning: you should use --build, --host, --target" >&2; }
d549 2
a550 2
      { echo "$as_me:489: WARNING: invalid host type: $ac_option" >&5
echo "$as_me: warning: invalid host type: $ac_option" >&2; }
d559 3
a561 2
  {  echo "$as_me: error: missing argument to $ac_option" >&2
  { (exit 1); exit; }; }
d573 3
a575 2
    *)  {  echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  { (exit 1); exit; }; };;
d589 1
a589 1
    { echo "$as_me:527: WARNING: If you wanted to set the --build type, don't use --host.
d591 2
a592 2
echo "$as_me: warning: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2; }
d601 2
d619 3
a621 2
    {  echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  { (exit 1); exit; }; }
d623 3
a625 2
    {  echo "$as_me: error: cannot find sources in $srcdir" >&2
  { (exit 1); exit; }; }
d653 4
d669 1
a669 1
\`configure' configures heimdal 0.3f to adapt to many kinds of systems.
d739 1
a739 1
     short | recursive ) echo "Configuration of heimdal 0.3f:";;
d788 1
d824 2
a825 1
    elif test -f $ac_sub_srcdir/configure.in; then
d829 2
a830 2
      { echo "$as_me:757: WARNING: no configuration information is in $ac_subdir" >&5
echo "$as_me: warning: no configuration information is in $ac_subdir" >&2; }
d839 1
a839 1
configure (heimdal 0.3f) 2.49b
d872 2
a873 1
# config.log.
d875 31
d913 1
a913 1
  trap 'ac_status=$?; ac_signal='$ac_signal'; exit $ac_status' $ac_signal
d942 2
a943 2
    { echo "$as_me:838: loading cache $cache_file" >&5
echo "loading cache $cache_file" >&6;}
d950 2
a951 2
  { echo "$as_me:846: creating cache $cache_file" >&5
echo "creating cache $cache_file" >&6;}
d966 2
a967 2
      { echo "$as_me:862: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: warning: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2; }
d970 2
a971 2
      { echo "$as_me:866: WARNING: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: warning: \`$ac_var' was not set in the previous run" >&2; }
d976 6
a981 6
        { echo "$as_me:872: WARNING: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: warning: \`$ac_var' has changed since the previous run:" >&2; }
        { echo "$as_me:874: WARNING:   former value:  $ac_old_val" >&5
echo "$as_me: warning:   former value:  $ac_old_val" >&2; }
        { echo "$as_me:876: WARNING:   current value: $ac_new_val" >&5
echo "$as_me: warning:   current value: $ac_new_val" >&2; }
d987 4
a990 4
  { echo "$as_me:883: WARNING: changes in the environment can compromise the build" >&5
echo "$as_me: warning: changes in the environment can compromise the build" >&2; }
  { echo "$as_me:885: WARNING: consider removing $cache_file and starting over" >&5
echo "$as_me: warning: consider removing $cache_file and starting over" >&2; }
d995 2
a996 2
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
d1008 1
a1008 1
  ac_config_commands="$ac_config_commands default-1"
d1012 2
a1013 2
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a1014 1

d1018 1
a1018 1
echo "$as_me:915: checking for $ac_word" >&5
d1031 1
a1031 1
  test -f "$ac_dir/$ac_word" || continue
d1040 1
a1040 1
  echo "$as_me:937: result: $CC" >&5
d1043 1
a1043 1
  echo "$as_me:940: result: no" >&5
d1052 1
a1052 1
echo "$as_me:949: checking for $ac_word" >&5
d1065 1
a1065 1
  test -f "$ac_dir/$ac_word" || continue
d1074 1
a1074 1
  echo "$as_me:971: result: $ac_ct_CC" >&5
d1077 1
a1077 1
  echo "$as_me:974: result: no" >&5
d1090 1
a1090 1
echo "$as_me:987: checking for $ac_word" >&5
d1103 1
a1103 1
  test -f "$ac_dir/$ac_word" || continue
d1112 1
a1112 1
  echo "$as_me:1009: result: $CC" >&5
d1115 1
a1115 1
  echo "$as_me:1012: result: no" >&5
d1124 1
a1124 1
echo "$as_me:1021: checking for $ac_word" >&5
d1137 1
a1137 1
  test -f "$ac_dir/$ac_word" || continue
d1146 1
a1146 1
  echo "$as_me:1043: result: $ac_ct_CC" >&5
d1149 1
a1149 1
  echo "$as_me:1046: result: no" >&5
d1162 1
a1162 1
echo "$as_me:1059: checking for $ac_word" >&5
d1176 1
a1176 1
  test -f "$ac_dir/$ac_word" || continue
d1203 1
a1203 1
  echo "$as_me:1100: result: $CC" >&5
d1206 1
a1206 1
  echo "$as_me:1103: result: no" >&5
d1217 1
a1217 1
echo "$as_me:1114: checking for $ac_word" >&5
d1230 1
a1230 1
  test -f "$ac_dir/$ac_word" || continue
d1239 1
a1239 1
  echo "$as_me:1136: result: $CC" >&5
d1242 1
a1242 1
  echo "$as_me:1139: result: no" >&5
d1255 1
a1255 1
echo "$as_me:1152: checking for $ac_word" >&5
d1268 1
a1268 1
  test -f "$ac_dir/$ac_word" || continue
d1277 1
a1277 1
  echo "$as_me:1174: result: $ac_ct_CC" >&5
d1280 1
a1280 1
  echo "$as_me:1177: result: no" >&5
d1292 115
a1406 2
test -z "$CC" && {  echo "$as_me: error: no acceptable cc found in \$PATH" >&2
  { (exit 1); exit; }; }
d1408 6
a1413 1
echo "$as_me:1192: checking whether the C compiler works" >&5
d1416 1
a1416 1
#line 1195 "configure"
d1428 10
a1437 1
if { (eval echo $as_me:1207: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d1441 5
a1445 1
  if { ac_try='./conftest$ac_exeext'; { (eval echo $as_me:1211: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; }; then
d1451 5
a1455 3
      {  echo "$as_me: error: cannot run C compiled programs.
To enable cross compilation, use \`--host'." >&2
  { (exit 1); exit; }; }
d1459 1
a1459 1
echo "$as_me:1223: result: yes" >&5
d1463 2
a1464 2
  cat conftest.$ac_ext >&5
  echo "$as_me:1228: result: no" >&5
d1466 3
a1468 2
{  echo "$as_me: error: C compiler cannot create executables" >&2
  { (exit 77); exit; }; }
d1471 1
a1471 1
echo "$as_me:1234: checking whether we are cross compiling" >&5
d1473 1
a1473 1
echo "$as_me:1236: result: $cross_compiling" >&5
d1476 1
a1476 1
echo "$as_me:1239: checking whether we are using the GNU C compiler" >&5
d1482 1
a1482 1
#line 1245 "configure"
d1489 1
a1489 1
  choke me
d1497 10
a1506 1
if { (eval echo $as_me:1260: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d1510 2
a1511 2
  cat conftest.$ac_ext >&5
  ac_compiler_gnu=no
d1517 1
a1517 1
echo "$as_me:1271: result: $ac_cv_c_compiler_gnu" >&5
d1520 6
a1525 3
echo "$as_me:1274: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
d1529 1
a1529 1
#line 1280 "configure"
d1540 12
a1551 9
if { (eval echo $as_me:1291: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
  for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
    case $ac_file in
      *.$ac_ext | *.tds | *.d ) ;;
      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
         break;;
    esac
  done
  rm -f conftest.$ac_objext conftest.$ac_ext
d1553 3
a1555 2
  {  echo "$as_me: error: cannot compile" >&2
  { (exit 1); exit; }; }
d1557 1
d1559 10
a1568 9
echo "$as_me:1305: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$ac_cv_objext

echo "$as_me:1310: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if test "${ac_cv_exeext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1570 37
a1606 5
  case "$CYGWIN $MINGW32 $EMXOS2" in
  *yes*) ac_cv_exeext=.exe ;;
  *)
    cat >conftest.$ac_ext <<_ACEOF
#line 1319 "configure"
d1608 2
a1609 1

d1613 1
a1613 1

d1618 16
a1633 19
    if { (eval echo $as_me:1330: \"$ac_link\") >&5; (eval $ac_link) 2>&5; }; then
      # If both `conftest.exe' and `conftest' are `present' (well, observable)
      # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
      # work properly (i.e., refer to `conftest.exe'), while it won't with
      # `rm'.
      for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
    	case $ac_file in
    	  *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d) ;;
    	  *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
    	     break;;
    	esac
      done
      rm -f conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    else
      {  echo "$as_me: error: cannot compile and link" >&2
  { (exit 1); exit; }; }
    fi
    ;;
esac
d1635 1
a1635 13
echo "$as_me:1350: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT

ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1358: checking whether ${CC-cc} accepts -g" >&5
echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d1637 1
a1637 1
#line 1364 "configure"
d1639 1
a1639 1

d1643 1
a1643 1

d1649 11
a1659 2
if { (eval echo $as_me:1376: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
d1662 1
a1662 2
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_g=no
d1665 5
a1669 11
fi
echo "$as_me:1385: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
d1671 2
a1672 5
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
d1674 6
d1681 6
a1686 1
echo "$as_me:1403: checking how to run the C preprocessor" >&5
d1697 1
a1697 1
    for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp"
d1703 1
d1705 1
a1705 1
#line 1421 "configure"
d1710 9
a1718 4
ac_c_preproc_warn_flag=maybe
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:1428: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
d1726 2
a1727 2

# Now check whether non-existent headers can be detected and how
d1731 1
a1731 1
#line 1442 "configure"
d1735 9
a1743 3
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:1447: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
d1751 7
a1757 6

  if test -z "$ac_cpp_err"; then
    # cannot detect missing includes at all
    ac_cpp_err=yes
  else
    if test "x$ac_cpp_err" = xmaybe; then
a1762 1
  fi
d1764 5
a1768 1
rm -f conftest*
d1770 2
d1785 1
d1787 1
a1787 1
#line 1485 "configure"
d1792 9
a1800 4
ac_c_preproc_warn_flag=maybe
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:1492: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
d1808 2
a1809 2

# Now check whether non-existent headers can be detected and how
d1813 1
a1813 1
#line 1506 "configure"
d1817 9
a1825 3
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:1511: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
d1833 7
a1839 6

  if test -z "$ac_cpp_err"; then
    # cannot detect missing includes at all
    ac_cpp_err=yes
  else
    if test "x$ac_cpp_err" = xmaybe; then
a1844 1
  fi
d1846 5
a1850 1
rm -f conftest*
d1852 2
d1856 1
a1856 1
echo "$as_me:1537: result: $CPP" >&5
d1859 3
a1861 2
  {  echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2
  { (exit 1); exit; }; }
d1863 5
d1869 2
a1870 2
echo "$as_me:1544: checking for ${CC-cc} option to accept ANSI C" >&5
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
d1877 1
a1877 1
#line 1552 "configure"
d1926 10
a1935 1
if { (eval echo $as_me:1601: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
a1936 1
rm -f conftest.$ac_ext conftest.$ac_objext
d1940 1
a1940 1
  cat conftest.$ac_ext >&5
d1944 1
d1951 1
a1951 1
    echo "$as_me:1617: result: none needed" >&5
d1954 1
a1954 1
    echo "$as_me:1620: result: $ac_cv_prog_cc_stdc" >&5
d1976 3
a1978 2
  {  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2
  { (exit 1); exit; }; }
d1996 1
a1996 1
echo "$as_me:1661: checking for a BSD compatible install" >&5
d2045 1
a2045 1
echo "$as_me:1710: result: $INSTALL" >&5
d2056 1
a2056 1
echo "$as_me:1721: checking whether build environment is sane" >&5
d2079 5
a2083 3
      {  echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2
  { (exit 1); exit; }; }
d2092 5
a2096 3
   {  echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2
  { (exit 1); exit; }; }
d2099 1
a2099 1
echo "$as_me:1760: result: yes" >&5
d2121 1
a2121 2
  MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
# Use eval to expand $SHELL
d2127 2
a2128 2
  { echo "$as_me:1789: WARNING: ${am_backtick}missing' script is too old or missing" >&5
echo "$as_me: warning: ${am_backtick}missing' script is too old or missing" >&2; }
d2135 1
a2135 1
echo "$as_me:1797: checking for $ac_word" >&5
d2148 1
a2148 1
  test -f "$ac_dir/$ac_word" || continue
d2157 1
a2157 1
  echo "$as_me:1819: result: $AWK" >&5
d2160 1
a2160 1
  echo "$as_me:1822: result: no" >&5
d2167 1
a2167 1
echo "$as_me:1829: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2187 1
a2187 1
  echo "$as_me:1849: result: yes" >&5
d2191 1
a2191 1
  echo "$as_me:1853: result: no" >&5
a2219 3
  # We redirect because .deps might already exist and be populated.
  # In this situation we don't want to see an error.
  rmdir .deps > /dev/null 2>&1
d2227 1
a2227 1
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
d2229 3
a2231 2
  {  echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2
  { (exit 1); exit; }; }
d2236 1
a2236 1
VERSION=0.3f
a2266 3
# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.

d2269 1
a2269 1
echo "$as_me:1936: checking dependency style of $depcc" >&5
a2292 3
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
d2296 1
a2296 1
       $SHELL $am_depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
d2310 1
a2310 1
echo "$as_me:1980: result: $am_cv_CC_dependencies_compiler_type" >&5
d2316 3
a2318 2
  {  echo "$as_me: error: cannot run $ac_config_sub" >&2
  { (exit 1); exit; }; }
d2320 1
a2320 1
echo "$as_me:1989: checking build system type" >&5
d2329 3
a2331 2
  {  echo "$as_me: error: cannot guess build type; you must specify one" >&2
  { (exit 1); exit; }; }
d2333 3
a2335 2
  {  echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2
  { (exit 1); exit; }; }
d2338 1
a2338 1
echo "$as_me:2005: result: $ac_cv_build" >&5
d2345 1
a2345 1
echo "$as_me:2012: checking host system type" >&5
d2354 3
a2356 2
  {  echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2
  { (exit 1); exit; }; }
d2359 1
a2359 1
echo "$as_me:2025: result: $ac_cv_host" >&5
d2407 1
a2407 1
echo "$as_me:2073: checking for $ac_word" >&5
d2420 1
a2420 1
  test -f "$ac_dir/$ac_word" || continue
d2429 1
a2429 1
  echo "$as_me:2095: result: $YACC" >&5
d2432 1
a2432 1
  echo "$as_me:2098: result: no" >&5
d2444 1
a2444 1
echo "$as_me:2110: checking for $ac_word" >&5
d2457 1
a2457 1
  test -f "$ac_dir/$ac_word" || continue
d2466 1
a2466 1
  echo "$as_me:2132: result: $LEX" >&5
d2469 1
a2469 1
  echo "$as_me:2135: result: no" >&5
d2481 1
a2481 1
echo "$as_me:2147: checking for $ac_word" >&5
d2494 1
a2494 1
  test -f "$ac_dir/$ac_word" || continue
d2503 1
a2503 1
  echo "$as_me:2169: result: $LEX" >&5
d2506 1
a2506 1
  echo "$as_me:2172: result: no" >&5
d2516 1
a2516 2

echo "$as_me:2183: checking for yywrap in -lfl" >&5
d2524 1
a2524 1
#line 2191 "configure"
d2543 10
a2552 1
if { (eval echo $as_me:2210: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d2556 2
a2557 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_fl_yywrap=no
d2562 1
a2562 1
echo "$as_me:2220: result: $ac_cv_lib_fl_yywrap" >&5
d2567 1
a2567 2

echo "$as_me:2226: checking for yywrap in -ll" >&5
d2575 1
a2575 1
#line 2234 "configure"
d2594 10
a2603 1
if { (eval echo $as_me:2253: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d2607 2
a2608 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_l_yywrap=no
d2613 1
a2613 1
echo "$as_me:2263: result: $ac_cv_lib_l_yywrap" >&5
d2624 1
a2624 1
  echo "$as_me:2274: checking lex output file root" >&5
d2638 3
a2640 2
  {  echo "$as_me: error: cannot find output from $LEX; giving up" >&2
  { (exit 1); exit; }; }
d2643 1
a2643 1
echo "$as_me:2292: result: $ac_cv_prog_lex_root" >&5
d2647 1
a2647 1
echo "$as_me:2296: checking whether yytext is a pointer" >&5
d2663 10
a2672 1
if { (eval echo $as_me:2312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d2676 1
a2676 1
  cat conftest.$ac_ext >&5
d2683 1
a2683 1
echo "$as_me:2323: result: $ac_cv_prog_lex_yytext_pointer" >&5
d2698 1
a2698 1
echo "$as_me:2338: checking for $ac_word" >&5
d2711 1
a2711 1
  test -f "$ac_dir/$ac_word" || continue
d2720 1
a2720 1
  echo "$as_me:2360: result: $RANLIB" >&5
d2723 1
a2723 1
  echo "$as_me:2363: result: no" >&5
d2732 1
a2732 1
echo "$as_me:2372: checking for $ac_word" >&5
d2745 1
a2745 1
  test -f "$ac_dir/$ac_word" || continue
d2755 1
a2755 1
  echo "$as_me:2395: result: $ac_ct_RANLIB" >&5
d2758 1
a2758 1
  echo "$as_me:2398: result: no" >&5
d2771 1
a2771 1
echo "$as_me:2411: checking for $ac_word" >&5
d2784 1
a2784 1
  test -f "$ac_dir/$ac_word" || continue
d2793 1
a2793 1
  echo "$as_me:2433: result: $AWK" >&5
d2796 1
a2796 1
  echo "$as_me:2436: result: no" >&5
d2803 1
a2803 1
echo "$as_me:2443: checking for ln -s or something else" >&5
d2824 1
a2824 1
echo "$as_me:2464: result: $ac_cv_prog_LN_S" >&5
d2852 3
a2854 2
         *) {  echo "$as_me: error: \"Invalid ABI specified\"" >&2
  { (exit 1); exit; }; } ;;
d2858 1
a2858 1
echo "$as_me:2497: checking if $CC supports the $abi option" >&5
d2867 1
a2867 1
#line 2506 "configure"
d2879 10
a2888 1
if { (eval echo $as_me:2518: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d2892 2
a2893 2
  cat conftest.$ac_ext >&5
  eval $ac_foo=no
d2901 1
a2901 1
echo "$as_me:2531: result: $ac_res" >&5
d2910 1
a2910 1
#line 2540 "configure"
d2922 10
a2931 1
if { (eval echo $as_me:2552: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d2935 2
a2936 2
  cat conftest.$ac_ext >&5
  ac_res=no
d2942 3
a2944 2
		{  echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2
  { (exit 1); exit; }; }
d2957 3
a2959 2
			{  echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2
  { (exit 1); exit; }; }
d2971 3
a2973 2
         *) {  echo "$as_me: error: \"Invalid ABI specified\"" >&2
  { (exit 1); exit; }; } ;;
d2982 1
a2982 1
echo "$as_me:2600: checking for __attribute__" >&5
d2989 1
a2989 1
#line 2607 "configure"
d3011 10
a3020 1
if { (eval echo $as_me:2629: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d3024 2
a3025 2
  cat conftest.$ac_ext >&5
  ac_cv___attribute__=no
d3037 1
a3037 1
echo "$as_me:2646: result: $ac_cv___attribute__" >&5
d3117 1
a3117 1
  echo "$as_me:2726: checking for ld used by GCC" >&5
d3147 1
a3147 1
  echo "$as_me:2756: checking for GNU ld" >&5
d3150 1
a3150 1
  echo "$as_me:2759: checking for non-GNU ld" >&5
d3180 1
a3180 1
  echo "$as_me:2789: result: $LD" >&5
d3183 1
a3183 1
  echo "$as_me:2792: result: no" >&5
d3186 4
a3189 3
test -z "$LD" && {  echo "$as_me: error: no acceptable ld found in \$PATH" >&2
  { (exit 1); exit; }; }
echo "$as_me:2797: checking if the linker ($LD) is GNU ld" >&5
d3201 1
a3201 1
echo "$as_me:2809: result: $ac_cv_prog_gnu_ld" >&5
d3205 1
a3205 1
echo "$as_me:2813: checking for $LD option to reload object files" >&5
d3212 1
a3212 1
echo "$as_me:2820: result: $lt_cv_ld_reload_flag" >&5
d3217 1
a3217 1
echo "$as_me:2825: checking for BSD-compatible nm" >&5
d3252 1
a3252 1
echo "$as_me:2860: result: $NM" >&5
d3255 1
a3255 1
echo "$as_me:2863: checking whether ln -s works" >&5
d3257 3
a3259 18
if test "${ac_cv_prog_LN_S+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f conftest.sym conftest.file
echo >conftest.file
if ln -s conftest.file conftest.sym 2>/dev/null; then
  ac_cv_prog_LN_S="ln -s"
elif ln conftest.file conftest.sym 2>/dev/null; then
  ac_cv_prog_LN_S=ln
else
  ac_cv_prog_LN_S=cp
fi
rm -f conftest.sym conftest.file
fi
LN_S=$ac_cv_prog_LN_S

if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$as_me:2882: result: yes" >&5
d3262 1
a3262 1
  echo "$as_me:2885: result: no, using $LN_S" >&5
d3266 1
a3266 1
echo "$as_me:2889: checking how to recognise dependant libraries" >&5
d3402 1
a3402 1
echo "$as_me:3025: result: $lt_cv_deplibs_check_method" >&5
d3411 1
a3411 1
    echo "$as_me:3034: checking for ${ac_tool_prefix}file" >&5
d3466 1
a3466 1
  echo "$as_me:3089: result: $MAGIC" >&5
d3469 1
a3469 1
  echo "$as_me:3092: result: no" >&5
d3475 1
a3475 1
    echo "$as_me:3098: checking for file" >&5
d3530 1
a3530 1
  echo "$as_me:3153: result: $MAGIC" >&5
d3533 1
a3533 1
  echo "$as_me:3156: result: no" >&5
d3549 1
a3549 1
echo "$as_me:3172: checking for $ac_word" >&5
d3562 1
a3562 1
  test -f "$ac_dir/$ac_word" || continue
d3571 1
a3571 1
  echo "$as_me:3194: result: $RANLIB" >&5
d3574 1
a3574 1
  echo "$as_me:3197: result: no" >&5
d3583 1
a3583 1
echo "$as_me:3206: checking for $ac_word" >&5
d3596 1
a3596 1
  test -f "$ac_dir/$ac_word" || continue
d3606 1
a3606 1
  echo "$as_me:3229: result: $ac_ct_RANLIB" >&5
d3609 1
a3609 1
  echo "$as_me:3232: result: no" >&5
d3621 1
a3621 1
echo "$as_me:3244: checking for $ac_word" >&5
d3634 1
a3634 1
  test -f "$ac_dir/$ac_word" || continue
d3643 1
a3643 1
  echo "$as_me:3266: result: $STRIP" >&5
d3646 1
a3646 1
  echo "$as_me:3269: result: no" >&5
d3655 1
a3655 1
echo "$as_me:3278: checking for $ac_word" >&5
d3668 1
a3668 1
  test -f "$ac_dir/$ac_word" || continue
d3678 1
a3678 1
  echo "$as_me:3301: result: $ac_ct_STRIP" >&5
d3681 1
a3681 1
  echo "$as_me:3304: result: no" >&5
d3721 6
a3726 2
  echo '#line 3344 "configure"' > conftest.$ac_ext
  if { (eval echo $as_me:3345: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
d3746 1
a3746 1
  echo "$as_me:3365: checking whether the C compiler needs -belf" >&5
d3752 6
d3759 1
a3759 1
#line 3372 "configure"
d3771 10
a3780 1
if { (eval echo $as_me:3384: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d3784 2
a3785 2
  cat conftest.$ac_ext >&5
  lt_cv_cc_needs_belf=no
d3788 5
d3795 1
a3795 1
echo "$as_me:3394: result: $lt_cv_cc_needs_belf" >&5
d3870 3
a3872 2
|| {  echo "$as_me: error: libtool configure failed" >&2
  { (exit 1); exit; }; }
d3879 2
a3880 2
    { echo "$as_me:3477: loading cache $cache_file" >&5
echo "loading cache $cache_file" >&6;}
d3887 2
a3888 2
  { echo "$as_me:3485: creating cache $cache_file" >&5
echo "creating cache $cache_file" >&6;}
d3934 1
a3934 2

echo "$as_me:3533: checking for $ac_header" >&5
d3940 1
a3940 1
#line 3539 "configure"
a3942 1

d3944 9
a3952 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:3545: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a3959 1

a3962 1
  cat conftest.err >&5
d3967 1
a3967 2
rm -f conftest*

d3969 1
a3969 1
echo "$as_me:3566: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d3981 1
a3981 1
echo "$as_me:3578: checking for dbopen" >&5
d3997 1
a3997 1
#line 3594 "configure"
d4016 10
a4025 1
if { (eval echo $as_me:3613: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d4029 1
a4029 1
  cat conftest.$ac_ext >&5
d4046 1
a4046 1
echo "$as_me:3634: checking for $ac_func" >&5
d4052 1
a4052 1
#line 3640 "configure"
d4083 10
a4092 1
if { (eval echo $as_me:3671: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d4096 2
a4097 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d4101 1
a4101 1
echo "$as_me:3680: result: `eval echo '${'$ac_ac_var'}'`" >&5
d4125 1
a4125 1
	echo "$as_me:3704: result: yes" >&5
d4131 1
a4131 1
	echo "$as_me:3710: result: no" >&5
d4145 1
a4145 1
	echo "$as_me:3724: result: yes, in $ac_res" >&5
d4150 1
a4150 1
echo "$as_me:3729: checking for dbm_firstkey" >&5
d4166 1
a4166 1
#line 3745 "configure"
d4178 10
a4187 1
if { (eval echo $as_me:3757: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d4191 1
a4191 1
  cat conftest.$ac_ext >&5
d4208 1
a4208 1
echo "$as_me:3778: checking for $ac_func" >&5
d4214 1
a4214 1
#line 3784 "configure"
d4245 10
a4254 1
if { (eval echo $as_me:3815: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d4258 2
a4259 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d4263 1
a4263 1
echo "$as_me:3824: result: `eval echo '${'$ac_ac_var'}'`" >&5
d4287 1
a4287 1
	echo "$as_me:3848: result: yes" >&5
d4293 1
a4293 1
	echo "$as_me:3854: result: no" >&5
d4307 1
a4307 1
	echo "$as_me:3868: result: yes, in $ac_res" >&5
d4312 1
a4312 1
echo "$as_me:3873: checking for db_create" >&5
d4328 1
a4328 1
#line 3889 "configure"
d4340 10
a4349 1
if { (eval echo $as_me:3901: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d4353 1
a4353 1
  cat conftest.$ac_ext >&5
d4370 1
a4370 1
echo "$as_me:3922: checking for $ac_func" >&5
d4376 1
a4376 1
#line 3928 "configure"
d4407 10
a4416 1
if { (eval echo $as_me:3959: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d4420 2
a4421 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d4425 1
a4425 1
echo "$as_me:3968: result: `eval echo '${'$ac_ac_var'}'`" >&5
d4449 1
a4449 1
	echo "$as_me:3992: result: yes" >&5
d4455 1
a4455 1
	echo "$as_me:3998: result: no" >&5
d4469 1
a4469 1
	echo "$as_me:4012: result: yes, in $ac_res" >&5
d4482 1
a4482 1
echo "$as_me:4025: checking for inline" >&5
d4490 1
a4490 1
#line 4033 "configure"
d4498 10
a4507 1
if { (eval echo $as_me:4041: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d4511 1
a4511 1
  cat conftest.$ac_ext >&5
d4517 1
a4517 1
echo "$as_me:4051: result: $ac_cv_c_inline" >&5
d4532 1
a4532 1
echo "$as_me:4066: checking for an ANSI C-conforming const" >&5
d4538 1
a4538 1
#line 4072 "configure"
d4596 10
a4605 1
if { (eval echo $as_me:4130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d4609 2
a4610 2
  cat conftest.$ac_ext >&5
  ac_cv_c_const=no
d4614 1
a4614 1
echo "$as_me:4139: result: $ac_cv_c_const" >&5
d4624 1
a4624 1
echo "$as_me:4149: checking for ANSI C header files" >&5
d4630 1
a4630 1
#line 4155 "configure"
d4638 9
a4646 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:4164: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a4653 1

a4656 1
  cat conftest.err >&5
d4661 1
a4661 1
rm -f conftest*
d4666 1
a4666 1
#line 4187 "configure"
d4684 1
a4684 1
#line 4205 "configure"
d4705 1
a4705 1
#line 4226 "configure"
d4731 9
a4739 4
{ (eval echo $as_me:4252: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a4746 1

a4748 1

d4751 1
a4751 1
echo "$as_me:4269: result: $ac_cv_header_stdc" >&5
d4761 49
a4809 1
echo "$as_me:4279: checking for size_t" >&5
d4815 1
a4815 1
#line 4285 "configure"
d4830 10
a4839 1
if { (eval echo $as_me:4300: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d4843 2
a4844 2
  cat conftest.$ac_ext >&5
  ac_cv_type_size_t=no
d4848 1
a4848 1
echo "$as_me:4309: result: $ac_cv_type_size_t" >&5
d4860 1
a4860 1
echo "$as_me:4321: checking for pid_t" >&5
d4866 1
a4866 1
#line 4327 "configure"
d4881 10
a4890 1
if { (eval echo $as_me:4342: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d4894 2
a4895 2
  cat conftest.$ac_ext >&5
  ac_cv_type_pid_t=no
d4899 1
a4899 1
echo "$as_me:4351: result: $ac_cv_type_pid_t" >&5
d4911 1
a4911 1
echo "$as_me:4363: checking for uid_t in sys/types.h" >&5
d4917 1
a4917 1
#line 4369 "configure"
d4931 1
a4931 1
echo "$as_me:4383: result: $ac_cv_type_uid_t" >&5
d4945 1
a4945 1
echo "$as_me:4397: checking return type of signal handlers" >&5
d4951 1
a4951 1
#line 4403 "configure"
d4973 10
a4982 1
if { (eval echo $as_me:4425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d4986 2
a4987 2
  cat conftest.$ac_ext >&5
  ac_cv_type_signal=int
d4991 1
a4991 1
echo "$as_me:4434: result: $ac_cv_type_signal" >&5
d5006 1
a5006 1
echo "$as_me:4449: checking whether time.h and sys/time.h may both be included" >&5
d5012 1
a5012 1
#line 4455 "configure"
d5027 10
a5036 1
if { (eval echo $as_me:4470: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d5040 2
a5041 2
  cat conftest.$ac_ext >&5
  ac_cv_header_time=no
d5045 1
a5045 1
echo "$as_me:4479: result: $ac_cv_header_time" >&5
d5058 1
a5058 2

echo "$as_me:4493: checking for $ac_header" >&5
d5064 1
a5064 1
#line 4499 "configure"
a5066 1

d5068 9
a5076 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:4505: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a5083 1

a5086 1
  cat conftest.err >&5
d5091 1
a5091 2
rm -f conftest*

d5093 1
a5093 1
echo "$as_me:4526: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d5107 1
a5107 1
echo "$as_me:4540: checking for $i" >&5
d5113 1
a5113 1
#line 4546 "configure"
d5122 9
a5130 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:4556: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a5137 1

a5140 1
  cat conftest.err >&5
d5145 1
a5145 2
rm -f conftest*

d5147 1
a5147 1
echo "$as_me:4577: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
d5163 1
a5163 2

echo "$as_me:4594: checking for $ac_header" >&5
d5169 1
a5169 1
#line 4600 "configure"
a5171 1

d5173 9
a5181 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:4606: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a5188 1

a5191 1
  cat conftest.err >&5
d5196 1
a5196 2
rm -f conftest*

d5198 1
a5198 1
echo "$as_me:4627: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d5213 1
a5213 1
echo "$as_me:4642: checking for $ac_func" >&5
d5219 1
a5219 1
#line 4648 "configure"
d5250 10
a5259 1
if { (eval echo $as_me:4679: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d5263 2
a5264 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d5268 1
a5268 1
echo "$as_me:4688: result: `eval echo '${'$ac_ac_var'}'`" >&5
d5279 1
a5279 1
echo "$as_me:4699: checking if getlogin is posix" >&5
d5292 1
a5292 1
echo "$as_me:4712: result: $ac_cv_func_getlogin_posix" >&5
d5303 1
a5303 1
echo "$as_me:4723: checking if realloc if broken" >&5
d5314 1
a5314 1
#line 4734 "configure"
d5327 9
a5335 4
{ (eval echo $as_me:4747: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a5342 1

d5347 1
a5347 1
echo "$as_me:4763: result: $ac_cv_func_realloc_broken" >&5
d5374 1
a5374 1
echo "$as_me:4790: checking for ssize_t" >&5
d5380 1
a5380 1
#line 4796 "configure"
d5398 1
a5398 1
echo "$as_me:4814: result: $ac_cv_type_ssize_t" >&5
d5409 1
a5409 1
echo "$as_me:4825: checking for long long" >&5
d5415 1
a5415 1
#line 4831 "configure"
d5432 10
a5441 1
if { (eval echo $as_me:4848: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d5445 2
a5446 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d5451 1
a5451 1
echo "$as_me:4858: result: $ac_foo" >&5
d5456 1
a5456 1
	echo "$as_me:4863: checking for long long" >&5
d5462 1
a5462 1
#line 4869 "configure"
d5477 10
a5486 1
if { (eval echo $as_me:4884: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d5490 2
a5491 2
  cat conftest.$ac_ext >&5
  ac_cv_type_long_long=no
d5495 1
a5495 1
echo "$as_me:4893: result: $ac_cv_type_long_long" >&5
a5540 1
	sys/bswap.h				\
d5566 1
a5566 2

echo "$as_me:4966: checking for $ac_header" >&5
d5572 1
a5572 1
#line 4972 "configure"
a5574 1

d5576 9
a5584 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:4978: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a5591 1

a5594 1
  cat conftest.err >&5
d5599 1
a5599 2
rm -f conftest*

d5601 1
a5601 1
echo "$as_me:4999: result: `eval echo '${'$ac_ac_Header'}'`" >&5
a5650 1
save_CFLAGS="${CFLAGS}"
d5657 1
a5657 1
echo "$as_me:5056: checking ipv6 stack type" >&5
d5663 1
a5663 1
#line 5062 "configure"
d5682 1
a5682 1
#line 5081 "configure"
d5701 1
a5701 1
#line 5100 "configure"
d5720 1
a5720 1
#line 5119 "configure"
d5737 1
a5737 1
#line 5136 "configure"
d5767 1
a5767 1
echo "$as_me:5166: result: $v6type" >&5
d5779 1
a5779 1
#line 5178 "configure"
d5814 10
a5823 1
if { (eval echo $as_me:5213: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d5827 2
a5828 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_ipv6=no
d5833 1
a5833 1
echo "$as_me:5223: checking for IPv6" >&5
d5835 1
a5835 1
echo "$as_me:5225: result: $ac_cv_lib_ipv6" >&5
a5842 2
else
  CFLAGS="${save_CFLAGS}"
d5845 1
a5845 1
echo "$as_me:5237: checking for socket" >&5
d5861 1
a5861 1
#line 5253 "configure"
d5873 10
a5882 1
if { (eval echo $as_me:5265: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d5886 1
a5886 1
  cat conftest.$ac_ext >&5
d5903 1
a5903 1
echo "$as_me:5286: checking for $ac_func" >&5
d5909 1
a5909 1
#line 5292 "configure"
d5940 10
a5949 1
if { (eval echo $as_me:5323: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d5953 2
a5954 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d5958 1
a5958 1
echo "$as_me:5332: result: `eval echo '${'$ac_ac_var'}'`" >&5
d5982 1
a5982 1
	echo "$as_me:5356: result: yes" >&5
d5988 1
a5988 1
	echo "$as_me:5362: result: no" >&5
d6002 1
a6002 1
	echo "$as_me:5376: result: yes, in $ac_res" >&5
d6011 1
a6011 1
echo "$as_me:5385: checking for gethostbyname" >&5
d6027 1
a6027 1
#line 5401 "configure"
d6039 10
a6048 1
if { (eval echo $as_me:5413: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6052 1
a6052 1
  cat conftest.$ac_ext >&5
d6069 1
a6069 1
echo "$as_me:5434: checking for $ac_func" >&5
d6075 1
a6075 1
#line 5440 "configure"
d6106 10
a6115 1
if { (eval echo $as_me:5471: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6119 2
a6120 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d6124 1
a6124 1
echo "$as_me:5480: result: `eval echo '${'$ac_ac_var'}'`" >&5
d6148 1
a6148 1
	echo "$as_me:5504: result: yes" >&5
d6154 1
a6154 1
	echo "$as_me:5510: result: no" >&5
d6168 1
a6168 1
	echo "$as_me:5524: result: yes, in $ac_res" >&5
d6177 1
a6177 1
echo "$as_me:5533: checking for syslog" >&5
d6193 1
a6193 1
#line 5549 "configure"
d6205 10
a6214 1
if { (eval echo $as_me:5561: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6218 1
a6218 1
  cat conftest.$ac_ext >&5
d6235 1
a6235 1
echo "$as_me:5582: checking for $ac_func" >&5
d6241 1
a6241 1
#line 5588 "configure"
d6272 10
a6281 1
if { (eval echo $as_me:5619: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6285 2
a6286 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d6290 1
a6290 1
echo "$as_me:5628: result: `eval echo '${'$ac_ac_var'}'`" >&5
d6314 1
a6314 1
	echo "$as_me:5652: result: yes" >&5
d6320 1
a6320 1
	echo "$as_me:5658: result: no" >&5
d6334 1
a6334 1
	echo "$as_me:5672: result: yes, in $ac_res" >&5
d6343 1
a6343 1
echo "$as_me:5681: checking for gethostbyname2" >&5
d6359 1
a6359 1
#line 5697 "configure"
d6371 10
a6380 1
if { (eval echo $as_me:5709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6384 1
a6384 1
  cat conftest.$ac_ext >&5
d6401 1
a6401 1
echo "$as_me:5730: checking for $ac_func" >&5
d6407 1
a6407 1
#line 5736 "configure"
d6438 10
a6447 1
if { (eval echo $as_me:5767: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6451 2
a6452 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d6456 1
a6456 1
echo "$as_me:5776: result: `eval echo '${'$ac_ac_var'}'`" >&5
d6480 1
a6480 1
	echo "$as_me:5800: result: yes" >&5
d6486 1
a6486 1
	echo "$as_me:5806: result: no" >&5
d6500 1
a6500 1
	echo "$as_me:5820: result: yes, in $ac_res" >&5
d6509 1
a6509 1
echo "$as_me:5829: checking for res_search" >&5
d6525 1
a6525 1
#line 5845 "configure"
d6551 10
a6560 1
if { (eval echo $as_me:5871: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6564 1
a6564 1
  cat conftest.$ac_ext >&5
d6581 1
a6581 1
echo "$as_me:5892: checking for $ac_func" >&5
d6587 1
a6587 1
#line 5898 "configure"
d6618 10
a6627 1
if { (eval echo $as_me:5929: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6631 2
a6632 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d6636 1
a6636 1
echo "$as_me:5938: result: `eval echo '${'$ac_ac_var'}'`" >&5
d6660 1
a6660 1
	echo "$as_me:5962: result: yes" >&5
d6666 1
a6666 1
	echo "$as_me:5968: result: no" >&5
d6680 1
a6680 1
	echo "$as_me:5982: result: yes, in $ac_res" >&5
d6689 1
a6689 1
echo "$as_me:5991: checking for dn_expand" >&5
d6705 1
a6705 1
#line 6007 "configure"
d6731 10
a6740 1
if { (eval echo $as_me:6033: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6744 1
a6744 1
  cat conftest.$ac_ext >&5
d6761 1
a6761 1
echo "$as_me:6054: checking for $ac_func" >&5
d6767 1
a6767 1
#line 6060 "configure"
d6798 10
a6807 1
if { (eval echo $as_me:6091: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d6811 2
a6812 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d6816 1
a6816 1
echo "$as_me:6100: result: `eval echo '${'$ac_ac_var'}'`" >&5
d6840 1
a6840 1
	echo "$as_me:6124: result: yes" >&5
d6846 1
a6846 1
	echo "$as_me:6130: result: no" >&5
d6860 1
a6860 1
	echo "$as_me:6144: result: yes, in $ac_res" >&5
d6869 1
a6869 1
echo "$as_me:6153: checking for working snprintf" >&5
d6879 1
a6879 1
#line 6163 "configure"
d6892 9
a6900 4
{ (eval echo $as_me:6176: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a6907 1

a6909 1

d6911 1
a6911 1
echo "$as_me:6192: result: $ac_cv_func_snprintf_working" >&5
d6924 1
a6924 1
echo "$as_me:6205: checking if snprintf needs a prototype" >&5
d6930 1
a6930 1
#line 6211 "configure"
d6945 10
a6954 1
if { (eval echo $as_me:6226: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d6958 2
a6959 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_snprintf_noproto=no"
d6963 1
a6963 1
echo "$as_me:6235: result: $ac_cv_func_snprintf_noproto" >&5
d6978 1
a6978 1
echo "$as_me:6250: checking for working vsnprintf" >&5
d6988 1
a6988 1
#line 6260 "configure"
d7011 9
a7019 4
{ (eval echo $as_me:6283: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a7026 1

a7028 1

d7030 1
a7030 1
echo "$as_me:6299: result: $ac_cv_func_vsnprintf_working" >&5
d7043 1
a7043 1
echo "$as_me:6312: checking if vsnprintf needs a prototype" >&5
d7049 1
a7049 1
#line 6318 "configure"
d7064 10
a7073 1
if { (eval echo $as_me:6333: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d7077 2
a7078 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_vsnprintf_noproto=no"
d7082 1
a7082 1
echo "$as_me:6342: result: $ac_cv_func_vsnprintf_noproto" >&5
d7097 1
a7097 1
echo "$as_me:6357: checking for working glob" >&5
d7104 1
a7104 1
#line 6364 "configure"
d7113 1
a7113 2
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|GLOB_LIMIT,
NULL, NULL);
d7120 10
a7129 1
if { (eval echo $as_me:6381: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7133 2
a7134 2
  cat conftest.$ac_ext >&5
  ac_cv_func_glob_working=no
d7138 1
a7138 1
echo "$as_me:6390: result: $ac_cv_func_glob_working" >&5
d7151 1
a7151 1
echo "$as_me:6403: checking if glob needs a prototype" >&5
d7157 1
a7157 1
#line 6409 "configure"
d7173 10
a7182 1
if { (eval echo $as_me:6425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d7186 2
a7187 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_glob_noproto=no"
d7191 1
a7191 1
echo "$as_me:6434: result: $ac_cv_func_glob_noproto" >&5
a7222 1
	getprogname				\
a7224 1
	setprogname				\
d7240 1
a7240 1
echo "$as_me:6485: checking for $ac_func" >&5
d7246 1
a7246 1
#line 6491 "configure"
d7277 10
a7286 1
if { (eval echo $as_me:6522: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7290 2
a7291 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d7295 1
a7295 1
echo "$as_me:6531: result: `eval echo '${'$ac_ac_var'}'`" >&5
d7309 1
a7309 1
echo "$as_me:6545: checking for getsockopt" >&5
d7325 1
a7325 1
#line 6561 "configure"
d7342 10
a7351 1
if { (eval echo $as_me:6578: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7355 1
a7355 1
  cat conftest.$ac_ext >&5
d7372 1
a7372 1
echo "$as_me:6599: checking for $ac_func" >&5
d7378 1
a7378 1
#line 6605 "configure"
d7409 10
a7418 1
if { (eval echo $as_me:6636: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7422 2
a7423 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d7427 1
a7427 1
echo "$as_me:6645: result: `eval echo '${'$ac_ac_var'}'`" >&5
d7451 1
a7451 1
	echo "$as_me:6669: result: yes" >&5
d7457 1
a7457 1
	echo "$as_me:6675: result: no" >&5
d7471 1
a7471 1
	echo "$as_me:6689: result: yes, in $ac_res" >&5
d7476 1
a7476 1
echo "$as_me:6694: checking for setsockopt" >&5
d7492 1
a7492 1
#line 6710 "configure"
d7509 10
a7518 1
if { (eval echo $as_me:6727: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7522 1
a7522 1
  cat conftest.$ac_ext >&5
d7539 1
a7539 1
echo "$as_me:6748: checking for $ac_func" >&5
d7545 1
a7545 1
#line 6754 "configure"
d7576 10
a7585 1
if { (eval echo $as_me:6785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7589 2
a7590 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d7594 1
a7594 1
echo "$as_me:6794: result: `eval echo '${'$ac_ac_var'}'`" >&5
d7618 1
a7618 1
	echo "$as_me:6818: result: yes" >&5
d7624 1
a7624 1
	echo "$as_me:6824: result: no" >&5
d7638 1
a7638 1
	echo "$as_me:6838: result: yes, in $ac_res" >&5
d7643 1
a7643 1
echo "$as_me:6843: checking for hstrerror" >&5
d7659 1
a7659 1
#line 6859 "configure"
d7673 10
a7682 1
if { (eval echo $as_me:6873: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7686 1
a7686 1
  cat conftest.$ac_ext >&5
d7703 1
a7703 1
echo "$as_me:6894: checking for $ac_func" >&5
d7709 1
a7709 1
#line 6900 "configure"
d7740 10
a7749 1
if { (eval echo $as_me:6931: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d7753 2
a7754 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d7758 1
a7758 1
echo "$as_me:6940: result: `eval echo '${'$ac_ac_var'}'`" >&5
d7782 1
a7782 1
	echo "$as_me:6964: result: yes" >&5
d7788 1
a7788 1
	echo "$as_me:6970: result: no" >&5
d7802 1
a7802 1
	echo "$as_me:6984: result: yes, in $ac_res" >&5
d7818 1
a7818 1
echo "$as_me:7000: checking if hstrerror needs a prototype" >&5
d7824 1
a7824 1
#line 7006 "configure"
d7842 10
a7851 1
if { (eval echo $as_me:7024: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d7855 2
a7856 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_hstrerror_noproto=no"
d7860 1
a7860 1
echo "$as_me:7033: result: $ac_cv_func_hstrerror_noproto" >&5
d7878 1
a7878 1
echo "$as_me:7051: checking if asprintf needs a prototype" >&5
d7884 1
a7884 1
#line 7057 "configure"
d7901 10
a7910 1
if { (eval echo $as_me:7074: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d7914 2
a7915 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_asprintf_noproto=no"
d7919 1
a7919 1
echo "$as_me:7083: result: $ac_cv_func_asprintf_noproto" >&5
d7935 1
a7935 1
echo "$as_me:7099: checking if vasprintf needs a prototype" >&5
d7941 1
a7941 1
#line 7105 "configure"
d7958 10
a7967 1
if { (eval echo $as_me:7122: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d7971 2
a7972 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_vasprintf_noproto=no"
d7976 1
a7976 1
echo "$as_me:7131: result: $ac_cv_func_vasprintf_noproto" >&5
d7992 1
a7992 1
echo "$as_me:7147: checking if asnprintf needs a prototype" >&5
d7998 1
a7998 1
#line 7153 "configure"
d8015 10
a8024 1
if { (eval echo $as_me:7170: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d8028 2
a8029 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_asnprintf_noproto=no"
d8033 1
a8033 1
echo "$as_me:7179: result: $ac_cv_func_asnprintf_noproto" >&5
d8049 1
a8049 1
echo "$as_me:7195: checking if vasnprintf needs a prototype" >&5
d8055 1
a8055 1
#line 7201 "configure"
d8072 10
a8081 1
if { (eval echo $as_me:7218: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d8085 2
a8086 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_vasnprintf_noproto=no"
d8090 1
a8090 1
echo "$as_me:7227: result: $ac_cv_func_vasnprintf_noproto" >&5
d8095 2
a8096 290
cat >>confdefs.h <<\EOF
#define NEED_VASNPRINTF_PROTO 1
EOF

fi

fi
fi

echo "$as_me:7241: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7257 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
int
main ()
{
bswap16(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo $as_me:7271: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then

for ac_func in bswap16
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7292: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7298 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo $as_me:7329: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7338: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:7362: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	echo "$as_me:7368: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:7382: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:7387: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		if test -n "$ac_lib"; then
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 7403 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
int
main ()
{
bswap32(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo $as_me:7417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_bswap32"

if false; then

for ac_func in bswap32
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "$as_me:7438: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7444 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo $as_me:7475: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
  eval "$ac_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
fi
rm -f conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7484: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF

fi
done

fi
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:7508: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	echo "$as_me:7514: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d8099 1
a8099 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d8101 2
a8102 4
	echo "$as_me:7528: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d8104 1
a8104 1
echo "$as_me:7533: checking for pidfile" >&5
d8120 1
a8120 1
#line 7549 "configure"
d8134 10
a8143 1
if { (eval echo $as_me:7563: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8147 1
a8147 1
  cat conftest.$ac_ext >&5
d8164 1
a8164 1
echo "$as_me:7584: checking for $ac_func" >&5
d8170 1
a8170 1
#line 7590 "configure"
d8201 10
a8210 1
if { (eval echo $as_me:7621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8214 2
a8215 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d8219 1
a8219 1
echo "$as_me:7630: result: `eval echo '${'$ac_ac_var'}'`" >&5
d8243 1
a8243 1
	echo "$as_me:7654: result: yes" >&5
d8249 1
a8249 1
	echo "$as_me:7660: result: no" >&5
d8263 1
a8263 1
	echo "$as_me:7674: result: yes, in $ac_res" >&5
d8337 1
a8337 1
echo "$as_me:7748: checking for $ac_func" >&5
d8343 1
a8343 1
#line 7754 "configure"
d8374 10
a8383 1
if { (eval echo $as_me:7785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8387 2
a8388 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d8392 1
a8392 1
echo "$as_me:7794: result: `eval echo '${'$ac_ac_var'}'`" >&5
d8476 1
a8476 1
echo "$as_me:7878: checking for $ac_func" >&5
d8482 1
a8482 1
#line 7884 "configure"
d8513 10
a8522 1
if { (eval echo $as_me:7915: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8526 2
a8527 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d8531 1
a8531 1
echo "$as_me:7924: result: `eval echo '${'$ac_ac_var'}'`" >&5
d8546 1
a8546 1
echo "$as_me:7939: checking for $ac_func" >&5
d8552 1
a8552 1
#line 7945 "configure"
d8584 10
a8593 1
if { (eval echo $as_me:7977: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8597 2
a8598 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_$ac_func=no"
d8609 1
a8609 1
  echo "$as_me:7993: result: yes" >&5
d8612 1
a8612 1
  echo "$as_me:7996: result: no" >&5
d8622 1
a8622 1
echo "$as_me:8006: checking for $ac_func" >&5
d8628 1
a8628 1
#line 8012 "configure"
d8659 10
a8668 1
if { (eval echo $as_me:8043: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8672 2
a8673 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d8677 1
a8677 1
echo "$as_me:8052: result: `eval echo '${'$ac_ac_var'}'`" >&5
d8691 1
a8691 1
echo "$as_me:8066: checking for $ac_func" >&5
d8697 1
a8697 1
#line 8072 "configure"
d8729 10
a8738 1
if { (eval echo $as_me:8104: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8742 2
a8743 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_$ac_func=no"
d8754 1
a8754 1
  echo "$as_me:8120: result: yes" >&5
d8757 1
a8757 1
  echo "$as_me:8123: result: no" >&5
d8767 1
a8767 1
echo "$as_me:8133: checking for $ac_func" >&5
d8773 1
a8773 1
#line 8139 "configure"
d8804 10
a8813 1
if { (eval echo $as_me:8170: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8817 2
a8818 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d8822 1
a8822 1
echo "$as_me:8179: result: `eval echo '${'$ac_ac_var'}'`" >&5
d8836 1
a8836 1
echo "$as_me:8193: checking for $ac_func" >&5
d8842 1
a8842 1
#line 8199 "configure"
d8874 10
a8883 1
if { (eval echo $as_me:8231: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8887 2
a8888 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_$ac_func=no"
d8899 1
a8899 1
  echo "$as_me:8247: result: yes" >&5
d8902 1
a8902 1
  echo "$as_me:8250: result: no" >&5
d8912 1
a8912 1
echo "$as_me:8260: checking for $ac_func" >&5
d8918 1
a8918 1
#line 8266 "configure"
d8949 10
a8958 1
if { (eval echo $as_me:8297: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d8962 2
a8963 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d8967 1
a8967 1
echo "$as_me:8306: result: `eval echo '${'$ac_ac_var'}'`" >&5
d8979 1
a8979 1
echo "$as_me:8318: checking for sa_len in struct sockaddr" >&5
d8986 1
a8986 1
#line 8325 "configure"
d8999 10
a9008 1
if { (eval echo $as_me:8338: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9012 2
a9013 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_sockaddr_sa_len=no
d9017 1
a9017 1
echo "$as_me:8347: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
d9029 1
a9029 1
echo "$as_me:8359: checking if getnameinfo is broken" >&5
d9035 3
a9037 2
  {  echo "$as_me: error: cannot run test program while cross compiling" >&2
  { (exit 1); exit; }; }
d9040 1
a9040 1
#line 8369 "configure"
d9066 9
a9074 4
{ (eval echo $as_me:8395: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a9081 1

a9083 1

d9085 1
a9085 1
echo "$as_me:8411: result: $ac_cv_func_getnameinfo_broken" >&5
d9093 1
a9093 1
echo "$as_me:8419: checking if setenv needs a prototype" >&5
d9099 1
a9099 1
#line 8425 "configure"
d9114 10
a9123 1
if { (eval echo $as_me:8440: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9127 2
a9128 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_setenv_noproto=no"
d9132 1
a9132 1
echo "$as_me:8449: result: $ac_cv_func_setenv_noproto" >&5
d9146 1
a9146 1
echo "$as_me:8463: checking if unsetenv needs a prototype" >&5
d9152 1
a9152 1
#line 8469 "configure"
d9167 10
a9176 1
if { (eval echo $as_me:8484: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9180 2
a9181 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_unsetenv_noproto=no"
d9185 1
a9185 1
echo "$as_me:8493: result: $ac_cv_func_unsetenv_noproto" >&5
d9199 1
a9199 1
echo "$as_me:8507: checking if gethostname needs a prototype" >&5
d9205 1
a9205 1
#line 8513 "configure"
d9220 10
a9229 1
if { (eval echo $as_me:8528: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9233 2
a9234 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_gethostname_noproto=no"
d9238 1
a9238 1
echo "$as_me:8537: result: $ac_cv_func_gethostname_noproto" >&5
d9252 1
a9252 1
echo "$as_me:8551: checking if mkstemp needs a prototype" >&5
d9258 1
a9258 1
#line 8557 "configure"
d9273 10
a9282 1
if { (eval echo $as_me:8572: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9286 2
a9287 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_mkstemp_noproto=no"
d9291 1
a9291 1
echo "$as_me:8581: result: $ac_cv_func_mkstemp_noproto" >&5
d9305 1
a9305 1
echo "$as_me:8595: checking if getusershell needs a prototype" >&5
d9311 1
a9311 1
#line 8601 "configure"
d9326 10
a9335 1
if { (eval echo $as_me:8616: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9339 2
a9340 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_getusershell_noproto=no"
d9344 1
a9344 1
echo "$as_me:8625: result: $ac_cv_func_getusershell_noproto" >&5
d9358 1
a9358 1
echo "$as_me:8639: checking if inet_aton needs a prototype" >&5
d9364 1
a9364 1
#line 8645 "configure"
d9391 10
a9400 1
if { (eval echo $as_me:8672: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9404 2
a9405 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_inet_aton_noproto=no"
d9409 1
a9409 1
echo "$as_me:8681: result: $ac_cv_func_inet_aton_noproto" >&5
d9422 1
a9422 1
echo "$as_me:8694: checking for crypt" >&5
d9438 1
a9438 1
#line 8710 "configure"
d9450 10
a9459 1
if { (eval echo $as_me:8722: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d9463 1
a9463 1
  cat conftest.$ac_ext >&5
d9480 1
a9480 1
echo "$as_me:8743: checking for $ac_func" >&5
d9486 1
a9486 1
#line 8749 "configure"
d9517 10
a9526 1
if { (eval echo $as_me:8780: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d9530 2
a9531 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d9535 1
a9535 1
echo "$as_me:8789: result: `eval echo '${'$ac_ac_var'}'`" >&5
d9559 1
a9559 1
	echo "$as_me:8813: result: yes" >&5
d9565 1
a9565 1
	echo "$as_me:8819: result: no" >&5
d9579 1
a9579 1
	echo "$as_me:8833: result: yes, in $ac_res" >&5
d9584 1
a9584 1
echo "$as_me:8838: checking if gethostbyname is compatible with system prototype" >&5
d9590 1
a9590 1
#line 8844 "configure"
d9618 10
a9627 1
if { (eval echo $as_me:8872: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9631 2
a9632 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_gethostbyname_proto_compat=no"
d9636 1
a9636 1
echo "$as_me:8881: result: $ac_cv_func_gethostbyname_proto_compat" >&5
d9647 1
a9647 1
echo "$as_me:8892: checking if gethostbyaddr is compatible with system prototype" >&5
d9653 1
a9653 1
#line 8898 "configure"
d9681 10
a9690 1
if { (eval echo $as_me:8926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9694 2
a9695 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d9699 1
a9699 1
echo "$as_me:8935: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
d9710 1
a9710 1
echo "$as_me:8946: checking if getservbyname is compatible with system prototype" >&5
d9716 1
a9716 1
#line 8952 "configure"
d9744 10
a9753 1
if { (eval echo $as_me:8980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9757 2
a9758 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_getservbyname_proto_compat=no"
d9762 1
a9762 1
echo "$as_me:8989: result: $ac_cv_func_getservbyname_proto_compat" >&5
d9773 1
a9773 1
echo "$as_me:9000: checking if getsockname is compatible with system prototype" >&5
d9779 1
a9779 1
#line 9006 "configure"
d9798 10
a9807 1
if { (eval echo $as_me:9025: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9811 2
a9812 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_getsockname_proto_compat=no"
d9816 1
a9816 1
echo "$as_me:9034: result: $ac_cv_func_getsockname_proto_compat" >&5
d9827 1
a9827 1
echo "$as_me:9045: checking if openlog is compatible with system prototype" >&5
d9833 1
a9833 1
#line 9051 "configure"
d9849 10
a9858 1
if { (eval echo $as_me:9067: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9862 2
a9863 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_openlog_proto_compat=no"
d9867 1
a9867 1
echo "$as_me:9076: result: $ac_cv_func_openlog_proto_compat" >&5
d9879 1
a9879 1
echo "$as_me:9088: checking if crypt needs a prototype" >&5
d9885 1
a9885 1
#line 9094 "configure"
d9907 10
a9916 1
if { (eval echo $as_me:9116: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9920 2
a9921 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_crypt_noproto=no"
d9925 1
a9925 1
echo "$as_me:9125: result: $ac_cv_func_crypt_noproto" >&5
d9939 1
a9939 1
echo "$as_me:9139: checking if strtok_r needs a prototype" >&5
d9945 1
a9945 1
#line 9145 "configure"
d9962 10
a9971 1
if { (eval echo $as_me:9162: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d9975 2
a9976 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_strtok_r_noproto=no"
d9980 1
a9980 1
echo "$as_me:9171: result: $ac_cv_func_strtok_r_noproto" >&5
d9994 1
a9994 1
echo "$as_me:9185: checking if strsep needs a prototype" >&5
d10000 1
a10000 1
#line 9191 "configure"
d10017 10
a10026 1
if { (eval echo $as_me:9208: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10030 2
a10031 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_strsep_noproto=no"
d10035 1
a10035 1
echo "$as_me:9217: result: $ac_cv_func_strsep_noproto" >&5
d10048 1
a10048 1
echo "$as_me:9230: checking for h_errno" >&5
d10055 1
a10055 1
#line 9237 "configure"
d10068 10
a10077 1
if { (eval echo $as_me:9250: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d10081 2
a10082 2
  cat conftest.$ac_ext >&5
  ac_cv_var_h_errno=no
d10089 1
a10089 1
echo "$as_me:9262: result: $ac_foo" >&5
d10097 1
a10097 1
echo "$as_me:9270: checking if h_errno is properly declared" >&5
d10104 1
a10104 1
#line 9277 "configure"
d10122 10
a10131 1
if { (eval echo $as_me:9295: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10135 2
a10136 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_h_errno_declaration=yes"
d10142 1
a10142 1
echo "$as_me:9306: result: $ac_cv_var_h_errno_declaration" >&5
d10154 1
a10154 1
echo "$as_me:9318: checking for h_errlist" >&5
d10161 1
a10161 1
#line 9325 "configure"
d10174 10
a10183 1
if { (eval echo $as_me:9338: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d10187 2
a10188 2
  cat conftest.$ac_ext >&5
  ac_cv_var_h_errlist=no
d10195 1
a10195 1
echo "$as_me:9350: result: $ac_foo" >&5
d10203 1
a10203 1
echo "$as_me:9358: checking if h_errlist is properly declared" >&5
d10210 1
a10210 1
#line 9365 "configure"
d10225 10
a10234 1
if { (eval echo $as_me:9380: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10238 2
a10239 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_h_errlist_declaration=yes"
d10245 1
a10245 1
echo "$as_me:9391: result: $ac_cv_var_h_errlist_declaration" >&5
d10257 1
a10257 1
echo "$as_me:9403: checking for h_nerr" >&5
d10264 1
a10264 1
#line 9410 "configure"
d10277 10
a10286 1
if { (eval echo $as_me:9423: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d10290 2
a10291 2
  cat conftest.$ac_ext >&5
  ac_cv_var_h_nerr=no
d10298 1
a10298 1
echo "$as_me:9435: result: $ac_foo" >&5
d10306 1
a10306 1
echo "$as_me:9443: checking if h_nerr is properly declared" >&5
d10313 1
a10313 1
#line 9450 "configure"
d10328 10
a10337 1
if { (eval echo $as_me:9465: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10341 2
a10342 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_h_nerr_declaration=yes"
d10348 1
a10348 1
echo "$as_me:9476: result: $ac_cv_var_h_nerr_declaration" >&5
d10360 1
a10360 1
echo "$as_me:9488: checking for __progname" >&5
d10367 1
a10367 1
#line 9495 "configure"
d10380 10
a10389 1
if { (eval echo $as_me:9508: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d10393 2
a10394 2
  cat conftest.$ac_ext >&5
  ac_cv_var___progname=no
d10401 1
a10401 1
echo "$as_me:9520: result: $ac_foo" >&5
d10409 1
a10409 1
echo "$as_me:9528: checking if __progname is properly declared" >&5
d10416 1
a10416 1
#line 9535 "configure"
d10431 10
a10440 1
if { (eval echo $as_me:9550: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10444 2
a10445 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var___progname_declaration=yes"
d10451 1
a10451 1
echo "$as_me:9561: result: $ac_cv_var___progname_declaration" >&5
d10463 1
a10463 1
echo "$as_me:9573: checking if optarg is properly declared" >&5
d10470 1
a10470 1
#line 9580 "configure"
d10486 10
a10495 1
if { (eval echo $as_me:9596: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10499 2
a10500 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_optarg_declaration=yes"
d10506 1
a10506 1
echo "$as_me:9607: result: $ac_cv_var_optarg_declaration" >&5
d10516 1
a10516 1
echo "$as_me:9617: checking if optind is properly declared" >&5
d10523 1
a10523 1
#line 9624 "configure"
d10539 10
a10548 1
if { (eval echo $as_me:9640: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10552 2
a10553 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_optind_declaration=yes"
d10559 1
a10559 1
echo "$as_me:9651: result: $ac_cv_var_optind_declaration" >&5
d10569 1
a10569 1
echo "$as_me:9661: checking if opterr is properly declared" >&5
d10576 1
a10576 1
#line 9668 "configure"
d10592 10
a10601 1
if { (eval echo $as_me:9684: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10605 2
a10606 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_opterr_declaration=yes"
d10612 1
a10612 1
echo "$as_me:9695: result: $ac_cv_var_opterr_declaration" >&5
d10622 1
a10622 1
echo "$as_me:9705: checking if optopt is properly declared" >&5
d10629 1
a10629 1
#line 9712 "configure"
d10645 10
a10654 1
if { (eval echo $as_me:9728: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10658 2
a10659 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_optopt_declaration=yes"
d10665 1
a10665 1
echo "$as_me:9739: result: $ac_cv_var_optopt_declaration" >&5
d10675 1
a10675 1
echo "$as_me:9749: checking if environ is properly declared" >&5
d10682 1
a10682 1
#line 9756 "configure"
d10695 10
a10704 1
if { (eval echo $as_me:9769: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10708 2
a10709 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_environ_declaration=yes"
d10715 1
a10715 1
echo "$as_me:9780: result: $ac_cv_var_environ_declaration" >&5
d10725 1
a10725 1
echo "$as_me:9790: checking for tm_gmtoff in struct tm" >&5
d10732 1
a10732 1
#line 9797 "configure"
d10744 10
a10753 1
if { (eval echo $as_me:9809: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10757 2
a10758 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_tm_tm_gmtoff=no
d10762 1
a10762 1
echo "$as_me:9818: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
d10772 1
a10772 1
echo "$as_me:9828: checking for tm_zone in struct tm" >&5
d10779 1
a10779 1
#line 9835 "configure"
d10791 10
a10800 1
if { (eval echo $as_me:9847: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10804 2
a10805 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_tm_tm_zone=no
d10809 1
a10809 1
echo "$as_me:9856: result: $ac_cv_type_struct_tm_tm_zone" >&5
d10819 1
a10819 1
echo "$as_me:9866: checking for timezone" >&5
d10826 1
a10826 1
#line 9873 "configure"
d10839 10
a10848 1
if { (eval echo $as_me:9886: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d10852 2
a10853 2
  cat conftest.$ac_ext >&5
  ac_cv_var_timezone=no
d10860 1
a10860 1
echo "$as_me:9898: result: $ac_foo" >&5
d10868 1
a10868 1
echo "$as_me:9906: checking if timezone is properly declared" >&5
d10875 1
a10875 1
#line 9913 "configure"
d10888 10
a10897 1
if { (eval echo $as_me:9926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10901 2
a10902 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_timezone_declaration=yes"
d10908 1
a10908 1
echo "$as_me:9937: result: $ac_cv_var_timezone_declaration" >&5
d10921 1
a10921 1
echo "$as_me:9950: checking for sa_family_t" >&5
d10927 1
a10927 1
#line 9956 "configure"
d10944 10
a10953 1
if { (eval echo $as_me:9973: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d10957 2
a10958 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d10963 1
a10963 1
echo "$as_me:9983: result: $ac_foo" >&5
d10968 1
a10968 1
	echo "$as_me:9988: checking for sa_family_t" >&5
d10974 1
a10974 1
#line 9994 "configure"
d10989 10
a10998 1
if { (eval echo $as_me:10009: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11002 2
a11003 2
  cat conftest.$ac_ext >&5
  ac_cv_type_sa_family_t=no
d11007 1
a11007 1
echo "$as_me:10018: result: $ac_cv_type_sa_family_t" >&5
d11026 1
a11026 1
echo "$as_me:10037: checking for socklen_t" >&5
d11032 1
a11032 1
#line 10043 "configure"
d11049 10
a11058 1
if { (eval echo $as_me:10060: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11062 2
a11063 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d11068 1
a11068 1
echo "$as_me:10070: result: $ac_foo" >&5
d11073 1
a11073 1
	echo "$as_me:10075: checking for socklen_t" >&5
d11079 1
a11079 1
#line 10081 "configure"
d11094 10
a11103 1
if { (eval echo $as_me:10096: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11107 2
a11108 2
  cat conftest.$ac_ext >&5
  ac_cv_type_socklen_t=no
d11112 1
a11112 1
echo "$as_me:10105: result: $ac_cv_type_socklen_t" >&5
d11131 1
a11131 1
echo "$as_me:10124: checking for struct sockaddr" >&5
d11137 1
a11137 1
#line 10130 "configure"
d11154 10
a11163 1
if { (eval echo $as_me:10147: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11167 2
a11168 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d11173 1
a11173 1
echo "$as_me:10157: result: $ac_foo" >&5
d11178 1
a11178 1
	echo "$as_me:10162: checking for struct sockaddr" >&5
d11184 1
a11184 1
#line 10168 "configure"
d11199 10
a11208 1
if { (eval echo $as_me:10183: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11212 2
a11213 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_sockaddr=no
d11217 1
a11217 1
echo "$as_me:10192: result: $ac_cv_type_struct_sockaddr" >&5
d11236 1
a11236 1
echo "$as_me:10211: checking for struct sockaddr_storage" >&5
d11242 1
a11242 1
#line 10217 "configure"
d11259 10
a11268 1
if { (eval echo $as_me:10234: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11272 2
a11273 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d11278 1
a11278 1
echo "$as_me:10244: result: $ac_foo" >&5
d11283 1
a11283 1
	echo "$as_me:10249: checking for struct sockaddr_storage" >&5
d11289 1
a11289 1
#line 10255 "configure"
d11304 10
a11313 1
if { (eval echo $as_me:10270: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11317 2
a11318 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_sockaddr_storage=no
d11322 1
a11322 1
echo "$as_me:10279: result: $ac_cv_type_struct_sockaddr_storage" >&5
d11341 1
a11341 1
echo "$as_me:10298: checking for struct addrinfo" >&5
d11347 1
a11347 1
#line 10304 "configure"
d11364 10
a11373 1
if { (eval echo $as_me:10321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11377 2
a11378 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d11383 1
a11383 1
echo "$as_me:10331: result: $ac_foo" >&5
d11388 1
a11388 1
	echo "$as_me:10336: checking for struct addrinfo" >&5
d11394 1
a11394 1
#line 10342 "configure"
d11409 10
a11418 1
if { (eval echo $as_me:10357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11422 2
a11423 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_addrinfo=no
d11427 1
a11427 1
echo "$as_me:10366: result: $ac_cv_type_struct_addrinfo" >&5
d11446 1
a11446 1
echo "$as_me:10385: checking for struct ifaddrs" >&5
d11452 1
a11452 1
#line 10391 "configure"
d11469 10
a11478 1
if { (eval echo $as_me:10408: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11482 2
a11483 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d11488 1
a11488 1
echo "$as_me:10418: result: $ac_foo" >&5
d11493 1
a11493 1
	echo "$as_me:10423: checking for struct ifaddrs" >&5
d11499 1
a11499 1
#line 10429 "configure"
d11514 10
a11523 1
if { (eval echo $as_me:10444: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11527 2
a11528 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_ifaddrs=no
d11532 1
a11532 1
echo "$as_me:10453: result: $ac_cv_type_struct_ifaddrs" >&5
d11550 1
a11550 1
echo "$as_me:10471: checking for struct winsize" >&5
d11559 1
a11559 1
#line 10480 "configure"
d11580 1
a11580 1
echo "$as_me:10501: result: $ac_cv_struct_winsize" >&5
d11583 1
a11583 1
#line 10504 "configure"
d11599 1
a11599 1
#line 10520 "configure"
d11614 1
a11614 1
echo "$as_me:10535: checking for struct spwd" >&5
d11621 1
a11621 1
#line 10542 "configure"
d11636 10
a11645 1
if { (eval echo $as_me:10557: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11649 2
a11650 2
  cat conftest.$ac_ext >&5
  ac_cv_struct_spwd=no
d11656 1
a11656 1
echo "$as_me:10568: result: $ac_cv_struct_spwd" >&5
d11681 3
a11683 2
  {  echo "$as_me: error: No argument for --with-openldap-lib" >&2
  { (exit 1); exit; }; }
d11693 3
a11695 2
  {  echo "$as_me: error: No argument for --with-openldap-include" >&2
  { (exit 1); exit; }; }
d11701 1
a11701 1
echo "$as_me:10611: checking for openldap" >&5
d11741 1
a11741 1
#line 10651 "configure"
a11742 1
#include <lber.h>
d11753 10
a11762 1
if { (eval echo $as_me:10664: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11766 1
a11766 1
  cat conftest.$ac_ext >&5
d11773 1
a11773 1
#line 10675 "configure"
a11774 1
#include <lber.h>
d11785 10
a11794 1
if { (eval echo $as_me:10688: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d11798 1
a11798 1
  cat conftest.$ac_ext >&5
d11816 1
a11816 1
	echo "$as_me:10710: result: headers $ires, libraries $lres" >&5
d11822 1
a11822 1
	echo "$as_me:10716: result: $with_openldap" >&5
d11840 3
a11842 2
  {  echo "$as_me: error: No argument for --with-krb4-lib" >&2
  { (exit 1); exit; }; }
d11852 3
a11854 2
  {  echo "$as_me: error: No argument for --with-krb4-include" >&2
  { (exit 1); exit; }; }
d11860 1
a11860 1
echo "$as_me:10752: checking for krb4" >&5
d11900 1
a11900 1
#line 10792 "configure"
d11912 10
a11921 1
if { (eval echo $as_me:10804: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d11925 1
a11925 1
  cat conftest.$ac_ext >&5
d11932 1
a11932 1
#line 10815 "configure"
d11944 10
a11953 1
if { (eval echo $as_me:10827: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d11957 1
a11957 1
  cat conftest.$ac_ext >&5
d11975 1
a11975 1
	echo "$as_me:10849: result: headers $ires, libraries $lres" >&5
d11981 1
a11981 1
	echo "$as_me:10855: result: $with_krb4" >&5
d11993 1
a11993 1
	echo "$as_me:10867: checking for four valued krb_put_int" >&5
d11999 1
a11999 1
#line 10873 "configure"
d12013 10
a12022 1
if { (eval echo $as_me:10887: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d12026 2
a12027 2
  cat conftest.$ac_ext >&5
  ac_cv_func_krb_put_int_four=no
d12032 1
a12032 1
echo "$as_me:10897: result: $ac_cv_func_krb_put_int_four" >&5
d12042 1
a12042 1
	echo "$as_me:10907: checking for KRB_VERIFY_SECURE" >&5
d12048 1
a12048 1
#line 10913 "configure"
d12061 10
a12070 1
if { (eval echo $as_me:10926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d12074 2
a12075 2
  cat conftest.$ac_ext >&5
  ac_cv_func_krb_verify_secure=no
d12080 1
a12080 1
echo "$as_me:10936: result: $ac_cv_func_krb_verify_secure" >&5
d12093 1
a12093 1
	echo "$as_me:10949: checking for KRB_VERIFY_NOT_SECURE" >&5
d12099 1
a12099 1
#line 10955 "configure"
d12112 10
a12121 1
if { (eval echo $as_me:10968: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d12125 2
a12126 2
  cat conftest.$ac_ext >&5
  ac_cv_func_krb_verify_not_secure=no
d12131 1
a12131 1
echo "$as_me:10978: result: $ac_cv_func_krb_verify_not_secure" >&5
d12141 1
a12141 1
echo "$as_me:10988: checking for krb_enable_debug" >&5
d12157 1
a12157 1
#line 11004 "configure"
d12169 10
a12178 1
if { (eval echo $as_me:11016: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d12182 1
a12182 1
  cat conftest.$ac_ext >&5
d12199 1
a12199 1
echo "$as_me:11037: checking for $ac_func" >&5
d12205 1
a12205 1
#line 11043 "configure"
d12236 10
a12245 1
if { (eval echo $as_me:11074: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d12249 2
a12250 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d12254 1
a12254 1
echo "$as_me:11083: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12278 1
a12278 1
	echo "$as_me:11107: result: yes" >&5
d12284 1
a12284 1
	echo "$as_me:11113: result: no" >&5
d12298 1
a12298 1
	echo "$as_me:11127: result: yes, in $ac_res" >&5
d12307 1
a12307 1
echo "$as_me:11136: checking for krb_disable_debug" >&5
d12323 1
a12323 1
#line 11152 "configure"
d12335 10
a12344 1
if { (eval echo $as_me:11164: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d12348 1
a12348 1
  cat conftest.$ac_ext >&5
d12365 1
a12365 1
echo "$as_me:11185: checking for $ac_func" >&5
d12371 1
a12371 1
#line 11191 "configure"
d12402 10
a12411 1
if { (eval echo $as_me:11222: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d12415 2
a12416 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d12420 1
a12420 1
echo "$as_me:11231: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12444 1
a12444 1
	echo "$as_me:11255: result: yes" >&5
d12450 1
a12450 1
	echo "$as_me:11261: result: no" >&5
d12464 1
a12464 1
	echo "$as_me:11275: result: yes, in $ac_res" >&5
d12473 1
a12473 1
echo "$as_me:11284: checking for krb_get_our_ip_for_realm" >&5
d12489 1
a12489 1
#line 11300 "configure"
d12501 10
a12510 1
if { (eval echo $as_me:11312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d12514 1
a12514 1
  cat conftest.$ac_ext >&5
d12531 1
a12531 1
echo "$as_me:11333: checking for $ac_func" >&5
d12537 1
a12537 1
#line 11339 "configure"
d12568 10
a12577 1
if { (eval echo $as_me:11370: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d12581 2
a12582 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d12586 1
a12586 1
echo "$as_me:11379: result: `eval echo '${'$ac_ac_var'}'`" >&5
d12610 1
a12610 1
	echo "$as_me:11403: result: yes" >&5
d12616 1
a12616 1
	echo "$as_me:11409: result: no" >&5
d12630 1
a12630 1
	echo "$as_me:11423: result: yes, in $ac_res" >&5
d12639 1
a12639 1
	echo "$as_me:11432: checking for krb_mk_req with const arguments" >&5
d12645 1
a12645 1
#line 11438 "configure"
d12660 10
a12669 1
if { (eval echo $as_me:11453: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d12673 2
a12674 2
  cat conftest.$ac_ext >&5
  ac_cv_func_krb_mk_req_const=no
d12679 1
a12679 1
echo "$as_me:11463: result: $ac_cv_func_krb_mk_req_const" >&5
a12691 1
	test_LIB_krb4="$LIB_krb4"
d12749 2
a12750 2
	dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
a12753 1
	dpagaix_LDFLAGS="-Wl,-bI:dfspag.exp"
d12768 3
a12770 2
		{  echo "$as_me: error: kaserver requires krb4" >&2
  { (exit 1); exit; }; }
d12787 3
a12789 2
		{  echo "$as_me: error: kaserver-db requires krb4" >&2
  { (exit 1); exit; }; }
d12838 1
a12838 1
echo "$as_me:11622: checking for $ac_word" >&5
d12853 1
a12853 1
  if test -f "$ac_dir/$ac_word"; then
d12865 1
a12865 1
  echo "$as_me:11649: result: $NROFF" >&5
d12868 1
a12868 1
  echo "$as_me:11652: result: no" >&5
d12874 1
a12874 1
echo "$as_me:11658: checking for $ac_word" >&5
d12889 1
a12889 1
  if test -f "$ac_dir/$ac_word"; then
d12901 1
a12901 1
  echo "$as_me:11685: result: $GROFF" >&5
d12904 1
a12904 1
  echo "$as_me:11688: result: no" >&5
d12908 1
a12908 1
echo "$as_me:11692: checking how to format man pages" >&5
d12945 1
a12945 1
echo "$as_me:11729: result: $ac_cv_sys_man_format" >&5
d12959 1
a12959 1
echo "$as_me:11743: checking extension of pre-formatted manual pages" >&5
d12971 1
a12971 1
echo "$as_me:11755: result: $ac_cv_sys_catman_ext" >&5
d12989 3
a12991 2
  {  echo "$as_me: error: No argument for --with-readline-lib" >&2
  { (exit 1); exit; }; }
d13001 3
a13003 2
  {  echo "$as_me: error: No argument for --with-readline-include" >&2
  { (exit 1); exit; }; }
d13009 1
a13009 1
echo "$as_me:11791: checking for readline" >&5
d13049 1
a13049 1
#line 11831 "configure"
d13062 10
a13071 1
if { (eval echo $as_me:11844: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d13075 1
a13075 1
  cat conftest.$ac_ext >&5
d13082 1
a13082 1
#line 11855 "configure"
d13095 10
a13104 1
if { (eval echo $as_me:11868: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d13108 1
a13108 1
  cat conftest.$ac_ext >&5
d13126 1
a13126 1
	echo "$as_me:11890: result: headers $ires, libraries $lres" >&5
d13132 1
a13132 1
	echo "$as_me:11896: result: $with_readline" >&5
d13146 3
a13148 2
  {  echo "$as_me: error: No argument for --with-hesiod-lib" >&2
  { (exit 1); exit; }; }
d13158 3
a13160 2
  {  echo "$as_me: error: No argument for --with-hesiod-include" >&2
  { (exit 1); exit; }; }
d13166 1
a13166 1
echo "$as_me:11928: checking for hesiod" >&5
d13206 1
a13206 1
#line 11968 "configure"
d13218 10
a13227 1
if { (eval echo $as_me:11980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d13231 1
a13231 1
  cat conftest.$ac_ext >&5
d13238 1
a13238 1
#line 11991 "configure"
d13250 10
a13259 1
if { (eval echo $as_me:12003: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d13263 1
a13263 1
  cat conftest.$ac_ext >&5
d13281 1
a13281 1
	echo "$as_me:12025: result: headers $ires, libraries $lres" >&5
d13287 1
a13287 1
	echo "$as_me:12031: result: $with_hesiod" >&5
d13301 1
a13301 1
echo "$as_me:12045: checking whether byte order is known at compile time" >&5
d13307 1
a13307 1
#line 12051 "configure"
d13324 10
a13333 1
if { (eval echo $as_me:12068: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d13337 2
a13338 2
  cat conftest.$ac_ext >&5
  krb_cv_c_bigendian_compile=no
d13342 1
a13342 1
echo "$as_me:12077: result: $krb_cv_c_bigendian_compile" >&5
d13344 1
a13344 1
echo "$as_me:12079: checking whether byte ordering is bigendian" >&5
d13352 1
a13352 1
#line 12087 "configure"
d13369 10
a13378 1
if { (eval echo $as_me:12104: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d13382 2
a13383 2
  cat conftest.$ac_ext >&5
  krb_cv_c_bigendian=no
d13388 3
a13390 2
  {  echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2
  { (exit 1); exit; }; }
d13393 1
a13393 1
#line 12118 "configure"
d13407 9
a13415 4
{ (eval echo $as_me:12132: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a13422 1

a13424 1

d13428 1
a13428 1
echo "$as_me:12150: result: $krb_cv_c_bigendian" >&5
d13443 1
a13443 1
echo "$as_me:12165: checking for inline" >&5
d13451 1
a13451 1
#line 12173 "configure"
d13459 10
a13468 1
if { (eval echo $as_me:12181: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d13472 1
a13472 1
  cat conftest.$ac_ext >&5
d13478 1
a13478 1
echo "$as_me:12191: result: $ac_cv_c_inline" >&5
d13528 1
a13528 1
echo "$as_me:12241: checking for dlopen" >&5
d13544 1
a13544 1
#line 12257 "configure"
d13556 10
a13565 1
if { (eval echo $as_me:12269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d13569 1
a13569 1
  cat conftest.$ac_ext >&5
d13586 1
a13586 1
echo "$as_me:12290: checking for $ac_func" >&5
d13592 1
a13592 1
#line 12296 "configure"
d13623 10
a13632 1
if { (eval echo $as_me:12327: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d13636 2
a13637 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d13641 1
a13641 1
echo "$as_me:12336: result: `eval echo '${'$ac_ac_var'}'`" >&5
d13665 1
a13665 1
	echo "$as_me:12360: result: yes" >&5
d13671 1
a13671 1
	echo "$as_me:12366: result: no" >&5
d13685 1
a13685 1
	echo "$as_me:12380: result: yes, in $ac_res" >&5
d13725 1
a13725 1
echo "$as_me:12420: checking for X" >&5
d13742 1
a13742 1
if test "${ac_cv_have_x+set}" = set; then
d13822 1
a13822 1
#line 12517 "configure"
d13826 9
a13834 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:12522: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a13841 1

a13845 1
  cat conftest.err >&5
d13855 1
a13855 2
rm -f conftest*

d13865 1
a13865 1
#line 12557 "configure"
d13877 10
a13886 1
if { (eval echo $as_me:12569: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d13892 2
a13893 2
  cat conftest.$ac_ext >&5
  LIBS=$ac_save_LIBS
d13917 1
d13923 1
a13923 1
  echo "$as_me:12605: result: $have_x" >&5
d13933 1
a13933 1
  echo "$as_me:12615: result: libraries $x_libraries, headers $x_includes" >&5
d13957 1
a13957 1
      echo "$as_me:12639: checking whether -R must be followed by a space" >&5
d13961 1
a13961 1
#line 12643 "configure"
d13973 10
a13982 1
if { (eval echo $as_me:12655: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d13986 2
a13987 2
  cat conftest.$ac_ext >&5
  ac_R_nospace=no
d13991 1
a13991 1
	echo "$as_me:12664: result: no" >&5
d13997 1
a13997 1
#line 12670 "configure"
d14009 10
a14018 1
if { (eval echo $as_me:12682: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14022 2
a14023 2
  cat conftest.$ac_ext >&5
  ac_R_space=no
d14027 1
a14027 1
	  echo "$as_me:12691: result: yes" >&5
d14031 1
a14031 1
	  echo "$as_me:12695: result: neither works" >&5
d14049 1
a14049 2

echo "$as_me:12714: checking for dnet_ntoa in -ldnet" >&5
d14057 1
a14057 1
#line 12722 "configure"
d14076 10
a14085 1
if { (eval echo $as_me:12741: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14089 2
a14090 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_dnet_dnet_ntoa=no
d14095 1
a14095 1
echo "$as_me:12751: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
d14102 1
a14102 2

echo "$as_me:12759: checking for dnet_ntoa in -ldnet_stub" >&5
d14110 1
a14110 1
#line 12767 "configure"
d14129 10
a14138 1
if { (eval echo $as_me:12786: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14142 2
a14143 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_dnet_stub_dnet_ntoa=no
d14148 1
a14148 1
echo "$as_me:12796: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
d14164 1
a14164 1
    echo "$as_me:12812: checking for gethostbyname" >&5
d14170 1
a14170 1
#line 12818 "configure"
d14201 10
a14210 1
if { (eval echo $as_me:12849: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14214 2
a14215 2
  cat conftest.$ac_ext >&5
  ac_cv_func_gethostbyname=no
d14219 1
a14219 1
echo "$as_me:12858: result: $ac_cv_func_gethostbyname" >&5
d14223 1
a14223 2

echo "$as_me:12863: checking for gethostbyname in -lnsl" >&5
d14231 1
a14231 1
#line 12871 "configure"
d14250 10
a14259 1
if { (eval echo $as_me:12890: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14263 2
a14264 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_nsl_gethostbyname=no
d14269 1
a14269 1
echo "$as_me:12900: result: $ac_cv_lib_nsl_gethostbyname" >&5
d14276 1
a14276 2

echo "$as_me:12908: checking for gethostbyname in -lbsd" >&5
d14284 1
a14284 1
#line 12916 "configure"
d14303 10
a14312 1
if { (eval echo $as_me:12935: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14316 2
a14317 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_bsd_gethostbyname=no
d14322 1
a14322 1
echo "$as_me:12945: result: $ac_cv_lib_bsd_gethostbyname" >&5
d14338 1
a14338 1
    echo "$as_me:12961: checking for connect" >&5
d14344 1
a14344 1
#line 12967 "configure"
d14375 10
a14384 1
if { (eval echo $as_me:12998: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14388 2
a14389 2
  cat conftest.$ac_ext >&5
  ac_cv_func_connect=no
d14393 1
a14393 1
echo "$as_me:13007: result: $ac_cv_func_connect" >&5
d14397 1
a14397 2

echo "$as_me:13012: checking for connect in -lsocket" >&5
d14405 1
a14405 1
#line 13020 "configure"
d14424 10
a14433 1
if { (eval echo $as_me:13039: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14437 2
a14438 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_socket_connect=no
d14443 1
a14443 1
echo "$as_me:13049: result: $ac_cv_lib_socket_connect" >&5
d14452 1
a14452 1
    echo "$as_me:13058: checking for remove" >&5
d14458 1
a14458 1
#line 13064 "configure"
d14489 10
a14498 1
if { (eval echo $as_me:13095: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14502 2
a14503 2
  cat conftest.$ac_ext >&5
  ac_cv_func_remove=no
d14507 1
a14507 1
echo "$as_me:13104: result: $ac_cv_func_remove" >&5
d14511 1
a14511 2

echo "$as_me:13109: checking for remove in -lposix" >&5
d14519 1
a14519 1
#line 13117 "configure"
d14538 10
a14547 1
if { (eval echo $as_me:13136: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14551 2
a14552 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_posix_remove=no
d14557 1
a14557 1
echo "$as_me:13146: result: $ac_cv_lib_posix_remove" >&5
d14566 1
a14566 1
    echo "$as_me:13155: checking for shmat" >&5
d14572 1
a14572 1
#line 13161 "configure"
d14603 10
a14612 1
if { (eval echo $as_me:13192: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14616 2
a14617 2
  cat conftest.$ac_ext >&5
  ac_cv_func_shmat=no
d14621 1
a14621 1
echo "$as_me:13201: result: $ac_cv_func_shmat" >&5
d14625 1
a14625 2

echo "$as_me:13206: checking for shmat in -lipc" >&5
d14633 1
a14633 1
#line 13214 "configure"
d14652 10
a14661 1
if { (eval echo $as_me:13233: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14665 2
a14666 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_ipc_shmat=no
d14671 1
a14671 1
echo "$as_me:13243: result: $ac_cv_lib_ipc_shmat" >&5
d14689 1
a14689 2

echo "$as_me:13262: checking for IceConnectionNumber in -lICE" >&5
d14697 1
a14697 1
#line 13270 "configure"
d14716 10
a14725 1
if { (eval echo $as_me:13289: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14729 2
a14730 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_ICE_IceConnectionNumber=no
d14735 1
a14735 1
echo "$as_me:13299: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
d14748 1
a14748 1
	echo "$as_me:13312: checking for special X linker flags" >&5
d14777 3
a14779 2
  {  echo "$as_me: error: cannot run test program while cross compiling" >&2
  { (exit 1); exit; }; }
d14782 1
a14782 1
#line 13345 "configure"
d14797 9
a14805 4
{ (eval echo $as_me:13360: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a14812 1

a14814 1

d14820 1
a14820 1
echo "$as_me:13380: result: $krb_cv_sys_x_libs_rpath" >&5
d14840 1
a14840 1
echo "$as_me:13400: checking for XauWriteAuth" >&5
d14856 1
a14856 1
#line 13416 "configure"
d14868 10
a14877 1
if { (eval echo $as_me:13428: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14881 1
a14881 1
  cat conftest.$ac_ext >&5
d14898 1
a14898 1
echo "$as_me:13449: checking for $ac_func" >&5
d14904 1
a14904 1
#line 13455 "configure"
d14935 10
a14944 1
if { (eval echo $as_me:13486: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d14948 2
a14949 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d14953 1
a14953 1
echo "$as_me:13495: result: `eval echo '${'$ac_ac_var'}'`" >&5
d14977 1
a14977 1
	echo "$as_me:13519: result: yes" >&5
d14983 1
a14983 1
	echo "$as_me:13525: result: no" >&5
d14997 1
a14997 1
	echo "$as_me:13539: result: yes, in $ac_res" >&5
d15005 1
a15005 1
echo "$as_me:13547: checking for XauReadAuth" >&5
d15021 1
a15021 1
#line 13563 "configure"
d15033 10
a15042 1
if { (eval echo $as_me:13575: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d15046 1
a15046 1
  cat conftest.$ac_ext >&5
d15063 1
a15063 1
echo "$as_me:13596: checking for $ac_func" >&5
d15069 1
a15069 1
#line 13602 "configure"
d15100 10
a15109 1
if { (eval echo $as_me:13633: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d15113 2
a15114 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d15118 1
a15118 1
echo "$as_me:13642: result: `eval echo '${'$ac_ac_var'}'`" >&5
d15142 1
a15142 1
	echo "$as_me:13666: result: yes" >&5
d15148 1
a15148 1
	echo "$as_me:13672: result: no" >&5
d15162 1
a15162 1
	echo "$as_me:13686: result: yes, in $ac_res" >&5
d15169 1
a15169 1
echo "$as_me:13693: checking for XauFileName" >&5
d15185 1
a15185 1
#line 13709 "configure"
d15197 10
a15206 1
if { (eval echo $as_me:13721: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d15210 1
a15210 1
  cat conftest.$ac_ext >&5
d15227 1
a15227 1
echo "$as_me:13742: checking for $ac_func" >&5
d15233 1
a15233 1
#line 13748 "configure"
d15264 10
a15273 1
if { (eval echo $as_me:13779: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d15277 2
a15278 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d15282 1
a15282 1
echo "$as_me:13788: result: `eval echo '${'$ac_ac_var'}'`" >&5
d15306 1
a15306 1
	echo "$as_me:13812: result: yes" >&5
d15312 1
a15312 1
	echo "$as_me:13818: result: no" >&5
d15326 1
a15326 1
	echo "$as_me:13832: result: yes, in $ac_res" >&5
d15375 1
a15375 1
echo "$as_me:13881: checking for an ANSI C-conforming const" >&5
d15381 1
a15381 1
#line 13887 "configure"
d15439 10
a15448 1
if { (eval echo $as_me:13945: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15452 2
a15453 2
  cat conftest.$ac_ext >&5
  ac_cv_c_const=no
d15457 1
a15457 1
echo "$as_me:13954: result: $ac_cv_c_const" >&5
d15467 1
a15467 1
echo "$as_me:13964: checking for off_t" >&5
d15473 1
a15473 1
#line 13970 "configure"
d15488 10
a15497 1
if { (eval echo $as_me:13985: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15501 2
a15502 2
  cat conftest.$ac_ext >&5
  ac_cv_type_off_t=no
d15506 1
a15506 1
echo "$as_me:13994: result: $ac_cv_type_off_t" >&5
d15518 1
a15518 1
echo "$as_me:14006: checking for size_t" >&5
d15524 1
a15524 1
#line 14012 "configure"
d15539 10
a15548 1
if { (eval echo $as_me:14027: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15552 2
a15553 2
  cat conftest.$ac_ext >&5
  ac_cv_type_size_t=no
d15557 1
a15557 1
echo "$as_me:14036: result: $ac_cv_type_size_t" >&5
d15569 1
a15569 1
echo "$as_me:14048: checking for ssize_t" >&5
d15575 1
a15575 1
#line 14054 "configure"
d15593 1
a15593 1
echo "$as_me:14072: result: $ac_cv_type_ssize_t" >&5
d15603 1
a15603 1
echo "$as_me:14082: checking for pid_t" >&5
d15609 1
a15609 1
#line 14088 "configure"
d15624 10
a15633 1
if { (eval echo $as_me:14103: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15637 2
a15638 2
  cat conftest.$ac_ext >&5
  ac_cv_type_pid_t=no
d15642 1
a15642 1
echo "$as_me:14112: result: $ac_cv_type_pid_t" >&5
d15654 1
a15654 1
echo "$as_me:14124: checking for uid_t in sys/types.h" >&5
d15660 1
a15660 1
#line 14130 "configure"
d15674 1
a15674 1
echo "$as_me:14144: result: $ac_cv_type_uid_t" >&5
d15688 1
a15688 1
echo "$as_me:14158: checking for mode_t" >&5
d15694 1
a15694 1
#line 14164 "configure"
d15712 1
a15712 1
echo "$as_me:14182: result: $ac_cv_type_mode_t" >&5
d15722 1
a15722 1
echo "$as_me:14192: checking for sig_atomic_t" >&5
d15728 1
a15728 1
#line 14198 "configure"
d15746 1
a15746 1
echo "$as_me:14216: result: $ac_cv_type_sig_atomic_t" >&5
d15757 1
a15757 1
echo "$as_me:14227: checking for long long" >&5
d15763 1
a15763 1
#line 14233 "configure"
d15780 10
a15789 1
if { (eval echo $as_me:14250: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15793 2
a15794 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d15799 1
a15799 1
echo "$as_me:14260: result: $ac_foo" >&5
d15804 1
a15804 1
	echo "$as_me:14265: checking for long long" >&5
d15810 1
a15810 1
#line 14271 "configure"
d15825 10
a15834 1
if { (eval echo $as_me:14286: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15838 2
a15839 2
  cat conftest.$ac_ext >&5
  ac_cv_type_long_long=no
d15843 1
a15843 1
echo "$as_me:14295: result: $ac_cv_type_long_long" >&5
d15861 1
a15861 1
echo "$as_me:14313: checking whether time.h and sys/time.h may both be included" >&5
d15867 1
a15867 1
#line 14319 "configure"
d15882 10
a15891 1
if { (eval echo $as_me:14334: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15895 2
a15896 2
  cat conftest.$ac_ext >&5
  ac_cv_header_time=no
d15900 1
a15900 1
echo "$as_me:14343: result: $ac_cv_header_time" >&5
d15910 1
a15910 1
echo "$as_me:14353: checking whether struct tm is in sys/time.h or time.h" >&5
d15916 1
a15916 1
#line 14359 "configure"
d15930 10
a15939 1
if { (eval echo $as_me:14373: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d15943 2
a15944 2
  cat conftest.$ac_ext >&5
  ac_cv_struct_tm=sys/time.h
d15948 1
a15948 1
echo "$as_me:14382: result: $ac_cv_struct_tm" >&5
d15958 1
a15958 1
echo "$as_me:14392: checking for ANSI C header files" >&5
d15964 1
a15964 1
#line 14398 "configure"
d15972 9
a15980 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:14407: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a15987 1

a15990 1
  cat conftest.err >&5
d15995 1
a15995 1
rm -f conftest*
d16000 1
a16000 1
#line 14430 "configure"
d16018 1
a16018 1
#line 14448 "configure"
d16039 1
a16039 1
#line 14469 "configure"
d16065 9
a16073 4
{ (eval echo $as_me:14495: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a16080 1

a16082 1

d16085 1
a16085 1
echo "$as_me:14512: result: $ac_cv_header_stdc" >&5
d16188 1
a16188 2

echo "$as_me:14616: checking for $ac_header" >&5
d16194 1
a16194 1
#line 14622 "configure"
a16196 1

d16198 9
a16206 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:14628: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a16213 1

a16216 1
  cat conftest.err >&5
d16221 1
a16221 2
rm -f conftest*

d16223 1
a16223 1
echo "$as_me:14649: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d16236 1
a16236 2

echo "$as_me:14663: checking for $ac_header" >&5
d16242 1
a16242 1
#line 14669 "configure"
a16244 1

d16246 9
a16254 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:14675: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a16261 1

a16264 1
  cat conftest.err >&5
d16269 1
a16269 2
rm -f conftest*

d16271 1
a16271 1
echo "$as_me:14696: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d16285 1
a16285 1
echo "$as_me:14710: checking for $i" >&5
d16291 1
a16291 1
#line 14716 "configure"
d16300 9
a16308 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:14726: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a16315 1

a16318 1
  cat conftest.err >&5
d16323 1
a16323 2
rm -f conftest*

d16325 1
a16325 1
echo "$as_me:14747: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
d16341 1
a16341 2

echo "$as_me:14764: checking for $ac_header" >&5
d16347 1
a16347 1
#line 14770 "configure"
a16349 1

d16351 9
a16359 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:14776: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a16366 1

a16369 1
  cat conftest.err >&5
d16374 1
a16374 2
rm -f conftest*

d16376 1
a16376 1
echo "$as_me:14797: result: `eval echo '${'$ac_ac_Header'}'`" >&5
a16425 1
save_CFLAGS="${CFLAGS}"
d16432 1
a16432 1
echo "$as_me:14854: checking ipv6 stack type" >&5
d16438 1
a16438 1
#line 14860 "configure"
d16457 1
a16457 1
#line 14879 "configure"
d16476 1
a16476 1
#line 14898 "configure"
d16495 1
a16495 1
#line 14917 "configure"
d16512 1
a16512 1
#line 14934 "configure"
d16542 1
a16542 1
echo "$as_me:14964: result: $v6type" >&5
d16554 1
a16554 1
#line 14976 "configure"
d16589 10
a16598 1
if { (eval echo $as_me:15011: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d16602 2
a16603 2
  cat conftest.$ac_ext >&5
  ac_cv_lib_ipv6=no
d16608 1
a16608 1
echo "$as_me:15021: checking for IPv6" >&5
d16610 1
a16610 1
echo "$as_me:15023: result: $ac_cv_lib_ipv6" >&5
a16617 2
else
  CFLAGS="${save_CFLAGS}"
d16620 1
a16620 1
echo "$as_me:15035: checking for socket" >&5
d16636 1
a16636 1
#line 15051 "configure"
d16648 10
a16657 1
if { (eval echo $as_me:15063: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d16661 1
a16661 1
  cat conftest.$ac_ext >&5
d16678 1
a16678 1
echo "$as_me:15084: checking for $ac_func" >&5
d16684 1
a16684 1
#line 15090 "configure"
d16715 10
a16724 1
if { (eval echo $as_me:15121: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d16728 2
a16729 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d16733 1
a16733 1
echo "$as_me:15130: result: `eval echo '${'$ac_ac_var'}'`" >&5
d16757 1
a16757 1
	echo "$as_me:15154: result: yes" >&5
d16763 1
a16763 1
	echo "$as_me:15160: result: no" >&5
d16777 1
a16777 1
	echo "$as_me:15174: result: yes, in $ac_res" >&5
d16786 1
a16786 1
echo "$as_me:15183: checking for gethostbyname" >&5
d16802 1
a16802 1
#line 15199 "configure"
d16814 10
a16823 1
if { (eval echo $as_me:15211: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d16827 1
a16827 1
  cat conftest.$ac_ext >&5
d16844 1
a16844 1
echo "$as_me:15232: checking for $ac_func" >&5
d16850 1
a16850 1
#line 15238 "configure"
d16881 10
a16890 1
if { (eval echo $as_me:15269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d16894 2
a16895 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d16899 1
a16899 1
echo "$as_me:15278: result: `eval echo '${'$ac_ac_var'}'`" >&5
d16923 1
a16923 1
	echo "$as_me:15302: result: yes" >&5
d16929 1
a16929 1
	echo "$as_me:15308: result: no" >&5
d16943 1
a16943 1
	echo "$as_me:15322: result: yes, in $ac_res" >&5
d16952 1
a16952 1
echo "$as_me:15331: checking for syslog" >&5
d16968 1
a16968 1
#line 15347 "configure"
d16980 10
a16989 1
if { (eval echo $as_me:15359: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d16993 1
a16993 1
  cat conftest.$ac_ext >&5
d17010 1
a17010 1
echo "$as_me:15380: checking for $ac_func" >&5
d17016 1
a17016 1
#line 15386 "configure"
d17047 10
a17056 1
if { (eval echo $as_me:15417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17060 2
a17061 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d17065 1
a17065 1
echo "$as_me:15426: result: `eval echo '${'$ac_ac_var'}'`" >&5
d17089 1
a17089 1
	echo "$as_me:15450: result: yes" >&5
d17095 1
a17095 1
	echo "$as_me:15456: result: no" >&5
d17109 1
a17109 1
	echo "$as_me:15470: result: yes, in $ac_res" >&5
d17118 1
a17118 1
echo "$as_me:15479: checking for logwtmp" >&5
d17134 1
a17134 1
#line 15495 "configure"
d17146 10
a17155 1
if { (eval echo $as_me:15507: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17159 1
a17159 1
  cat conftest.$ac_ext >&5
d17176 1
a17176 1
echo "$as_me:15528: checking for $ac_func" >&5
d17182 1
a17182 1
#line 15534 "configure"
d17213 10
a17222 1
if { (eval echo $as_me:15565: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17226 2
a17227 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d17231 1
a17231 1
echo "$as_me:15574: result: `eval echo '${'$ac_ac_var'}'`" >&5
d17255 1
a17255 1
	echo "$as_me:15598: result: yes" >&5
d17261 1
a17261 1
	echo "$as_me:15604: result: no" >&5
d17275 1
a17275 1
	echo "$as_me:15618: result: yes, in $ac_res" >&5
d17280 1
a17280 1
echo "$as_me:15623: checking for tgetent" >&5
d17296 1
a17296 1
#line 15639 "configure"
d17308 10
a17317 1
if { (eval echo $as_me:15651: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17321 1
a17321 1
  cat conftest.$ac_ext >&5
d17338 1
a17338 1
echo "$as_me:15672: checking for $ac_func" >&5
d17344 1
a17344 1
#line 15678 "configure"
d17375 10
a17384 1
if { (eval echo $as_me:15709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17388 2
a17389 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d17393 1
a17393 1
echo "$as_me:15718: result: `eval echo '${'$ac_ac_var'}'`" >&5
d17417 1
a17417 1
	echo "$as_me:15742: result: yes" >&5
d17423 1
a17423 1
	echo "$as_me:15748: result: no" >&5
d17437 1
a17437 1
	echo "$as_me:15762: result: yes, in $ac_res" >&5
d17442 1
a17442 1
echo "$as_me:15767: checking for gethostbyname2" >&5
d17458 1
a17458 1
#line 15783 "configure"
d17470 10
a17479 1
if { (eval echo $as_me:15795: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17483 1
a17483 1
  cat conftest.$ac_ext >&5
d17500 1
a17500 1
echo "$as_me:15816: checking for $ac_func" >&5
d17506 1
a17506 1
#line 15822 "configure"
d17537 10
a17546 1
if { (eval echo $as_me:15853: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17550 2
a17551 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d17555 1
a17555 1
echo "$as_me:15862: result: `eval echo '${'$ac_ac_var'}'`" >&5
d17579 1
a17579 1
	echo "$as_me:15886: result: yes" >&5
d17585 1
a17585 1
	echo "$as_me:15892: result: no" >&5
d17599 1
a17599 1
	echo "$as_me:15906: result: yes, in $ac_res" >&5
d17608 1
a17608 1
echo "$as_me:15915: checking for res_search" >&5
d17624 1
a17624 1
#line 15931 "configure"
d17650 10
a17659 1
if { (eval echo $as_me:15957: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17663 1
a17663 1
  cat conftest.$ac_ext >&5
d17680 1
a17680 1
echo "$as_me:15978: checking for $ac_func" >&5
d17686 1
a17686 1
#line 15984 "configure"
d17717 10
a17726 1
if { (eval echo $as_me:16015: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17730 2
a17731 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d17735 1
a17735 1
echo "$as_me:16024: result: `eval echo '${'$ac_ac_var'}'`" >&5
d17759 1
a17759 1
	echo "$as_me:16048: result: yes" >&5
d17765 1
a17765 1
	echo "$as_me:16054: result: no" >&5
d17779 1
a17779 1
	echo "$as_me:16068: result: yes, in $ac_res" >&5
d17788 1
a17788 1
echo "$as_me:16077: checking for dn_expand" >&5
d17804 1
a17804 1
#line 16093 "configure"
d17830 10
a17839 1
if { (eval echo $as_me:16119: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17843 1
a17843 1
  cat conftest.$ac_ext >&5
d17860 1
a17860 1
echo "$as_me:16140: checking for $ac_func" >&5
d17866 1
a17866 1
#line 16146 "configure"
d17897 10
a17906 1
if { (eval echo $as_me:16177: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d17910 2
a17911 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d17915 1
a17915 1
echo "$as_me:16186: result: `eval echo '${'$ac_ac_var'}'`" >&5
d17939 1
a17939 1
	echo "$as_me:16210: result: yes" >&5
d17945 1
a17945 1
	echo "$as_me:16216: result: no" >&5
d17959 1
a17959 1
	echo "$as_me:16230: result: yes, in $ac_res" >&5
d17968 1
a17968 1
echo "$as_me:16239: checking for working snprintf" >&5
d17978 1
a17978 1
#line 16249 "configure"
d17991 9
a17999 4
{ (eval echo $as_me:16262: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a18006 1

a18008 1

d18010 1
a18010 1
echo "$as_me:16278: result: $ac_cv_func_snprintf_working" >&5
d18023 1
a18023 1
echo "$as_me:16291: checking if snprintf needs a prototype" >&5
d18029 1
a18029 1
#line 16297 "configure"
d18044 10
a18053 1
if { (eval echo $as_me:16312: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d18057 2
a18058 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_snprintf_noproto=no"
d18062 1
a18062 1
echo "$as_me:16321: result: $ac_cv_func_snprintf_noproto" >&5
d18077 1
a18077 1
echo "$as_me:16336: checking for working vsnprintf" >&5
d18087 1
a18087 1
#line 16346 "configure"
d18110 9
a18118 4
{ (eval echo $as_me:16369: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a18125 1

a18127 1

d18129 1
a18129 1
echo "$as_me:16385: result: $ac_cv_func_vsnprintf_working" >&5
d18142 1
a18142 1
echo "$as_me:16398: checking if vsnprintf needs a prototype" >&5
d18148 1
a18148 1
#line 16404 "configure"
d18163 10
a18172 1
if { (eval echo $as_me:16419: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d18176 2
a18177 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_func_vsnprintf_noproto=no"
d18181 1
a18181 1
echo "$as_me:16428: result: $ac_cv_func_vsnprintf_noproto" >&5
d18231 1
a18231 1
echo "$as_me:16478: checking for $ac_func" >&5
d18237 1
a18237 1
#line 16484 "configure"
d18268 10
a18277 1
if { (eval echo $as_me:16515: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18281 2
a18282 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d18286 1
a18286 1
echo "$as_me:16524: result: `eval echo '${'$ac_ac_var'}'`" >&5
d18299 1
a18299 2

echo "$as_me:16538: checking for $ac_header" >&5
d18305 1
a18305 1
#line 16544 "configure"
a18307 1

d18309 9
a18317 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:16550: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a18324 1

a18327 1
  cat conftest.err >&5
d18332 1
a18332 2
rm -f conftest*

d18334 1
a18334 1
echo "$as_me:16571: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d18347 1
a18347 1
echo "$as_me:16584: checking for $ac_func" >&5
d18353 1
a18353 1
#line 16590 "configure"
d18384 10
a18393 1
if { (eval echo $as_me:16621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18397 2
a18398 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d18402 1
a18402 1
echo "$as_me:16630: result: `eval echo '${'$ac_ac_var'}'`" >&5
d18412 1
a18412 1
echo "$as_me:16640: checking for getpwnam_r" >&5
d18428 1
a18428 1
#line 16656 "configure"
d18440 10
a18449 1
if { (eval echo $as_me:16668: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18453 1
a18453 1
  cat conftest.$ac_ext >&5
d18470 1
a18470 1
echo "$as_me:16689: checking for $ac_func" >&5
d18476 1
a18476 1
#line 16695 "configure"
d18507 10
a18516 1
if { (eval echo $as_me:16726: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18520 2
a18521 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d18525 1
a18525 1
echo "$as_me:16735: result: `eval echo '${'$ac_ac_var'}'`" >&5
d18549 1
a18549 1
	echo "$as_me:16759: result: yes" >&5
d18555 1
a18555 1
	echo "$as_me:16765: result: no" >&5
d18569 1
a18569 1
	echo "$as_me:16779: result: yes, in $ac_res" >&5
d18575 1
a18575 1
	echo "$as_me:16785: checking if getpwnam_r is posix" >&5
d18586 1
a18586 1
#line 16796 "configure"
d18598 9
a18606 4
{ (eval echo $as_me:16808: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a18613 1

a18615 1

d18618 1
a18618 1
echo "$as_me:16825: result: $ac_cv_func_getpwnam_r_posix" >&5
d18629 1
a18629 1
echo "$as_me:16836: checking for getsockopt" >&5
d18645 1
a18645 1
#line 16852 "configure"
d18662 10
a18671 1
if { (eval echo $as_me:16869: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18675 1
a18675 1
  cat conftest.$ac_ext >&5
d18692 1
a18692 1
echo "$as_me:16890: checking for $ac_func" >&5
d18698 1
a18698 1
#line 16896 "configure"
d18729 10
a18738 1
if { (eval echo $as_me:16927: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18742 2
a18743 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d18747 1
a18747 1
echo "$as_me:16936: result: `eval echo '${'$ac_ac_var'}'`" >&5
d18771 1
a18771 1
	echo "$as_me:16960: result: yes" >&5
d18777 1
a18777 1
	echo "$as_me:16966: result: no" >&5
d18791 1
a18791 1
	echo "$as_me:16980: result: yes, in $ac_res" >&5
d18796 1
a18796 1
echo "$as_me:16985: checking for setsockopt" >&5
d18812 1
a18812 1
#line 17001 "configure"
d18829 10
a18838 1
if { (eval echo $as_me:17018: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18842 1
a18842 1
  cat conftest.$ac_ext >&5
d18859 1
a18859 1
echo "$as_me:17039: checking for $ac_func" >&5
d18865 1
a18865 1
#line 17045 "configure"
d18896 10
a18905 1
if { (eval echo $as_me:17076: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d18909 2
a18910 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d18914 1
a18914 1
echo "$as_me:17085: result: `eval echo '${'$ac_ac_var'}'`" >&5
d18938 1
a18938 1
	echo "$as_me:17109: result: yes" >&5
d18944 1
a18944 1
	echo "$as_me:17115: result: no" >&5
d18958 1
a18958 1
	echo "$as_me:17129: result: yes, in $ac_res" >&5
d18966 1
a18966 1
echo "$as_me:17137: checking for $ac_func" >&5
d18972 1
a18972 1
#line 17143 "configure"
d19003 10
a19012 1
if { (eval echo $as_me:17174: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d19016 2
a19017 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d19021 1
a19021 1
echo "$as_me:17183: result: `eval echo '${'$ac_ac_var'}'`" >&5
d19031 1
a19031 1
echo "$as_me:17193: checking return type of signal handlers" >&5
d19037 1
a19037 1
#line 17199 "configure"
d19059 10
a19068 1
if { (eval echo $as_me:17221: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19072 2
a19073 2
  cat conftest.$ac_ext >&5
  ac_cv_type_signal=int
d19077 1
a19077 1
echo "$as_me:17230: result: $ac_cv_type_signal" >&5
d19092 1
a19092 1
echo "$as_me:17245: checking if realloc if broken" >&5
d19103 1
a19103 1
#line 17256 "configure"
d19116 9
a19124 4
{ (eval echo $as_me:17269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a19131 1

d19136 1
a19136 1
echo "$as_me:17285: result: $ac_cv_func_realloc_broken" >&5
d19146 1
a19146 1
echo "$as_me:17295: checking for ut_addr in struct utmp" >&5
d19153 1
a19153 1
#line 17302 "configure"
d19165 10
a19174 1
if { (eval echo $as_me:17314: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19178 2
a19179 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmp_ut_addr=no
d19183 1
a19183 1
echo "$as_me:17323: result: $ac_cv_type_struct_utmp_ut_addr" >&5
d19193 1
a19193 1
echo "$as_me:17333: checking for ut_host in struct utmp" >&5
d19200 1
a19200 1
#line 17340 "configure"
d19212 10
a19221 1
if { (eval echo $as_me:17352: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19225 2
a19226 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmp_ut_host=no
d19230 1
a19230 1
echo "$as_me:17361: result: $ac_cv_type_struct_utmp_ut_host" >&5
d19240 1
a19240 1
echo "$as_me:17371: checking for ut_id in struct utmp" >&5
d19247 1
a19247 1
#line 17378 "configure"
d19259 10
a19268 1
if { (eval echo $as_me:17390: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19272 2
a19273 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmp_ut_id=no
d19277 1
a19277 1
echo "$as_me:17399: result: $ac_cv_type_struct_utmp_ut_id" >&5
d19287 1
a19287 1
echo "$as_me:17409: checking for ut_pid in struct utmp" >&5
d19294 1
a19294 1
#line 17416 "configure"
d19306 10
a19315 1
if { (eval echo $as_me:17428: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19319 2
a19320 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmp_ut_pid=no
d19324 1
a19324 1
echo "$as_me:17437: result: $ac_cv_type_struct_utmp_ut_pid" >&5
d19334 1
a19334 1
echo "$as_me:17447: checking for ut_type in struct utmp" >&5
d19341 1
a19341 1
#line 17454 "configure"
d19353 10
a19362 1
if { (eval echo $as_me:17466: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19366 2
a19367 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmp_ut_type=no
d19371 1
a19371 1
echo "$as_me:17475: result: $ac_cv_type_struct_utmp_ut_type" >&5
d19381 1
a19381 1
echo "$as_me:17485: checking for ut_user in struct utmp" >&5
d19388 1
a19388 1
#line 17492 "configure"
d19400 10
a19409 1
if { (eval echo $as_me:17504: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19413 2
a19414 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmp_ut_user=no
d19418 1
a19418 1
echo "$as_me:17513: result: $ac_cv_type_struct_utmp_ut_user" >&5
d19428 1
a19428 1
echo "$as_me:17523: checking for ut_exit in struct utmpx" >&5
d19435 1
a19435 1
#line 17530 "configure"
d19447 10
a19456 1
if { (eval echo $as_me:17542: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19460 2
a19461 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmpx_ut_exit=no
d19465 1
a19465 1
echo "$as_me:17551: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
d19475 1
a19475 1
echo "$as_me:17561: checking for ut_syslen in struct utmpx" >&5
d19482 1
a19482 1
#line 17568 "configure"
d19494 10
a19503 1
if { (eval echo $as_me:17580: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19507 2
a19508 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_utmpx_ut_syslen=no
d19512 1
a19512 1
echo "$as_me:17589: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
d19522 1
a19522 1
echo "$as_me:17599: checking for tm_gmtoff in struct tm" >&5
d19529 1
a19529 1
#line 17606 "configure"
d19541 10
a19550 1
if { (eval echo $as_me:17618: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19554 2
a19555 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_tm_tm_gmtoff=no
d19559 1
a19559 1
echo "$as_me:17627: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
d19569 1
a19569 1
echo "$as_me:17637: checking for tm_zone in struct tm" >&5
d19576 1
a19576 1
#line 17644 "configure"
d19588 10
a19597 1
if { (eval echo $as_me:17656: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19601 2
a19602 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_tm_tm_zone=no
d19606 1
a19606 1
echo "$as_me:17665: result: $ac_cv_type_struct_tm_tm_zone" >&5
d19616 1
a19616 1
echo "$as_me:17675: checking for timezone" >&5
d19623 1
a19623 1
#line 17682 "configure"
d19636 10
a19645 1
if { (eval echo $as_me:17695: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d19649 2
a19650 2
  cat conftest.$ac_ext >&5
  ac_cv_var_timezone=no
d19657 1
a19657 1
echo "$as_me:17707: result: $ac_foo" >&5
d19665 1
a19665 1
echo "$as_me:17715: checking if timezone is properly declared" >&5
d19672 1
a19672 1
#line 17722 "configure"
d19685 10
a19694 1
if { (eval echo $as_me:17735: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19698 2
a19699 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_var_timezone_declaration=yes"
d19705 1
a19705 1
echo "$as_me:17746: result: $ac_cv_var_timezone_declaration" >&5
d19718 1
a19718 1
echo "$as_me:17759: checking for sa_family_t" >&5
d19724 1
a19724 1
#line 17765 "configure"
d19741 10
a19750 1
if { (eval echo $as_me:17782: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19754 2
a19755 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d19760 1
a19760 1
echo "$as_me:17792: result: $ac_foo" >&5
d19765 1
a19765 1
	echo "$as_me:17797: checking for sa_family_t" >&5
d19771 1
a19771 1
#line 17803 "configure"
d19786 10
a19795 1
if { (eval echo $as_me:17818: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19799 2
a19800 2
  cat conftest.$ac_ext >&5
  ac_cv_type_sa_family_t=no
d19804 1
a19804 1
echo "$as_me:17827: result: $ac_cv_type_sa_family_t" >&5
d19823 1
a19823 1
echo "$as_me:17846: checking for socklen_t" >&5
d19829 1
a19829 1
#line 17852 "configure"
d19846 10
a19855 1
if { (eval echo $as_me:17869: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19859 2
a19860 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d19865 1
a19865 1
echo "$as_me:17879: result: $ac_foo" >&5
d19870 1
a19870 1
	echo "$as_me:17884: checking for socklen_t" >&5
d19876 1
a19876 1
#line 17890 "configure"
d19891 10
a19900 1
if { (eval echo $as_me:17905: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19904 2
a19905 2
  cat conftest.$ac_ext >&5
  ac_cv_type_socklen_t=no
d19909 1
a19909 1
echo "$as_me:17914: result: $ac_cv_type_socklen_t" >&5
d19928 1
a19928 1
echo "$as_me:17933: checking for struct sockaddr" >&5
d19934 1
a19934 1
#line 17939 "configure"
d19951 10
a19960 1
if { (eval echo $as_me:17956: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d19964 2
a19965 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d19970 1
a19970 1
echo "$as_me:17966: result: $ac_foo" >&5
d19975 1
a19975 1
	echo "$as_me:17971: checking for struct sockaddr" >&5
d19981 1
a19981 1
#line 17977 "configure"
d19996 10
a20005 1
if { (eval echo $as_me:17992: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20009 2
a20010 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_sockaddr=no
d20014 1
a20014 1
echo "$as_me:18001: result: $ac_cv_type_struct_sockaddr" >&5
d20033 1
a20033 1
echo "$as_me:18020: checking for struct sockaddr_storage" >&5
d20039 1
a20039 1
#line 18026 "configure"
d20056 10
a20065 1
if { (eval echo $as_me:18043: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20069 2
a20070 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d20075 1
a20075 1
echo "$as_me:18053: result: $ac_foo" >&5
d20080 1
a20080 1
	echo "$as_me:18058: checking for struct sockaddr_storage" >&5
d20086 1
a20086 1
#line 18064 "configure"
d20101 10
a20110 1
if { (eval echo $as_me:18079: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20114 2
a20115 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_sockaddr_storage=no
d20119 1
a20119 1
echo "$as_me:18088: result: $ac_cv_type_struct_sockaddr_storage" >&5
d20138 1
a20138 1
echo "$as_me:18107: checking for struct addrinfo" >&5
d20144 1
a20144 1
#line 18113 "configure"
d20161 10
a20170 1
if { (eval echo $as_me:18130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20174 2
a20175 2
  cat conftest.$ac_ext >&5
  eval "ac_cv_type_$cv=no"
d20180 1
a20180 1
echo "$as_me:18140: result: $ac_foo" >&5
d20185 1
a20185 1
	echo "$as_me:18145: checking for struct addrinfo" >&5
d20191 1
a20191 1
#line 18151 "configure"
d20206 10
a20215 1
if { (eval echo $as_me:18166: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20219 2
a20220 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_addrinfo=no
d20224 1
a20224 1
echo "$as_me:18175: result: $ac_cv_type_struct_addrinfo" >&5
d20242 1
a20242 1
echo "$as_me:18193: checking for struct winsize" >&5
d20251 1
a20251 1
#line 18202 "configure"
d20272 1
a20272 1
echo "$as_me:18223: result: $ac_cv_struct_winsize" >&5
d20275 1
a20275 1
#line 18226 "configure"
d20291 1
a20291 1
#line 18242 "configure"
d20306 1
a20306 1
echo "$as_me:18257: checking for struct spwd" >&5
d20313 1
a20313 1
#line 18264 "configure"
d20328 10
a20337 1
if { (eval echo $as_me:18279: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20341 2
a20342 2
  cat conftest.$ac_ext >&5
  ac_cv_struct_spwd=no
d20348 1
a20348 1
echo "$as_me:18290: result: $ac_cv_struct_spwd" >&5
d20359 1
a20359 1
echo "$as_me:18301: checking for sa_len in struct sockaddr" >&5
d20366 1
a20366 1
#line 18308 "configure"
d20379 10
a20388 1
if { (eval echo $as_me:18321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20392 2
a20393 2
  cat conftest.$ac_ext >&5
  ac_cv_type_struct_sockaddr_sa_len=no
d20397 1
a20397 1
echo "$as_me:18330: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
d20410 1
a20410 1
	echo "$as_me:18343: checking for $i" >&5
d20417 1
a20417 1
#line 18350 "configure"
d20446 10
a20455 1
if { (eval echo $as_me:18379: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d20459 2
a20460 2
  cat conftest.$ac_ext >&5
  eval ac_cv_type_$i=no
d20473 1
a20473 1
	echo "$as_me:18397: result: $ac_res" >&5
d20486 1
a20486 2

echo "$as_me:18411: checking for $ac_header" >&5
d20492 1
a20492 1
#line 18417 "configure"
a20494 1

d20496 9
a20504 3
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if { (eval echo $as_me:18423: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
  if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
a20511 1

a20514 1
  cat conftest.err >&5
d20519 1
a20519 2
rm -f conftest*

d20521 1
a20521 1
echo "$as_me:18444: result: `eval echo '${'$ac_ac_Header'}'`" >&5
d20531 1
a20531 1
echo "$as_me:18454: checking for MD4_Init" >&5
d20545 1
a20545 1
		LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
d20547 1
a20547 1
#line 18470 "configure"
d20559 10
a20568 1
if { (eval echo $as_me:18482: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d20572 1
a20572 1
  cat conftest.$ac_ext >&5
d20589 1
a20589 1
echo "$as_me:18503: checking for $ac_func" >&5
d20595 1
a20595 1
#line 18509 "configure"
d20626 10
a20635 1
if { (eval echo $as_me:18540: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d20639 2
a20640 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d20644 1
a20644 1
echo "$as_me:18549: result: `eval echo '${'$ac_ac_var'}'`" >&5
d20668 1
a20668 1
	echo "$as_me:18573: result: yes" >&5
d20674 1
a20674 1
	echo "$as_me:18579: result: no" >&5
d20688 1
a20688 1
	echo "$as_me:18593: result: yes, in $ac_res" >&5
d20693 1
a20693 1
echo "$as_me:18598: checking for MD5_Init" >&5
d20707 1
a20707 1
		LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
d20709 1
a20709 1
#line 18614 "configure"
d20721 10
a20730 1
if { (eval echo $as_me:18626: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d20734 1
a20734 1
  cat conftest.$ac_ext >&5
d20751 1
a20751 1
echo "$as_me:18647: checking for $ac_func" >&5
d20757 1
a20757 1
#line 18653 "configure"
d20788 10
a20797 1
if { (eval echo $as_me:18684: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d20801 2
a20802 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d20806 1
a20806 1
echo "$as_me:18693: result: `eval echo '${'$ac_ac_var'}'`" >&5
d20830 1
a20830 1
	echo "$as_me:18717: result: yes" >&5
d20836 1
a20836 1
	echo "$as_me:18723: result: no" >&5
d20850 1
a20850 1
	echo "$as_me:18737: result: yes, in $ac_res" >&5
d20855 1
a20855 1
echo "$as_me:18742: checking for SHA1_Init" >&5
d20869 1
a20869 1
		LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
d20871 1
a20871 1
#line 18758 "configure"
d20883 10
a20892 1
if { (eval echo $as_me:18770: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d20896 1
a20896 1
  cat conftest.$ac_ext >&5
d20913 1
a20913 1
echo "$as_me:18791: checking for $ac_func" >&5
d20919 1
a20919 1
#line 18797 "configure"
d20950 10
a20959 1
if { (eval echo $as_me:18828: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d20963 2
a20964 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d20968 1
a20968 1
echo "$as_me:18837: result: `eval echo '${'$ac_ac_var'}'`" >&5
d20992 1
a20992 1
	echo "$as_me:18861: result: yes" >&5
d20998 1
a20998 1
	echo "$as_me:18867: result: no" >&5
d21012 1
a21012 1
	echo "$as_me:18881: result: yes, in $ac_res" >&5
d21017 1
a21017 1
echo "$as_me:18886: checking for des_cbc_encrypt" >&5
d21031 1
a21031 1
		LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
d21033 1
a21033 1
#line 18902 "configure"
d21045 10
a21054 1
if { (eval echo $as_me:18914: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d21058 1
a21058 1
  cat conftest.$ac_ext >&5
d21075 1
a21075 1
echo "$as_me:18935: checking for $ac_func" >&5
d21081 1
a21081 1
#line 18941 "configure"
d21112 10
a21121 1
if { (eval echo $as_me:18972: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d21125 2
a21126 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d21130 1
a21130 1
echo "$as_me:18981: result: `eval echo '${'$ac_ac_var'}'`" >&5
d21154 1
a21154 1
	echo "$as_me:19005: result: yes" >&5
d21160 1
a21160 1
	echo "$as_me:19011: result: no" >&5
d21174 1
a21174 1
	echo "$as_me:19025: result: yes, in $ac_res" >&5
d21179 1
a21179 1
echo "$as_me:19030: checking for RC4" >&5
d21193 1
a21193 1
		LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
d21195 1
a21195 1
#line 19046 "configure"
d21207 10
a21216 1
if { (eval echo $as_me:19058: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d21220 1
a21220 1
  cat conftest.$ac_ext >&5
d21237 1
a21237 1
echo "$as_me:19079: checking for $ac_func" >&5
d21243 1
a21243 1
#line 19085 "configure"
d21274 10
a21283 1
if { (eval echo $as_me:19116: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d21287 2
a21288 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d21292 1
a21292 1
echo "$as_me:19125: result: `eval echo '${'$ac_ac_var'}'`" >&5
d21316 1
a21316 1
	echo "$as_me:19149: result: yes" >&5
d21322 1
a21322 1
	echo "$as_me:19155: result: no" >&5
d21336 1
a21336 1
	echo "$as_me:19169: result: yes, in $ac_res" >&5
d21347 1
a21347 5
  LIB_des=''
  if test "$krb4_libdir" != ""; then
    LIB_des="-R $krb4_libdir -L$krb4_libdir"
  fi
  LIB_des="$LIB_des $ac_cv_funclib_MD4_Init"
d21355 1
a21355 1
echo "$as_me:19192: checking for el_init" >&5
d21371 1
a21371 1
#line 19208 "configure"
d21383 10
a21392 1
if { (eval echo $as_me:19220: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d21396 1
a21396 1
  cat conftest.$ac_ext >&5
d21413 1
a21413 1
echo "$as_me:19241: checking for $ac_func" >&5
d21419 1
a21419 1
#line 19247 "configure"
d21450 10
a21459 1
if { (eval echo $as_me:19278: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d21463 2
a21464 2
  cat conftest.$ac_ext >&5
  eval "$ac_ac_var=no"
d21468 1
a21468 1
echo "$as_me:19287: result: `eval echo '${'$ac_ac_var'}'`" >&5
d21492 1
a21492 1
	echo "$as_me:19311: result: yes" >&5
d21498 1
a21498 1
	echo "$as_me:19317: result: no" >&5
d21512 1
a21512 1
	echo "$as_me:19331: result: yes, in $ac_res" >&5
d21518 1
a21518 1
	echo "$as_me:19337: checking for four argument el_init" >&5
d21525 1
a21525 1
#line 19344 "configure"
d21538 10
a21547 1
if { (eval echo $as_me:19357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
d21551 2
a21552 2
  cat conftest.$ac_ext >&5
  ac_cv_func_el_init_four=no
d21556 1
a21556 1
echo "$as_me:19366: result: $ac_cv_func_el_init_four" >&5
d21627 1
a21627 1
echo "$as_me:19437: checking for getmsg" >&5
d21633 1
a21633 1
#line 19443 "configure"
d21664 10
a21673 1
if { (eval echo $as_me:19474: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
d21677 2
a21678 2
  cat conftest.$ac_ext >&5
  ac_cv_func_getmsg=no
d21682 1
a21682 1
echo "$as_me:19483: result: $ac_cv_func_getmsg" >&5
d21687 1
a21687 1
echo "$as_me:19488: checking for working getmsg" >&5
d21696 1
a21696 1
#line 19497 "configure"
d21713 9
a21721 4
{ (eval echo $as_me:19514: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
  (./conftest$ac_exeext) >&5 2>&1;
ac_status=$?
if test $ac_status = 0; then
a21728 1

a21730 1

d21732 1
a21732 1
echo "$as_me:19530: result: $ac_cv_func_getmsg_work" >&5
d21743 1
a21743 1
echo "$as_me:19541: checking for streamspty" >&5
d21753 1
a21753 1
echo "$as_me:19551: result: $krb_cv_sys_streamspty" >&5
d21764 1
a21764 1
echo "$as_me:19562: checking which authentication modules should be built" >&5
d21781 1
a21781 1
echo "$as_me:19579: result: $LIB_AUTH_SUBDIRS" >&5
d21808 1
a21808 53
ac_config_files="$ac_config_files Makefile 		\
	include/Makefile		\
	include/kadm5/Makefile		\
	lib/Makefile			\
	lib/45/Makefile			\
	lib/auth/Makefile		\
	lib/auth/afskauthlib/Makefile	\
	lib/auth/pam/Makefile		\
	lib/auth/sia/Makefile		\
	lib/asn1/Makefile		\
	lib/com_err/Makefile		\
	lib/des/Makefile		\
	lib/editline/Makefile		\
	lib/gssapi/Makefile		\
	lib/hdb/Makefile		\
	lib/kadm5/Makefile		\
	lib/kafs/Makefile		\
	lib/kdfs/Makefile		\
	lib/krb5/Makefile		\
	lib/otp/Makefile		\
	lib/roken/Makefile		\
	lib/sl/Makefile			\
	lib/vers/Makefile		\
	kuser/Makefile			\
	kpasswd/Makefile		\
	kadmin/Makefile			\
	admin/Makefile			\
	kdc/Makefile			\
	appl/Makefile			\
	appl/afsutil/Makefile		\
	appl/ftp/Makefile		\
	appl/ftp/common/Makefile	\
	appl/ftp/ftp/Makefile		\
	appl/ftp/ftpd/Makefile		\
	appl/kx/Makefile		\
	appl/login/Makefile		\
	appl/otp/Makefile		\
	appl/popper/Makefile		\
	appl/push/Makefile		\
	appl/rsh/Makefile		\
	appl/rcp/Makefile		\
	appl/su/Makefile		\
	appl/xnlock/Makefile		\
	appl/telnet/Makefile		\
	appl/telnet/libtelnet/Makefile	\
	appl/telnet/telnet/Makefile	\
	appl/telnet/telnetd/Makefile	\
	appl/test/Makefile		\
	appl/kf/Makefile		\
	appl/dceutils/Makefile		\
	doc/Makefile			\
	tools/Makefile			\
"
d21869 2
a21870 3
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
a21876 29
# Save into config.log some information that might help in debugging.
echo >&5
echo "Cache variables:" >&5
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} | sed 's/^/| /' >&5
echo >&5
echo "confdefs.h:" >&5
sed '/^$/d;s/^/| /' confdefs.h >&5

d21880 2
a21881 2
{ echo "$as_me:19760: creating $CONFIG_STATUS" >&5
echo "creating $CONFIG_STATUS" >&6;}
d21906 37
d21962 1
a21962 1
ac_nl='
d21964 1
a21964 1
IFS=" 	$ac_nl"
d21973 1
a21973 2
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
a21974 6
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
d21976 1
d21980 3
a21982 1
----------------------------------------------------------------------
d21984 1
a21984 1
This file was extended by $as_me (heimdal 0.3f) 2.49b, executed with
d22040 1
a22040 1
$CONFIG_STATUS generated by $as_me (Autoconf 2.49b).
d22043 2
a22044 3

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
d22080 5
a22084 3
    {  echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
  { (exit 1); exit; }; };;
d22156 8
a22163 5
  -*) {  echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
  { (exit 1); exit; }; } ;;
  *) {  echo "$as_me: error: invalid argument: $1" >&2
  { (exit 1); exit; }; };;
d22173 2
d22176 3
a22178 3
  CONFIG_FILES=${CONFIG_FILES="$config_files"}
  CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"}
  CONFIG_COMMANDS=${CONFIG_COMMANDS="$config_commands"}
d22185 1
a22185 1
  trap '{ (exit $?); exit; }' 1 2 13 15
d22200 1
a22200 1
   { (exit 1); exit; }
a22209 9
am_indx=1
  for am_file in include/config.h; do
    case " $CONFIG_HEADERS " in
    *" $am_file "*)
      echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
      ;;
    esac
    am_indx=\`expr \$am_indx + 1\`
  done
d22243 5
a22250 4
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@FFLAGS@@,$FFLAGS,;t t
a22251 1
s,@@LDFLAGS@@,$LDFLAGS,;t t
d22254 2
d22260 1
a22325 2
s,@@LIB_bswap16@@,$LIB_bswap16,;t t
s,@@LIB_bswap32@@,$LIB_bswap32,;t t
d22460 1
a22460 1
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
d22474 2
a22475 2
  [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
  *)                      ac_incr_dir=.;;
d22477 10
a22486 4
ac_dummy="$ac_dir"
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@@"`; do
  ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
  test -d $ac_incr_dir || mkdir $ac_incr_dir
d22496 7
a22502 4
  case $ac_given_srcdir in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots | sed 's,/$,,'`; fi ;;
d22504 2
a22505 2
      srcdir=$ac_given_srcdir$ac_dir_suffix;
      top_srcdir=$ac_given_srcdir ;;
d22507 2
a22508 2
    srcdir=$ac_dots$ac_given_srcdir$ac_dir_suffix
    top_srcdir=$ac_dots$ac_given_srcdir ;;
d22511 3
a22513 3
  case $ac_given_INSTALL in
  [\\/$]* | ?:[\\/]* ) INSTALL=$ac_given_INSTALL ;;
  *) INSTALL=$ac_dots$ac_given_INSTALL ;;
d22517 2
a22518 2
    { echo "$as_me:20357: creating $ac_file" >&5
echo "creating $ac_file" >&6;}
a22526 3
  # Don't redirect the output to AC_FILE directly: use `mv' so that
  # updating is atomic, and doesn't need trapping.

d22535 3
a22537 2
         test -f "$f" || {  echo "$as_me: error: cannot find input file: $f" >&2
  { (exit 1); exit; }; }
d22543 1
a22543 1
         elif test -f "$ac_given_srcdir/$f"; then
d22545 1
a22545 1
           echo $ac_given_srcdir/$f
d22548 3
a22550 2
           {  echo "$as_me: error: cannot find input file: $f" >&2
  { (exit 1); exit; }; }
d22553 1
a22553 1
    done` || { (exit 1); exit; }
d22563 3
a22565 3
s,@@srcdir@@,$srcdir,;t t
s,@@top_srcdir@@,$top_srcdir,;t t
s,@@INSTALL@@,$INSTALL,;t t
d22609 2
a22610 2
  test x"$ac_file" != x- && { echo "$as_me:20450: creating $ac_file" >&5
echo "creating $ac_file" >&6;}
d22620 3
a22622 2
         test -f "$f" || {  echo "$as_me: error: cannot find input file: $f" >&2
  { (exit 1); exit; }; }
d22628 1
a22628 1
         elif test -f "$ac_given_srcdir/$f"; then
d22630 1
a22630 1
           echo $ac_given_srcdir/$f
d22633 3
a22635 2
           {  echo "$as_me: error: cannot find input file: $f" >&2
  { (exit 1); exit; }; }
d22638 1
a22638 1
    done` || { (exit 1); exit; }
d22670 1
a22670 1
# sort them, since we want the *last* AC_DEFINE to be honored.
d22750 2
a22751 2
      { echo "$as_me:20589: $ac_file is unchanged" >&5
echo "$ac_file is unchanged" >&6;}
d22766 2
a22767 2
  [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
  *)                      ac_incr_dir=.;;
d22769 10
a22778 4
ac_dummy="$ac_dir"
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@@"`; do
  ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
  test -d $ac_incr_dir || mkdir $ac_incr_dir
d22801 1
a22801 1
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp >	   include/stamp-h ;;
d22852 1
a22852 1
test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit; }
@


1.1.1.7
log
@Import of Heimdal Kerberos from KTH repository circa 2002/02/17.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.304 .
d4 1
a4 1
# Generated by Autoconf 2.52 for heimdal 0.4e.
d8 1
a8 1
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
a12 13
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

a20 3
# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

a25 21

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

d45 1
a45 1
as_nl='
d47 1
a47 1
IFS=" 	$as_nl"
d52 27
a78 4
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
d80 14
a93 1
exec 6>&1
d109 24
a132 1
ac_default_prefix=/usr/heimdal
d136 2
a137 6
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
d151 4
a154 3
#endif
#if HAVE_STRINGS_H
# include <strings.h>
a157 4
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
d162 1
a182 6

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
a195 7
# Identity of this package.
PACKAGE_NAME='heimdal'
PACKAGE_TARNAME='heimdal'
PACKAGE_VERSION='0.4e'
PACKAGE_STRING='heimdal 0.4e'
PACKAGE_BUGREPORT='heimdal-bugs@@pdc.kth.se'

d241 3
a243 3
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
d250 3
a252 3
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
d432 3
a434 3
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
d445 3
a447 3
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
d469 1
a469 1
  -*) { echo "$as_me: error: unrecognized option: $ac_option
d471 1
a471 1
   { (exit 1); exit 1; }; }
d477 3
a479 3
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
d486 5
a490 3
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d499 2
a500 2
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
a503 11
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
d505 2
a506 1
              localstatedir libdir includedir oldincludedir infodir mandir
d511 3
a513 2
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
d527 4
a530 2
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
a538 2
test "$silent" = yes && exec 6>/dev/null

d544 1
a544 1
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
d555 2
a556 2
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
d558 2
a559 2
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
d562 1
a562 1
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
a590 4
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
d599 1
a599 1
\`configure' configures heimdal 0.4e to adapt to many kinds of systems.
d669 1
a669 1
     short | recursive ) echo "Configuration of heimdal 0.4e:";;
d683 2
d696 1
a711 4
  --with-openssl=dir      use openssl in dir
  --with-openssl-lib=dir  use openssl libraries in dir
  --with-openssl-include=dir
                          use openssl headers in dir
a719 1
  CPP         C preprocessor
d753 1
a753 2
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
d757 2
a758 1
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
d767 1
a767 2
heimdal configure 0.4e
generated by GNU Autoconf 2.52
d769 1
a769 1
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
a775 45
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by heimdal $as_me 0.4e, which was
generated by GNU Autoconf 2.52.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF
d800 1
a800 2
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
a801 31
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
d805 1
a805 1
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
d809 1
a809 1
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
d829 1
a829 3
    { echo "$as_me:917: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
d838 2
a839 2
    { echo "$as_me:928: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
d846 2
a847 2
  { echo "$as_me:936: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
d853 1
a853 1
ac_cache_corrupted=false
d862 3
a864 3
      { echo "$as_me:952: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d866 3
a868 3
      { echo "$as_me:956: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
d872 7
a878 7
        { echo "$as_me:962: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:964:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:966:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
a880 12
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
d882 5
a886 6
if $ac_cache_corrupted; then
  { echo "$as_me:985: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:987: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
d891 2
a892 2
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
a900 14
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1007: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1010: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
else
  ac_path_separator=:
fi
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh
d902 3
a904 1
		    		    		    ac_config_headers="$ac_config_headers include/config.h"
d908 2
a909 2
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
d911 1
d915 1
a915 1
echo "$as_me:1029: checking for $ac_word" >&5
d923 1
a923 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d928 1
a928 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a929 1
echo "$as_me:1044: found $ac_dir/$ac_word" >&5
d937 1
a937 1
  echo "$as_me:1052: result: $CC" >&5
d940 1
a940 1
  echo "$as_me:1055: result: no" >&5
d949 1
a949 1
echo "$as_me:1064: checking for $ac_word" >&5
d957 1
a957 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d962 1
a962 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a963 1
echo "$as_me:1079: found $ac_dir/$ac_word" >&5
d971 1
a971 1
  echo "$as_me:1087: result: $ac_ct_CC" >&5
d974 1
a974 1
  echo "$as_me:1090: result: no" >&5
d987 1
a987 1
echo "$as_me:1103: checking for $ac_word" >&5
d995 1
a995 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d1000 1
a1000 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a1001 1
echo "$as_me:1118: found $ac_dir/$ac_word" >&5
d1009 1
a1009 1
  echo "$as_me:1126: result: $CC" >&5
d1012 1
a1012 1
  echo "$as_me:1129: result: no" >&5
d1021 1
a1021 1
echo "$as_me:1138: checking for $ac_word" >&5
d1029 1
a1029 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d1034 1
a1034 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a1035 1
echo "$as_me:1153: found $ac_dir/$ac_word" >&5
d1043 1
a1043 1
  echo "$as_me:1161: result: $ac_ct_CC" >&5
d1046 1
a1046 1
  echo "$as_me:1164: result: no" >&5
d1059 1
a1059 1
echo "$as_me:1177: checking for $ac_word" >&5
d1068 1
a1068 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d1073 1
a1073 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a1078 1
echo "$as_me:1197: found $ac_dir/$ac_word" >&5
d1100 1
a1100 1
  echo "$as_me:1219: result: $CC" >&5
d1103 1
a1103 1
  echo "$as_me:1222: result: no" >&5
d1114 1
a1114 1
echo "$as_me:1233: checking for $ac_word" >&5
d1122 1
a1122 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d1127 1
a1127 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a1128 1
echo "$as_me:1248: found $ac_dir/$ac_word" >&5
d1136 1
a1136 1
  echo "$as_me:1256: result: $CC" >&5
d1139 1
a1139 1
  echo "$as_me:1259: result: no" >&5
d1152 1
a1152 1
echo "$as_me:1272: checking for $ac_word" >&5
d1160 1
a1160 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d1165 1
a1165 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a1166 1
echo "$as_me:1287: found $ac_dir/$ac_word" >&5
d1174 1
a1174 1
  echo "$as_me:1295: result: $ac_ct_CC" >&5
d1177 1
a1177 1
  echo "$as_me:1298: result: no" >&5
d1189 2
a1190 23
test -z "$CC" && { { echo "$as_me:1310: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:1315:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:1318: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1321: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1323: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1326: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1328: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1331: \$? = $ac_status" >&5
  (exit $ac_status); }
d1192 2
d1195 1
a1195 1
#line 1335 "configure"
d1206 3
a1208 48
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:1351: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1354: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1357: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1380: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:1386: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1391: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
d1211 1
a1211 6
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:1397: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1400: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1215 1
a1215 1
	cross_compiling=yes
d1217 3
a1219 5
	{ { echo "$as_me:1407: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
d1223 1
a1223 1
echo "$as_me:1415: result: yes" >&5
d1225 10
a1234 6

rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1422: checking whether we are cross compiling" >&5
d1236 1
a1236 1
echo "$as_me:1424: result: $cross_compiling" >&5
d1239 23
a1261 20
echo "$as_me:1427: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1429: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1432: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
d1263 3
a1265 3
  { { echo "$as_me:1448: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
d1267 2
d1270 5
a1274 8
rm -f conftest$ac_cv_exeext
echo "$as_me:1454: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1460: checking for object suffix" >&5
d1280 1
a1280 1
#line 1466 "configure"
d1291 9
a1299 13
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1478: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1481: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
d1301 2
a1302 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1493: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
a1303 2

rm -f conftest.$ac_cv_objext conftest.$ac_ext
d1305 1
a1305 1
echo "$as_me:1500: result: $ac_cv_objext" >&5
d1308 5
a1312 4
ac_objext=$OBJEXT
echo "$as_me:1504: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
d1315 5
a1319 2
  cat >conftest.$ac_ext <<_ACEOF
#line 1510 "configure"
a1324 3
#ifndef __GNUC__
       choke me
#endif
d1330 19
a1348 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1525: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1528: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1531: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1534: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
d1350 4
a1353 2
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu
a1354 4
fi
echo "$as_me:1546: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
d1358 2
a1359 2
echo "$as_me:1552: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
d1364 1
a1364 1
#line 1558 "configure"
d1376 1
a1376 11
if { (eval echo "$as_me:1570: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1573: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1576: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1579: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1380 2
a1381 2
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
d1385 1
a1385 1
echo "$as_me:1589: result: $ac_cv_prog_cc_g" >&5
a1401 110
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1616: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1619: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1622: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1625: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 1637 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1650: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1653: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1656: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1659: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 1669 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1681: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1684: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1687: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1690: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d1403 1
a1403 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:1722: checking how to run the C preprocessor" >&5
d1414 1
a1414 1
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
d1416 6
a1421 9
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 1743 "configure"
d1424 1
a1424 1
                     Syntax error
d1426 4
a1429 9
if { (eval echo "$as_me:1748: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1754: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d1437 3
d1441 9
a1449 26
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 1777 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:1781: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1787: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
a1455 11
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext
d1457 11
a1467 5
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
d1469 1
d1471 3
a1479 7
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:1824: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
d1481 5
a1485 5
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 1834 "configure"
d1488 1
a1488 1
                     Syntax error
d1490 4
a1493 9
if { (eval echo "$as_me:1839: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1845: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d1501 3
a1504 11
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
d1506 1
a1506 1
#line 1868 "configure"
d1510 3
a1512 9
if { (eval echo "$as_me:1872: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:1878: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d1520 12
a1531 9
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
d1533 1
a1533 1
rm -f conftest.err conftest.$ac_ext
d1535 7
a1541 9
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:1906: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
d1544 2
a1545 8
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

echo "$as_me:1917: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
d1552 1
a1552 1
#line 1925 "configure"
d1601 1
a1601 11
if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1977: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1980: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1983: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1603 1
d1607 1
a1607 1
cat conftest.$ac_ext >&5
a1610 1
rm -f conftest.$ac_ext conftest.$ac_objext
d1617 1
a1617 1
    echo "$as_me:2000: result: none needed" >&5
d1620 1
a1620 1
    echo "$as_me:2003: result: $ac_cv_prog_cc_stdc" >&5
d1642 2
a1643 3
  { { echo "$as_me:2025: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
d1661 1
a1661 1
echo "$as_me:2045: checking for a BSD compatible install" >&5
d1667 1
a1667 1
    ac_save_IFS=$IFS; IFS=$ac_path_separator
a1668 1
    IFS=$ac_save_IFS
d1679 1
a1679 1
        if $as_executable_p "$ac_dir/$ac_prog"; then
d1697 1
d1710 1
a1710 1
echo "$as_me:2094: result: $INSTALL" >&5
d1721 1
a1721 1
echo "$as_me:2105: checking whether build environment is sane" >&5
d1725 1
a1725 1
echo timestamp > conftest.file
d1732 1
a1732 1
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
d1735 1
a1735 1
      set X `ls -t $srcdir/configure conftest.file`
d1737 2
a1738 3
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then
d1744 3
a1746 5
      { { echo "$as_me:2129: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
d1749 1
a1749 1
   test "$2" = conftest.file
d1755 3
a1757 5
   { { echo "$as_me:2142: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
d1759 2
a1760 1
echo "$as_me:2148: result: yes" >&5
d1762 10
d1773 1
a1773 1
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
d1776 1
a1776 8
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
d1778 2
a1779 2
# expand $ac_aux_dir to an absolute path
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
d1781 2
a1782 1
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
d1784 1
a1784 1
if eval "$MISSING --run true"; then
d1789 2
a1790 2
  { echo "$as_me:2173: WARNING: ${am_backtick}missing' script is too old or missing" >&5
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
d1797 1
a1797 1
echo "$as_me:2181: checking for $ac_word" >&5
d1805 1
a1805 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d1810 1
a1810 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a1811 1
echo "$as_me:2196: found $ac_dir/$ac_word" >&5
d1819 1
a1819 1
  echo "$as_me:2204: result: $AWK" >&5
d1822 1
a1822 1
  echo "$as_me:2207: result: no" >&5
d1829 1
a1829 1
echo "$as_me:2214: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1835 1
a1835 1
  cat >conftest.make <<\EOF
d1840 1
a1840 1
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
d1846 1
a1846 1
rm -f conftest.make
d1849 1
a1849 1
  echo "$as_me:2234: result: yes" >&5
d1853 1
a1853 1
  echo "$as_me:2238: result: no" >&5
d1863 3
a1865 1
if test "x$enable_dependency_tracking" != xno; then
d1867 5
a1871 1
  AMDEPBACKSLASH='\'
d1874 2
a1875 3
if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
d1877 1
a1877 2
  AMDEP_TRUE='#'
  AMDEP_FALSE=
d1880 1
a1880 3
rm -f .deps 2>/dev/null
mkdir .deps 2>/dev/null
if test -d .deps; then
d1882 3
a1885 1
  # MS-DOS does not allow filenames that begin with a dot.
a1887 36
rmdir .deps 2>/dev/null

ac_config_commands="$ac_config_commands default-1"

am_make=${MAKE-make}
cat > confinc << 'END'
doit:
	@@echo done
END
# If we don't find an include directive, just comment out the code.
echo "$as_me:2279: checking for style of include used by $am_make" >&5
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
am__include='#'
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
   am__include=include
   am__quote=
   _am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
      am__include=.include
      am__quote='"'
      _am_result=BSD
   fi
fi
d1889 1
a1889 3
echo "$as_me:2306: result: $_am_result" >&5
echo "${ECHO_T}$_am_result" >&6
rm -f confinc confmf
d1894 2
a1895 3
  { { echo "$as_me:2313: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
d1900 1
a1900 1
VERSION=0.4e
a1909 11
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
# the ones we care about.

# Autoconf 2.50 always computes EXEEXT.  However we need to be
# compatible with 2.13, for now.  So we always define EXEEXT, but we
# don't compute it.

# Similar for OBJEXT -- only we only use OBJEXT if the user actually
# requests that it be used.  This is a bit dumb.
: ${OBJEXT=o}

d1924 6
a1929 3
install_sh=${install_sh-"$am_aux_dir/install-sh"}

INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
d1934 3
a1936 3
depcc="$CC"   am_compiler_list=

echo "$as_me:2364: checking dependency style of $depcc" >&5
d1941 4
a1944 11
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
d1947 2
a1948 12
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    echo '#include "conftest.h"' > conftest.c
    echo 'int i;' > conftest.h
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf

    case $depmode in
d1963 1
a1963 1
    if depmode=$depmode \
d1966 3
a1968 4
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      am_cv_CC_dependencies_compiler_type=$depmode
d1973 1
a1973 2
  cd ..
  rm -rf conftest.dir
d1979 2
a1980 1
echo "$as_me:2426: result: $am_cv_CC_dependencies_compiler_type" >&5
d1986 2
a1987 3
  { { echo "$as_me:2432: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }
d1989 1
a1989 1
echo "$as_me:2436: checking build system type" >&5
d1998 2
a1999 3
  { { echo "$as_me:2445: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
d2001 2
a2002 3
  { { echo "$as_me:2449: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }
d2005 1
a2005 1
echo "$as_me:2454: result: $ac_cv_build" >&5
d2012 1
a2012 1
echo "$as_me:2461: checking host system type" >&5
d2021 2
a2022 3
  { { echo "$as_me:2470: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }
d2025 1
a2025 1
echo "$as_me:2475: result: $ac_cv_host" >&5
d2073 1
a2073 1
echo "$as_me:2523: checking for $ac_word" >&5
d2081 1
a2081 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d2086 1
a2086 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a2087 1
echo "$as_me:2538: found $ac_dir/$ac_word" >&5
d2095 1
a2095 1
  echo "$as_me:2546: result: $YACC" >&5
d2098 1
a2098 1
  echo "$as_me:2549: result: no" >&5
d2110 1
a2110 1
echo "$as_me:2561: checking for $ac_word" >&5
d2118 1
a2118 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d2123 1
a2123 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a2124 1
echo "$as_me:2576: found $ac_dir/$ac_word" >&5
d2132 1
a2132 1
  echo "$as_me:2584: result: $LEX" >&5
d2135 1
a2135 1
  echo "$as_me:2587: result: no" >&5
d2147 1
a2147 1
echo "$as_me:2599: checking for $ac_word" >&5
d2155 1
a2155 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d2160 1
a2160 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a2161 1
echo "$as_me:2614: found $ac_dir/$ac_word" >&5
d2169 1
a2169 1
  echo "$as_me:2622: result: $LEX" >&5
d2172 1
a2172 1
  echo "$as_me:2625: result: no" >&5
d2182 2
a2183 1
  echo "$as_me:2635: checking for yywrap in -lfl" >&5
d2191 1
a2191 1
#line 2643 "configure"
d2210 1
a2210 11
if { (eval echo "$as_me:2662: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2665: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2668: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2671: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2214 2
a2215 2
cat conftest.$ac_ext >&5
ac_cv_lib_fl_yywrap=no
d2217 1
a2217 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2220 1
a2220 1
echo "$as_me:2682: result: $ac_cv_lib_fl_yywrap" >&5
d2225 2
a2226 1
  echo "$as_me:2687: checking for yywrap in -ll" >&5
d2234 1
a2234 1
#line 2695 "configure"
d2253 1
a2253 11
if { (eval echo "$as_me:2714: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2717: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2720: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2723: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2257 2
a2258 2
cat conftest.$ac_ext >&5
ac_cv_lib_l_yywrap=no
d2260 1
a2260 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2263 1
a2263 1
echo "$as_me:2734: result: $ac_cv_lib_l_yywrap" >&5
d2274 1
a2274 1
  echo "$as_me:2745: checking lex output file root" >&5
d2288 2
a2289 3
  { { echo "$as_me:2759: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
d2292 1
a2292 1
echo "$as_me:2764: result: $ac_cv_prog_lex_root" >&5
d2296 1
a2296 1
echo "$as_me:2768: checking whether yytext is a pointer" >&5
d2312 1
a2312 11
if { (eval echo "$as_me:2784: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:2787: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:2790: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2793: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2316 1
a2316 1
cat conftest.$ac_ext >&5
d2318 1
a2318 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2323 1
a2323 1
echo "$as_me:2805: result: $ac_cv_prog_lex_yytext_pointer" >&5
d2338 1
a2338 1
echo "$as_me:2820: checking for $ac_word" >&5
d2346 1
a2346 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d2351 1
a2351 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a2352 1
echo "$as_me:2835: found $ac_dir/$ac_word" >&5
d2360 1
a2360 1
  echo "$as_me:2843: result: $RANLIB" >&5
d2363 1
a2363 1
  echo "$as_me:2846: result: no" >&5
d2372 1
a2372 1
echo "$as_me:2855: checking for $ac_word" >&5
d2380 1
a2380 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d2385 1
a2385 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a2386 1
echo "$as_me:2870: found $ac_dir/$ac_word" >&5
d2395 1
a2395 1
  echo "$as_me:2879: result: $ac_ct_RANLIB" >&5
d2398 1
a2398 1
  echo "$as_me:2882: result: no" >&5
d2411 1
a2411 1
echo "$as_me:2895: checking for $ac_word" >&5
d2419 1
a2419 1
  ac_save_IFS=$IFS; IFS=$ac_path_separator
d2424 1
a2424 1
  $as_executable_p "$ac_dir/$ac_word" || continue
a2425 1
echo "$as_me:2910: found $ac_dir/$ac_word" >&5
d2433 1
a2433 1
  echo "$as_me:2918: result: $AWK" >&5
d2436 1
a2436 1
  echo "$as_me:2921: result: no" >&5
d2443 1
a2443 1
echo "$as_me:2928: checking for ln -s or something else" >&5
d2464 1
a2464 1
echo "$as_me:2949: result: $ac_cv_prog_LN_S" >&5
d2492 2
a2493 3
         *) { { echo "$as_me:2977: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
d2497 1
a2497 1
echo "$as_me:2983: checking if $CC supports the $abi option" >&5
d2506 1
a2506 1
#line 2992 "configure"
d2518 1
a2518 11
if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3007: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3010: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3013: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2522 2
a2523 2
cat conftest.$ac_ext >&5
eval $ac_foo=no
d2531 1
a2531 1
echo "$as_me:3027: result: $ac_res" >&5
d2540 1
a2540 1
#line 3036 "configure"
d2552 1
a2552 11
if { (eval echo "$as_me:3048: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3051: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3054: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3057: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2556 2
a2557 2
cat conftest.$ac_ext >&5
ac_res=no
d2563 2
a2564 3
		{ { echo "$as_me:3069: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
d2577 2
a2578 3
			{ { echo "$as_me:3084: error: $CC does not support the $with_mips_abi ABI" >&5
echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
   { (exit 1); exit 1; }; }
d2590 2
a2591 3
         *) { { echo "$as_me:3098: error: \"Invalid ABI specified\"" >&5
echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
   { (exit 1); exit 1; }; } ;;
d2600 1
a2600 1
echo "$as_me:3109: checking for __attribute__" >&5
d2607 1
a2607 1
#line 3116 "configure"
d2629 1
a2629 11
if { (eval echo "$as_me:3138: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3141: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:3144: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3147: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2633 2
a2634 2
cat conftest.$ac_ext >&5
ac_cv___attribute__=no
d2646 1
a2646 1
echo "$as_me:3165: result: $ac_cv___attribute__" >&5
d2726 1
a2726 1
  echo "$as_me:3245: checking for ld used by GCC" >&5
d2728 7
a2734 1
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
d2756 1
a2756 1
  echo "$as_me:3269: checking for GNU ld" >&5
d2759 1
a2759 1
  echo "$as_me:3272: checking for non-GNU ld" >&5
d2789 1
a2789 1
  echo "$as_me:3302: result: $LD" >&5
d2792 1
a2792 1
  echo "$as_me:3305: result: no" >&5
d2795 3
a2797 4
test -z "$LD" && { { echo "$as_me:3308: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:3311: checking if the linker ($LD) is GNU ld" >&5
d2809 1
a2809 1
echo "$as_me:3323: result: $ac_cv_prog_gnu_ld" >&5
d2811 13
d2825 1
a2825 1
echo "$as_me:3326: checking for BSD-compatible nm" >&5
d2837 2
a2838 1
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
d2842 2
a2843 2
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -B"
d2845 2
a2846 2
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -p"
d2849 1
a2849 1
	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
d2860 1
a2860 1
echo "$as_me:3360: result: $NM" >&5
d2863 1
a2863 1
echo "$as_me:3363: checking whether ln -s works" >&5
d2865 18
a2882 3
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:3367: result: yes" >&5
d2885 1
a2885 1
  echo "$as_me:3370: result: no, using $LN_S" >&5
d2889 23
a2911 4
case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac
d2913 3
a2915 7
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
d2917 5
a2921 3
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"
d2923 4
a2926 3
fi;
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
d2928 7
a2934 20
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$lt_target" in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 3400 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:3404: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
d2937 55
a2992 1
  rm -rf conftest*
d2995 106
a3100 7
*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:3425: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
d3103 34
a3136 3
  cat >conftest.$ac_ext <<_ACEOF
#line 3431 "configure"
#include "confdefs.h"
d3138 12
a3149 3
int
main ()
{
d3151 4
a3154 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:3443: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3446: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3449: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3452: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_cc_needs_belf=yes
d3156 2
a3157 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
lt_cv_cc_needs_belf=no
d3159 4
a3162 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3164 235
a3398 5
echo "$as_me:3462: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
d3434 1
a3434 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d3439 1
a3439 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d3461 6
a3466 4
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
d3468 3
a3470 4
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| { { echo "$as_me:3535: error: libtool configure failed" >&5
echo "$as_me: error: libtool configure failed" >&2;}
   { (exit 1); exit 1; }; }
d3477 2
a3478 2
    { echo "$as_me:3544: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
d3485 2
a3486 2
  { echo "$as_me:3552: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
a3523 4

have_ndbm=no
db_type=unknown

d3531 3
a3533 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:3603: checking for $ac_header" >&5
d3535 1
a3535 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d3539 1
a3539 1
#line 3609 "configure"
d3542 1
d3544 3
a3546 9
if { (eval echo "$as_me:3613: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:3619: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d3554 1
d3556 1
a3556 1
  eval "$as_ac_Header=yes"
d3558 1
d3561 1
a3561 1
  eval "$as_ac_Header=no"
d3563 2
a3564 1
rm -f conftest.err conftest.$ac_ext
d3566 3
a3568 3
echo "$as_me:3638: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d3570 1
a3570 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d3576 5
a3580 3
echo "$as_me:3648: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
d3584 1
a3584 1
if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
d3586 6
a3591 8
	for ac_lib in "" $berkeley_db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d3594 1
a3594 1
#line 3666 "configure"
d3597 6
a3602 2
  #include <stdio.h>
  #include <db.h>
d3607 1
a3607 1
db_create(NULL, NULL, 0)
d3613 2
a3614 12
if { (eval echo "$as_me:3681: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3684: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3687: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3690: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
d3617 1
a3617 1
cat conftest.$ac_ext >&5
d3619 1
a3619 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3621 1
a3621 1
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
d3627 1
a3627 1
eval "ac_res=\$ac_cv_funclib_db_create"
d3631 1
a3631 1
for ac_func in db_create
d3633 2
a3634 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:3712: checking for $ac_func" >&5
d3636 1
a3636 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d3640 1
a3640 1
#line 3718 "configure"
d3671 2
a3672 12
if { (eval echo "$as_me:3749: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3752: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3755: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3758: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d3675 2
a3676 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d3678 1
a3678 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3680 3
a3682 3
echo "$as_me:3768: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d3684 1
a3684 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d3691 2
a3692 2
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d3694 1
a3694 1
eval "LIB_db_create=$ac_res"
d3698 2
a3699 2
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
d3704 1
a3704 1
	echo "$as_me:3792: result: yes" >&5
d3708 3
a3710 3
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:3798: result: no" >&5
d3714 1
a3714 1
	eval "ac_cv_func_db_create=yes"
d3724 1
a3724 1
	echo "$as_me:3812: result: yes, in $ac_res" >&5
d3729 3
a3731 17
  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi

cat >>confdefs.h <<\EOF
#define HAVE_DB3 1
EOF

  else

echo "$as_me:3831: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
d3735 1
a3735 1
if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
d3737 6
a3742 8
	for ac_lib in "" $berkeley_db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d3745 1
a3745 1
#line 3849 "configure"
a3747 9
    #include <stdio.h>
    #if defined(HAVE_DB_185_H)
    #include <db_185.h>
    #elif defined(HAVE_DB_H)
    #include <db.h>
    #else
    #error no db.h
    #endif

d3751 1
a3751 1
dbopen(NULL, 0, 0, 0, NULL)
d3757 2
a3758 12
if { (eval echo "$as_me:3870: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3873: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3876: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3879: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
d3761 1
a3761 1
cat conftest.$ac_ext >&5
d3763 1
a3763 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3765 1
a3765 1
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
d3771 1
a3771 1
eval "ac_res=\$ac_cv_funclib_dbopen"
d3775 1
a3775 1
for ac_func in dbopen
d3777 2
a3778 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:3901: checking for $ac_func" >&5
d3780 1
a3780 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d3784 1
a3784 1
#line 3907 "configure"
d3815 2
a3816 12
if { (eval echo "$as_me:3938: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:3941: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:3944: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3947: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d3819 2
a3820 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d3822 1
a3822 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3824 3
a3826 3
echo "$as_me:3957: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d3828 1
a3828 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d3835 2
a3836 2
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d3838 1
a3838 1
eval "LIB_dbopen=$ac_res"
d3842 2
a3843 2
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
d3848 1
a3848 1
	echo "$as_me:3981: result: yes" >&5
d3852 3
a3854 3
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:3987: result: no" >&5
d3858 1
a3858 1
	eval "ac_cv_func_dbopen=yes"
d3868 1
a3868 1
	echo "$as_me:4001: result: yes, in $ac_res" >&5
d3873 3
a3875 18
    if test "$ac_cv_func_dbopen" = "yes"; then
      db_type=db1
      if test "$ac_cv_funclib_dbopen" != "yes"; then
        DBLIB="$ac_cv_funclib_dbopen"
      else
        DBLIB=""
      fi

cat >>confdefs.h <<\EOF
#define HAVE_DB1 1
EOF

    fi
  fi

echo "$as_me:4021: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d3879 1
a3879 1
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
d3881 6
a3886 8
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d3889 1
a3889 1
#line 4039 "configure"
a3891 5
  #include <stdio.h>
  #define DB_DBM_HSEARCH 1
  #include <db.h>
  DBM *dbm;

d3895 1
a3895 1
dbm_firstkey(NULL)
d3901 2
a3902 12
if { (eval echo "$as_me:4056: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4059: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4062: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4065: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d3905 1
a3905 1
cat conftest.$ac_ext >&5
d3907 1
a3907 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3909 1
a3909 1
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
d3915 1
a3915 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d3919 1
a3919 1
for ac_func in dbm_firstkey
d3921 2
a3922 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:4087: checking for $ac_func" >&5
d3924 1
a3924 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d3928 1
a3928 1
#line 4093 "configure"
d3959 2
a3960 12
if { (eval echo "$as_me:4124: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4127: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4130: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4133: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d3963 2
a3964 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d3966 1
a3966 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d3968 3
a3970 3
echo "$as_me:4143: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d3972 1
a3972 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d3979 2
a3980 2
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d3982 1
a3982 1
eval "LIB_dbm_firstkey=$ac_res"
d3986 2
a3987 2
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
d3992 1
a3992 1
	echo "$as_me:4167: result: yes" >&5
d3996 3
a3998 3
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4173: result: no" >&5
d4002 1
a4002 1
	eval "ac_cv_func_dbm_firstkey=yes"
d4012 1
a4012 1
	echo "$as_me:4187: result: yes, in $ac_res" >&5
d4017 7
a4023 6
  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi
d4025 3
a4027 26
cat >>confdefs.h <<\EOF
#define HAVE_DB_NDBM 1
EOF

cat >>confdefs.h <<\EOF
#define HAVE_NEW_DB 1
EOF

  else
    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey
  fi

fi # berkeley db

if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then

for ac_header in 				\
	dbm.h					\
	ndbm.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:4222: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d4030 2
d4033 1
a4033 1
#line 4228 "configure"
d4035 4
a4038 1
#include <$ac_header>
d4040 3
a4042 18
if { (eval echo "$as_me:4232: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4238: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
a4045 1
  eval "$as_ac_Header=no"
d4047 3
a4049 1
rm -f conftest.err conftest.$ac_ext
d4051 11
a4061 5
echo "$as_me:4257: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d4063 2
d4066 3
a4068 6
fi
done

echo "$as_me:4267: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d4071 2
a4072 14

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ndbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4285 "configure"
a4074 10
  #include <stdio.h>
  #if defined(HAVE_NDBM_H)
  #include <ndbm.h>
  #elif defined(HAVE_DBM_H)
  #include <dbm.h>
  #else
  #error no ndbm.h
  #endif
  DBM *dbm;

d4078 47
a4124 1
dbm_firstkey(NULL)
d4129 3
a4131 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4307: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4310: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4313: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4316: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d4134 2
a4135 1
cat conftest.$ac_ext >&5
d4137 1
a4137 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
d4139 7
d4149 3
a4151 10
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:4338: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4155 1
a4155 1
#line 4344 "configure"
d4157 4
a4160 23
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
a4161 3
  ;
  return 0;
}
d4163 7
a4169 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4378: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4381: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4384: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4171 1
a4171 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
a4172 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4394: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d4174 7
d4182 26
a4207 1
done
d4209 6
d4216 1
a4216 4
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"
d4218 1
a4218 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d4220 18
a4237 15
	echo "$as_me:4418: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4424: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d4239 24
a4262 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d4264 2
a4265 4
	echo "$as_me:4438: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d4267 5
a4271 6
  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi
d4274 1
a4274 1
#define HAVE_NDBM 1
a4275 6
    have_ndbm=yes
    if test "$db_type" = "unknown"; then
      db_type=ndbm
      DBLIB="$LIB_NDBM"
    fi
  else
d4277 1
a4277 2
    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey
d4279 3
a4281 8
for ac_header in 				\
	  gdbm/ndbm.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:4468: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d4285 1
a4285 1
#line 4474 "configure"
d4287 11
a4297 1
#include <$ac_header>
d4299 3
a4301 18
if { (eval echo "$as_me:4478: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4484: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d4305 1
a4305 1
  eval "$as_ac_Header=no"
d4307 1
a4307 1
rm -f conftest.err conftest.$ac_ext
d4309 8
a4316 5
echo "$as_me:4503: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a4319 1
done
d4321 3
a4323 3
echo "$as_me:4513: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d4326 2
a4327 14

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" gdbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 4531 "configure"
d4329 1
a4329 5

    #include <stdio.h>
    #include <gdbm/ndbm.h>
    DBM *dbm;

d4333 4
a4336 1
dbm_firstkey(NULL)
d4341 3
a4343 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4547: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4550: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4553: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4556: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d4346 15
a4360 1
cat conftest.$ac_ext >&5
d4362 17
a4378 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
d4380 1
d4383 7
d4391 3
a4393 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d4395 1
a4395 1
if false; then
d4397 3
a4399 6
for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:4578: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4403 1
a4403 1
#line 4584 "configure"
d4405 5
a4409 4
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
d4411 3
a4413 1
extern "C"
a4414 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d4419 1
a4419 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d4424 3
a4426 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4615: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4618: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4621: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4624: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4429 2
a4430 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d4432 1
a4432 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4434 2
a4435 6
echo "$as_me:4634: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d4437 2
a4438 15
fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d4441 1
a4441 31
	echo "$as_me:4658: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:4664: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:4678: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
	LIB_NDBM=""
      fi
d4444 1
a4444 1
#define HAVE_NDBM 1
a4445 7
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
	db_type=ndbm
	DBLIB="$LIB_NDBM"
      fi
    fi
  fi
d4447 1
a4447 1
fi # unknown
d4449 4
a4452 7
if test "$have_ndbm" = "yes"; then
  echo "$as_me:4704: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:4707: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d4455 1
a4455 1
#line 4712 "configure"
d4457 3
d4461 2
a4462 10
#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#endif
int main()
d4464 2
a4465 6
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
d4469 13
a4481 15
rm -f conftest$ac_exeext
if { (eval echo "$as_me:4736: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4739: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:4741: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4744: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

    if test -f conftest.db; then
      echo "$as_me:4748: result: yes" >&5
echo "${ECHO_T}yes" >&6
d4484 1
a4484 1
#define HAVE_NEW_DB 1
a4486 13
    else
      echo "$as_me:4756: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:4763: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d4489 7
a4495 3
echo "$as_me:4770: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
a4497 2
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
d4499 1
a4499 1
#line 4778 "configure"
d4501 1
a4501 4
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif
d4504 13
a4516 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4787: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4790: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4793: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4796: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
d4518 1
d4520 2
a4521 1
cat conftest.$ac_ext >&5
d4523 1
a4523 2
rm -f conftest.$ac_objext conftest.$ac_ext
done
d4526 5
a4530 7
echo "$as_me:4807: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
a4531 6
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac
d4533 10
a4542 3
echo "$as_me:4822: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
d4546 1
a4546 1
#line 4828 "configure"
d4548 3
a4550 49

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
d4552 1
a4553 3
  ;
  return 0;
}
d4555 13
a4567 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4886: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4889: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4892: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4895: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
d4569 1
d4571 2
a4572 2
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d4574 2
a4575 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4577 7
a4583 6
echo "$as_me:4905: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
d4587 6
d4594 3
a4596 3
echo "$as_me:4915: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
d4600 1
a4600 1
#line 4921 "configure"
d4602 1
a4602 4
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
d4605 3
a4607 9
if { (eval echo "$as_me:4929: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4935: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d4615 1
d4617 1
a4617 1
  ac_cv_header_stdc=yes
d4619 1
d4622 1
a4622 1
  ac_cv_header_stdc=no
d4624 1
a4624 1
rm -f conftest.err conftest.$ac_ext
d4626 7
a4632 6
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 4957 "configure"
#include "confdefs.h"
#include <string.h>
d4634 43
d4678 3
a4680 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
d4682 5
a4686 1
  ac_cv_header_stdc=no
d4688 6
a4693 1
rm -f conftest*
d4696 1
d4698 6
a4703 6
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 4975 "configure"
#include "confdefs.h"
#include <stdlib.h>
d4705 2
a4706 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
d4708 3
a4710 1
  ac_cv_header_stdc=no
d4712 7
a4718 1
rm -f conftest*
d4721 7
d4729 2
a4730 3
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
d4734 1
a4734 1
#line 4996 "configure"
a4735 10
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
d4737 4
a4740 3
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
d4742 1
a4742 6
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
d4744 1
d4747 4
a4750 10
if { (eval echo "$as_me:5022: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5025: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5027: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5030: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4756 1
a4756 1
ac_cv_header_stdc=no
d4758 2
a4759 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d4761 1
d4763 3
a4765 4
fi
echo "$as_me:5043: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
d4768 1
a4768 1
#define STDC_HEADERS 1
d4773 16
a4788 1
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d4790 3
a4792 7
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5059: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d4796 1
a4796 1
#line 5065 "configure"
d4798 6
a4803 2
$ac_includes_default
#include <$ac_header>
d4805 3
a4807 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5071: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5074: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5077: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5080: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
d4809 1
a4809 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
d4811 2
a4812 1
rm -f conftest.$ac_objext conftest.$ac_ext
d4814 6
a4819 5
echo "$as_me:5090: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a4822 1
done
d4824 4
a4827 3
echo "$as_me:5100: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
d4831 1
a4831 1
#line 5106 "configure"
d4833 6
a4838 1
$ac_includes_default
d4842 1
a4842 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d4848 2
a4849 12
if { (eval echo "$as_me:5121: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5124: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5127: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5130: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
d4852 2
a4853 2
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
d4857 9
a4865 15
echo "$as_me:5140: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define size_t unsigned
EOF

fi

echo "$as_me:5152: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
d4869 1
a4869 1
#line 5158 "configure"
d4875 1
a4875 1
if ((pid_t *) 0)
d4877 1
a4877 1
if (sizeof (pid_t))
d4884 2
a4885 12
if { (eval echo "$as_me:5173: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5176: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5179: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5182: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_pid_t=yes
d4888 2
a4889 2
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
d4893 3
a4895 5
echo "$as_me:5192: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else
d4898 1
a4898 1
#define pid_t int
a4902 19
echo "$as_me:5204: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5210 "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

a4903 3
echo "$as_me:5224: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
d4905 2
a4906 6
cat >>confdefs.h <<\EOF
#define uid_t int
EOF

cat >>confdefs.h <<\EOF
#define gid_t int
d4911 51
a4961 18
echo "$as_me:5238: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5244 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif
d4963 2
a4964 93
int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5266: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5269: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5272: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5275: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signal=void
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:5285: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF

if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
EOF

fi

echo "$as_me:5300: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5306 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5322: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5325: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5328: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5331: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:5341: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi
d4966 1
a4966 4
for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5354: checking for $ac_header" >&5
d4968 1
a4968 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d4972 1
a4972 1
#line 5360 "configure"
d4975 1
d4977 3
a4979 9
if { (eval echo "$as_me:5364: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5370: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d4987 1
d4989 1
a4989 1
  eval "$as_ac_Header=yes"
d4991 1
d4994 1
a4994 1
  eval "$as_ac_Header=no"
d4996 2
a4997 1
rm -f conftest.err conftest.$ac_ext
d4999 3
a5001 3
echo "$as_me:5389: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d5003 1
a5003 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d5009 7
a5015 1
for i in netinet/ip.h netinet/tcp.h; do
d5017 3
a5019 6
cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:5403: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5021 3
a5023 8
  cat >conftest.$ac_ext <<_ACEOF
#line 5409 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>
d5025 3
a5027 14
_ACEOF
if { (eval echo "$as_me:5418: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5424: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d5029 2
a5030 1
  ac_cpp_err=yes
d5032 4
a5035 2
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
d5037 2
a5038 3
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
a5039 10
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5443: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
d5041 6
d5048 3
a5050 9
done
if false;then

for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5459: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d5053 10
a5062 2
  cat >conftest.$ac_ext <<_ACEOF
#line 5465 "configure"
d5064 5
a5068 1
#include <$ac_header>
d5070 5
a5074 15
if { (eval echo "$as_me:5469: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5475: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d5076 1
a5076 15
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5494: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF
d5078 5
a5082 2
fi
done
d5084 10
d5095 185
d5281 3
a5283 1
for ac_func in getlogin setlogin
d5285 2
a5286 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5509: checking for $ac_func" >&5
d5288 1
a5288 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5292 1
a5292 1
#line 5515 "configure"
d5323 2
a5324 12
if { (eval echo "$as_me:5546: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5549: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5552: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5555: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d5327 2
a5328 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d5330 1
a5330 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5332 3
a5334 3
echo "$as_me:5565: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d5336 1
a5336 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d5342 5
a5346 6
if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:5576: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d5348 7
a5354 5
if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi
d5356 15
a5370 4
fi
echo "$as_me:5589: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then
d5372 2
a5373 2
cat >>confdefs.h <<\EOF
#define POSIX_GETLOGIN 1
d5376 7
a5382 1
fi
d5385 3
a5387 3
echo "$as_me:5600: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
d5391 11
a5401 6
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5611 "configure"
d5404 2
a5405 4
#include <stddef.h>
#include <stdlib.h>

int main()
d5407 3
a5409 1
	return realloc(NULL, 17) == NULL;
a5410 1

d5412 3
a5414 12
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5624: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5627: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5629: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5632: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d5416 2
a5417 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_realloc_broken=yes
d5419 4
a5422 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a5425 3
echo "$as_me:5645: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then
d5427 1
a5427 3
cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
EOF
d5429 1
a5429 1
fi
d5431 6
a5436 20
DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi

echo "$as_me:5672: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
d5440 1
a5440 1
#line 5678 "configure"
d5442 22
a5463 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d5465 4
a5468 1
#include <unistd.h>
d5470 3
a5472 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_ssize_t=yes
d5474 13
a5486 1
  ac_cv_type_ssize_t=no
d5488 1
a5488 1
rm -f conftest*
d5491 28
a5518 3
echo "$as_me:5696: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then
d5520 2
a5521 2
cat >>confdefs.h <<\EOF
#define ssize_t int
d5524 7
d5533 3
a5535 4
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:5707: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d5538 12
a5549 2
  cat >conftest.$ac_ext <<_ACEOF
#line 5713 "configure"
a5550 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d5555 1
a5555 1
long long foo;
d5560 3
a5562 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5730: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5733: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5736: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5739: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d5565 6
a5570 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d5572 1
a5572 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5574 3
a5576 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:5750: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d5578 7
a5584 3
	echo "$as_me:5755: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d5588 1
a5588 1
#line 5761 "configure"
d5590 12
a5601 1
$ac_includes_default
d5605 9
a5613 4
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
d5618 3
a5620 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:5776: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:5779: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:5782: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5785: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
d5623 2
a5624 2
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
d5626 1
a5626 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5628 5
a5632 6
echo "$as_me:5795: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
d5636 1
d5639 28
d5668 2
a5669 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d5672 7
d5681 20
a5700 147
for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	grp.h					\
	ifaddrs.h				\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5861: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5867 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:5871: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:5877: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:5896: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi

if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi

if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi

if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi

echo "$as_me:5938: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 5956 "configure"
#include "confdefs.h"

int
d5703 1
a5703 1
socket()
d5709 2
a5710 12
if { (eval echo "$as_me:5968: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5971: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5974: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5977: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d5713 1
a5713 1
cat conftest.$ac_ext >&5
d5715 1
a5715 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5717 1
a5717 1
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
d5723 1
a5723 1
eval "ac_res=\$ac_cv_funclib_socket"
d5727 1
a5727 1
for ac_func in socket
d5729 2
a5730 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5999: checking for $ac_func" >&5
d5732 1
a5732 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5736 1
a5736 1
#line 6005 "configure"
d5767 2
a5768 12
if { (eval echo "$as_me:6036: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6039: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6042: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6045: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d5771 2
a5772 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d5774 1
a5774 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5776 3
a5778 3
echo "$as_me:6055: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d5780 1
a5780 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d5787 2
a5788 2
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d5790 1
a5790 1
eval "LIB_socket=$ac_res"
d5794 2
a5795 2
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
d5800 1
a5800 1
	echo "$as_me:6079: result: yes" >&5
d5804 3
a5806 3
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:6085: result: no" >&5
d5810 1
a5810 1
	eval "ac_cv_func_socket=yes"
d5820 1
a5820 1
	echo "$as_me:6099: result: yes, in $ac_res" >&5
d5825 2
a5826 2
if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d5829 3
a5831 3
echo "$as_me:6108: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
d5835 1
a5835 1
if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
d5837 6
a5842 8
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d5845 1
a5845 1
#line 6126 "configure"
d5848 14
d5865 1
a5865 1
gethostbyname()
d5871 2
a5872 12
if { (eval echo "$as_me:6138: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6141: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6144: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6147: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d5875 1
a5875 1
cat conftest.$ac_ext >&5
d5877 1
a5877 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5879 1
a5879 1
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
d5885 1
a5885 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
d5889 1
a5889 1
for ac_func in gethostbyname
d5891 2
a5892 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6169: checking for $ac_func" >&5
d5894 1
a5894 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5898 1
a5898 1
#line 6175 "configure"
d5929 2
a5930 12
if { (eval echo "$as_me:6206: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6209: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6212: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6215: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d5933 2
a5934 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d5936 1
a5936 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5938 3
a5940 3
echo "$as_me:6225: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d5942 1
a5942 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d5949 2
a5950 2
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d5952 1
a5952 1
eval "LIB_gethostbyname=$ac_res"
d5956 2
a5957 2
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
d5962 1
a5962 1
	echo "$as_me:6249: result: yes" >&5
d5966 3
a5968 3
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:6255: result: no" >&5
d5972 1
a5972 1
	eval "ac_cv_func_gethostbyname=yes"
d5982 1
a5982 1
	echo "$as_me:6269: result: yes, in $ac_res" >&5
d5987 2
a5988 2
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
d5991 3
a5993 3
echo "$as_me:6278: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
d5997 1
a5997 1
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
d5999 6
a6004 8
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d6007 1
a6007 1
#line 6296 "configure"
d6010 14
d6027 1
a6027 1
syslog()
d6033 2
a6034 12
if { (eval echo "$as_me:6308: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6311: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6314: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6317: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d6037 1
a6037 1
cat conftest.$ac_ext >&5
d6039 1
a6039 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6041 1
a6041 1
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
d6047 1
a6047 1
eval "ac_res=\$ac_cv_funclib_syslog"
d6051 1
a6051 1
for ac_func in syslog
d6053 2
a6054 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6339: checking for $ac_func" >&5
d6056 1
a6056 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d6060 1
a6060 1
#line 6345 "configure"
d6091 2
a6092 12
if { (eval echo "$as_me:6376: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6379: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6382: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6385: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d6095 2
a6096 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d6098 1
a6098 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6100 3
a6102 3
echo "$as_me:6395: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d6104 1
a6104 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d6111 2
a6112 2
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6114 1
a6114 1
eval "LIB_syslog=$ac_res"
d6118 2
a6119 2
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
d6124 1
a6124 1
	echo "$as_me:6419: result: yes" >&5
d6128 3
a6130 3
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:6425: result: no" >&5
d6134 1
a6134 1
	eval "ac_cv_func_syslog=yes"
d6144 1
a6144 1
	echo "$as_me:6439: result: yes, in $ac_res" >&5
d6149 2
a6150 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
d6153 3
a6155 10
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"

if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
save_CFLAGS="${CFLAGS}"
if test "${ac_cv_lib_ipv6+set}" = set; then
d6158 6
a6163 10
  v6type=unknown
v6lib=none

echo "$as_me:6463: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line 6469 "configure"
d6166 8
a6173 4
#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
d6175 11
a6185 5
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
a6186 7
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line 6488 "configure"
#include "confdefs.h"
d6188 1
a6188 10
#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
a6189 7
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line 6507 "configure"
#include "confdefs.h"
a6190 10
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
d6192 2
a6193 1
rm -f conftest*
d6195 1
a6195 5
		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line 6526 "configure"
#include "confdefs.h"
d6197 3
a6199 16
#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line 6543 "configure"
#include "confdefs.h"
a6200 10
#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
d6202 1
a6202 1
rm -f conftest*
d6204 8
a6211 27
		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done
echo "$as_me:6573: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi
cat >conftest.$ac_ext <<_ACEOF
#line 6585 "configure"
d6213 1
a6213 14

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

d6217 3
a6219 10

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
d6225 3
a6227 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6620: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6623: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6626: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6629: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ipv6=yes
d6230 2
a6231 2
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
d6233 1
a6233 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6235 2
d6238 1
a6238 5
echo "$as_me:6640: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "$as_me:6642: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then
d6241 1
a6241 1
#define HAVE_IPV6 1
a6243 2
else
  CFLAGS="${save_CFLAGS}"
d6246 7
a6252 4
if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:6655: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
d6255 7
d6263 3
a6265 3
	cat >conftest.$ac_ext <<_ACEOF
#line 6662 "configure"
#include "confdefs.h"
d6267 1
a6267 14
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
int
main ()
d6269 7
d6277 3
a6279 5
struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;

  ;
  return 0;
d6282 53
a6334 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6689: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6692: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6695: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6698: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_in6addr_loopback=yes
d6337 2
a6338 2
cat conftest.$ac_ext >&5
ac_cv_var_in6addr_loopback=no
d6340 1
a6340 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6342 4
a6345 3
echo "$as_me:6708: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then
d6348 1
a6348 1
#define HAVE_IN6ADDR_LOOPBACK 1
a6350 1
	fi
d6353 7
a6359 3
echo "$as_me:6719: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
d6362 3
a6364 14

if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 6737 "configure"
d6367 2
d6372 4
a6375 1
gethostbyname2()
d6381 46
a6426 12
if { (eval echo "$as_me:6749: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6752: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6755: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6758: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d6429 16
a6444 1
cat conftest.$ac_ext >&5
d6446 1
a6446 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
d6449 2
d6453 7
a6459 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
d6461 21
a6481 1
if false; then
a6482 1
for ac_func in gethostbyname2
d6484 2
a6485 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6780: checking for $ac_func" >&5
d6487 1
a6487 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d6491 1
a6491 1
#line 6786 "configure"
d6522 2
a6523 12
if { (eval echo "$as_me:6817: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6820: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6823: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6826: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d6526 2
a6527 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d6529 1
a6529 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6531 3
a6533 3
echo "$as_me:6836: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d6535 1
a6535 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d6541 2
a6543 4
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"
d6545 3
a6547 40
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:6860: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:6866: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:6880: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
fi

echo "$as_me:6889: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
d6551 1
a6551 1
if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
d6553 6
a6558 8
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d6561 1
a6561 1
#line 6907 "configure"
a6562 2

#include <stdio.h>
d6566 2
a6567 5
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
a6568 4
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

d6572 1
a6572 1
res_search(0,0,0,0,0)
d6578 2
a6579 12
if { (eval echo "$as_me:6933: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6936: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6939: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6942: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d6582 1
a6582 1
cat conftest.$ac_ext >&5
d6584 1
a6584 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6586 1
a6586 1
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
d6592 1
a6592 1
eval "ac_res=\$ac_cv_funclib_res_search"
d6596 1
a6596 1
for ac_func in res_search
d6598 2
a6599 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6964: checking for $ac_func" >&5
d6601 1
a6601 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d6605 1
a6605 1
#line 6970 "configure"
d6636 2
a6637 12
if { (eval echo "$as_me:7001: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7004: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7007: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7010: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d6640 2
a6641 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d6643 1
a6643 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6645 3
a6647 3
echo "$as_me:7020: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d6649 1
a6649 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d6656 2
a6657 2
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6659 1
a6659 1
eval "LIB_res_search=$ac_res"
d6663 2
a6664 2
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
d6669 1
a6669 1
	echo "$as_me:7044: result: yes" >&5
d6673 3
a6675 3
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:7050: result: no" >&5
d6679 1
a6679 1
	eval "ac_cv_func_res_search=yes"
d6689 1
a6689 1
	echo "$as_me:7064: result: yes, in $ac_res" >&5
d6694 3
a6696 7
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi

echo "$as_me:7073: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
d6700 1
a6700 1
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
d6702 6
a6707 8
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d6710 1
a6710 1
#line 7091 "configure"
a6711 2

#include <stdio.h>
d6715 2
a6716 8
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
a6717 1

d6721 1
a6721 1
dn_expand(0,0,0,0,0)
d6727 2
a6728 12
if { (eval echo "$as_me:7117: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7120: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7123: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7126: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d6731 1
a6731 1
cat conftest.$ac_ext >&5
d6733 1
a6733 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6735 1
a6735 1
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
d6741 1
a6741 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d6745 1
a6745 1
for ac_func in dn_expand
d6747 2
a6748 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7148: checking for $ac_func" >&5
d6750 1
a6750 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d6754 1
a6754 1
#line 7154 "configure"
d6785 2
a6786 12
if { (eval echo "$as_me:7185: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7188: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7191: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7194: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d6789 2
a6790 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d6792 1
a6792 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6794 3
a6796 3
echo "$as_me:7204: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d6798 1
a6798 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d6805 2
a6806 2
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d6808 1
a6808 1
eval "LIB_dn_expand=$ac_res"
d6812 2
a6813 2
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
d6818 1
a6818 1
	echo "$as_me:7228: result: yes" >&5
d6822 3
a6824 3
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:7234: result: no" >&5
d6828 1
a6828 1
	eval "ac_cv_func_dn_expand=yes"
d6838 1
a6838 1
	echo "$as_me:7248: result: yes, in $ac_res" >&5
d6843 42
a6884 2
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d6887 10
a6896 3
echo "$as_me:7257: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
a6898 4
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
d6900 1
a6900 1
#line 7267 "configure"
d6902 11
d6914 2
a6915 3
#include <stdio.h>
#include <string.h>
int main()
d6917 11
a6927 3
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
d6930 3
a6932 12
rm -f conftest$ac_exeext
if { (eval echo "$as_me:7280: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7283: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:7285: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7288: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d6934 5
a6938 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_snprintf_working=no
d6940 7
a6946 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6948 2
d6951 12
a6962 2
echo "$as_me:7300: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
d6964 15
a6978 1
if test "$ac_cv_func_snprintf_working" = yes; then
d6980 2
a6981 2
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
d6984 11
a6995 1
if test "$ac_cv_func_snprintf_working" = yes; then
d6997 6
a7002 4
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:7313: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
d7006 1
a7006 1
#line 7319 "configure"
d7008 4
a7011 1
#include <stdio.h>
d7016 2
a7017 2
extern int snprintf (struct foo*);
snprintf(&xx);
d7024 2
a7025 12
if { (eval echo "$as_me:7334: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7337: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7340: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7343: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_snprintf_noproto=yes"
d7028 2
a7029 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
d7033 2
a7034 2
echo "$as_me:7353: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
d7036 1
a7036 1
if test "$ac_cv_func_snprintf_noproto" = yes; then
d7039 1
a7039 1
#define NEED_SNPRINTF_PROTO 1
d7048 6
a7053 3
echo "$as_me:7368: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
a7055 4
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
d7057 1
a7057 1
#line 7378 "configure"
d7062 2
a7063 3
#include <stdarg.h>

int foo(int num, ...)
d7065 3
a7067 7
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}
d7069 2
a7070 3
int main()
{
	return foo(0, "12");
d7073 3
a7075 12
rm -f conftest$ac_exeext
if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7404: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:7406: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7409: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d7077 3
a7079 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_vsnprintf_working=no
d7081 1
a7081 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7083 2
a7084 3
fi
echo "$as_me:7421: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
d7086 1
a7086 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
d7088 2
a7089 2
cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
a7092 1
if test "$ac_cv_func_vsnprintf_working" = yes; then
d7094 8
a7101 4
if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:7434: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
d7105 1
a7105 1
#line 7440 "configure"
d7107 1
d7109 1
d7114 2
a7115 2
extern int vsnprintf (struct foo*);
vsnprintf(&xx);
d7122 2
a7123 12
if { (eval echo "$as_me:7455: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7458: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7461: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7464: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
d7126 2
a7127 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
d7131 2
a7132 2
echo "$as_me:7474: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
d7134 1
a7134 1
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
d7137 1
a7137 1
#define NEED_VSNPRINTF_PROTO 1
a7142 1

d7144 1
d7146 4
a7149 3
echo "$as_me:7489: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
d7152 2
a7153 3
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line 7496 "configure"
d7157 1
a7157 1
#include <glob.h>
d7161 3
a7163 9

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);
d7169 3
a7171 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7519: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7522: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7525: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7528: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d7174 2
a7175 2
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
d7177 1
a7177 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7179 2
a7180 2
echo "$as_me:7538: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6
d7182 1
a7182 1
if test "$ac_cv_func_glob_working" = yes; then
d7185 1
a7185 1
#define HAVE_GLOB 1
a7188 1
if test "$ac_cv_func_glob_working" = yes; then
d7190 8
a7197 4
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:7551: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
d7201 1
a7201 1
#line 7557 "configure"
d7203 1
d7205 1
a7205 1
#include <glob.h>
d7210 2
a7211 2
extern int glob (struct foo*);
glob(&xx);
d7218 2
a7219 12
if { (eval echo "$as_me:7573: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7576: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7579: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7582: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_glob_noproto=yes"
d7222 2
a7223 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_glob_noproto=no"
d7227 2
a7228 2
echo "$as_me:7592: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
d7230 1
a7230 1
if test "$ac_cv_func_glob_noproto" = yes; then
d7233 1
a7233 1
#define NEED_GLOB_PROTO 1
d7239 7
d7247 34
a7282 2
if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.o"
d7285 1
a7285 7
if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi
d7287 1
a7287 27
for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	initstate				\
	issetugid				\
	on_exit					\
	random					\
	setprogname				\
	setstate				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\
d7289 1
d7291 2
a7292 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7649: checking for $ac_func" >&5
d7294 1
a7294 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d7298 1
a7298 1
#line 7655 "configure"
d7329 2
a7330 12
if { (eval echo "$as_me:7686: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7689: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7692: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7695: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d7333 2
a7334 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d7336 1
a7336 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7338 3
a7340 3
echo "$as_me:7705: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d7342 1
a7342 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a7347 2
if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.o"
d7349 37
d7387 3
a7389 3
echo "$as_me:7719: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
d7393 1
a7393 1
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
d7396 5
a7400 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d7403 1
a7403 1
#line 7737 "configure"
d7405 2
a7406 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d7411 1
a7411 1
getsockopt(0,0,0,0,0)
d7417 2
a7418 12
if { (eval echo "$as_me:7754: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7757: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7760: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7763: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d7421 1
a7421 1
cat conftest.$ac_ext >&5
d7423 1
a7423 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7425 1
a7425 1
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
d7431 1
a7431 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
d7435 1
a7435 1
for ac_func in getsockopt
d7437 2
a7438 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7785: checking for $ac_func" >&5
d7440 1
a7440 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d7444 1
a7444 1
#line 7791 "configure"
d7475 2
a7476 12
if { (eval echo "$as_me:7822: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7825: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7828: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7831: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d7479 2
a7480 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d7482 1
a7482 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7484 3
a7486 3
echo "$as_me:7841: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d7488 1
a7488 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d7495 2
a7496 2
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d7498 1
a7498 1
eval "LIB_getsockopt=$ac_res"
d7502 2
a7503 2
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
d7508 1
a7508 1
	echo "$as_me:7865: result: yes" >&5
d7512 3
a7514 3
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:7871: result: no" >&5
d7518 1
a7518 1
	eval "ac_cv_func_getsockopt=yes"
d7528 1
a7528 1
	echo "$as_me:7885: result: yes, in $ac_res" >&5
d7533 3
a7535 3
echo "$as_me:7890: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
d7539 1
a7539 1
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
d7541 6
a7546 8
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d7549 1
a7549 1
#line 7908 "configure"
d7551 2
a7552 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d7557 1
a7557 1
setsockopt(0,0,0,0,0)
d7563 2
a7564 12
if { (eval echo "$as_me:7925: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7928: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7931: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7934: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d7567 1
a7567 1
cat conftest.$ac_ext >&5
d7569 1
a7569 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7571 1
a7571 1
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
d7577 1
a7577 1
eval "ac_res=\$ac_cv_funclib_setsockopt"
d7581 1
a7581 1
for ac_func in setsockopt
d7583 2
a7584 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7956: checking for $ac_func" >&5
d7586 1
a7586 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d7590 1
a7590 1
#line 7962 "configure"
d7621 2
a7622 12
if { (eval echo "$as_me:7993: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7996: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7999: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8002: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d7625 2
a7626 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d7628 1
a7628 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7630 3
a7632 3
echo "$as_me:8012: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d7634 1
a7634 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d7641 2
a7642 2
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d7644 1
a7644 1
eval "LIB_setsockopt=$ac_res"
d7648 2
a7649 2
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
d7654 1
a7654 1
	echo "$as_me:8036: result: yes" >&5
d7658 3
a7660 3
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:8042: result: no" >&5
d7664 1
a7664 1
	eval "ac_cv_func_setsockopt=yes"
d7674 1
a7674 1
	echo "$as_me:8056: result: yes, in $ac_res" >&5
d7679 72
a7750 3
echo "$as_me:8061: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
d7753 2
a7754 14

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8079 "configure"
d7756 6
a7761 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d7763 5
d7771 9
a7779 1
hstrerror(17)
d7785 2
a7786 12
if { (eval echo "$as_me:8093: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8096: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8099: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8102: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
d7789 2
a7790 1
cat conftest.$ac_ext >&5
d7792 1
a7792 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
d7794 8
d7803 2
d7807 1
a7807 1
eval "ac_res=\$ac_cv_funclib_hstrerror"
d7809 66
a7874 1
if false; then
a7875 1
for ac_func in hstrerror
d7877 2
a7878 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8124: checking for $ac_func" >&5
d7880 1
a7880 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d7884 1
a7884 1
#line 8130 "configure"
d7915 2
a7916 12
if { (eval echo "$as_me:8161: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8164: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8167: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8170: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d7919 2
a7920 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d7922 1
a7922 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7924 3
a7926 3
echo "$as_me:8180: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d7928 1
a7928 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d7935 27
a7961 4
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"
d7963 27
a7989 5
case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<EOF
d7993 1
a7993 1
	echo "$as_me:8204: result: yes" >&5
d7995 2
a7996 5
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:8210: result: no" >&5
d7998 1
a7998 19
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8224: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
d8000 2
d8003 6
a8008 10
if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
LIBOBJS="$LIBOBJS hstrerror.o"
fi

if test "$ac_cv_func_hstrerror" = yes; then

if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:8240: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
d8012 1
a8012 1
#line 8246 "configure"
d8014 11
a8025 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d8029 8
a8036 3
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);
d8042 3
a8044 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8264: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8267: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8270: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8273: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_hstrerror_noproto=yes"
d8047 2
a8048 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_hstrerror_noproto=no"
d8050 1
a8050 1
rm -f conftest.$ac_objext conftest.$ac_ext
d8052 5
a8056 7
echo "$as_me:8283: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6

if test "$ac_cv_func_hstrerror_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_HSTRERROR_PROTO 1
d8060 1
d8064 5
a8068 8
fi

if test "$ac_cv_func_asprintf" = yes; then

if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:8301: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
d8072 1
a8072 1
#line 8307 "configure"
d8074 12
a8085 3

#include <stdio.h>
#include <string.h>
d8089 9
a8097 3
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d8103 3
a8105 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8324: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8327: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8330: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8333: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_asprintf_noproto=yes"
d8108 2
a8109 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_asprintf_noproto=no"
d8111 1
a8111 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8112 2
echo "$as_me:8343: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
d8114 4
a8117 4
if test "$ac_cv_func_asprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_ASPRINTF_PROTO 1
d8120 6
d8127 2
d8130 6
a8135 8
fi
fi
if test "$ac_cv_func_vasprintf" = yes; then

if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:8359: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
d8139 1
a8139 1
#line 8365 "configure"
d8141 11
a8152 2
#include <stdio.h>
#include <string.h>
d8156 8
a8163 3
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);
d8169 3
a8171 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8382: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8385: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8388: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8391: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasprintf_noproto=yes"
d8174 2
a8175 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasprintf_noproto=no"
d8177 1
a8177 1
rm -f conftest.$ac_objext conftest.$ac_ext
d8179 5
a8183 7
echo "$as_me:8401: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6

if test "$ac_cv_func_vasprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_VASPRINTF_PROTO 1
d8187 1
a8189 2
fi
if test "$ac_cv_func_asnprintf" = yes; then
d8191 5
a8195 4
if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:8417: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
d8199 1
a8199 1
#line 8423 "configure"
d8201 12
a8212 3

#include <stdio.h>
#include <string.h>
d8216 9
a8224 3
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
d8230 3
a8232 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8440: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8443: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8446: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8449: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_asnprintf_noproto=yes"
d8235 2
a8236 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_asnprintf_noproto=no"
d8238 1
a8238 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8239 2
echo "$as_me:8459: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
d8241 4
a8244 4
if test "$ac_cv_func_asnprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_ASNPRINTF_PROTO 1
d8247 2
a8248 11
fi

fi
fi
if test "$ac_cv_func_vasnprintf" = yes; then

if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:8475: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d8250 3
a8252 34
  cat >conftest.$ac_ext <<_ACEOF
#line 8481 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8498: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8501: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8504: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8507: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasnprintf_noproto=no"
d8254 1
a8254 74
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8517: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6

if test "$ac_cv_func_vasnprintf_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_VASNPRINTF_PROTO 1
EOF

fi

fi
fi

echo "$as_me:8531: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8549 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
int
main ()
{
bswap16(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8563: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8566: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8569: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8572: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_bswap16"

d8257 1
a8257 1
for ac_func in bswap16
d8259 2
a8260 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8594: checking for $ac_func" >&5
d8262 1
a8262 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8266 1
a8266 1
#line 8600 "configure"
d8297 2
a8298 12
if { (eval echo "$as_me:8631: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8634: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8301 2
a8302 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d8304 1
a8304 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8306 3
a8308 3
echo "$as_me:8650: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d8310 1
a8310 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a8316 4
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"
d8318 3
a8320 36
case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:8674: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	echo "$as_me:8680: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8694: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:8699: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap32+set}" = set; then
d8324 2
a8325 13
if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8717 "configure"
d8327 2
a8328 3
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
d8332 1
a8332 1
bswap32(0)
d8337 3
a8339 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8731: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8734: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8737: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8740: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
d8342 2
a8343 1
cat conftest.$ac_ext >&5
d8345 1
a8345 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
d8347 7
d8357 1
a8357 1
eval "ac_res=\$ac_cv_funclib_bswap32"
d8359 3
a8361 8
if false; then

for ac_func in bswap32
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8762: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8364 4
d8369 1
a8369 1
#line 8768 "configure"
d8371 14
a8384 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d8386 31
a8416 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d8418 10
d8431 3
a8433 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d8439 3
a8441 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8799: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8802: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8805: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8808: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8444 2
a8445 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d8447 1
a8447 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8449 8
a8456 6
echo "$as_me:8818: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
a8458 1
done
a8460 4
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"
d8462 4
a8465 36
case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:8842: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	echo "$as_me:8848: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:8862: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:8867: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
d8468 2
a8469 14

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 8885 "configure"
d8471 1
a8471 3
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
d8475 4
a8478 1
pidfile(0)
d8483 3
a8485 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8899: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8902: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8905: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8908: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d8488 2
a8489 1
cat conftest.$ac_ext >&5
d8491 1
a8491 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d8493 8
d8504 1
a8504 1
eval "ac_res=\$ac_cv_funclib_pidfile"
d8506 4
a8509 8
if false; then

for ac_func in pidfile
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8930: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8513 1
a8513 1
#line 8936 "configure"
d8515 1
a8515 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d8519 3
a8521 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d8527 3
a8529 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8967: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8970: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8973: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8976: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8532 2
a8533 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d8535 1
a8535 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8537 7
a8543 5
echo "$as_me:8986: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a8546 1
done
a8548 4
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"
d8550 4
a8553 36
case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:9010: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:9016: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:9030: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:9035: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
d8556 2
a8557 14

if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 9053 "configure"
d8559 1
a8559 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d8563 4
a8566 1
getaddrinfo(0,0,0,0)
d8571 3
a8573 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9067: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9070: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9073: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9076: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
d8576 2
a8577 1
cat conftest.$ac_ext >&5
d8579 1
a8579 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d8581 8
d8592 1
a8592 1
eval "ac_res=\$ac_cv_funclib_getaddrinfo"
d8594 4
a8597 8
if false; then

for ac_func in getaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9098: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8601 1
a8601 1
#line 9104 "configure"
d8603 1
a8603 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d8607 3
a8609 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d8615 3
a8617 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9135: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9138: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9141: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9144: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8620 2
a8621 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d8623 1
a8623 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8625 7
a8631 5
echo "$as_me:9154: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a8634 1
done
a8636 4
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getaddrinfo=$ac_res"
d8638 9
a8646 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d8648 37
a8684 15
	echo "$as_me:9178: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	echo "$as_me:9184: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d8686 2
a8687 2
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
a8689 7
	echo "$as_me:9198: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
a8691 2
if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
LIBOBJS="$LIBOBJS getaddrinfo.o"
d8694 3
a8696 3
echo "$as_me:9211: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getnameinfo+set}" = set; then
d8700 1
a8700 1
if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
d8702 6
a8707 8
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d8710 1
a8710 1
#line 9229 "configure"
d8712 1
a8712 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d8716 1
a8716 1
getnameinfo(0,0,0,0,0,0,0)
d8722 2
a8723 12
if { (eval echo "$as_me:9243: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9246: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9249: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9252: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
d8726 1
a8726 1
cat conftest.$ac_ext >&5
d8728 1
a8728 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8730 1
a8730 1
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
d8736 1
a8736 1
eval "ac_res=\$ac_cv_funclib_getnameinfo"
d8740 1
a8740 1
for ac_func in getnameinfo
d8742 2
a8743 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9274: checking for $ac_func" >&5
d8745 1
a8745 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8749 1
a8749 1
#line 9280 "configure"
d8780 2
a8781 12
if { (eval echo "$as_me:9311: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9314: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9317: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9320: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8784 2
a8785 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d8787 1
a8787 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8789 3
a8791 3
echo "$as_me:9330: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d8793 1
a8793 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d8800 2
a8801 2
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d8803 1
a8803 1
eval "LIB_getnameinfo=$ac_res"
d8807 2
a8808 2
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
d8813 1
a8813 1
	echo "$as_me:9354: result: yes" >&5
d8817 3
a8819 3
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	echo "$as_me:9360: result: no" >&5
d8823 1
a8823 1
	eval "ac_cv_func_getnameinfo=yes"
d8833 1
a8833 1
	echo "$as_me:9374: result: yes, in $ac_res" >&5
d8838 3
a8840 11
if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
fi

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
LIBOBJS="$LIBOBJS getnameinfo.o"
fi

echo "$as_me:9387: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
d8843 3
d8847 12
a8858 14
if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 9405 "configure"
#include "confdefs.h"
d8862 1
d8866 1
a8866 1
freeaddrinfo(0)
d8871 3
a8873 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9419: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9422: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9425: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9428: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
d8876 2
a8877 1
cat conftest.$ac_ext >&5
d8879 1
a8879 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d8881 2
d8884 1
a8884 1
fi
d8886 3
a8888 1
eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
d8890 1
a8890 1
if false; then
d8892 3
a8894 6
for ac_func in freeaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9450: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d8898 1
a8898 1
#line 9456 "configure"
d8900 15
a8914 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a8915 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d8920 1
a8920 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d8925 3
a8927 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9487: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9490: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9493: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9496: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d8930 2
a8931 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d8933 1
a8933 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8935 2
a8936 6
echo "$as_me:9506: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d8938 1
a8938 2
fi
done
d8940 2
a8941 32
fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:9530: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	echo "$as_me:9536: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
a8943 7
	echo "$as_me:9550: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
d8946 3
a8948 7
if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
LIBOBJS="$LIBOBJS freeaddrinfo.o"
fi

echo "$as_me:9563: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
if test "${ac_cv_funclib_gai_strerror+set}" = set; then
d8951 3
d8955 12
a8966 14
if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 9581 "configure"
#include "confdefs.h"
d8970 1
d8974 1
a8974 1
gai_strerror(0)
d8979 3
a8981 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9595: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9598: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9601: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9604: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
d8984 2
a8985 1
cat conftest.$ac_ext >&5
d8987 1
a8987 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
d8989 2
d8992 1
a8992 1
fi
d8994 3
a8996 1
eval "ac_res=\$ac_cv_funclib_gai_strerror"
d8998 1
a8998 1
if false; then
d9000 3
a9002 6
for ac_func in gai_strerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9626: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9006 1
a9006 1
#line 9632 "configure"
d9008 48
a9055 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a9056 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9061 1
a9061 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9066 3
a9068 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9663: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9666: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9669: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9672: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9071 2
a9072 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d9074 1
a9074 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9076 7
a9082 5
echo "$as_me:9682: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9085 1
done
d9087 37
d9125 2
a9126 4
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"
d9128 1
a9128 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d9130 2
a9131 18
	echo "$as_me:9706: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	echo "$as_me:9712: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
a9133 7
	echo "$as_me:9726: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
a9135 2
if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
LIBOBJS="$LIBOBJS gai_strerror.o"
d9138 4
a9141 73
for ac_func in 					\
	chown					\
	copyhostent				\
	daemon					\
	ecalloc					\
	emalloc					\
	erealloc				\
	estrdup					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freehostent				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	localtime_r				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9809: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9145 1
a9145 1
#line 9815 "configure"
d9147 2
a9148 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9153 3
a9155 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d9161 3
a9163 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9846: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9849: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9852: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9855: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9166 2
a9167 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d9169 1
a9169 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9171 4
a9174 3
echo "$as_me:9865: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d9176 2
a9177 3
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9180 9
d9190 5
a9194 2
  LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
d9196 6
a9201 1
if false; then
d9203 26
a9228 67
for ac_func in \
	chown					\
	copyhostent				\
	daemon					\
	ecalloc					\
	emalloc					\
	erealloc				\
	estrdup					\
	err					\
	errx					\
	fchown					\
	flock					\
	fnmatch					\
	freehostent				\
	getcwd					\
	getdtablesize				\
	getegid					\
	geteuid					\
	getgid					\
	gethostname				\
	getifaddrs				\
	getipnodebyaddr				\
	getipnodebyname				\
	getopt					\
	gettimeofday				\
	getuid					\
	getusershell				\
	initgroups				\
	innetgr					\
	iruserok				\
	localtime_r				\
	lstat					\
	memmove					\
	mkstemp					\
	putenv					\
	rcmd					\
	readv					\
	recvmsg					\
	sendmsg					\
	setegid					\
	setenv					\
	seteuid					\
	strcasecmp				\
	strdup					\
	strerror				\
	strftime				\
	strlcat					\
	strlcpy					\
	strlwr					\
	strncasecmp				\
	strndup					\
	strnlen					\
	strptime				\
	strsep					\
	strsep_copy				\
	strtok_r				\
	strupr					\
	swab					\
	unsetenv				\
	verr					\
	verrx					\
	vsyslog					\
	vwarn					\
	vwarnx					\
	warn					\
	warnx					\
	writev					\
d9230 3
a9232 5
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:9950: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9235 3
a9237 2
  cat >conftest.$ac_ext <<_ACEOF
#line 9956 "configure"
d9239 2
a9240 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9244 1
a9244 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9250 2
a9251 12
if { (eval echo "$as_me:9987: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9990: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9993: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9996: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9254 2
a9255 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d9257 2
a9258 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a9259 6
echo "$as_me:10006: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d9261 4
a9264 2
fi
done
d9266 3
a9268 2
fi
done
d9270 3
a9272 5
for ac_func in inet_aton
do
echo "$as_me:10021: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
d9275 3
a9277 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10027 "configure"
d9282 2
a9283 8
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d9285 1
d9289 1
a9289 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
$ac_func(0,0)
#endif

d9294 3
a9296 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10059: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_$ac_func=yes"
d9299 2
a9300 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
d9302 2
a9303 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9306 6
a9311 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
a9313 6
  echo "$as_me:10085: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:10088: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
a9314 2
done
if false; then
d9316 5
a9320 6
for ac_func in inet_aton
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:10098: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9323 3
a9325 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10104 "configure"
d9327 2
a9328 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9332 1
a9332 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9338 2
a9339 12
if { (eval echo "$as_me:10135: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10138: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10141: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10144: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9342 2
a9343 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d9345 2
a9346 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a9347 6
echo "$as_me:10154: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d9349 4
a9352 2
fi
done
d9354 3
a9356 1
fi
d9358 3
a9360 5
for ac_func in inet_ntop
do
echo "$as_me:10168: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
d9363 3
a9365 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10174 "configure"
d9367 2
a9368 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d9370 1
d9374 28
d9403 5
a9407 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
$ac_func(0, 0, 0, 0)
#endif
d9409 9
d9423 2
a9424 12
if { (eval echo "$as_me:10206: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10209: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10212: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10215: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_$ac_func=yes"
d9427 2
a9428 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
d9430 2
a9431 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9434 7
a9440 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9443 4
a9446 2
  echo "$as_me:10232: result: yes" >&5
echo "${ECHO_T}yes" >&6
a9447 6
  echo "$as_me:10235: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
done
if false; then
d9449 2
a9450 10
for ac_func in inet_ntop
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:10245: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10251 "configure"
d9452 2
a9453 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d9455 1
a9455 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9459 1
a9459 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9464 3
a9466 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10282: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10285: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10288: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10291: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9469 2
a9470 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d9472 2
a9473 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9475 7
a9481 5
echo "$as_me:10301: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9484 1
done
d9488 3
a9490 5
for ac_func in inet_pton
do
echo "$as_me:10315: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
d9493 3
a9495 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10321 "configure"
d9497 2
a9498 12
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d9502 1
a9502 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
$ac_func(0,0,0)
#endif

d9508 2
a9509 12
if { (eval echo "$as_me:10353: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10356: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10359: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10362: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_$ac_func=yes"
d9512 2
a9513 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_$ac_func=no"
d9515 2
a9516 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9519 7
a9525 4
if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
  ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
  cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d9528 4
a9531 2
  echo "$as_me:10379: result: yes" >&5
echo "${ECHO_T}yes" >&6
a9532 6
  echo "$as_me:10382: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
done
if false; then
d9534 2
a9535 10
for ac_func in inet_pton
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:10392: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10398 "configure"
d9537 2
a9538 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d9540 1
a9540 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9544 1
a9544 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9549 3
a9551 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10429: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10432: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10435: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10438: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9554 2
a9555 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d9557 2
a9558 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9560 7
a9566 5
echo "$as_me:10448: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9569 1
done
d9573 3
a9575 3
echo "$as_me:10460: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
d9580 1
a9580 1
#line 10467 "configure"
d9582 5
a9586 2
#include <sys/types.h>
#include <sys/socket.h>
d9590 1
a9590 1
struct sockaddr x; x.sa_len;
d9596 2
a9597 12
if { (eval echo "$as_me:10480: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10483: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10486: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10489: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr_sa_len=yes
d9600 2
a9601 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
d9604 1
d9606 4
a9609 3
echo "$as_me:10499: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
d9612 1
a9612 1
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
d9617 3
a9619 5
if test "$ac_cv_func_getnameinfo" = "yes"; then

echo "$as_me:10511: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
d9622 3
a9624 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:10517: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10522 "configure"
d9626 5
a9630 6
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

d9632 1
a9632 1
main(int argc, char **argv)
d9634 3
a9636 11
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
a9637 1

d9639 3
a9641 12
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10548: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10551: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10553: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10556: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getnameinfo_broken=no
d9643 3
a9645 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getnameinfo_broken=yes
d9647 2
a9648 8
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:10568: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
    LIBOBJS="$LIBOBJS getnameinfo.o"
  fi
d9651 3
a9653 1
if test "$ac_cv_func_getaddrinfo" = "yes"; then
d9655 3
a9657 17
echo "$as_me:10577: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:10583: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10588 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
a9658 40
int
main(int argc, char **argv)
{
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) == EAI_SERVICE)
		return 1;
	return 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10610: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10613: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10615: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10618: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getaddrinfo_numserv=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getaddrinfo_numserv=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:10630: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
    LIBOBJS="$LIBOBJS getaddrinfo.o freeaddrinfo.o"
  fi
d9661 3
a9663 4
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:10638: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
d9666 3
a9668 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10644 "configure"
d9671 4
d9678 1
a9678 4
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);

d9684 2
a9685 12
if { (eval echo "$as_me:10659: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10662: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10665: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10668: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_setenv_noproto=yes"
d9688 2
a9689 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_setenv_noproto=no"
d9692 1
a9693 2
echo "$as_me:10678: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
d9695 3
a9697 1
if test "$ac_cv_func_setenv_noproto" = yes; then
d9700 1
a9700 1
#define NEED_SETENV_PROTO 1
d9705 3
a9707 6
fi

if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:10692: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
d9710 3
a9712 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10698 "configure"
d9715 4
d9722 1
a9722 4
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);

d9728 2
a9729 12
if { (eval echo "$as_me:10713: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10716: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10719: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10722: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_unsetenv_noproto=yes"
d9732 2
a9733 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_unsetenv_noproto=no"
d9736 1
a9737 2
echo "$as_me:10732: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
d9739 3
a9741 1
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d9744 1
a9744 1
#define NEED_UNSETENV_PROTO 1
d9749 3
a9751 6
fi

if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:10746: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
d9754 3
a9756 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10752 "configure"
d9758 2
a9759 1
#include <unistd.h>
d9763 1
a9763 4
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

d9769 2
a9770 12
if { (eval echo "$as_me:10767: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10770: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10773: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10776: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_gethostname_noproto=yes"
d9773 2
a9774 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostname_noproto=no"
d9777 1
a9778 2
echo "$as_me:10786: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
d9780 3
a9782 1
if test "$ac_cv_func_gethostname_noproto" = yes; then
d9785 1
a9785 1
#define NEED_GETHOSTNAME_PROTO 1
d9790 3
a9792 6
fi

if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:10800: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
d9795 3
a9797 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10806 "configure"
d9799 1
a9799 1
#include <unistd.h>
d9803 1
a9803 4
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

d9809 2
a9810 12
if { (eval echo "$as_me:10821: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10824: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10827: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10830: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_mkstemp_noproto=yes"
d9813 2
a9814 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_mkstemp_noproto=no"
d9818 3
a9820 4
echo "$as_me:10840: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6

if test "$ac_cv_func_mkstemp_noproto" = yes; then
d9823 1
a9823 1
#define NEED_MKSTEMP_PROTO 1
d9828 3
a9830 6
fi

if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:10854: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
d9833 3
a9835 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10860 "configure"
d9837 1
a9837 1
#include <unistd.h>
d9841 1
a9841 4
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);

d9847 2
a9848 12
if { (eval echo "$as_me:10875: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10878: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10881: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10884: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_getusershell_noproto=yes"
d9851 2
a9852 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_getusershell_noproto=no"
d9856 3
a9858 4
echo "$as_me:10894: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6

if test "$ac_cv_func_getusershell_noproto" = yes; then
d9861 1
a9861 1
#define NEED_GETUSERSHELL_PROTO 1
d9866 3
a9868 6
fi

if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:10908: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
d9871 3
a9873 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10914 "configure"
d9875 2
a9876 13

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d9880 1
a9880 4
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

d9885 3
a9887 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10944: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10947: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10950: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_inet_aton_noproto=yes"
d9890 2
a9891 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_inet_aton_noproto=no"
d9893 2
a9894 1
rm -f conftest.$ac_objext conftest.$ac_ext
a9895 2
echo "$as_me:10960: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
d9897 4
a9900 1
if test "$ac_cv_func_inet_aton_noproto" = yes; then
d9902 2
a9903 2
cat >>confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
d9906 3
a9908 7
fi

fi

echo "$as_me:10973: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
d9912 2
a9913 13
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 10991 "configure"
d9915 2
a9916 1

d9920 1
a9920 1
crypt()
d9925 3
a9927 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11003: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11006: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11009: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11012: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d9930 2
a9931 1
cat conftest.$ac_ext >&5
d9933 2
a9934 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
d9937 8
d9947 1
a9947 1
eval "ac_res=\$ac_cv_funclib_crypt"
d9949 4
a9952 8
if false; then

for ac_func in crypt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:11034: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9956 1
a9956 1
#line 11040 "configure"
d9958 4
a9961 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d9963 1
a9963 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9967 1
a9967 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9972 3
a9974 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11071: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11074: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11077: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11080: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d9977 2
a9978 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d9980 1
a9980 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9982 9
a9990 52
echo "$as_me:11090: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:11114: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:11120: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:11134: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

echo "$as_me:11139: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
d9994 1
a9994 1
#line 11145 "configure"
d9996 1
a9996 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d10000 4
a10003 1
struct hostent *gethostbyname(const char *);
d10009 2
a10010 12
if { (eval echo "$as_me:11173: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11176: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11179: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11182: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
d10013 2
a10014 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyname_proto_compat=no"
d10018 9
a10026 2
echo "$as_me:11192: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
d10028 1
a10028 1
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
d10030 2
a10031 2
cat >>confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
d10036 4
a10039 3
echo "$as_me:11203: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
d10043 1
a10043 1
#line 11209 "configure"
a10044 2

#ifdef HAVE_SYS_TYPES_H
d10046 3
a10049 1
#ifdef HAVE_SYS_SOCKET_H
a10050 11
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d10054 1
a10054 1
struct hostent *gethostbyaddr(const void *, size_t, int);
d10060 2
a10061 12
if { (eval echo "$as_me:11237: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11240: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11243: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11246: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
d10064 2
a10065 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d10069 9
a10077 14
echo "$as_me:11256: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6

if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
EOF

fi

echo "$as_me:11267: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
d10081 1
a10081 1
#line 11273 "configure"
d10083 1
a10083 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d10087 4
a10090 1
struct servent *getservbyname(const char *, const char *);
d10096 2
a10097 12
if { (eval echo "$as_me:11301: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11304: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11307: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11310: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_getservbyname_proto_compat=yes"
d10100 2
a10101 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_getservbyname_proto_compat=no"
d10105 3
a10107 2
echo "$as_me:11320: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
d10109 7
a10115 1
if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
d10117 2
a10118 2
cat >>confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
d10123 4
a10126 3
echo "$as_me:11331: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
d10130 1
a10130 1
#line 11337 "configure"
a10131 2

#ifdef HAVE_SYS_TYPES_H
d10133 3
a10136 1
#ifdef HAVE_SYS_SOCKET_H
a10137 2
#endif

d10141 1
a10141 1
int getsockname(int, struct sockaddr*, socklen_t*);
d10147 2
a10148 12
if { (eval echo "$as_me:11356: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11359: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11362: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11365: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_getsockname_proto_compat=yes"
d10151 2
a10152 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_getsockname_proto_compat=no"
d10156 9
a10164 14
echo "$as_me:11375: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6

if test "$ac_cv_func_getsockname_proto_compat" = yes; then

cat >>confdefs.h <<\EOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
EOF

fi

echo "$as_me:11386: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
d10168 1
a10168 1
#line 11392 "configure"
d10170 1
a10170 5

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

d10174 4
a10177 1
void openlog(const char *, int, int);
d10183 2
a10184 12
if { (eval echo "$as_me:11408: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11411: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11414: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11417: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_openlog_proto_compat=yes"
d10187 2
a10188 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_openlog_proto_compat=no"
d10192 9
a10200 2
echo "$as_me:11427: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
d10202 1
a10202 1
if test "$ac_cv_func_openlog_proto_compat" = yes; then
d10204 2
a10205 2
cat >>confdefs.h <<\EOF
#define OPENLOG_PROTO_COMPATIBLE 1
d10210 4
a10213 4
if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:11439: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
d10217 1
a10217 1
#line 11445 "configure"
d10219 4
a10222 3

#ifdef HAVE_CRYPT_H
#include <crypt.h>
d10224 1
a10224 4
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

d10228 1
a10228 4
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

d10234 2
a10235 12
if { (eval echo "$as_me:11467: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11470: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11473: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11476: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_crypt_noproto=yes"
d10238 2
a10239 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_crypt_noproto=no"
d10243 9
a10251 17
echo "$as_me:11486: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6

if test "$ac_cv_func_crypt_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_CRYPT_PROTO 1
EOF

fi

fi

if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:11500: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
d10255 1
a10255 1
#line 11506 "configure"
d10257 1
a10257 3

#include <string.h>

d10261 4
a10264 4
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

d10270 2
a10271 12
if { (eval echo "$as_me:11523: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11526: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11529: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11532: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_strtok_r_noproto=yes"
d10274 2
a10275 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_strtok_r_noproto=no"
d10279 3
a10281 2
echo "$as_me:11542: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
d10283 3
a10285 1
if test "$ac_cv_func_strtok_r_noproto" = yes; then
d10287 1
a10287 3
cat >>confdefs.h <<\EOF
#define NEED_STRTOK_R_PROTO 1
EOF
d10291 4
d10297 4
a10300 4
if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:11556: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
d10304 1
a10304 1
#line 11562 "configure"
d10306 6
a10311 3

#include <string.h>

d10315 1
a10315 4
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);

d10321 2
a10322 12
if { (eval echo "$as_me:11579: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11582: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11585: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11588: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_strsep_noproto=yes"
d10325 2
a10326 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_strsep_noproto=no"
d10330 9
a10338 16
echo "$as_me:11598: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6

if test "$ac_cv_func_strsep_noproto" = yes; then

cat >>confdefs.h <<\EOF
#define NEED_STRSEP_PROTO 1
EOF

fi

fi

echo "$as_me:11611: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
d10341 2
a10342 3

cat >conftest.$ac_ext <<_ACEOF
#line 11618 "configure"
d10344 1
a10344 2
extern int h_errno;
int foo() { return h_errno; }
d10348 4
a10351 1
foo()
d10356 3
a10358 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11631: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11634: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_errno=yes
d10361 4
a10364 2
cat conftest.$ac_ext >&5
ac_cv_var_h_errno=no
d10366 7
a10372 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10376 1
a10376 4
ac_foo=`eval echo \\$ac_cv_var_h_errno`
echo "$as_me:11653: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d10379 1
a10379 1
#define HAVE_H_ERRNO 1
d10382 6
a10387 3
echo "$as_me:11661: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
d10390 2
a10391 3

cat >conftest.$ac_ext <<_ACEOF
#line 11668 "configure"
a10392 1
#ifdef HAVE_SYS_TYPES_H
d10394 3
d10398 1
a10398 4
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
d10402 1
a10402 1
h_errno.foo = 1;
d10408 2
a10409 12
if { (eval echo "$as_me:11686: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11689: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11692: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11695: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_h_errno_declaration=no"
d10412 2
a10413 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errno_declaration=yes"
a10415 1

d10417 2
a10418 56

echo "$as_me:11707: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_H_ERRNO_DECLARATION 1
EOF

fi

fi

echo "$as_me:11719: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11726 "configure"
#include "confdefs.h"
extern int h_errlist;
int foo() { return h_errlist; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11739: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11742: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11745: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11748: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_errlist=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errlist=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
echo "$as_me:11761: result: $ac_foo" >&5
d10421 5
a10425 8

cat >>confdefs.h <<EOF
#define HAVE_H_ERRLIST 1
EOF

echo "$as_me:11769: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
d10428 2
a10429 3

cat >conftest.$ac_ext <<_ACEOF
#line 11776 "configure"
d10431 1
a10431 4
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
d10435 4
a10438 1
h_errlist.foo = 1;
d10444 2
a10445 12
if { (eval echo "$as_me:11791: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11794: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11797: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11800: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_h_errlist_declaration=no"
d10448 2
a10449 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errlist_declaration=yes"
a10451 1

d10453 3
d10457 2
a10458 6
echo "$as_me:11812: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_H_ERRLIST_DECLARATION 1
d10465 3
a10467 38
echo "$as_me:11824: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11831 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11844: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11847: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11850: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11853: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_nerr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_nerr=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10471 3
a10473 12
ac_foo=`eval echo \\$ac_cv_var_h_nerr`
echo "$as_me:11866: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<EOF
#define HAVE_H_NERR 1
EOF

echo "$as_me:11874: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
d10477 2
d10480 1
a10480 1
#line 11881 "configure"
d10482 2
a10483 11
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
int
main ()
{
h_nerr.foo = 1;
  ;
  return 0;
}
d10485 3
a10487 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11896: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11899: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11902: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11905: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_h_nerr_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_nerr_declaration=yes"
d10489 2
a10490 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10494 1
a10494 3
echo "$as_me:11917: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
d10497 1
a10497 1
#define HAVE_H_NERR_DECLARATION 1
d10501 2
a10502 9

fi

echo "$as_me:11929: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

d10504 1
a10504 1
#line 11936 "configure"
d10506 2
a10507 9
extern int __progname;
int foo() { return __progname; }
int
main ()
{
foo()
  ;
  return 0;
}
d10509 2
a10510 19
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11949: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11955: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11958: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var___progname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var___progname=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10512 2
a10513 9
fi

ac_foo=`eval echo \\$ac_cv_var___progname`
echo "$as_me:11971: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<EOF
#define HAVE___PROGNAME 1
d10516 2
a10517 5
echo "$as_me:11979: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10520 1
a10520 1
#line 11986 "configure"
d10522 2
a10523 11
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
int
main ()
{
__progname.foo = 1;
  ;
  return 0;
}
d10525 2
a10526 25
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12001: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12004: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12007: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12010: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var___progname_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var___progname_declaration=yes"
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:12022: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
d10529 1
a10529 1
#define HAVE___PROGNAME_DECLARATION 1
d10533 1
d10535 3
a10537 5
fi

echo "$as_me:12034: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
d10542 1
a10542 1
#line 12041 "configure"
d10544 3
a10546 3
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
a10547 1
extern struct { int foo; } optarg;
d10551 1
a10551 1
optarg.foo = 1;
d10557 2
a10558 12
if { (eval echo "$as_me:12057: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12060: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12063: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12066: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_optarg_declaration=no"
d10561 2
a10562 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_optarg_declaration=yes"
d10568 4
a10571 3
echo "$as_me:12078: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
d10574 1
a10574 1
#define HAVE_OPTARG_DECLARATION 1
d10579 65
a10643 5
echo "$as_me:12088: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10645 7
a10651 2
cat >conftest.$ac_ext <<_ACEOF
#line 12095 "configure"
d10653 2
a10654 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
d10658 1
a10658 1
optind.foo = 1;
d10664 2
a10665 12
if { (eval echo "$as_me:12111: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12114: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12117: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12120: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_optind_declaration=no"
d10668 1
a10668 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_optind_declaration=yes"
d10671 5
a10675 21

fi

echo "$as_me:12132: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTIND_DECLARATION 1
EOF

fi

echo "$as_me:12142: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 12149 "configure"
d10677 2
a10678 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
d10682 1
a10682 1
opterr.foo = 1;
d10687 3
a10689 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12165: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12168: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12171: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12174: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_opterr_declaration=no"
d10692 26
a10717 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_opterr_declaration=yes"
a10718 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10720 2
d10724 5
a10728 3
echo "$as_me:12186: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
d10730 10
a10739 3
cat >>confdefs.h <<\EOF
#define HAVE_OPTERR_DECLARATION 1
EOF
d10741 8
d10750 24
d10775 10
a10784 5
echo "$as_me:12196: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d10786 7
a10792 2
cat >conftest.$ac_ext <<_ACEOF
#line 12203 "configure"
d10794 1
a10794 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
d10798 1
a10798 1
optopt.foo = 1;
d10804 2
a10805 12
if { (eval echo "$as_me:12219: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12222: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12225: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12228: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_optopt_declaration=no"
d10808 1
a10808 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_optopt_declaration=yes"
d10811 5
a10815 21

fi

echo "$as_me:12240: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_OPTOPT_DECLARATION 1
EOF

fi

echo "$as_me:12250: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 12257 "configure"
d10817 1
a10817 2
#include <stdlib.h>
extern struct { int foo; } environ;
d10821 1
a10821 1
environ.foo = 1;
d10826 3
a10828 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12270: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12273: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12276: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12279: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_environ_declaration=no"
d10831 1
a10831 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_environ_declaration=yes"
d10833 4
a10836 1
rm -f conftest.$ac_objext conftest.$ac_ext
d10838 5
a10842 1
fi
d10844 2
a10845 6
echo "$as_me:12291: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then

cat >>confdefs.h <<\EOF
#define HAVE_ENVIRON_DECLARATION 1
d10848 9
d10859 11
a10869 3
echo "$as_me:12301: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
d10872 2
a10873 3

cat >conftest.$ac_ext <<_ACEOF
#line 12308 "configure"
d10875 1
a10875 1
#include <time.h>
d10879 3
a10881 1
struct tm x; x.tm_gmtoff;
d10887 2
a10888 12
if { (eval echo "$as_me:12320: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12323: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12326: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12329: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_tm_tm_gmtoff=yes
d10891 2
a10892 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
d10895 1
d10897 3
a10899 3
echo "$as_me:12339: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
d10902 1
a10902 1
#define HAVE_STRUCT_TM_TM_GMTOFF 1
d10905 1
a10905 1
fi
d10907 3
a10909 3
echo "$as_me:12349: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
d10912 2
a10913 3

cat >conftest.$ac_ext <<_ACEOF
#line 12356 "configure"
d10915 1
a10915 1
#include <time.h>
d10919 2
a10920 1
struct tm x; x.tm_zone;
d10926 2
a10927 12
if { (eval echo "$as_me:12368: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12371: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12374: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12377: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_tm_tm_zone=yes
d10930 2
a10931 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
d10934 1
d10936 3
a10938 3
echo "$as_me:12387: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
d10941 1
a10941 1
#define HAVE_STRUCT_TM_TM_ZONE 1
d10944 3
a10946 1
fi
d10948 4
a10951 3
echo "$as_me:12397: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
d10954 2
a10955 3

cat >conftest.$ac_ext <<_ACEOF
#line 12404 "configure"
d10957 1
a10957 2
extern int timezone;
int foo() { return timezone; }
d10961 2
a10962 1
foo()
d10967 3
a10969 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12417: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12420: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12423: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12426: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_timezone=yes
d10972 2
a10973 2
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
d10975 1
a10975 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10978 3
d10982 3
a10984 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:12439: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d10986 1
a10986 3
cat >>confdefs.h <<EOF
#define HAVE_TIMEZONE 1
EOF
d10988 3
a10990 3
echo "$as_me:12447: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
d10994 11
a11004 2
cat >conftest.$ac_ext <<_ACEOF
#line 12454 "configure"
d11006 1
a11006 2
#include <time.h>
extern struct { int foo; } timezone;
d11010 1
a11010 1
timezone.foo = 1;
d11015 3
a11017 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12467: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12470: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12473: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12476: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_timezone_declaration=no"
d11020 6
a11025 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
a11026 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11030 1
a11030 3
echo "$as_me:12488: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
d11032 1
a11032 3
cat >>confdefs.h <<\EOF
#define HAVE_TIMEZONE_DECLARATION 1
EOF
d11034 6
a11039 8
fi

fi

cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:12501: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d11043 1
a11043 1
#line 12507 "configure"
d11045 6
a11050 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d11052 5
a11056 1
#include <sys/socket.h>
d11060 9
a11068 1
sa_family_t foo;
d11073 3
a11075 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12524: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12527: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12530: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12533: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d11078 2
a11079 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d11081 1
a11081 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11083 5
a11087 52
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12544: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:12549: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12555 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12570: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12573: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12576: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12579: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:12589: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
d11091 1
d11094 4
d11099 6
a11104 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d11107 27
d11136 3
a11138 4
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:12608: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d11141 12
a11152 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12614 "configure"
d11154 1
a11154 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d11158 1
a11158 1
socklen_t foo;
d11163 3
a11165 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12631: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12634: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d11168 6
a11173 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d11175 1
a11175 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11177 3
a11179 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12651: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d11181 7
a11187 3
	echo "$as_me:12656: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
d11191 1
a11191 1
#line 12662 "configure"
d11193 12
a11204 1
$ac_includes_default
d11208 9
a11216 4
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
d11221 3
a11223 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12677: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12680: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12683: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12686: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_socklen_t=yes
d11226 2
a11227 2
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
d11229 1
a11229 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11231 5
a11235 6
echo "$as_me:12696: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
d11239 1
d11242 28
d11271 2
a11272 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d11275 7
d11284 3
a11286 4
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:12715: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d11289 12
a11300 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12721 "configure"
d11302 1
a11302 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d11306 1
a11306 1
struct sockaddr foo;
d11311 3
a11313 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12738: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12741: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12744: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12747: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d11316 6
a11321 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d11323 1
a11323 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11325 3
a11327 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12758: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d11329 7
a11335 3
	echo "$as_me:12763: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
d11339 1
a11339 1
#line 12769 "configure"
d11341 12
a11352 1
$ac_includes_default
d11356 9
a11364 4
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
d11369 3
a11371 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12784: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12787: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12790: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12793: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr=yes
d11374 2
a11375 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
d11377 1
a11377 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11379 5
a11383 6
echo "$as_me:12803: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
d11387 1
d11390 12
d11403 14
a11416 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d11419 3
a11421 1
fi
d11423 7
a11429 40
cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:12822: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12828 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12845: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12848: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12851: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12854: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d11431 4
a11434 11
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12865: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:12870: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
d11438 1
a11438 1
#line 12876 "configure"
d11440 4
a11443 1
$ac_includes_default
d11447 1
a11447 4
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
d11453 2
a11454 12
if { (eval echo "$as_me:12891: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12894: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12897: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12900: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr_storage=yes
d11457 2
a11458 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
d11461 1
d11463 3
a11465 3
echo "$as_me:12910: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then
d11467 2
a11468 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
d11471 1
a11471 1
fi
d11473 8
d11483 6
a11488 4
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

d11491 3
a11493 5
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:12929: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11495 2
a11496 34
  cat >conftest.$ac_ext <<_ACEOF
#line 12935 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12952: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12955: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12958: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12961: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d11498 4
a11501 12
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:12972: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:12977: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11503 2
a11504 34
  cat >conftest.$ac_ext <<_ACEOF
#line 12983 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12998: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13001: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13004: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13007: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
a11505 3
echo "$as_me:13017: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then
d11507 2
a11508 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
d11511 3
a11513 1
fi
d11515 2
a11516 1
fi
d11518 2
a11519 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d11524 3
a11526 5
cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:13036: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11528 2
a11529 34
  cat >conftest.$ac_ext <<_ACEOF
#line 13042 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
int
main ()
{
struct ifaddrs foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d11531 5
a11535 12
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:13079: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:13084: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d11537 3
a11539 32
  cat >conftest.$ac_ext <<_ACEOF
#line 13090 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13105: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13108: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13111: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13114: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_ifaddrs=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_ifaddrs=no
a11540 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:13124: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then
d11542 9
a11550 2
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_IFADDRS 1
d11553 5
d11560 6
a11565 1
fi
d11567 2
a11568 2
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
d11571 5
d11578 4
a11581 5
echo "$as_me:13142: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d11583 2
a11584 11
ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line 13151 "configure"
#include "confdefs.h"
#include <$i>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
a11585 2
rm -f conftest*
done
d11587 2
a11588 3
fi

if test "$ac_cv_struct_winsize" = "yes"; then
d11591 1
a11591 1
#define HAVE_STRUCT_WINSIZE 1
d11594 9
a11603 6
echo "$as_me:13172: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 13175 "configure"
#include "confdefs.h"
#include <termios.h>
d11605 7
a11611 3
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then
d11614 1
a11614 1
#define HAVE_WS_XPIXEL 1
d11617 1
a11618 1
rm -f conftest*
d11620 22
a11641 4
cat >conftest.$ac_ext <<_ACEOF
#line 13191 "configure"
#include "confdefs.h"
#include <termios.h>
d11643 4
a11646 7
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF
d11648 6
a11654 1
rm -f conftest*
d11656 5
a11660 3
echo "$as_me:13206: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
d11663 15
d11679 2
a11680 32
cat >conftest.$ac_ext <<_ACEOF
#line 13213 "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13228: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13231: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13234: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13237: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_struct_spwd=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
d11682 1
a11682 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11684 6
d11692 13
a11704 2
echo "$as_me:13249: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6
d11706 21
a11726 1
if test "$ac_cv_struct_spwd" = "yes"; then
d11728 5
a11732 3
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SPWD 1
EOF
d11736 17
a11752 1
LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
d11754 8
a11761 1
LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
d11763 3
a11765 3
# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"
d11769 3
a11771 3
# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
d11773 4
a11776 5
  { { echo "$as_me:13274: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
d11780 3
a11782 3
# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
d11784 4
a11787 5
  { { echo "$as_me:13286: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
d11791 2
a11792 2
echo "$as_me:13294: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6
d11794 1
a11794 1
case "$with_openldap" in
d11798 2
a11799 2
*)	if test "$with_openldap_include" = ""; then
		with_openldap_include="$with_openldap/include"
d11801 2
a11802 2
	if test "$with_openldap_lib" = ""; then
		with_openldap_lib="$with_openldap/lib$abilibdirext"
d11814 1
a11814 1
case "$with_openldap_include" in
d11817 1
a11817 1
*)   header_dirs="$with_openldap_include $header_dirs";;
d11819 1
a11819 1
case "$with_openldap_lib" in
d11822 1
a11822 1
*)   lib_dirs="$with_openldap_lib $lib_dirs";;
d11831 1
a11831 1
#line 13334 "configure"
d11833 2
a11834 2
#include <lber.h>
#include <ldap.h>
d11844 1
a11844 11
if { (eval echo "$as_me:13347: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13350: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13353: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13356: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d11848 1
a11848 1
cat conftest.$ac_ext >&5
d11853 1
a11853 1
	LIBS="-L$i -lldap -llber  $save_LIBS"
d11855 1
a11855 1
#line 13368 "configure"
d11857 2
a11858 2
#include <lber.h>
#include <ldap.h>
d11868 1
a11868 11
if { (eval echo "$as_me:13381: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13384: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13387: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13390: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d11872 1
a11872 1
cat conftest.$ac_ext >&5
d11874 1
a11874 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d11879 5
a11883 5
if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
	openldap_includedir="$ires"
	openldap_libdir="$lres"
	INCLUDE_openldap="-I$openldap_includedir"
	LIB_openldap="-L$openldap_libdir -lldap -llber"
d11886 1
a11886 1
#define OPENLDAP 1
d11889 2
a11890 2
	with_openldap=yes
	echo "$as_me:13413: result: headers $ires, libraries $lres" >&5
d11893 5
a11897 5
	INCLUDE_openldap=
	LIB_openldap=
	with_openldap=no
	echo "$as_me:13419: result: $with_openldap" >&5
echo "${ECHO_T}$with_openldap" >&6
d11900 3
a11902 7
if test "$openldap_libdir"; then
	LIB_openldap="-R $openldap_libdir $LIB_openldap"
fi

# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"
d11906 3
a11908 3
# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
d11910 4
a11913 5
  { { echo "$as_me:13437: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
d11917 3
a11919 3
# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
d11921 4
a11924 5
  { { echo "$as_me:13449: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
d11928 2
a11929 2
echo "$as_me:13457: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6
d11931 1
a11931 1
case "$with_krb4" in
d11935 2
a11936 2
*)	if test "$with_krb4_include" = ""; then
		with_krb4_include="$with_krb4/include"
d11938 2
a11939 2
	if test "$with_krb4_lib" = ""; then
		with_krb4_lib="$with_krb4/lib$abilibdirext"
d11945 1
a11945 1
d='/usr/athena'
d11951 1
a11951 1
case "$with_krb4_include" in
d11954 1
a11954 1
*)   header_dirs="$with_krb4_include $header_dirs";;
d11956 1
a11956 1
case "$with_krb4_lib" in
d11959 1
a11959 1
*)   lib_dirs="$with_krb4_lib $lib_dirs";;
d11968 1
a11968 1
#line 13497 "configure"
d11970 1
a11970 1
#include <krb.h>
d11980 1
a11980 11
if { (eval echo "$as_me:13509: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13512: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13515: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13518: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d11984 1
a11984 1
cat conftest.$ac_ext >&5
d11989 1
a11989 1
	LIBS="-L$i -lkrb -ldes $save_LIBS"
d11991 1
a11991 1
#line 13530 "configure"
d11993 1
a11993 1
#include <krb.h>
d12003 1
a12003 11
if { (eval echo "$as_me:13542: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13545: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13548: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13551: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12007 1
a12007 1
cat conftest.$ac_ext >&5
d12009 1
a12009 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12014 5
a12018 5
if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
	krb4_includedir="$ires"
	krb4_libdir="$lres"
	INCLUDE_krb4="-I$krb4_includedir"
	LIB_krb4="-L$krb4_libdir -lkrb"
d12021 1
a12021 1
#define KRB4 1
d12024 2
a12025 2
	with_krb4=yes
	echo "$as_me:13574: result: headers $ires, libraries $lres" >&5
d12028 5
a12032 5
	INCLUDE_krb4=
	LIB_krb4=
	with_krb4=no
	echo "$as_me:13580: result: $with_krb4" >&5
echo "${ECHO_T}$with_krb4" >&6
d12035 13
a12047 11
LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 -ldes $LIBS"
	EXTRA_LIB45=lib45.a

	echo "$as_me:13592: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
d12051 1
a12051 1
#line 13598 "configure"
d12053 3
a12055 1
#include <krb.h>
d12060 3
a12062 2
		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
d12068 2
a12069 12
if { (eval echo "$as_me:13612: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13615: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13618: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13621: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_put_int_four=yes
d12072 2
a12073 2
cat conftest.$ac_ext >&5
ac_cv_func_krb_put_int_four=no
a12075 1

d12077 5
a12081 13
echo "$as_me:13632: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
EOF

	fi

	echo "$as_me:13642: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
d12084 4
a12087 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13648 "configure"
d12089 3
a12091 1
#include <krb.h>
d12096 3
a12098 1
		int x = KRB_VERIFY_SECURE
d12104 2
a12105 12
if { (eval echo "$as_me:13661: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13664: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13667: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13670: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_verify_secure=yes
d12108 32
d12141 4
a12144 1
ac_cv_func_krb_verify_secure=no
d12146 2
a12147 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12150 3
a12152 3
echo "$as_me:13681: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then
d12155 1
a12155 1
#define KRB_VERIFY_SECURE 1
d12157 2
d12161 1
a12161 1
#define KRB_VERIFY_SECURE_FAIL 2
d12163 1
d12165 3
a12167 4
	fi
	echo "$as_me:13694: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
d12170 2
d12173 1
a12173 1
#line 13700 "configure"
d12175 3
a12177 4
#include <krb.h>
int
main ()
{
a12178 4
		int x = KRB_VERIFY_NOT_SECURE
  ;
  return 0;
}
d12181 2
a12182 12
if { (eval echo "$as_me:13713: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13716: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13719: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13722: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_verify_not_secure=yes
d12185 1
a12185 2
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_not_secure=no
d12188 1
d12191 5
a12195 4
echo "$as_me:13733: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then

d12197 1
a12197 1
#define KRB_VERIFY_NOT_SECURE 0
d12199 6
d12206 9
a12214 1
	fi
d12216 3
a12218 4
echo "$as_me:13743: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12220 3
d12224 3
a12226 36
if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 13761 "configure"
#include "confdefs.h"

int
main ()
{
krb_enable_debug()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13773: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13776: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13779: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13782: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
d12228 2
a12229 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
	LIBS="$ac_save_LIBS"
d12231 1
d12233 3
a12235 13
fi

eval "ac_res=\$ac_cv_funclib_krb_enable_debug"

if false; then

for ac_func in krb_enable_debug
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13804: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12237 2
a12238 48
  cat >conftest.$ac_ext <<_ACEOF
#line 13810 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13841: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13844: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13847: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13850: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
a12239 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13860: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF
d12241 3
a12243 49
fi
done

fi
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_enable_debug=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:13884: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
	echo "$as_me:13890: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:13904: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
fi

echo "$as_me:13913: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
d12247 1
a12247 1
if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
d12249 6
a12254 8
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d12257 1
a12257 1
#line 13931 "configure"
d12263 1
a12263 1
krb_disable_debug()
d12269 2
a12270 12
if { (eval echo "$as_me:13943: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13946: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13949: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13952: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d12273 1
a12273 1
cat conftest.$ac_ext >&5
d12275 1
a12275 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12277 1
a12277 1
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
d12283 1
a12283 1
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
d12287 1
a12287 1
for ac_func in krb_disable_debug
d12289 2
a12290 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:13974: checking for $ac_func" >&5
d12292 1
a12292 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12296 1
a12296 1
#line 13980 "configure"
d12327 2
a12328 12
if { (eval echo "$as_me:14011: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14014: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14017: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14020: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d12331 2
a12332 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d12334 1
a12334 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12336 3
a12338 3
echo "$as_me:14030: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d12340 1
a12340 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d12347 2
a12348 2
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d12350 1
a12350 1
eval "LIB_krb_disable_debug=$ac_res"
d12354 2
a12355 2
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
d12360 1
a12360 1
	echo "$as_me:14054: result: yes" >&5
d12364 3
a12366 3
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
	echo "$as_me:14060: result: no" >&5
d12370 1
a12370 1
	eval "ac_cv_func_krb_disable_debug=yes"
d12380 1
a12380 1
	echo "$as_me:14074: result: yes, in $ac_res" >&5
d12385 12
a12396 2
if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
d12399 3
a12401 4
echo "$as_me:14083: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d12403 3
d12407 4
a12410 14
if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 14101 "configure"
#include "confdefs.h"
d12412 3
a12414 21
int
main ()
{
krb_get_our_ip_for_realm()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14113: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14116: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14119: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14122: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
d12416 2
a12417 7
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
	LIBS="$ac_save_LIBS"
d12420 2
a12421 1
fi
d12423 3
a12425 1
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
d12427 9
a12435 1195
if false; then

for ac_func in krb_get_our_ip_for_realm
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:14144: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14150 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14181: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14184: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14187: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14190: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:14200: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:14224: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:14230: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:14244: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi

	echo "$as_me:14253: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14259 "configure"
#include "confdefs.h"
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14274: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14277: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14280: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14283: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_mk_req_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_mk_req_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:14294: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then

cat >>confdefs.h <<\EOF
#define KRB_MK_REQ_CONST 1
EOF

	fi

	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
	if test "$krb4_libdir"; then
		LIB_krb4="-R $krb4_libdir $LIB_krb4"
		LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
	fi
fi

if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi

if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
fi

if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
else
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi

cat >>confdefs.h <<\EOF
#define KRB5 1
EOF

# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\EOF
#define DCE 1
EOF

fi

if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
else
  DCE_TRUE='#'
  DCE_FALSE=
fi

## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
else
	dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_LDFLAGS="-Wl,-bI:dfspag.exp"
fi

otp=yes
# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval="$enable_otp"

if test "$enableval" = "no"; then
	otp=no
fi

fi;
if test "$otp" = "yes"; then

cat >>confdefs.h <<\EOF
#define OTP 1
EOF

	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
fi

if test "$otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi

# Check whether --enable-osfc2 or --disable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
  enableval="$enable_osfc2"

fi;
LIB_security=
if test "$enable_osfc2" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_OSFC2 1
EOF

	LIB_security=-lsecurity
fi

# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo "$as_me:14416: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_NROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $NROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_NROFF="$ac_dir/$ac_word"
   echo "$as_me:14433: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
NROFF=$ac_cv_path_NROFF

if test -n "$NROFF"; then
  echo "$as_me:14444: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6
else
  echo "$as_me:14447: result: no" >&5
echo "${ECHO_T}no" >&6
fi

# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
echo "$as_me:14453: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_GROFF="$ac_dir/$ac_word"
   echo "$as_me:14470: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
GROFF=$ac_cv_path_GROFF

if test -n "$GROFF"; then
  echo "$as_me:14481: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6
else
  echo "$as_me:14484: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:14488: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
if test "${ac_cv_sys_man_format+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
END

if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
	done
fi
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
fi

fi
echo "$as_me:14525: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"

fi

if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
else
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi
echo "$as_me:14539: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
if test "${ac_cv_sys_catman_ext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
fi

fi
echo "$as_me:14551: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$section'
else
	CATMANEXT=0
fi

# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
  withval="$with_readline"

fi;

# Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval="$with_readline_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:14569: error: No argument for --with-readline-lib" >&5
echo "$as_me: error: No argument for --with-readline-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi;

# Check whether --with-readline-include or --without-readline-include was given.
if test "${with_readline_include+set}" = set; then
  withval="$with_readline_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:14581: error: No argument for --with-readline-include" >&5
echo "$as_me: error: No argument for --with-readline-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi
fi;

echo "$as_me:14589: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6

case "$with_readline" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_readline_include" = ""; then
		with_readline_include="$with_readline/include"
	fi
	if test "$with_readline_lib" = ""; then
		with_readline_lib="$with_readline/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done

case "$with_readline_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_readline_include $header_dirs";;
esac
case "$with_readline_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_readline_lib $lib_dirs";;
esac

save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 14629 "configure"
#include "confdefs.h"
#include <stdio.h>
 #include <readline.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14642: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14645: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14648: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14651: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lreadline  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 14663 "configure"
#include "confdefs.h"
#include <stdio.h>
 #include <readline.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14676: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14679: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14682: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14685: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"

if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
	readline_includedir="$ires"
	readline_libdir="$lres"
	INCLUDE_readline="-I$readline_includedir"
	LIB_readline="-L$readline_libdir -lreadline"

cat >>confdefs.h <<EOF
#define READLINE 1
EOF

	with_readline=yes
	echo "$as_me:14708: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_readline=
	LIB_readline=
	with_readline=no
	echo "$as_me:14714: result: $with_readline" >&5
echo "${ECHO_T}$with_readline" >&6
fi

# Check whether --with-hesiod or --without-hesiod was given.
if test "${with_hesiod+set}" = set; then
  withval="$with_hesiod"

fi;

# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
  withval="$with_hesiod_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:14728: error: No argument for --with-hesiod-lib" >&5
echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi;

# Check whether --with-hesiod-include or --without-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
  withval="$with_hesiod_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:14740: error: No argument for --with-hesiod-include" >&5
echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi;

echo "$as_me:14748: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6

case "$with_hesiod" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_hesiod_include" = ""; then
		with_hesiod_include="$with_hesiod/include"
	fi
	if test "$with_hesiod_lib" = ""; then
		with_hesiod_lib="$with_hesiod/lib$abilibdirext"
	fi
	;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
	header_dirs="$header_dirs $i/include"
	lib_dirs="$lib_dirs $i/lib$abilibdirext"
done

case "$with_hesiod_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_hesiod_include $header_dirs";;
esac
case "$with_hesiod_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_hesiod_lib $lib_dirs";;
esac

save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
	cat >conftest.$ac_ext <<_ACEOF
#line 14788 "configure"
#include "confdefs.h"
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14800: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14803: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14806: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14809: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
for i in $lib_dirs; do
	LIBS="-L$i -lhesiod  $save_LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 14821 "configure"
#include "confdefs.h"
#include <hesiod.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14833: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14836: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14839: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14842: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lres=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"

if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
	hesiod_includedir="$ires"
	hesiod_libdir="$lres"
	INCLUDE_hesiod="-I$hesiod_includedir"
	LIB_hesiod="-L$hesiod_libdir -lhesiod"

cat >>confdefs.h <<EOF
#define HESIOD 1
EOF

	with_hesiod=yes
	echo "$as_me:14865: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
	INCLUDE_hesiod=
	LIB_hesiod=
	with_hesiod=no
	echo "$as_me:14871: result: $with_hesiod" >&5
echo "${ECHO_T}$with_hesiod" >&6
fi

# Check whether --enable-bigendian or --disable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
  enableval="$enable_bigendian"
  krb_cv_c_bigendian=yes
fi;
# Check whether --enable-littleendian or --disable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
  enableval="$enable_littleendian"
  krb_cv_c_bigendian=no
fi;
echo "$as_me:14885: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
if test "${krb_cv_c_bigendian_compile+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14891 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
int
main ()
{

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14908: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14911: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14914: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14917: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_c_bigendian_compile=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian_compile=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:14927: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
echo "$as_me:14929: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${krb_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  if test "$krb_cv_c_bigendian_compile" = "yes"; then
    cat >conftest.$ac_ext <<_ACEOF
#line 14937 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
int
main ()
{

#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14954: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14957: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14960: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14963: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_c_bigendian=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  else
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:14974: error: specify either --enable-bigendian or --enable-littleendian" >&5
echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14979 "configure"
#include "confdefs.h"
main () {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
    } u;
    u.l = 1;
    exit (u.c[sizeof (long) - 1] == 1);
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14993: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14996: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14998: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15001: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_c_bigendian=no
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=yes
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
  fi

fi
echo "$as_me:15015: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6
if test "$krb_cv_c_bigendian" = "yes"; then

cat >>confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF
fi
if test "$krb_cv_c_bigendian_compile" = "yes"; then

cat >>confdefs.h <<\EOF
#define ENDIANESS_IN_SYS_PARAM_H 1
EOF
fi

echo "$as_me:15030: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line 15038 "configure"
#include "confdefs.h"
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15047: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15050: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15053: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15056: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:15067: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
EOF
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*)
	aix=4
	;;
esac

if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
else
  AIX_TRUE='#'
  AIX_FALSE=
fi

if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
else
  AIX4_TRUE='#'
  AIX4_FALSE=
fi
aix_dynamic_afs=yes

if test "$aix_dynamic_afs" = yes; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi

echo "$as_me:15117: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" dl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 15135 "configure"
#include "confdefs.h"

int
main ()
{
dlopen()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15147: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15150: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15153: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15156: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_dlopen"

if false; then

for ac_func in dlopen
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:15178: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15184 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15215: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15218: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15221: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15224: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:15234: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dlopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:15258: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	echo "$as_me:15264: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dlopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:15278: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

if test "$aix" != no; then
	if test "$aix_dynamic_afs" = yes; then
		if test "$ac_cv_funclib_dlopen" = yes; then
			AIX_EXTRA_KAFS=
		elif test "$ac_cv_funclib_dlopen" != no; then
			AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
		else
			AIX_EXTRA_KAFS=-lld
		fi
	else
		AIX_EXTRA_KAFS=
	fi
fi

if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
fi

irix=no
case "$host_os" in
irix*) irix=yes ;;
esac

if test "$irix" != no; then
  IRIX_TRUE=
  IRIX_FALSE='#'
else
  IRIX_TRUE='#'
  IRIX_FALSE=
fi

echo "$as_me:15318: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6

# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"

fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
d12437 1
a12437 1
    if test "${ac_cv_have_x+set}" = set; then
d12442 3
a12444 3
rm -fr conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
d12473 1
a12473 1
  rm -fr conftest.dir
d12517 1
a12517 1
#line 15415 "configure"
d12521 3
a12523 9
if { (eval echo "$as_me:15419: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15425: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d12531 1
d12536 1
d12546 2
a12547 1
rm -f conftest.err conftest.$ac_ext
d12557 1
a12557 1
#line 15458 "configure"
d12569 1
a12569 11
if { (eval echo "$as_me:15470: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15473: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15476: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15479: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12575 2
a12576 2
cat conftest.$ac_ext >&5
LIBS=$ac_save_LIBS
d12588 1
a12588 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a12599 1

d12605 1
a12605 1
  echo "$as_me:15517: result: $have_x" >&5
d12615 1
a12615 1
  echo "$as_me:15527: result: libraries $x_libraries, headers $x_includes" >&5
d12639 1
a12639 1
      echo "$as_me:15551: checking whether -R must be followed by a space" >&5
d12643 1
a12643 1
#line 15555 "configure"
d12655 1
a12655 11
if { (eval echo "$as_me:15567: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15570: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15573: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15576: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12659 2
a12660 2
cat conftest.$ac_ext >&5
ac_R_nospace=no
d12662 1
a12662 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12664 1
a12664 1
	echo "$as_me:15586: result: no" >&5
d12670 1
a12670 1
#line 15592 "configure"
d12682 1
a12682 11
if { (eval echo "$as_me:15604: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15607: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15610: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15613: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12686 2
a12687 2
cat conftest.$ac_ext >&5
ac_R_space=no
d12689 1
a12689 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12691 1
a12691 1
	  echo "$as_me:15623: result: yes" >&5
d12695 1
a12695 1
	  echo "$as_me:15627: result: neither works" >&5
a12712 4
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat >conftest.$ac_ext <<_ACEOF
#line 15647 "configure"
#include "confdefs.h"
d12714 1
a12714 32
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char XOpenDisplay ();
int
main ()
{
XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:15666: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15669: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15672: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15675: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:15681: checking for dnet_ntoa in -ldnet" >&5
d12722 1
a12722 1
#line 15689 "configure"
d12741 1
a12741 11
if { (eval echo "$as_me:15708: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15711: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15714: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15717: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12745 2
a12746 2
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_dnet_ntoa=no
d12748 1
a12748 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12751 1
a12751 1
echo "$as_me:15728: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
d12758 2
a12759 1
      echo "$as_me:15735: checking for dnet_ntoa in -ldnet_stub" >&5
d12767 1
a12767 1
#line 15743 "configure"
d12786 1
a12786 11
if { (eval echo "$as_me:15762: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15765: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15768: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15771: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12790 2
a12791 2
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no
d12793 1
a12793 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12796 1
a12796 1
echo "$as_me:15782: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
a12802 3
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"
d12812 1
a12812 1
    echo "$as_me:15801: checking for gethostbyname" >&5
d12818 1
a12818 1
#line 15807 "configure"
d12849 1
a12849 11
if { (eval echo "$as_me:15838: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15841: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15844: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15847: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12853 2
a12854 2
cat conftest.$ac_ext >&5
ac_cv_func_gethostbyname=no
d12856 1
a12856 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12858 1
a12858 1
echo "$as_me:15857: result: $ac_cv_func_gethostbyname" >&5
d12862 2
a12863 1
      echo "$as_me:15861: checking for gethostbyname in -lnsl" >&5
d12871 1
a12871 1
#line 15869 "configure"
d12890 1
a12890 11
if { (eval echo "$as_me:15888: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15891: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15894: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15897: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12894 2
a12895 2
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_gethostbyname=no
d12897 1
a12897 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12900 1
a12900 1
echo "$as_me:15908: result: $ac_cv_lib_nsl_gethostbyname" >&5
d12907 2
a12908 1
        echo "$as_me:15915: checking for gethostbyname in -lbsd" >&5
d12916 1
a12916 1
#line 15923 "configure"
d12935 1
a12935 11
if { (eval echo "$as_me:15942: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15945: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:15948: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15951: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d12939 2
a12940 2
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gethostbyname=no
d12942 1
a12942 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12945 1
a12945 1
echo "$as_me:15962: result: $ac_cv_lib_bsd_gethostbyname" >&5
d12961 1
a12961 1
    echo "$as_me:15978: checking for connect" >&5
d12967 1
a12967 1
#line 15984 "configure"
d12998 1
a12998 11
if { (eval echo "$as_me:16015: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13002 2
a13003 2
cat conftest.$ac_ext >&5
ac_cv_func_connect=no
d13005 1
a13005 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13007 1
a13007 1
echo "$as_me:16034: result: $ac_cv_func_connect" >&5
d13011 2
a13012 1
      echo "$as_me:16038: checking for connect in -lsocket" >&5
d13020 1
a13020 1
#line 16046 "configure"
d13039 1
a13039 11
if { (eval echo "$as_me:16065: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16068: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16071: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16074: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13043 2
a13044 2
cat conftest.$ac_ext >&5
ac_cv_lib_socket_connect=no
d13046 1
a13046 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13049 1
a13049 1
echo "$as_me:16085: result: $ac_cv_lib_socket_connect" >&5
d13058 1
a13058 1
    echo "$as_me:16094: checking for remove" >&5
d13064 1
a13064 1
#line 16100 "configure"
d13095 1
a13095 11
if { (eval echo "$as_me:16131: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16134: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16137: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16140: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13099 2
a13100 2
cat conftest.$ac_ext >&5
ac_cv_func_remove=no
d13102 1
a13102 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13104 1
a13104 1
echo "$as_me:16150: result: $ac_cv_func_remove" >&5
d13108 2
a13109 1
      echo "$as_me:16154: checking for remove in -lposix" >&5
d13117 1
a13117 1
#line 16162 "configure"
d13136 1
a13136 11
if { (eval echo "$as_me:16181: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16184: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16187: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16190: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13140 2
a13141 2
cat conftest.$ac_ext >&5
ac_cv_lib_posix_remove=no
d13143 1
a13143 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13146 1
a13146 1
echo "$as_me:16201: result: $ac_cv_lib_posix_remove" >&5
d13155 1
a13155 1
    echo "$as_me:16210: checking for shmat" >&5
d13161 1
a13161 1
#line 16216 "configure"
d13192 1
a13192 11
if { (eval echo "$as_me:16247: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16250: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16253: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16256: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13196 2
a13197 2
cat conftest.$ac_ext >&5
ac_cv_func_shmat=no
d13199 1
a13199 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13201 1
a13201 1
echo "$as_me:16266: result: $ac_cv_func_shmat" >&5
d13205 2
a13206 1
      echo "$as_me:16270: checking for shmat in -lipc" >&5
d13214 1
a13214 1
#line 16278 "configure"
d13233 1
a13233 11
if { (eval echo "$as_me:16297: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16300: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16303: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16306: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13237 2
a13238 2
cat conftest.$ac_ext >&5
ac_cv_lib_ipc_shmat=no
d13240 1
a13240 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13243 1
a13243 1
echo "$as_me:16317: result: $ac_cv_lib_ipc_shmat" >&5
d13261 2
a13262 1
  echo "$as_me:16335: checking for IceConnectionNumber in -lICE" >&5
d13270 1
a13270 1
#line 16343 "configure"
d13289 1
a13289 11
if { (eval echo "$as_me:16362: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16365: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16368: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16371: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13293 2
a13294 2
cat conftest.$ac_ext >&5
ac_cv_lib_ICE_IceConnectionNumber=no
d13296 1
a13296 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13299 1
a13299 1
echo "$as_me:16382: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
d13312 1
a13312 1
	echo "$as_me:16395: checking for special X linker flags" >&5
d13341 2
a13342 3
  { { echo "$as_me:16424: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d13345 1
a13345 1
#line 16429 "configure"
d13360 4
a13363 10
if { (eval echo "$as_me:16444: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16447: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:16449: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16452: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d13371 2
a13372 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d13374 1
d13380 1
a13380 1
echo "$as_me:16468: result: $krb_cv_sys_x_libs_rpath" >&5
d13385 7
a13391 180
if test "$no_x" != yes; then
  HAVE_X_TRUE=
  HAVE_X_FALSE='#'
else
  HAVE_X_TRUE='#'
  HAVE_X_FALSE=
fi

save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"

echo "$as_me:16488: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" X11 Xau; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 16506 "configure"
#include "confdefs.h"

int
main ()
{
XauWriteAuth()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16518: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16521: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16524: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16527: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
	LIBS="$ac_save_LIBS"
fi

fi

eval "ac_res=\$ac_cv_funclib_XauWriteAuth"

if false; then

for ac_func in XauWriteAuth
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:16549: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 16555 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:16586: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16589: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16592: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16595: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:16605: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

fi
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauWriteAuth=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$as_me:16629: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	echo "$as_me:16635: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:16649: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d13393 6
a13398 2
ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"
d13400 3
a13402 3
echo "$as_me:16657: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
d13406 1
a13406 1
if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
d13409 5
a13413 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d13416 1
a13416 1
#line 16675 "configure"
d13422 1
a13422 1
XauReadAuth()
d13428 2
a13429 12
if { (eval echo "$as_me:16687: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16690: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16693: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16696: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
d13432 1
a13432 1
cat conftest.$ac_ext >&5
d13434 1
a13434 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13436 1
a13436 1
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
d13442 1
a13442 1
eval "ac_res=\$ac_cv_funclib_XauReadAuth"
d13446 1
a13446 1
for ac_func in XauReadAuth
d13448 2
a13449 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:16718: checking for $ac_func" >&5
d13451 1
a13451 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13455 1
a13455 1
#line 16724 "configure"
d13486 2
a13487 12
if { (eval echo "$as_me:16755: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16758: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16761: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16764: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d13490 2
a13491 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d13493 1
a13493 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13495 3
a13497 3
echo "$as_me:16774: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13499 1
a13499 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13506 2
a13507 2
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d13509 1
a13509 1
eval "LIB_XauReadAuth=$ac_res"
d13513 2
a13514 2
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
d13519 1
a13519 1
	echo "$as_me:16798: result: yes" >&5
d13523 3
a13525 3
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	echo "$as_me:16804: result: no" >&5
d13529 1
a13529 1
	eval "ac_cv_func_XauReadAuth=yes"
d13539 1
a13539 1
	echo "$as_me:16818: result: yes, in $ac_res" >&5
d13544 2
a13545 1
LIBS="$LIB_XauReadAauth $LIBS"
d13547 3
a13549 3
echo "$as_me:16825: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
if test "${ac_cv_funclib_XauFileName+set}" = set; then
d13553 1
a13553 1
if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
d13556 5
a13560 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d13563 1
a13563 1
#line 16843 "configure"
d13569 1
a13569 1
XauFileName()
d13575 2
a13576 12
if { (eval echo "$as_me:16855: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16858: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16861: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16864: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
d13579 1
a13579 1
cat conftest.$ac_ext >&5
d13581 1
a13581 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13583 1
a13583 1
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
d13589 1
a13589 1
eval "ac_res=\$ac_cv_funclib_XauFileName"
d13593 1
a13593 1
for ac_func in XauFileName
d13595 2
a13596 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:16886: checking for $ac_func" >&5
d13598 1
a13598 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d13602 1
a13602 1
#line 16892 "configure"
d13633 2
a13634 12
if { (eval echo "$as_me:16923: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:16926: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:16929: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:16932: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d13637 2
a13638 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d13640 1
a13640 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d13642 3
a13644 3
echo "$as_me:16942: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d13646 1
a13646 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d13653 2
a13654 2
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d13656 1
a13656 1
eval "LIB_XauFileName=$ac_res"
d13660 2
a13661 2
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
d13666 1
a13666 1
	echo "$as_me:16966: result: yes" >&5
d13670 3
a13672 3
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	echo "$as_me:16972: result: no" >&5
d13676 1
a13676 1
	eval "ac_cv_func_XauFileName=yes"
d13682 2
a13683 194
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$as_me:16986: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

LIBS="$ac_xxx"

case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
	fi
	;;
esac

if test "$AUTOMAKE" != ""; then

if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
else
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
fi
else

	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS

echo "$as_me:17035: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17041 "configure"
#include "confdefs.h"

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:17099: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17102: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17105: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17108: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:17118: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
EOF

fi

echo "$as_me:17128: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17134 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:17149: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17152: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17155: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17158: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_off_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_off_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:17168: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define off_t long
d13686 6
a13691 1
fi
d13693 3
a13695 3
echo "$as_me:17180: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
d13698 12
a13709 2
  cat >conftest.$ac_ext <<_ACEOF
#line 17186 "configure"
d13711 1
a13711 1
$ac_includes_default
d13715 1
a13715 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d13720 3
a13722 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:17201: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17204: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17207: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17210: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
d13725 6
a13730 2
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
d13732 1
a13732 1
rm -f conftest.$ac_objext conftest.$ac_ext
a13733 5
echo "$as_me:17220: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
d13735 1
a13735 3
cat >>confdefs.h <<EOF
#define size_t unsigned
EOF
d13737 1
a13737 1
fi
d13739 6
a13744 3
echo "$as_me:17232: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
d13748 1
a13748 1
#line 17238 "configure"
d13750 6
a13755 4
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d13757 4
a13760 20
#include <unistd.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_ssize_t=yes
else
  ac_cv_type_ssize_t=no
fi
rm -f conftest*

fi
echo "$as_me:17256: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then

cat >>confdefs.h <<\EOF
#define ssize_t int
EOF

fi
a13761 9
echo "$as_me:17266: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17272 "configure"
#include "confdefs.h"
$ac_includes_default
d13765 9
a13773 4
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
d13778 3
a13780 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:17287: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17290: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17293: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17296: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_pid_t=yes
d13783 2
a13784 2
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
d13786 1
a13786 1
rm -f conftest.$ac_objext conftest.$ac_ext
d13788 5
a13792 8
echo "$as_me:17306: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<EOF
#define pid_t int
d13796 1
a13797 16
echo "$as_me:17318: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17324 "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
d13799 4
a13802 1
rm -f conftest*
d13804 7
a13810 4
fi
echo "$as_me:17338: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
d13812 14
a13825 2
cat >>confdefs.h <<\EOF
#define uid_t int
d13828 2
a13829 2
cat >>confdefs.h <<\EOF
#define gid_t int
d13832 4
a13835 1
fi
d13837 1
a13837 13
echo "$as_me:17352: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17358 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d13839 18
a13856 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_mode_t=yes
else
  ac_cv_type_mode_t=no
fi
rm -f conftest*
d13858 1
a13858 8
fi
echo "$as_me:17376: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = no; then

cat >>confdefs.h <<\EOF
#define mode_t unsigned short
EOF
d13860 6
a13866 19

echo "$as_me:17386: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 17392 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_sig_atomic_t=yes
a13867 12
  ac_cv_type_sig_atomic_t=no
fi
rm -f conftest*

fi
echo "$as_me:17410: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
if test $ac_cv_type_sig_atomic_t = no; then

cat >>confdefs.h <<\EOF
#define sig_atomic_t int
EOF
d13869 7
d13877 3
d13881 3
a13883 4
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:17421: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d13887 1
a13887 1
#line 17427 "configure"
a13888 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d13893 47
a13939 1
long long foo;
d13945 2
a13946 12
if { (eval echo "$as_me:17444: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17447: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17450: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17453: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d13949 2
a13950 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d13954 13
a13966 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:17464: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:17469: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d13970 1
a13970 1
#line 17475 "configure"
d13976 1
a13976 1
if ((long long *) 0)
d13978 1
a13978 1
if (sizeof (long long))
d13985 2
a13986 12
if { (eval echo "$as_me:17490: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17493: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17496: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17499: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
d13989 2
a13990 2
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
d13994 5
a13998 3
echo "$as_me:17509: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
d14001 1
a14001 1
#define HAVE_LONG_LONG 1
d14006 3
a14008 11
fi

cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

echo "$as_me:17527: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
d14012 1
a14012 1
#line 17533 "configure"
d14014 1
a14014 4
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

d14018 4
a14021 2
if ((struct tm *) 0)
return 0;
d14027 2
a14028 12
if { (eval echo "$as_me:17549: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17552: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17555: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17558: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
d14031 2
a14032 2
cat conftest.$ac_ext >&5
ac_cv_header_time=no
d14036 5
a14040 3
echo "$as_me:17568: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
d14042 2
a14043 2
cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
d14048 3
a14050 3
echo "$as_me:17578: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+set}" = set; then
d14054 1
a14054 1
#line 17584 "configure"
d14057 5
a14061 9
#include <time.h>

int
main ()
{
struct tm *tp; tp->tm_sec;
  ;
  return 0;
}
d14063 3
a14065 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:17598: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:17601: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:17604: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17607: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_struct_tm=time.h
d14067 1
a14067 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_tm=sys/time.h
d14069 2
a14070 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14072 3
a14074 3
echo "$as_me:17617: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then
d14077 1
a14077 1
#define TM_IN_SYS_TIME 1
d14082 3
a14084 3
echo "$as_me:17627: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
d14088 1
a14088 1
#line 17633 "configure"
d14090 11
a14100 5
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

d14102 3
a14104 18
if { (eval echo "$as_me:17641: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:17647: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
d14108 3
a14110 1
  ac_cv_header_stdc=no
d14112 3
a14114 12
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 17669 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
a14116 3
  ac_cv_header_stdc=no
fi
rm -f conftest*
d14118 3
a14120 17
fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 17687 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*
d14124 4
a14127 4
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
d14130 1
a14130 1
#line 17708 "configure"
d14132 1
a14132 10
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
a14133 11
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
d14135 3
a14137 12
rm -f conftest$ac_exeext
if { (eval echo "$as_me:17734: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:17737: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:17739: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:17742: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d14139 1
a14139 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
d14141 2
a14142 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d14144 7
a14150 5
fi
fi
echo "$as_me:17755: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
d14153 1
a14153 1
#define STDC_HEADERS 1
d14158 3
a14160 94
for ac_header in \
	arpa/ftp.h				\
	arpa/inet.h				\
	arpa/nameser.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	crypt.h					\
	curses.h				\
	dirent.h				\
	dlfcn.h					\
	err.h					\
	errno.h					\
	fcntl.h					\
	fnmatch.h				\
	grp.h					\
	inttypes.h				\
	io.h					\
	libutil.h				\
	limits.h				\
	maillock.h				\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in6_machtypes.h			\
	netinet/in6_var.h			\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinfo/ni.h				\
	paths.h					\
	pthread.h				\
	pty.h					\
	pwd.h					\
	resolv.h				\
	sac.h					\
	security/pam_modules.h			\
	sgtty.h					\
	shadow.h				\
	siad.h					\
	signal.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/ptyvar.h				\
	sys/resource.h				\
	sys/select.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/strtty.h				\
	sys/syscall.h				\
	sys/sysctl.h				\
	sys/termio.h				\
	sys/time.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/un.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	term.h					\
	termcap.h				\
	termio.h				\
	termios.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	utmp.h					\
	utmpx.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:17856: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d14164 1
a14164 1
#line 17862 "configure"
d14166 6
a14171 1
#include <$ac_header>
d14173 3
a14175 13
if { (eval echo "$as_me:17866: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:17872: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d14177 1
a14177 1
  ac_cpp_err=yes
d14179 2
a14180 6
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
d14182 6
a14187 7
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:17891: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a14190 1
done
d14192 3
a14194 6
for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:17904: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d14198 1
a14198 1
#line 17910 "configure"
d14200 6
a14205 1
#include <$ac_header>
d14207 3
a14209 13
if { (eval echo "$as_me:17914: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:17920: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d14211 1
a14211 1
  ac_cpp_err=yes
d14213 2
a14214 6
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
d14216 6
a14221 7
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:17939: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a14224 1
done
d14226 4
a14229 7
for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:17953: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
d14233 1
a14233 1
#line 17959 "configure"
d14235 4
a14238 3
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
a14239 1
#include <$i>
d14241 7
d14249 3
a14251 18
if { (eval echo "$as_me:17968: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:17974: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
d14255 1
a14255 1
  eval "ac_cv_header_$cv=no"
d14257 1
a14257 1
rm -f conftest.err conftest.$ac_ext
d14259 9
a14267 19
echo "$as_me:17993: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi
done
if false;then

for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:18009: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d14271 1
a14271 1
#line 18015 "configure"
d14273 11
a14283 1
#include <$ac_header>
d14285 3
a14287 18
if { (eval echo "$as_me:18019: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:18025: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d14291 1
a14291 1
  eval "$as_ac_Header=no"
d14293 1
a14293 1
rm -f conftest.err conftest.$ac_ext
d14295 6
a14300 5
echo "$as_me:18044: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a14303 1
done
d14307 2
a14308 10
# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval="$enable_netinfo"

fi;

if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_NETINFO 1
d14313 3
a14315 19
if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi

if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi

echo "$as_me:18086: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
d14318 2
a14319 14

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18104 "configure"
d14321 3
d14328 1
a14328 1
socket()
d14333 3
a14335 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18116: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18119: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18122: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18125: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d14338 2
a14339 1
cat conftest.$ac_ext >&5
d14341 1
a14341 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d14343 7
d14353 3
a14355 10
eval "ac_res=\$ac_cv_funclib_socket"

if false; then

for ac_func in socket
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18147: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d14359 1
a14359 1
#line 18153 "configure"
d14361 2
a14362 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d14367 1
a14367 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d14372 3
a14374 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18184: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18187: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18190: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18193: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d14377 2
a14378 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d14380 1
a14380 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14382 6
a14387 5
echo "$as_me:18203: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a14390 1
done
d14392 32
d14425 8
a14432 4
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"
d14434 8
a14441 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d14443 1
a14443 15
	echo "$as_me:18227: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:18233: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d14445 6
a14450 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d14452 8
a14459 4
	echo "$as_me:18247: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a14460 2
if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d14463 4
a14466 4
echo "$as_me:18256: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d14468 2
a14469 14

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18274 "configure"
d14471 10
d14482 1
d14486 6
a14491 3
gethostbyname()
  ;
  return 0;
d14494 6
a14499 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18286: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18289: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18292: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18295: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d14501 2
a14502 1
  echo "$as_me: failed program was:" >&5
d14504 1
d14506 2
a14507 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d14511 8
d14520 1
a14520 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
d14522 90
a14611 1
if false; then
a14612 1
for ac_func in gethostbyname
d14614 5
a14618 4
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18317: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d14622 1
a14622 1
#line 18323 "configure"
d14624 1
a14624 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d14626 11
a14636 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d14638 2
a14639 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18354: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18357: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18360: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18363: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d14641 1
d14643 2
a14644 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d14646 2
a14647 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14649 3
a14651 3
echo "$as_me:18373: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d14653 1
a14653 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d14659 24
a14683 4
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"
d14685 9
a14693 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d14695 6
a14700 14
	echo "$as_me:18397: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:18403: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d14703 2
a14704 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d14706 1
a14706 4
	echo "$as_me:18417: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d14708 1
a14708 3
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi
d14710 3
a14712 3
echo "$as_me:18426: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
d14715 8
d14724 11
a14734 14
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 18444 "configure"
#include "confdefs.h"
d14736 2
a14737 21
int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18456: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18459: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18462: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18465: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d14739 1
d14741 2
a14742 1
cat conftest.$ac_ext >&5
d14744 2
a14745 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
d14747 8
d14757 2
d14760 3
a14762 1
eval "ac_res=\$ac_cv_funclib_syslog"
d14764 3
a14766 8
if false; then

for ac_func in syslog
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18487: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d14770 1
a14770 1
#line 18493 "configure"
d14772 1
a14772 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d14774 11
a14784 11
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d14786 2
a14787 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:18524: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18527: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18530: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18533: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d14789 1
d14791 2
a14792 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d14794 2
a14795 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d14797 3
a14799 3
echo "$as_me:18543: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d14801 1
a14801 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a14807 4
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"
d14809 7
a14815 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
d14817 2
a14818 14
	echo "$as_me:18567: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:18573: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<EOF
#define $ac_tr_func 1
d14821 1
a14821 3
	cat >>confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d14823 7
a14829 4
	echo "$as_me:18587: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d14831 6
a14836 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
d14854 1
a14854 1
echo "$as_me:18611: checking ipv6 stack type" >&5
d14860 1
a14860 1
#line 18617 "configure"
d14879 1
a14879 1
#line 18636 "configure"
d14898 1
a14898 1
#line 18655 "configure"
d14917 1
a14917 1
#line 18674 "configure"
d14934 1
a14934 1
#line 18691 "configure"
d14964 1
a14964 1
echo "$as_me:18721: result: $v6type" >&5
d14976 1
a14976 1
#line 18733 "configure"
d15011 1
a15011 11
if { (eval echo "$as_me:18768: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18771: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18774: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18777: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15015 2
a15016 2
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
d15018 1
a15018 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15021 1
a15021 1
echo "$as_me:18788: checking for IPv6" >&5
d15023 1
a15023 1
echo "$as_me:18790: result: $ac_cv_lib_ipv6" >&5
d15035 3
a15037 4
if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:18803: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
d15041 11
a15051 2
	cat >conftest.$ac_ext <<_ACEOF
#line 18810 "configure"
d15054 44
a15097 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
d15099 5
d15107 8
a15114 3

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;
d15121 2
a15122 12
if { (eval echo "$as_me:18837: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18840: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18843: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18846: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_in6addr_loopback=yes
d15125 12
a15136 2
cat conftest.$ac_ext >&5
ac_cv_var_in6addr_loopback=no
d15138 2
a15139 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15141 28
a15168 3
echo "$as_me:18856: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then
d15170 2
a15171 2
cat >>confdefs.h <<\EOF
#define HAVE_IN6ADDR_LOOPBACK 1
d15174 7
a15180 1
	fi
d15183 3
a15185 3
echo "$as_me:18867: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
if test "${ac_cv_funclib_logwtmp+set}" = set; then
d15189 1
a15189 1
if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
d15191 6
a15196 8
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15199 1
a15199 1
#line 18885 "configure"
d15205 1
a15205 1
logwtmp()
d15211 2
a15212 12
if { (eval echo "$as_me:18897: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18900: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18903: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18906: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d15215 1
a15215 1
cat conftest.$ac_ext >&5
d15217 1
a15217 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15219 1
a15219 1
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
d15225 1
a15225 1
eval "ac_res=\$ac_cv_funclib_logwtmp"
d15229 1
a15229 1
for ac_func in logwtmp
d15231 2
a15232 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:18928: checking for $ac_func" >&5
d15234 1
a15234 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15238 1
a15238 1
#line 18934 "configure"
d15269 2
a15270 12
if { (eval echo "$as_me:18965: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:18968: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:18971: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:18974: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d15273 2
a15274 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d15276 1
a15276 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15278 3
a15280 3
echo "$as_me:18984: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d15282 1
a15282 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15289 2
a15290 2
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d15292 1
a15292 1
eval "LIB_logwtmp=$ac_res"
d15296 2
a15297 2
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
d15302 1
a15302 1
	echo "$as_me:19008: result: yes" >&5
d15306 3
a15308 3
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	echo "$as_me:19014: result: no" >&5
d15312 1
a15312 1
	eval "ac_cv_func_logwtmp=yes"
d15322 1
a15322 1
	echo "$as_me:19028: result: yes, in $ac_res" >&5
d15327 7
a15333 3
echo "$as_me:19033: checking for logout" >&5
echo $ECHO_N "checking for logout... $ECHO_C" >&6
if test "${ac_cv_funclib_logout+set}" = set; then
d15337 1
a15337 1
if eval "test \"\$ac_cv_func_logout\" != yes" ; then
d15339 6
a15344 8
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15347 1
a15347 1
#line 19051 "configure"
d15353 1
a15353 1
logout()
d15359 2
a15360 12
if { (eval echo "$as_me:19063: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19066: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19069: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19072: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
d15363 1
a15363 1
cat conftest.$ac_ext >&5
d15365 1
a15365 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15367 1
a15367 1
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
d15373 1
a15373 1
eval "ac_res=\$ac_cv_funclib_logout"
d15377 1
a15377 1
for ac_func in logout
d15379 2
a15380 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19094: checking for $ac_func" >&5
d15382 1
a15382 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15386 1
a15386 1
#line 19100 "configure"
d15417 2
a15418 12
if { (eval echo "$as_me:19131: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19134: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19137: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19140: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d15421 2
a15422 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d15424 1
a15424 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15426 3
a15428 3
echo "$as_me:19150: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d15430 1
a15430 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15437 2
a15438 2
# logout
eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d15440 1
a15440 1
eval "LIB_logout=$ac_res"
d15444 2
a15445 2
	eval "ac_cv_func_logout=yes"
	eval "LIB_logout="
d15450 1
a15450 1
	echo "$as_me:19174: result: yes" >&5
d15454 3
a15456 3
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	echo "$as_me:19180: result: no" >&5
d15460 1
a15460 1
	eval "ac_cv_func_logout=yes"
d15470 1
a15470 1
	echo "$as_me:19194: result: yes, in $ac_res" >&5
d15475 7
a15481 3
echo "$as_me:19199: checking for openpty" >&5
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
if test "${ac_cv_funclib_openpty+set}" = set; then
d15485 1
a15485 1
if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
d15488 5
a15492 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15495 1
a15495 1
#line 19217 "configure"
d15501 1
a15501 1
openpty()
d15507 2
a15508 12
if { (eval echo "$as_me:19229: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19232: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19235: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19238: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
d15511 1
a15511 1
cat conftest.$ac_ext >&5
d15513 1
a15513 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15515 1
a15515 1
	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
d15521 1
a15521 1
eval "ac_res=\$ac_cv_funclib_openpty"
d15525 1
a15525 1
for ac_func in openpty
d15527 2
a15528 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19260: checking for $ac_func" >&5
d15530 1
a15530 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15534 1
a15534 1
#line 19266 "configure"
d15565 2
a15566 12
if { (eval echo "$as_me:19297: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19300: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19303: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19306: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d15569 2
a15570 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d15572 1
a15572 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15574 3
a15576 3
echo "$as_me:19316: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d15578 1
a15578 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15585 2
a15586 2
# openpty
eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d15588 1
a15588 1
eval "LIB_openpty=$ac_res"
d15592 2
a15593 2
	eval "ac_cv_func_openpty=yes"
	eval "LIB_openpty="
d15598 1
a15598 1
	echo "$as_me:19340: result: yes" >&5
d15602 3
a15604 3
	eval "ac_cv_func_openpty=no"
	eval "LIB_openpty="
	echo "$as_me:19346: result: no" >&5
d15608 1
a15608 1
	eval "ac_cv_func_openpty=yes"
d15618 1
a15618 1
	echo "$as_me:19360: result: yes, in $ac_res" >&5
d15623 1
a15623 1
echo "$as_me:19365: checking for tgetent" >&5
d15632 5
a15636 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15639 1
a15639 1
#line 19383 "configure"
d15651 1
a15651 11
if { (eval echo "$as_me:19395: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19398: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19401: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19404: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15655 1
a15655 1
cat conftest.$ac_ext >&5
d15657 1
a15657 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15671 2
a15672 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19426: checking for $ac_func" >&5
d15674 1
a15674 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15678 1
a15678 1
#line 19432 "configure"
d15709 2
a15710 12
if { (eval echo "$as_me:19463: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19466: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19469: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19472: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d15713 2
a15714 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d15716 1
a15716 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15718 3
a15720 3
echo "$as_me:19482: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d15722 1
a15722 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15742 1
a15742 1
	echo "$as_me:19506: result: yes" >&5
d15748 1
a15748 1
	echo "$as_me:19512: result: no" >&5
d15762 1
a15762 1
	echo "$as_me:19526: result: yes, in $ac_res" >&5
d15767 1
a15767 1
echo "$as_me:19531: checking for gethostbyname2" >&5
d15776 5
a15780 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15783 1
a15783 1
#line 19549 "configure"
d15795 1
a15795 11
if { (eval echo "$as_me:19561: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19564: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19567: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19570: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15799 1
a15799 1
cat conftest.$ac_ext >&5
d15801 1
a15801 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15815 2
a15816 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19592: checking for $ac_func" >&5
d15818 1
a15818 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15822 1
a15822 1
#line 19598 "configure"
d15853 2
a15854 12
if { (eval echo "$as_me:19629: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19632: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19635: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19638: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d15857 2
a15858 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d15860 1
a15860 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15862 3
a15864 3
echo "$as_me:19648: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d15866 1
a15866 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15886 1
a15886 1
	echo "$as_me:19672: result: yes" >&5
d15892 1
a15892 1
	echo "$as_me:19678: result: no" >&5
d15906 1
a15906 1
	echo "$as_me:19692: result: yes, in $ac_res" >&5
d15915 1
a15915 1
echo "$as_me:19701: checking for res_search" >&5
d15924 5
a15928 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d15931 1
a15931 1
#line 19719 "configure"
d15957 1
a15957 11
if { (eval echo "$as_me:19745: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19748: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19751: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19754: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d15961 1
a15961 1
cat conftest.$ac_ext >&5
d15963 1
a15963 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d15977 2
a15978 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19776: checking for $ac_func" >&5
d15980 1
a15980 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15984 1
a15984 1
#line 19782 "configure"
d16015 2
a16016 12
if { (eval echo "$as_me:19813: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19816: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19819: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19822: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16019 2
a16020 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16022 1
a16022 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16024 3
a16026 3
echo "$as_me:19832: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16028 1
a16028 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16048 1
a16048 1
	echo "$as_me:19856: result: yes" >&5
d16054 1
a16054 1
	echo "$as_me:19862: result: no" >&5
d16068 1
a16068 1
	echo "$as_me:19876: result: yes, in $ac_res" >&5
d16077 1
a16077 1
echo "$as_me:19885: checking for dn_expand" >&5
d16086 5
a16090 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d16093 1
a16093 1
#line 19903 "configure"
d16119 1
a16119 11
if { (eval echo "$as_me:19929: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:19932: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:19935: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:19938: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16123 1
a16123 1
cat conftest.$ac_ext >&5
d16125 1
a16125 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16139 2
a16140 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:19960: checking for $ac_func" >&5
d16142 1
a16142 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16146 1
a16146 1
#line 19966 "configure"
d16177 2
a16178 12
if { (eval echo "$as_me:19997: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20000: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20003: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20006: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16181 2
a16182 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16184 1
a16184 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16186 3
a16188 3
echo "$as_me:20016: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16190 1
a16190 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16210 1
a16210 1
	echo "$as_me:20040: result: yes" >&5
d16216 1
a16216 1
	echo "$as_me:20046: result: no" >&5
d16230 1
a16230 1
	echo "$as_me:20060: result: yes, in $ac_res" >&5
d16239 1
a16239 1
echo "$as_me:20069: checking for working snprintf" >&5
d16249 1
a16249 1
#line 20079 "configure"
d16262 4
a16265 10
if { (eval echo "$as_me:20092: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20095: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:20097: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20100: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16273 2
a16274 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d16276 1
d16278 1
a16278 1
echo "$as_me:20112: result: $ac_cv_func_snprintf_working" >&5
d16291 1
a16291 1
echo "$as_me:20125: checking if snprintf needs a prototype" >&5
d16297 1
a16297 1
#line 20131 "configure"
d16312 1
a16312 11
if { (eval echo "$as_me:20146: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20149: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:20152: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20155: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16316 2
a16317 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
d16321 1
a16321 1
echo "$as_me:20165: result: $ac_cv_func_snprintf_noproto" >&5
d16336 1
a16336 1
echo "$as_me:20180: checking for working vsnprintf" >&5
d16346 1
a16346 1
#line 20190 "configure"
d16369 4
a16372 10
if { (eval echo "$as_me:20213: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20216: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:20218: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20221: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16380 2
a16381 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d16383 1
d16385 1
a16385 1
echo "$as_me:20233: result: $ac_cv_func_vsnprintf_working" >&5
d16398 1
a16398 1
echo "$as_me:20246: checking if vsnprintf needs a prototype" >&5
d16404 1
a16404 1
#line 20252 "configure"
d16419 1
a16419 11
if { (eval echo "$as_me:20267: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:20270: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:20273: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20276: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16423 2
a16424 2
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
d16428 1
a16428 1
echo "$as_me:20286: result: $ac_cv_func_vsnprintf_noproto" >&5
d16477 2
a16478 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20336: checking for $ac_func" >&5
d16480 1
a16480 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16484 1
a16484 1
#line 20342 "configure"
d16515 2
a16516 12
if { (eval echo "$as_me:20373: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20376: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20379: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20382: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16519 2
a16520 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16522 1
a16522 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16524 3
a16526 3
echo "$as_me:20392: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16528 1
a16528 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16536 3
a16538 2
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:20405: checking for $ac_header" >&5
d16540 1
a16540 1
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d16544 1
a16544 1
#line 20411 "configure"
d16547 1
d16549 3
a16551 9
if { (eval echo "$as_me:20415: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:20421: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
d16559 1
d16561 1
a16561 1
  eval "$as_ac_Header=yes"
d16563 1
d16566 1
a16566 1
  eval "$as_ac_Header=no"
d16568 2
a16569 1
rm -f conftest.err conftest.$ac_ext
d16571 3
a16573 3
echo "$as_me:20440: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
d16575 1
a16575 1
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d16583 2
a16584 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20453: checking for $ac_func" >&5
d16586 1
a16586 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16590 1
a16590 1
#line 20459 "configure"
d16621 2
a16622 12
if { (eval echo "$as_me:20490: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20493: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20496: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20499: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16625 2
a16626 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16628 1
a16628 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16630 3
a16632 3
echo "$as_me:20509: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16634 1
a16634 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16640 1
a16640 1
echo "$as_me:20519: checking for getpwnam_r" >&5
d16649 5
a16653 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d16656 1
a16656 1
#line 20537 "configure"
d16668 1
a16668 11
if { (eval echo "$as_me:20549: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20552: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20555: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20558: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16672 1
a16672 1
cat conftest.$ac_ext >&5
d16674 1
a16674 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16688 2
a16689 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20580: checking for $ac_func" >&5
d16691 1
a16691 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16695 1
a16695 1
#line 20586 "configure"
d16726 2
a16727 12
if { (eval echo "$as_me:20617: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20620: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20623: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20626: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16730 2
a16731 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16733 1
a16733 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16735 3
a16737 3
echo "$as_me:20636: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16739 1
a16739 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16759 1
a16759 1
	echo "$as_me:20660: result: yes" >&5
d16765 1
a16765 1
	echo "$as_me:20666: result: no" >&5
d16779 1
a16779 1
	echo "$as_me:20680: result: yes, in $ac_res" >&5
d16785 1
a16785 1
	echo "$as_me:20686: checking if getpwnam_r is posix" >&5
d16796 1
a16796 1
#line 20697 "configure"
d16808 4
a16811 10
if { (eval echo "$as_me:20709: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20712: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:20714: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20717: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16819 2
a16820 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d16822 1
d16825 1
a16825 1
echo "$as_me:20730: result: $ac_cv_func_getpwnam_r_posix" >&5
d16836 1
a16836 1
echo "$as_me:20741: checking for getsockopt" >&5
d16845 5
a16849 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d16852 1
a16852 1
#line 20759 "configure"
d16869 1
a16869 11
if { (eval echo "$as_me:20776: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20779: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20782: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20785: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d16873 1
a16873 1
cat conftest.$ac_ext >&5
d16875 1
a16875 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16889 2
a16890 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20807: checking for $ac_func" >&5
d16892 1
a16892 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16896 1
a16896 1
#line 20813 "configure"
d16927 2
a16928 12
if { (eval echo "$as_me:20844: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20847: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20850: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20853: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d16931 2
a16932 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d16934 1
a16934 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d16936 3
a16938 3
echo "$as_me:20863: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d16940 1
a16940 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16960 1
a16960 1
	echo "$as_me:20887: result: yes" >&5
d16966 1
a16966 1
	echo "$as_me:20893: result: no" >&5
d16980 1
a16980 1
	echo "$as_me:20907: result: yes, in $ac_res" >&5
d16985 1
a16985 1
echo "$as_me:20912: checking for setsockopt" >&5
d16994 5
a16998 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d17001 1
a17001 1
#line 20930 "configure"
d17018 1
a17018 11
if { (eval echo "$as_me:20947: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:20950: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:20953: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:20956: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17022 1
a17022 1
cat conftest.$ac_ext >&5
d17024 1
a17024 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17038 2
a17039 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:20978: checking for $ac_func" >&5
d17041 1
a17041 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17045 1
a17045 1
#line 20984 "configure"
d17076 2
a17077 12
if { (eval echo "$as_me:21015: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:21021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17080 2
a17081 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d17083 1
a17083 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17085 3
a17087 3
echo "$as_me:21034: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d17089 1
a17089 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17109 1
a17109 1
	echo "$as_me:21058: result: yes" >&5
d17115 1
a17115 1
	echo "$as_me:21064: result: no" >&5
d17129 1
a17129 1
	echo "$as_me:21078: result: yes, in $ac_res" >&5
d17136 2
a17137 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:21086: checking for $ac_func" >&5
d17139 109
a17247 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17250 5
d17256 1
a17256 1
#line 21092 "configure"
a17257 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d17259 4
a17262 2
int
main ()
d17264 2
a17265 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
a17266 3
  ;
  return 0;
}
d17268 6
a17273 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:21123: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21126: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:21129: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21132: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d17275 2
a17276 1
  echo "$as_me: failed program was:" >&5
d17278 4
a17281 1
eval "$as_ac_var=no"
d17283 1
a17283 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17285 6
a17290 5
echo "$as_me:21142: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a17293 1
done
d17295 1
a17295 1
echo "$as_me:21152: checking for ut_addr in struct utmp" >&5
d17302 1
a17302 1
#line 21159 "configure"
d17314 1
a17314 11
if { (eval echo "$as_me:21171: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21174: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21177: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21180: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17318 2
a17319 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_addr=no
d17323 1
a17323 1
echo "$as_me:21190: result: $ac_cv_type_struct_utmp_ut_addr" >&5
d17333 1
a17333 1
echo "$as_me:21200: checking for ut_host in struct utmp" >&5
d17340 1
a17340 1
#line 21207 "configure"
d17352 1
a17352 11
if { (eval echo "$as_me:21219: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21222: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21225: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21228: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17356 2
a17357 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_host=no
d17361 1
a17361 1
echo "$as_me:21238: result: $ac_cv_type_struct_utmp_ut_host" >&5
d17371 1
a17371 1
echo "$as_me:21248: checking for ut_id in struct utmp" >&5
d17378 1
a17378 1
#line 21255 "configure"
d17390 1
a17390 11
if { (eval echo "$as_me:21267: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21270: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21273: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21276: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17394 2
a17395 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_id=no
d17399 1
a17399 1
echo "$as_me:21286: result: $ac_cv_type_struct_utmp_ut_id" >&5
d17409 1
a17409 1
echo "$as_me:21296: checking for ut_pid in struct utmp" >&5
d17416 1
a17416 1
#line 21303 "configure"
d17428 1
a17428 11
if { (eval echo "$as_me:21315: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21318: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21321: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21324: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17432 2
a17433 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_pid=no
d17437 1
a17437 1
echo "$as_me:21334: result: $ac_cv_type_struct_utmp_ut_pid" >&5
d17447 1
a17447 1
echo "$as_me:21344: checking for ut_type in struct utmp" >&5
d17454 1
a17454 1
#line 21351 "configure"
d17466 1
a17466 11
if { (eval echo "$as_me:21363: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21366: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21369: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21372: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17470 2
a17471 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_type=no
d17475 1
a17475 1
echo "$as_me:21382: result: $ac_cv_type_struct_utmp_ut_type" >&5
d17485 1
a17485 1
echo "$as_me:21392: checking for ut_user in struct utmp" >&5
d17492 1
a17492 1
#line 21399 "configure"
d17504 1
a17504 11
if { (eval echo "$as_me:21411: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21414: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21417: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21420: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17508 2
a17509 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_user=no
d17513 1
a17513 1
echo "$as_me:21430: result: $ac_cv_type_struct_utmp_ut_user" >&5
d17523 1
a17523 1
echo "$as_me:21440: checking for ut_exit in struct utmpx" >&5
d17530 1
a17530 1
#line 21447 "configure"
d17542 1
a17542 11
if { (eval echo "$as_me:21459: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21462: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21465: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21468: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17546 2
a17547 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_exit=no
d17551 1
a17551 1
echo "$as_me:21478: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
d17561 1
a17561 1
echo "$as_me:21488: checking for ut_syslen in struct utmpx" >&5
d17568 1
a17568 1
#line 21495 "configure"
d17580 1
a17580 11
if { (eval echo "$as_me:21507: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21510: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21513: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21516: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17584 2
a17585 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_syslen=no
d17589 1
a17589 1
echo "$as_me:21526: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
d17599 1
a17599 1
echo "$as_me:21536: checking for tm_gmtoff in struct tm" >&5
d17606 1
a17606 1
#line 21543 "configure"
d17618 1
a17618 11
if { (eval echo "$as_me:21555: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21558: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21561: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21564: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17622 2
a17623 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
d17627 1
a17627 1
echo "$as_me:21574: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
d17637 1
a17637 1
echo "$as_me:21584: checking for tm_zone in struct tm" >&5
d17644 1
a17644 1
#line 21591 "configure"
d17656 1
a17656 11
if { (eval echo "$as_me:21603: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21606: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21609: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21612: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17660 2
a17661 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
d17665 1
a17665 1
echo "$as_me:21622: result: $ac_cv_type_struct_tm_tm_zone" >&5
d17675 1
a17675 1
echo "$as_me:21632: checking for timezone" >&5
d17682 1
a17682 1
#line 21639 "configure"
d17695 1
a17695 11
if { (eval echo "$as_me:21652: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:21655: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:21658: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21661: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17699 2
a17700 2
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
d17702 1
a17702 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d17707 1
a17707 1
echo "$as_me:21674: result: $ac_foo" >&5
d17715 1
a17715 1
echo "$as_me:21682: checking if timezone is properly declared" >&5
d17722 1
a17722 1
#line 21689 "configure"
d17735 1
a17735 11
if { (eval echo "$as_me:21702: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21705: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21708: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21711: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17739 2
a17740 2
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
d17746 1
a17746 1
echo "$as_me:21723: result: $ac_cv_var_timezone_declaration" >&5
d17759 1
a17759 1
echo "$as_me:21736: checking for sa_family_t" >&5
d17765 1
a17765 1
#line 21742 "configure"
d17782 1
a17782 11
if { (eval echo "$as_me:21759: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21762: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21765: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21768: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17786 2
a17787 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d17792 1
a17792 1
echo "$as_me:21779: result: $ac_foo" >&5
d17797 1
a17797 1
	echo "$as_me:21784: checking for sa_family_t" >&5
d17803 1
a17803 1
#line 21790 "configure"
d17818 1
a17818 11
if { (eval echo "$as_me:21805: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21808: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21811: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21814: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17822 2
a17823 2
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
d17827 1
a17827 1
echo "$as_me:21824: result: $ac_cv_type_sa_family_t" >&5
d17846 1
a17846 1
echo "$as_me:21843: checking for socklen_t" >&5
d17852 1
a17852 1
#line 21849 "configure"
d17869 1
a17869 11
if { (eval echo "$as_me:21866: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21869: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21872: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21875: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17873 2
a17874 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d17879 1
a17879 1
echo "$as_me:21886: result: $ac_foo" >&5
d17884 1
a17884 1
	echo "$as_me:21891: checking for socklen_t" >&5
d17890 1
a17890 1
#line 21897 "configure"
d17905 1
a17905 11
if { (eval echo "$as_me:21912: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21915: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21918: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21921: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17909 2
a17910 2
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
d17914 1
a17914 1
echo "$as_me:21931: result: $ac_cv_type_socklen_t" >&5
d17933 1
a17933 1
echo "$as_me:21950: checking for struct sockaddr" >&5
d17939 1
a17939 1
#line 21956 "configure"
d17956 1
a17956 11
if { (eval echo "$as_me:21973: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:21976: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:21979: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:21982: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17960 2
a17961 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d17966 1
a17966 1
echo "$as_me:21993: result: $ac_foo" >&5
d17971 1
a17971 1
	echo "$as_me:21998: checking for struct sockaddr" >&5
d17977 1
a17977 1
#line 22004 "configure"
d17992 1
a17992 11
if { (eval echo "$as_me:22019: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22022: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22025: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22028: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d17996 2
a17997 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
d18001 1
a18001 1
echo "$as_me:22038: result: $ac_cv_type_struct_sockaddr" >&5
d18020 1
a18020 1
echo "$as_me:22057: checking for struct sockaddr_storage" >&5
d18026 1
a18026 1
#line 22063 "configure"
d18043 1
a18043 11
if { (eval echo "$as_me:22080: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22083: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22086: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22089: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18047 2
a18048 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d18053 1
a18053 1
echo "$as_me:22100: result: $ac_foo" >&5
d18058 1
a18058 1
	echo "$as_me:22105: checking for struct sockaddr_storage" >&5
d18064 1
a18064 1
#line 22111 "configure"
d18079 1
a18079 11
if { (eval echo "$as_me:22126: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22129: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22132: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22135: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18083 2
a18084 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
d18088 1
a18088 1
echo "$as_me:22145: result: $ac_cv_type_struct_sockaddr_storage" >&5
d18107 1
a18107 1
echo "$as_me:22164: checking for struct addrinfo" >&5
d18113 1
a18113 1
#line 22170 "configure"
d18130 1
a18130 11
if { (eval echo "$as_me:22187: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22190: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22193: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22196: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18134 2
a18135 2
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d18140 1
a18140 1
echo "$as_me:22207: result: $ac_foo" >&5
d18145 1
a18145 1
	echo "$as_me:22212: checking for struct addrinfo" >&5
d18151 1
a18151 1
#line 22218 "configure"
d18166 1
a18166 11
if { (eval echo "$as_me:22233: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22236: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22239: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22242: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18170 2
a18171 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
d18175 1
a18175 1
echo "$as_me:22252: result: $ac_cv_type_struct_addrinfo" >&5
d18193 1
a18193 1
echo "$as_me:22270: checking for struct winsize" >&5
d18202 1
a18202 1
#line 22279 "configure"
d18223 1
a18223 1
echo "$as_me:22300: result: $ac_cv_struct_winsize" >&5
d18226 1
a18226 1
#line 22303 "configure"
d18242 1
a18242 1
#line 22319 "configure"
d18257 1
a18257 1
echo "$as_me:22334: checking for struct spwd" >&5
d18264 1
a18264 1
#line 22341 "configure"
d18279 1
a18279 11
if { (eval echo "$as_me:22356: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22359: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22362: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22365: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18283 2
a18284 2
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
d18290 1
a18290 1
echo "$as_me:22377: result: $ac_cv_struct_spwd" >&5
d18301 1
a18301 1
echo "$as_me:22388: checking for sa_len in struct sockaddr" >&5
d18308 1
a18308 1
#line 22395 "configure"
d18321 1
a18321 11
if { (eval echo "$as_me:22408: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22411: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22414: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22417: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d18325 2
a18326 2
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
d18330 1
a18330 1
echo "$as_me:22427: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
d18340 5
a18344 258
echo "$as_me:22437: checking for int8_t" >&5
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
if test "${ac_cv_type_int8_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 22443 "configure"
#include "confdefs.h"

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int
main ()
{
if ((int8_t *) 0)
  return 0;
if (sizeof (int8_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22474: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22477: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22480: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22483: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int8_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int8_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22493: result: $ac_cv_type_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_int8_t" >&6
if test $ac_cv_type_int8_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_INT8_T 1
EOF

fi
echo "$as_me:22502: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${ac_cv_type_int16_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 22508 "configure"
#include "confdefs.h"

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int
main ()
{
if ((int16_t *) 0)
  return 0;
if (sizeof (int16_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22539: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22542: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22545: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22548: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int16_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int16_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22558: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
if test $ac_cv_type_int16_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_INT16_T 1
EOF

fi
echo "$as_me:22567: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${ac_cv_type_int32_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 22573 "configure"
#include "confdefs.h"

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int
main ()
{
if ((int32_t *) 0)
  return 0;
if (sizeof (int32_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22604: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22607: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22610: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22613: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int32_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int32_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22623: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
if test $ac_cv_type_int32_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_INT32_T 1
EOF

fi
echo "$as_me:22632: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
if test "${ac_cv_type_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 22638 "configure"
#include "confdefs.h"

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int
main ()
{
if ((int64_t *) 0)
  return 0;
if (sizeof (int64_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22669: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22672: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22675: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22678: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_int64_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22688: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6
if test $ac_cv_type_int64_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_INT64_T 1
EOF
d18346 1
a18346 4
fi
echo "$as_me:22697: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int8_t+set}" = set; then
d18350 1
a18350 1
#line 22703 "configure"
d18372 2
a18373 4
if ((u_int8_t *) 0)
  return 0;
if (sizeof (u_int8_t))
  return 0;
d18379 2
a18380 12
if { (eval echo "$as_me:22734: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22737: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22740: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22743: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int8_t=yes
d18383 2
a18384 2
cat conftest.$ac_ext >&5
ac_cv_type_u_int8_t=no
a18387 3
echo "$as_me:22753: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
if test $ac_cv_type_u_int8_t = yes; then
d18389 5
a18393 2
cat >>confdefs.h <<EOF
#define HAVE_U_INT8_T 1
d18396 18
a18413 4
fi
echo "$as_me:22762: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int16_t+set}" = set; then
d18417 1
a18417 1
#line 22768 "configure"
d18419 40
d18460 12
a18471 15
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
d18476 1
a18476 4
if ((u_int16_t *) 0)
  return 0;
if (sizeof (u_int16_t))
  return 0;
d18481 3
a18483 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22799: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22802: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22805: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22808: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int16_t=yes
d18486 6
a18491 2
cat conftest.$ac_ext >&5
ac_cv_type_u_int16_t=no
d18493 1
a18493 1
rm -f conftest.$ac_objext conftest.$ac_ext
a18494 3
echo "$as_me:22818: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
if test $ac_cv_type_u_int16_t = yes; then
d18496 3
a18498 3
cat >>confdefs.h <<EOF
#define HAVE_U_INT16_T 1
EOF
d18500 6
a18505 4
fi
echo "$as_me:22827: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int32_t+set}" = set; then
d18509 1
a18509 1
#line 22833 "configure"
d18511 6
a18516 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d18518 4
d18526 9
a18534 4
if ((u_int32_t *) 0)
  return 0;
if (sizeof (u_int32_t))
  return 0;
d18539 3
a18541 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22864: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22867: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22870: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22873: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int32_t=yes
d18544 12
a18555 2
cat conftest.$ac_ext >&5
ac_cv_type_u_int32_t=no
d18557 2
a18558 1
rm -f conftest.$ac_objext conftest.$ac_ext
d18560 28
a18587 3
echo "$as_me:22883: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
if test $ac_cv_type_u_int32_t = yes; then
d18589 2
a18590 2
cat >>confdefs.h <<EOF
#define HAVE_U_INT32_T 1
d18593 45
d18639 11
a18649 3
echo "$as_me:22892: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
if test "${ac_cv_type_u_int64_t+set}" = set; then
d18653 1
a18653 1
#line 22898 "configure"
d18655 6
a18660 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d18662 4
d18670 9
a18678 4
if ((u_int64_t *) 0)
  return 0;
if (sizeof (u_int64_t))
  return 0;
d18683 3
a18685 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22929: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22932: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:22935: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:22938: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_u_int64_t=yes
d18688 15
a18702 2
cat conftest.$ac_ext >&5
ac_cv_type_u_int64_t=no
d18704 28
a18731 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:22948: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
if test $ac_cv_type_u_int64_t = yes; then
d18733 2
a18734 2
cat >>confdefs.h <<EOF
#define HAVE_U_INT64_T 1
d18737 8
a18744 4
fi
echo "$as_me:22957: checking for uint8_t" >&5
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
if test "${ac_cv_type_uint8_t+set}" = set; then
d18747 12
a18758 2
  cat >conftest.$ac_ext <<_ACEOF
#line 22963 "configure"
a18760 16
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

d18764 1
a18764 4
if ((uint8_t *) 0)
  return 0;
if (sizeof (uint8_t))
  return 0;
d18769 3
a18771 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:22994: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:22997: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23000: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23003: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint8_t=yes
d18774 6
a18779 2
cat conftest.$ac_ext >&5
ac_cv_type_uint8_t=no
d18781 1
a18781 1
rm -f conftest.$ac_objext conftest.$ac_ext
a18782 3
echo "$as_me:23013: result: $ac_cv_type_uint8_t" >&5
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
if test $ac_cv_type_uint8_t = yes; then
d18784 3
a18786 3
cat >>confdefs.h <<EOF
#define HAVE_UINT8_T 1
EOF
d18788 6
a18793 4
fi
echo "$as_me:23022: checking for uint16_t" >&5
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
if test "${ac_cv_type_uint16_t+set}" = set; then
d18797 1
a18797 1
#line 23028 "configure"
d18799 6
a18804 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d18806 4
d18814 9
a18822 4
if ((uint16_t *) 0)
  return 0;
if (sizeof (uint16_t))
  return 0;
d18827 3
a18829 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:23059: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:23062: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23065: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23068: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint16_t=yes
d18832 12
a18843 2
cat conftest.$ac_ext >&5
ac_cv_type_uint16_t=no
d18845 2
a18846 1
rm -f conftest.$ac_objext conftest.$ac_ext
d18848 28
a18875 3
echo "$as_me:23078: result: $ac_cv_type_uint16_t" >&5
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
if test $ac_cv_type_uint16_t = yes; then
d18877 2
a18878 2
cat >>confdefs.h <<EOF
#define HAVE_UINT16_T 1
d18881 8
a18888 4
fi
echo "$as_me:23087: checking for uint32_t" >&5
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
if test "${ac_cv_type_uint32_t+set}" = set; then
d18891 12
a18902 2
  cat >conftest.$ac_ext <<_ACEOF
#line 23093 "configure"
a18904 16
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

d18908 1
a18908 4
if ((uint32_t *) 0)
  return 0;
if (sizeof (uint32_t))
  return 0;
d18913 3
a18915 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:23124: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:23127: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23130: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23133: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint32_t=yes
d18918 6
a18923 2
cat conftest.$ac_ext >&5
ac_cv_type_uint32_t=no
d18925 1
a18925 1
rm -f conftest.$ac_objext conftest.$ac_ext
a18926 3
echo "$as_me:23143: result: $ac_cv_type_uint32_t" >&5
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
if test $ac_cv_type_uint32_t = yes; then
d18928 3
a18930 3
cat >>confdefs.h <<EOF
#define HAVE_UINT32_T 1
EOF
d18932 6
a18937 4
fi
echo "$as_me:23152: checking for uint64_t" >&5
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
if test "${ac_cv_type_uint64_t+set}" = set; then
d18941 1
a18941 1
#line 23158 "configure"
d18943 6
a18948 15

#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
d18950 4
d18958 9
a18966 4
if ((uint64_t *) 0)
  return 0;
if (sizeof (uint64_t))
  return 0;
d18971 3
a18973 13
rm -f conftest.$ac_objext
if { (eval echo "$as_me:23189: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:23192: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23195: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23198: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_uint64_t=yes
d18976 2
a18977 2
cat conftest.$ac_ext >&5
ac_cv_type_uint64_t=no
d18979 1
a18979 1
rm -f conftest.$ac_objext conftest.$ac_ext
d18981 5
a18985 6
echo "$as_me:23208: result: $ac_cv_type_uint64_t" >&5
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
if test $ac_cv_type_uint64_t = yes; then

cat >>confdefs.h <<EOF
#define HAVE_UINT64_T 1
d18989 1
d18991 5
a18995 1
crypto_lib=unknown
d18997 7
a19003 3
# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"
d19005 15
a19019 1
fi;
d19021 3
a19023 11
# Check whether --with-openssl-lib or --without-openssl-lib was given.
if test "${with_openssl_lib+set}" = set; then
  withval="$with_openssl_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:23230: error: No argument for --with-openssl-lib" >&5
echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;
d19025 2
a19026 22
# Check whether --with-openssl-include or --without-openssl-include was given.
if test "${with_openssl_include+set}" = set; then
  withval="$with_openssl_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:23242: error: No argument for --with-openssl-include" >&5
echo "$as_me: error: No argument for --with-openssl-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;

case "$with_openssl" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openssl_include" = ""; then
		with_openssl_include="$with_openssl/include"
	fi
	if test "$with_openssl_lib" = ""; then
		with_openssl_lib="$with_openssl/lib$abilibdirext"
	fi
d19030 5
a19034 1
DIR_des=
d19036 11
a19046 23
echo "$as_me:23265: checking for crypto library" >&5
echo $ECHO_N "checking for crypto library... $ECHO_C" >&6

if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then

  save_CPPFLAGS="$CPPFLAGS"
  save_LIBS="$LIBS"
  INCLUDE_des=
  LIB_des=
  if test "$with_openssl_include" != ""; then
    INCLUDE_des="-I${with_openssl}/include"
  fi
  if test "$with_openssl_lib" != ""; then
    LIB_des="-L${with_openssl}/lib"
  fi
  CPPFLAGS="${INCLUDE_des} ${CPPFLAGS}"
  LIB_des="${LIB_des} -lcrypto"
  LIB_des_a="$LIB_des"
  LIB_des_so="$LIB_des"
  LIB_des_appl="$LIB_des"
  LIBS="${LIBS} ${LIB_des}"
  cat >conftest.$ac_ext <<_ACEOF
#line 23287 "configure"
a19048 6
  #include <openssl/md4.h>
  #include <openssl/md5.h>
  #include <openssl/sha.h>
  #include <openssl/des.h>
  #include <openssl/rc4.h>

d19052 1
a19052 12

    MD4_CTX md4;
    MD5_CTX md5;
    SHA_CTX sha1;

    MD4_Init(&md4);
    MD5_Init(&md5);
    SHA1_Init(&sha1);

    des_cbc_encrypt(0, 0, 0, 0, 0, 0);
    RC4(0, 0, 0, 0);

d19058 2
a19059 20
if { (eval echo "$as_me:23316: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23319: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23322: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23325: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

  crypto_lib=libcrypto

cat >>confdefs.h <<\EOF
#define HAVE_OPENSSL 1
EOF

  echo "$as_me:23334: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6
d19062 6
a19067 1
cat conftest.$ac_ext >&5
d19069 1
a19069 3
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  CPPFLAGS="$save_CPPFLAGS"
  LIBS="$save_LIBS"
d19072 12
a19083 16
if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then

  save_CPPFLAGS="$CPPFLAGS"
  save_LIBS="$LIBS"
  INCLUDE_des="${INCLUDE_krb4}"
  LIB_des=
  if test "$krb4_libdir"; then
    LIB_des="-L${krb4_libdir}"
  fi
  LIB_des="${LIB_des} -ldes"
  CPPFLAGS="${CPPFLAGS} ${INCLUDE_des}"
  LIBS="${LIBS} ${LIB_des}"
  LIB_des_a="$LIB_des"
  LIB_des_so="$LIB_des"
  LIB_des_appl="$LIB_des"
  LIBS="${LIBS} ${LIB_des}"
d19085 1
a19085 1
#line 23362 "configure"
d19087 11
a19097 8

  #undef KRB5 /* makes md4.h et al unhappy */
  #define KRB4
  #include <md4.h>
  #include <md5.h>
  #include <sha.h>
  #include <des.h>
  #include <rc4.h>
d19102 8
a19109 11

    MD4_CTX md4;
    MD5_CTX md5;
    SHA_CTX sha1;

    MD4_Init(&md4);
    MD5_Init(&md5);
    SHA1_Init(&sha1);

    des_cbc_encrypt(0, 0, 0, 0, 0, 0);
    RC4(0, 0, 0, 0);
d19116 2
a19117 13
if { (eval echo "$as_me:23393: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23396: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23399: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23402: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  crypto_lib=krb4; echo "$as_me:23404: result: krb4's libdes" >&5
echo "${ECHO_T}krb4's libdes" >&6
d19120 12
a19131 1
cat conftest.$ac_ext >&5
d19133 2
a19134 3
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  CPPFLAGS="$save_CPPFLAGS"
  LIBS="$save_LIBS"
d19136 32
d19169 4
a19172 1
if test "$crypto_lib" = "unknown"; then
d19174 13
a19188 2
  LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
  LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
a19189 4

  echo "$as_me:23423: result: included libdes" >&5
echo "${ECHO_T}included libdes" >&6

d19192 1
a19192 1
echo "$as_me:23428: checking for el_init" >&5
d19201 5
a19205 7
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
d19208 1
a19208 1
#line 23446 "configure"
d19220 1
a19220 11
if { (eval echo "$as_me:23458: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23461: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23464: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23467: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19224 1
a19224 1
cat conftest.$ac_ext >&5
d19226 1
a19226 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d19240 2
a19241 2
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:23489: checking for $ac_func" >&5
d19243 1
a19243 1
if eval "test \"\${$as_ac_var+set}\" = set"; then
d19247 1
a19247 1
#line 23495 "configure"
d19278 2
a19279 12
if { (eval echo "$as_me:23526: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23529: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23532: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23535: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d19282 2
a19283 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d19285 1
a19285 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d19287 3
a19289 3
echo "$as_me:23545: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
d19291 1
a19291 1
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d19311 1
a19311 1
	echo "$as_me:23569: result: yes" >&5
d19317 1
a19317 1
	echo "$as_me:23575: result: no" >&5
d19331 1
a19331 1
	echo "$as_me:23589: result: yes, in $ac_res" >&5
d19337 1
a19337 1
	echo "$as_me:23595: checking for four argument el_init" >&5
d19344 1
a19344 1
#line 23602 "configure"
d19357 1
a19357 11
if { (eval echo "$as_me:23615: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:23618: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:23621: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23624: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19361 2
a19362 2
cat conftest.$ac_ext >&5
ac_cv_func_el_init_four=no
d19366 1
a19366 1
echo "$as_me:23634: result: $ac_cv_func_el_init_four" >&5
d19437 1
a19437 1
echo "$as_me:23705: checking for getmsg" >&5
d19443 1
a19443 1
#line 23711 "configure"
d19474 1
a19474 11
if { (eval echo "$as_me:23742: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23745: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23748: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23751: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19478 2
a19479 2
cat conftest.$ac_ext >&5
ac_cv_func_getmsg=no
d19481 1
a19481 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d19483 1
a19483 1
echo "$as_me:23761: result: $ac_cv_func_getmsg" >&5
d19488 1
a19488 1
echo "$as_me:23766: checking for working getmsg" >&5
d19497 1
a19497 1
#line 23775 "configure"
d19514 4
a19517 10
if { (eval echo "$as_me:23792: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23795: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:23797: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23800: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d19525 2
a19526 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d19528 1
d19530 1
a19530 1
echo "$as_me:23812: result: $ac_cv_func_getmsg_work" >&5
d19541 1
a19541 1
echo "$as_me:23823: checking for streamspty" >&5
d19551 1
a19551 1
echo "$as_me:23833: result: $krb_cv_sys_streamspty" >&5
d19562 1
a19562 156
# Extract the first word of "compile_et", so it can be a program name with args.
set dummy compile_et; ac_word=$2
echo "$as_me:23846: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$COMPILE_ET"; then
  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_COMPILE_ET="compile_et"
echo "$as_me:23861: found $ac_dir/$ac_word" >&5
break
done

fi
fi
COMPILE_ET=$ac_cv_prog_COMPILE_ET
if test -n "$COMPILE_ET"; then
  echo "$as_me:23869: result: $COMPILE_ET" >&5
echo "${ECHO_T}$COMPILE_ET" >&6
else
  echo "$as_me:23872: result: no" >&5
echo "${ECHO_T}no" >&6
fi

krb_cv_compile_et="no"
if test "${COMPILE_ET}" = "compile_et"; then

echo "$as_me:23879: checking whether compile_et has the features we need" >&5
echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
cat > conftest_et.et <<'EOF'
error_table conf
prefix CONFTEST
index 1
error_code CODE1, "CODE1"
index 128
error_code CODE2, "CODE2"
end
EOF
if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
    save_CPPFLAGS="${save_CPPFLAGS}"
  if test -d "/usr/include/et"; then
    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
  fi
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:23896: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 23901 "configure"
#include "confdefs.h"

#include <com_err.h>
#include <string.h>
#include "conftest_et.h"
int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:23911: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23914: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:23916: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23919: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_compile_et="yes"
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:23931: result: ${krb_cv_compile_et}" >&5
echo "${ECHO_T}${krb_cv_compile_et}" >&6
rm -fr conftest*
fi

if test "${krb_cv_compile_et}" = "yes"; then
    krb_cv_save_LIBS="${LIBS}"
  LIBS="${LIBS} -lcom_err"
  echo "$as_me:23939: checking for com_err" >&5
echo $ECHO_N "checking for com_err... $ECHO_C" >&6
  cat >conftest.$ac_ext <<_ACEOF
#line 23942 "configure"
#include "confdefs.h"
#include <com_err.h>
int
main ()
{

    const char *p;
    p = error_message(0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:23957: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:23960: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:23963: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:23966: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_com_err="yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  echo "$as_me:23975: result: ${krb_cv_com_err}" >&5
echo "${ECHO_T}${krb_cv_com_err}" >&6
  LIBS="${krb_cv_save_LIBS}"
else
    krb_cv_com_err="no"
fi

if test "${krb_cv_com_err}" = "yes"; then
    DIR_com_err=""
    LIB_com_err="-lcom_err"
    LIB_com_err_a=""
    LIB_com_err_so=""
    { echo "$as_me:23987: Using the already-installed com_err" >&5
echo "$as_me: Using the already-installed com_err" >&6;}
else
    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
    DIR_com_err="com_err"
    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
    { echo "$as_me:23995: Using our own com_err" >&5
echo "$as_me: Using our own com_err" >&6;}
fi

echo "$as_me:23999: checking which authentication modules should be built" >&5
d19579 1
a19579 1
echo "$as_me:24016: result: $LIB_AUTH_SUBDIRS" >&5
d19600 4
d19606 53
a19658 1
ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"
d19689 1
a19689 1
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d19694 1
a19694 1
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d19719 3
a19721 4
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
d19723 1
a19723 8
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
d19728 29
d19760 4
a19763 4
{ echo "$as_me:24120: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
d19770 2
a19771 2
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"
a19772 3
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
a19780 3
# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

a19785 21

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

d19805 1
a19805 1
as_nl='
d19807 1
a19807 1
IFS=" 	$as_nl"
d19812 24
a19835 1
exec 6>&1
d19887 3
a19889 3
heimdal config.status 0.4e
configured by $0, generated by GNU Autoconf 2.52,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d19891 2
a19892 6
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
d19928 3
a19930 5
    { { echo "$as_me:24296: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
d19944 57
d20002 5
a20006 8
  -*) { { echo "$as_me:24315: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

a20010 26
exec 5>>config.log
cat >&5 << _ACEOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me (heimdal 0.4e) 2.52, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
EOF

cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#

AMDEP_TRUE="$AMDEP_TRUE"
ac_aux_dir="$ac_aux_dir"

a20013 64
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
  "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
  "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
  "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
  "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
  "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
  "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
  "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
  "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
  "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
  "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
  "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
  "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
  "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
  "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
  "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
  "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
  "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
  "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
  "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
  "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
  "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
  "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
  "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
  "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
  "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
  "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
  "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
  "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
  "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
  "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
  "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
  "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
  "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
  "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
  "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
  "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
  "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
  "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
  "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
  "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
  "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
  "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
  "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
  "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
  "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  *) { { echo "$as_me:24414: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

a20015 2
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
d20017 3
a20019 3
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d20026 1
a20026 1
  trap '{ (exit 1); exit 1; }' 1 2 13 15
d20041 1
a20041 1
   { (exit 1); exit 1; }
d20047 19
a20092 8
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
d20096 4
a20099 1
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
d20101 1
a20103 3
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
d20105 1
a20106 1
s,@@OBJEXT@@,$OBJEXT,;t t
a20119 1
s,@@INSTALL_STRIP_PROGRAM@@,$INSTALL_STRIP_PROGRAM,;t t
d20122 1
a20122 2
s,@@AMDEP_TRUE@@,$AMDEP_TRUE,;t t
s,@@AMDEP_FALSE@@,$AMDEP_FALSE,;t t
a20124 2
s,@@am__include@@,$am__include,;t t
s,@@am__quote@@,$am__quote,;t t
d20142 2
a20147 1
s,@@LIB_db_create@@,$LIB_db_create,;t t
d20150 1
a20151 1
s,@@LIB_NDBM@@,$LIB_NDBM,;t t
a20175 4
s,@@LIB_getaddrinfo@@,$LIB_getaddrinfo,;t t
s,@@LIB_getnameinfo@@,$LIB_getnameinfo,;t t
s,@@LIB_freeaddrinfo@@,$LIB_freeaddrinfo,;t t
s,@@LIB_gai_strerror@@,$LIB_gai_strerror,;t t
a20236 2
s,@@LIB_logout@@,$LIB_logout,;t t
s,@@LIB_openpty@@,$LIB_openpty,;t t
d20239 5
a20244 1
s,@@INCLUDE_des@@,$INCLUDE_des,;t t
a20245 2
s,@@LIB_des_a@@,$LIB_des_a,;t t
s,@@LIB_des_so@@,$LIB_des_so,;t t
a20249 5
s,@@COMPILE_ET@@,$COMPILE_ET,;t t
s,@@DIR_com_err@@,$DIR_com_err,;t t
s,@@LIB_com_err@@,$LIB_com_err,;t t
s,@@LIB_com_err_a@@,$LIB_com_err_a,;t t
s,@@LIB_com_err_so@@,$LIB_com_err_so,;t t
d20309 1
a20309 1
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
d20323 2
a20324 2
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
d20326 4
a20329 10
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
d20339 4
a20342 7
  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
d20344 2
a20345 2
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
d20347 2
a20348 2
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
d20351 3
a20353 3
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
d20357 2
a20358 2
    { echo "$as_me:24774: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d20367 3
d20376 4
a20379 5
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:24792: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
d20385 1
a20385 1
         elif test -f "$srcdir/$f"; then
d20387 1
a20387 1
           echo $srcdir/$f
d20390 2
a20391 3
           { { echo "$as_me:24805: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
d20394 1
a20394 1
    done` || { (exit 1); exit 1; }
d20404 3
a20406 3
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
d20450 2
a20451 2
  test x"$ac_file" != x- && { echo "$as_me:24866: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d20459 4
a20462 5
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:24877: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
d20468 1
a20468 1
         elif test -f "$srcdir/$f"; then
d20470 1
a20470 1
           echo $srcdir/$f
d20473 2
a20474 3
           { { echo "$as_me:24890: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
d20477 1
a20477 1
    done` || { (exit 1); exit 1; }
d20509 1
a20509 1
# sort them, since we want the *last* AC-DEFINE to be honored.
d20589 2
a20590 2
      { echo "$as_me:25007: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
d20605 2
a20606 2
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
d20608 4
a20611 10
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
a20621 6
  # Run the commands associated with the file.
  case $ac_file in
    include/config.h ) # update the timestamp
echo timestamp >"include/stamp-h1"
 ;;
  esac
d20634 3
a20636 2
    default-1 )
test x"$AMDEP_TRUE" != x"" ||
d20680 1
a20680 1
{ (exit 0); exit 0; }
d20685 1
a20685 17
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
@


1.1.1.8
log
@Import of Heimdal Kerberos from KTH repository circa 2002/08/29.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.320 .
d4 1
a4 1
# Generated by GNU Autoconf 2.53 for Heimdal 0.4f.
d8 1
a8 1
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
d13 6
a18 10
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
  PATH_SEPARATOR=$lt_cv_sys_path_separator
fi
d20 2
d23 2
a24 157
# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF

EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
       echo_test_string="`eval $cmd`" &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for dir in $PATH /usr/ucb; do
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi



if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi


## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##
a33 34
# NLS nuisances.
# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
    { $as_unset LANG || test "${LANG+set}" != set; } ||
      { LANG=C; export LANG; }
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
      { LC_ALL=C; export LC_ALL; }
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
      { LC_TIME=C; export LC_TIME; }
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
      { LC_CTYPE=C; export LC_CTYPE; }
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
      { LANGUAGE=C; export LANGUAGE; }
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
      { LC_COLLATE=C; export LC_COLLATE; }
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
      { LC_NUMERIC=C; export LC_NUMERIC; }
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
      { LC_MESSAGES=C; export LC_MESSAGES; }


d35 1
a35 124
as_me=`(basename "$0") 2>/dev/null ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`

# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conftest.sh
  echo  "exit 0"   >>conftest.sh
  chmod +x conftest.sh
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conftest.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d63 6
a68 5
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d70 9
d87 1
a87 2
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }

d102 1
a102 2
MFLAGS=
MAKEFLAGS=
a109 7
# Identity of this package.
PACKAGE_NAME='Heimdal'
PACKAGE_TARNAME='heimdal'
PACKAGE_VERSION='0.4f'
PACKAGE_STRING='Heimdal 0.4f'
PACKAGE_BUGREPORT='heimdal-bugs@@pdc.kth.se'

a147 1

d186 7
d325 1
a325 1
  | --no-cr | --no-c | -n)
d504 1
a504 1
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
d516 1
a516 1
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
a522 1
# FIXME: To remove some day.
d527 1
a527 1
# FIXME: To remove some day.
a542 1

d547 3
a549 12
  ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$0" : 'X\(//\)[^/]' \| \
         X"$0" : 'X\(//\)$' \| \
         X"$0" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d559 1
a559 1
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
d562 1
a562 1
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d606 2
a607 2
  cat <<_ACEOF
\`configure' configures Heimdal 0.4f to adapt to many kinds of systems.
d627 1
a627 1
_ACEOF
d629 1
a629 1
  cat <<_ACEOF
d656 1
a656 1
_ACEOF
d658 1
a658 1
  cat <<\_ACEOF
d671 2
a672 2
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
d677 1
a677 1
     short | recursive ) echo "Configuration of Heimdal 0.4f:";;
d679 1
a679 1
  cat <<\_ACEOF
d690 2
a691 3
  --disable-berkeley-db   if you don't want berkeley db
  --enable-dce            if you want support for DCE/DFS PAG's
  --disable-otp           if you don't want OTP support
d693 3
a695 4
  --enable-bigendian      the target is big endian
  --enable-littleendian   the target is little endian
  --disable-dynamic-afs   do not use loaded AFS library with AIX
  --enable-netinfo        enable netinfo for configuration lookup
d702 14
a715 24
  --with-pic              try to use only PIC/non-PIC objects default=use both
  --without-ipv6          do not enable IPv6 support
  --with-openldap=dir     use openldap in dir
  --with-openldap-lib=dir use openldap libraries in dir
  --with-openldap-include=dir
                          use openldap headers in dir
  --with-openldap-config=path
                          config program for openldap
  --with-krb4=dir         use krb4 in dir
  --with-krb4-lib=dir     use krb4 libraries in dir
  --with-krb4-include=dir use krb4 headers in dir
  --with-krb4-config=path config program for krb4
  --with-readline=dir     use readline in dir
  --with-readline-lib=dir use readline libraries in dir
  --with-readline-include=dir
                          use readline headers in dir
  --with-readline-config=path
                          config program for readline
  --with-hesiod=dir       use hesiod in dir
  --with-hesiod-lib=dir   use hesiod libraries in dir
  --with-hesiod-include=dir
                          use hesiod headers in dir
  --with-hesiod-config=path
                          config program for hesiod
d735 1
a735 1
_ACEOF
d741 14
a754 33
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d $ac_dir || continue
    ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a755 1
    cd $ac_dir
d757 1
a757 1
    if test -f $ac_srcdir/configure.gnu; then
d759 2
a760 2
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_srcdir/configure; then
d762 3
a764 3
      $SHELL $ac_srcdir/configure  --help=recursive
    elif test -f $ac_srcdir/configure.ac ||
           test -f $ac_srcdir/configure.in; then
d768 1
a768 1
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
d776 3
a778 3
  cat <<\_ACEOF
Heimdal configure 0.4f
generated by GNU Autoconf 2.53
d780 1
a780 1
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
d784 1
a784 1
_ACEOF
d788 1
a788 1
cat >&5 <<_ACEOF
d792 2
a793 2
It was created by Heimdal $as_me 0.4f, which was
generated by GNU Autoconf 2.53.  Invocation command line was
d797 1
a797 1
_ACEOF
d800 3
a802 3
## --------- ##
## Platform. ##
## --------- ##
d821 2
a823 9

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done

d826 4
a829 8
cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF
d831 1
d842 1
a842 1
  | --no-cr | --no-c | -n ) continue ;;
d844 1
a844 2
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    continue ;;
d846 5
a850 6
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  case " $ac_configure_args " in
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
       ac_sep=" " ;;
a857 2
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
d860 6
a865 9
  {
    echo
    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
d879 15
a893 18
}
    echo
    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      sed "/^$/d" confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core core.* *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
a905 27
# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


d917 1
a917 1
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
d919 1
a919 1
    sed 's/^/| /' "$ac_site_file" >&5
d928 1
a928 1
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
d936 1
a936 1
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
d952 1
a952 1
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d956 1
a956 1
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
d962 1
a962 1
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
d964 1
a964 1
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
d966 1
a966 1
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
d971 2
a972 1
  # Pass precious variables to config.status.
d976 5
a980 6
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
d985 1
a985 1
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
d987 1
a987 1
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d998 20
d1019 1
a1019 30
























# Add the stamp file to the list of files AC keeps track of,
# along with our hook.
ac_config_headers="$ac_config_headers include/config.h"



d1029 1
a1029 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1037 9
a1045 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1052 1
a1052 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1055 1
a1055 1
  echo "$as_me:$LINENO: result: no" >&5
d1064 1
a1064 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1072 9
a1080 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1087 1
a1087 1
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d1090 1
a1090 1
  echo "$as_me:$LINENO: result: no" >&5
d1103 1
a1103 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1111 9
a1119 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1126 1
a1126 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1129 1
a1129 1
  echo "$as_me:$LINENO: result: no" >&5
d1138 1
a1138 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1146 9
a1154 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1161 1
a1161 1
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d1164 1
a1164 1
  echo "$as_me:$LINENO: result: no" >&5
d1177 1
a1177 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1186 13
a1198 16
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1210 1
a1210 1
    set dummy "$as_dir/$ac_word" ${1+"$@@"}
d1219 1
a1219 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1222 1
a1222 1
  echo "$as_me:$LINENO: result: no" >&5
d1233 1
a1233 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1241 9
a1249 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1256 1
a1256 1
  echo "$as_me:$LINENO: result: $CC" >&5
d1259 1
a1259 1
  echo "$as_me:$LINENO: result: no" >&5
d1272 1
a1272 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d1280 9
a1288 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d1295 1
a1295 1
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d1298 1
a1298 1
  echo "$as_me:$LINENO: result: no" >&5
d1310 2
a1311 3

test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
d1315 1
a1315 1
echo "$as_me:$LINENO:" \
d1318 1
a1318 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
d1321 1
a1321 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1323 1
a1323 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
d1326 1
a1326 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1328 1
a1328 1
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
d1331 1
a1331 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1335 1
a1335 1
#line $LINENO "configure"
a1337 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1351 1
a1351 1
echo "$as_me:$LINENO: checking for C compiler default output" >&5
d1354 1
a1354 1
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
d1357 1
a1357 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1362 1
a1362 5

# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
d1366 1
a1366 1
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
d1380 1
a1380 1
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
d1386 1
a1386 1
echo "$as_me:$LINENO: result: $ac_file" >&5
d1391 1
a1391 1
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
d1397 1
a1397 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1400 1
a1400 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1407 1
a1407 1
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
d1415 1
a1415 1
echo "$as_me:$LINENO: result: yes" >&5
d1422 1
a1422 1
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
d1424 1
a1424 1
echo "$as_me:$LINENO: result: $cross_compiling" >&5
d1427 3
a1429 3
echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d1432 1
a1432 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1448 2
a1449 2
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
d1454 1
a1454 1
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
d1460 2
a1461 2
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
d1466 1
a1466 1
#line $LINENO "configure"
a1468 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1478 1
a1478 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1481 1
a1481 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1493 2
a1494 2
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
d1500 1
a1500 1
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
d1504 1
a1504 1
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
d1510 1
a1510 1
#line $LINENO "configure"
a1512 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1525 1
a1525 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1528 1
a1528 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1531 1
a1531 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1534 1
a1534 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1546 1
a1546 1
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
d1552 1
a1552 1
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
d1558 1
a1558 1
#line $LINENO "configure"
a1560 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1570 1
a1570 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1573 1
a1573 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1576 1
a1576 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1579 1
a1579 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1589 1
a1589 1
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
d1616 1
a1616 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1619 1
a1619 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1622 1
a1622 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1625 1
a1625 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1637 1
a1637 1
#line $LINENO "configure"
a1640 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1650 1
a1650 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1653 1
a1653 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1656 1
a1656 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1659 1
a1659 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1669 1
a1669 1
#line $LINENO "configure"
a1671 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1681 1
a1681 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1684 1
a1684 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1687 1
a1687 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1690 1
a1690 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1722 1
a1722 1
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
d1743 1
a1743 1
#line $LINENO "configure"
d1748 1
a1748 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1754 1
a1754 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1777 1
a1777 1
#line $LINENO "configure"
d1781 1
a1781 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1787 1
a1787 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1824 1
a1824 1
echo "$as_me:$LINENO: result: $CPP" >&5
d1834 1
a1834 1
#line $LINENO "configure"
d1839 1
a1839 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1845 1
a1845 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1868 1
a1868 1
#line $LINENO "configure"
d1872 1
a1872 1
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d1878 1
a1878 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1906 1
a1906 1
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
d1917 1
a1917 2

echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
d1925 1
a1925 1
#line $LINENO "configure"
a1954 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d1974 1
a1974 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d1977 1
a1977 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d1980 1
a1980 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d1983 1
a1983 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2000 1
a2000 1
    echo "$as_me:$LINENO: result: none needed" >&5
d2003 1
a2003 1
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
a2007 2

am__api_version="1.6"
d2025 1
a2025 1
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d2045 2
a2046 2
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d2051 27
a2077 30
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
          if test $ac_prog = install &&
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            :
          elif test $ac_prog = install &&
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # program-specific install script used by HP pwplus--don't use.
            :
          else
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
            break 3
          fi
        fi
d2079 3
a2081 5
    done
    ;;
esac
done

d2094 1
a2094 1
echo "$as_me:$LINENO: result: $INSTALL" >&5
d2105 1
a2105 1
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
d2129 1
a2129 1
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
d2142 1
a2142 1
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d2148 1
a2148 1
echo "$as_me:$LINENO: result: yes" >&5
a2162 1

d2164 1
a2164 1
am_aux_dir=`cd $ac_aux_dir && pwd`
d2172 3
a2174 2
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
d2177 1
a2177 1
for ac_prog in gawk mawk nawk awk
d2181 1
a2181 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2189 9
a2197 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2204 1
a2204 1
  echo "$as_me:$LINENO: result: $AWK" >&5
d2207 1
a2207 1
  echo "$as_me:$LINENO: result: no" >&5
d2214 1
a2214 1
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2220 1
a2220 1
  cat >conftest.make <<\_ACEOF
d2223 1
a2223 1
_ACEOF
d2234 1
a2234 1
  echo "$as_me:$LINENO: result: yes" >&5
d2238 1
a2238 1
  echo "$as_me:$LINENO: result: no" >&5
d2243 18
d2271 1
a2271 3

ac_config_commands="$ac_config_commands depfiles"

d2279 1
a2279 1
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
d2281 1
a2281 1
am__include="#"
d2301 1
a2301 1
      am__quote="\""
d2306 1
a2306 2

echo "$as_me:$LINENO: result: $_am_result" >&5
d2310 2
a2311 23
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
  enableval="$enable_dependency_tracking"

fi;
if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi


if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi



 # test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" &&
d2313 1
a2313 1
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d2319 2
a2320 2
 PACKAGE=heimdal
 VERSION=0.4f
d2322 3
d2326 3
a2328 3
cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF
d2330 2
d2333 7
a2339 3
cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF
d2343 1
a2343 2
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}

d2347 1
a2347 3

AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}

a2350 1

a2352 1

a2356 86
# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
a2361 1

d2364 1
a2364 1
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
d2426 1
a2426 1
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
d2428 1
a2428 9
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type






test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
d2432 1
a2432 1
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
d2436 1
a2436 1
echo "$as_me:$LINENO: checking build system type" >&5
d2445 1
a2445 1
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
d2449 2
a2450 2
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
d2454 1
a2454 1
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
d2461 1
a2461 2

echo "$as_me:$LINENO: checking host system type" >&5
d2470 1
a2470 1
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d2475 1
a2475 1
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
a2481 1

d2484 16
d2501 3
d2505 1
a2505 5
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF


d2507 9
d2517 1
d2523 1
a2523 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2531 9
a2539 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_YACC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2546 1
a2546 1
  echo "$as_me:$LINENO: result: $YACC" >&5
d2549 1
a2549 1
  echo "$as_me:$LINENO: result: no" >&5
d2561 1
a2561 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2569 27
a2595 2
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
d2597 19
a2615 9
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_LEX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2622 1
a2622 1
  echo "$as_me:$LINENO: result: $LEX" >&5
d2625 1
a2625 1
  echo "$as_me:$LINENO: result: no" >&5
d2635 1
a2635 1
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
d2643 1
a2643 1
#line $LINENO "configure"
a2652 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d2662 1
a2662 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d2665 1
a2665 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2668 1
a2668 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d2671 1
a2671 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2682 1
a2682 1
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
d2687 1
a2687 1
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
d2695 1
a2695 1
#line $LINENO "configure"
a2704 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d2714 1
a2714 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d2717 1
a2717 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2720 1
a2720 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d2723 1
a2723 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2734 1
a2734 1
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
d2745 1
a2745 1
  echo "$as_me:$LINENO: checking lex output file root" >&5
d2752 2
a2753 9
cat >conftest.l <<_ACEOF
%%
%%
_ACEOF
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  (eval $LEX conftest.l) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
d2759 1
a2759 1
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
d2764 1
a2764 1
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
a2765 1
rm -f conftest.l
d2768 1
a2768 1
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
d2784 1
a2784 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d2787 1
a2787 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2790 1
a2790 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d2793 1
a2793 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2805 1
a2805 1
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
d2809 1
a2809 1
cat >>confdefs.h <<\_ACEOF
d2811 1
a2811 1
_ACEOF
d2816 5
a2820 8
if test "$LEX" = :; then
  LEX=${am_missing_run}flex
fi
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
d2822 1
a2822 1
if test "${ac_cv_prog_AWK+set}" = set; then
d2825 2
a2826 2
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
d2828 9
a2836 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d2841 4
a2844 4
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
d2846 1
a2846 1
  echo "$as_me:$LINENO: result: no" >&5
d2850 22
a2871 1
  test -n "$AWK" && break
d2874 58
a2931 4
echo "$as_me:$LINENO: checking for ln -s or something else" >&5
echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
if test "${ac_cv_prog_LN_S+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2949 1
a2949 1
echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
a2951 3



d2977 1
a2977 1
         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
d2983 1
a2983 1
echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
d2992 1
a2992 1
#line $LINENO "configure"
a2994 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3004 1
a3004 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3007 1
a3007 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3010 1
a3010 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3013 1
a3013 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3027 1
a3027 1
echo "$as_me:$LINENO: result: $ac_res" >&5
d3036 1
a3036 1
#line $LINENO "configure"
a3038 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3048 1
a3048 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3051 1
a3051 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3054 1
a3054 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3057 1
a3057 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3069 1
a3069 1
		{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
d3084 1
a3084 1
			{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
d3098 1
a3098 1
         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
d3109 1
a3109 2

echo "$as_me:$LINENO: checking for __attribute__" >&5
d3116 1
a3116 1
#line $LINENO "configure"
a3120 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d3138 1
a3138 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d3141 1
a3141 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3144 1
a3144 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3147 1
a3147 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3160 1
a3160 1
cat >>confdefs.h <<\_ACEOF
d3162 1
a3162 1
_ACEOF
d3165 1
a3165 1
echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
a3167 1

d3172 1
a3172 1
case $enableval in
d3194 1
a3194 1
case $enableval in
d3216 1
a3216 1
case $enableval in
a3233 11
# Find the correct PATH separator.  Usually this is `:', but
# DJGPP uses `;' like DOS.
if test "X${PATH_SEPARATOR+set}" != Xset; then
  UNAME=${UNAME-`uname 2>/dev/null`}
  case X$UNAME in
    *-DOS) lt_cv_sys_path_separator=';' ;;
    *)     lt_cv_sys_path_separator=':' ;;
  esac
  PATH_SEPARATOR=$lt_cv_sys_path_separator
fi

d3243 1
a3243 1
if test "$GCC" = yes; then
d3245 1
a3245 1
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
d3247 2
a3248 8
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
d3269 1
a3269 1
  echo "$as_me:$LINENO: checking for GNU ld" >&5
d3272 1
a3272 1
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
d3275 1
a3275 1
if test "${lt_cv_path_LD+set}" = set; then
d3279 1
a3279 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d3283 1
a3283 1
      lt_cv_path_LD="$ac_dir/$ac_prog"
d3287 1
a3287 1
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
d3296 1
a3296 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d3300 1
a3300 1
LD="$lt_cv_path_LD"
d3302 1
a3302 1
  echo "$as_me:$LINENO: result: $LD" >&5
d3305 1
a3305 1
  echo "$as_me:$LINENO: result: no" >&5
d3308 1
a3308 1
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
d3311 1
a3311 1
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
d3313 1
a3313 1
if test "${lt_cv_prog_gnu_ld+set}" = set; then
d3318 1
a3318 1
  lt_cv_prog_gnu_ld=yes
d3320 1
a3320 1
  lt_cv_prog_gnu_ld=no
d3323 2
a3324 16
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
with_gnu_ld=$lt_cv_prog_gnu_ld


echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
test -n "$reload_flag" && reload_flag=" $reload_flag"
d3326 1
a3326 1
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
d3328 1
a3328 1
if test "${lt_cv_path_NM+set}" = set; then
d3333 1
a3333 1
  lt_cv_path_NM="$NM"
d3335 1
a3335 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d3338 1
a3338 2
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
d3342 2
a3343 3
      # Tru64's nm complains that /dev/null is an invalid object file
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
	lt_cv_path_NM="$tmp_nm -B"
d3345 2
a3346 2
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	lt_cv_path_NM="$tmp_nm -p"
d3349 1
a3349 1
	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
d3355 1
a3355 1
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
d3359 2
a3360 2
NM="$lt_cv_path_NM"
echo "$as_me:$LINENO: result: $NM" >&5
d3363 1
a3363 1
echo "$as_me:$LINENO: checking whether ln -s works" >&5
d3367 1
a3367 1
  echo "$as_me:$LINENO: result: yes" >&5
d3370 1
a3370 1
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
d3374 4
a3377 23
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3379 7
a3385 3
beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3387 3
a3389 5
bsdi4*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;
d3391 3
a3393 4
cygwin* | mingw* | pw32*)
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;
d3395 20
a3414 22
darwin* | rhapsody*)
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  case "$host_os" in
  rhapsody* | darwin1.[012])
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
    ;;
  *) # Darwin 1.3 on
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
    ;;
  esac
  ;;

freebsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
a3416 2
  else
    lt_cv_deplibs_check_method=pass_all
d3418 1
d3421 47
a3467 2
gnu*)
  lt_cv_deplibs_check_method=pass_all
d3470 1
a3470 5
hpux10.20*|hpux11*)
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
  ;;
d3472 14
a3485 20
irix5* | irix6*)
  case $host_os in
  irix5*)
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    ;;
  *)
    case $LD in
    *-32|*"-32 ") libmagic=32-bit;;
    *-n32|*"-n32 ") libmagic=N32;;
    *-64|*"-64 ") libmagic=64-bit;;
    *) libmagic=never-match;;
    esac
    # this will be overridden with pass_all, but let us keep it just in case
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
    ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  lt_cv_deplibs_check_method=pass_all
  ;;
d3487 1
a3487 11
# This must be Linux ELF.
linux-gnu*)
  case $host_cpu in
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
    lt_cv_deplibs_check_method=pass_all ;;
  *)
    # glibc up to 2.1.1 does not perform some relocations on ARM
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  esac
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  ;;
d3489 33
a3521 3
netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
d3523 1
a3523 1
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
d3525 2
a3526 1
  ;;
d3528 10
a3537 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
d3539 11
a3549 7
openbsd*)
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  else
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
d3551 8
a3558 1
  ;;
d3560 2
a3561 6
osf3* | osf4* | osf5*)
  # this will be overridden with pass_all, but let us keep it just in case
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  lt_cv_file_magic_test_file=/shlib/libc.so
  lt_cv_deplibs_check_method=pass_all
  ;;
d3563 3
a3565 3
sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3567 12
a3578 4
solaris*)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_file_magic_test_file=/lib/libc.so
  ;;
d3580 1
a3580 3
sysv5uw[78]* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d3582 3
a3584 21
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  esac
  ;;
esac
d3586 2
a3588 4
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
d3590 1
d3592 2
d3595 1
d3597 3
d3601 5
a3605 4
# Check for command to grab the raw symbol name followed by C symbol from nm.
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
d3608 15
a3622 214

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'

# Transform an extracted symbol line into a proper C declaration
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  ;;
irix*)
  symcode='[BCDEGRST]'
  ;;
solaris* | sysv5*)
  symcode='[BDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $host_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  symcode='[ABCDGISTW]'
fi

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Write the raw and C identifiers.
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no
  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr void *
#else
# define lt_ptr char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr address;
}
lt_preloaded_symbols[] =
{
EOF
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  save_LIBS="$LIBS"
	  save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$no_builtin_flag"
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest; then
	    pipe_works=yes
	  fi
	  LIBS="$save_LIBS"
	  CFLAGS="$save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  global_symbol_to_cdecl=
  global_symbol_to_c_name_address=
else
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
fi
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
then
  echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
else
  echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi


echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
d3630 1
a3630 1
  ac_cv_header_stdc=yes
d3634 1
a3634 1
  ac_cv_header_stdc=no
a3636 14

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
d3638 6
a3643 1
rm -f conftest*
d3646 1
d3648 4
a3651 11
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
a3652 3
  ac_cv_header_stdc=no
fi
rm -f conftest*
d3654 14
a3667 1
fi
d3669 2
a3670 18
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
a3671 1
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d3675 3
a3677 6
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
d3680 2
a3681 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d3684 4
a3687 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3690 1
a3690 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3692 1
a3692 1
  :
d3694 1
a3694 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a3695 5
( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d3697 4
a3701 7
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
d3705 1
a3705 1
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d3707 1
d3709 1
a3709 9







for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
d3711 4
a3714 4
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
d3718 1
a3718 1
#line $LINENO "configure"
d3720 23
a3742 1
$ac_includes_default
d3744 3
a3746 1
#include <$ac_header>
d3748 3
a3750 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d3752 1
a3752 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3754 2
a3755 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3758 1
a3758 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3760 1
a3760 1
  eval "$as_ac_Header=yes"
d3764 3
a3766 1
eval "$as_ac_Header=no"
d3768 7
a3774 1
rm -f conftest.$ac_objext conftest.$ac_ext
d3776 1
a3776 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d3779 37
d3817 7
a3823 1
done
d3825 3
d3829 1
d3831 3
a3833 7
for ac_header in dlfcn.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3834 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d3836 14
a3849 5
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d3851 17
a3867 2
$ac_includes_default
#include <$ac_header>
d3869 3
a3871 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d3873 1
a3873 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3875 2
a3876 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3879 1
a3879 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3881 1
a3881 1
  ac_header_compiler=yes
a3884 1
ac_header_compiler=no
d3886 11
a3896 3
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d3898 10
a3907 5
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d3909 27
a3935 1
#include <$ac_header>
d3937 9
a3945 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d3947 3
a3949 15
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
d3952 2
a3953 2
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
d3955 1
a3955 25
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
d3957 6
a3962 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d3965 1
a3965 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d3968 4
d3973 7
a3979 1
done
d3981 15
d3997 3
d4001 4
d4006 7
d4014 3
a4016 34
# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2
a4017 14
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
d4019 1
a4019 6
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi
d4021 4
a4024 4
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
a4025 3
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d4027 14
a4040 32
if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
  /*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
  ?:/*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  ;;
  *)
  ac_save_MAGIC_CMD="$MAGIC_CMD"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/bin:$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    egrep "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2
d4042 4
a4045 8
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org
d4047 21
a4067 17
EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$ac_save_ifs"
  MAGIC_CMD="$ac_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
d4069 2
a4070 2
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d4072 4
a4075 44

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
a4078 25
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d4080 1
a4080 11
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d4082 1
a4082 4
  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi
d4084 1
a4084 13
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
d4086 4
a4089 30
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
d4092 2
a4093 90
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi


enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 4921 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4095 11
a4106 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4110 8
d4124 1
a4124 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4127 1
a4127 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4130 1
a4130 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4133 1
a4133 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4135 1
a4135 1
  lt_cv_cc_needs_belf=yes
d4139 1
a4139 1
lt_cv_cc_needs_belf=no
d4142 7
a4148 5
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d4151 1
a4151 7
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
d4153 5
d4159 7
a4165 1
esac
d4167 19
a4185 56
# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except M$VC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"
need_locks="$enable_libtool_lock"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

if test x"$host" != x"$build"; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
case $host_os in
linux-gnu*) ;;
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
esac
d4187 3
a4189 10
case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
d4192 6
a4197 4
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
d4199 3
a4201 11
if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    ;;
  *)
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d4203 3
a4205 47
# Allow CC to be a program name with arguments.
set dummy $CC
compiler="$2"

echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  objdir=_libs
fi
rmdir .libs 2>/dev/null
echo "$as_me:$LINENO: result: $objdir" >&5
echo "${ECHO_T}$objdir" >&6



# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test -z "$pic_mode" && pic_mode=default

# We assume here that the value for lt_cv_prog_cc_pic will not be cached
# in isolation, and that seeing it set (from the cache) indicates that
# the associated values are set (in the cache) correctly too.
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
if test "${lt_cv_prog_cc_pic+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
   lt_cv_prog_cc_pic=
  lt_cv_prog_cc_shlib=
  lt_cv_prog_cc_wl=
  lt_cv_prog_cc_static=
  lt_cv_prog_cc_no_builtin=
  lt_cv_prog_cc_can_build_shared=$can_build_shared

  if test "$GCC" = yes; then
    lt_cv_prog_cc_wl='-Wl,'
    lt_cv_prog_cc_static='-static'
a4206 38
    case $host_os in
    aix*)
      # Below there is a dirty hack to force normal static linking with -ldl
      # The problem is because libdl dynamically linked with both libc and
      # libC (AIX C++ library), which obviously doesn't included in libraries
      # list by gcc. This cause undefined symbols with -static flags.
      # This hack allows C programs to be linked with "-static -ldl", but
      # not sure about C++ programs.
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_cv_prog_cc_pic='-fno-common'
      ;;
    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	 lt_cv_prog_cc_pic=-Kconform_pic
      fi
      ;;
    *)
      lt_cv_prog_cc_pic='-fPIC'
      ;;
    esac
d4208 3
a4210 12
    # PORTME Check for PIC flags for the system compiler.
    case $host_os in
    aix3* | aix4* | aix5*)
      lt_cv_prog_cc_wl='-Wl,'
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_cv_prog_cc_static='-Bstatic'
      else
	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
d4212 1
a4212 6
    hpux9* | hpux10* | hpux11*)
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
      lt_cv_prog_cc_pic='+Z'
      ;;
d4214 1
a4214 5
    irix5* | irix6*)
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      # PIC (with -KPIC) is the default.
      ;;
d4216 3
a4218 5
    cygwin* | mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
      ;;
d4220 5
a4224 70
    newsos6)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    osf3* | osf4* | osf5*)
      # All OSF/1 code is PIC.
      lt_cv_prog_cc_wl='-Wl,'
      lt_cv_prog_cc_static='-non_shared'
      ;;

    sco3.2v5*)
      lt_cv_prog_cc_pic='-Kpic'
      lt_cv_prog_cc_static='-dn'
      lt_cv_prog_cc_shlib='-belf'
      ;;

    solaris*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Wl,'
      ;;

    sunos4*)
      lt_cv_prog_cc_pic='-PIC'
      lt_cv_prog_cc_static='-Bstatic'
      lt_cv_prog_cc_wl='-Qoption ld '
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_cv_prog_cc_pic='-KPIC'
      lt_cv_prog_cc_static='-Bstatic'
      if test "x$host_vendor" = xsni; then
	lt_cv_prog_cc_wl='-LD'
      else
	lt_cv_prog_cc_wl='-Wl,'
      fi
      ;;

    uts4*)
      lt_cv_prog_cc_pic='-pic'
      lt_cv_prog_cc_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_cv_prog_cc_pic='-Kconform_pic'
	lt_cv_prog_cc_static='-Bstatic'
      fi
      ;;

    *)
      lt_cv_prog_cc_can_build_shared=no
      ;;
    esac
  fi

fi

if test -z "$lt_cv_prog_cc_pic"; then
  echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
else
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6

  # Check to make sure the pic_flag actually works.
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
d4227 2
a4228 4
      save_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4230 1
a4230 14

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
d4232 2
a4233 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4235 15
a4249 24
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
        case $host_os in
      hpux9* | hpux10* | hpux11*)
	# On HP-UX, both CC and GCC only warn that PIC is supported... then
	# they create non-PIC objects.  So, if there were any warnings, we
	# assume that PIC is not supported.
	if test -s conftest.err; then
	  lt_cv_prog_cc_pic_works=no
	else
	  lt_cv_prog_cc_pic_works=yes
	fi
	;;
      *)
	lt_cv_prog_cc_pic_works=yes
	;;
      esac

d4252 2
a4253 3
cat conftest.$ac_ext >&5
      lt_cv_prog_cc_pic_works=no

d4255 1
a4255 3
rm -f conftest.$ac_objext conftest.$ac_ext
    CFLAGS="$save_CFLAGS"

d4257 6
a4263 10

  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
    lt_cv_prog_cc_pic=
    lt_cv_prog_cc_can_build_shared=no
  else
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  fi

  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
d4265 1
d4267 3
a4269 15
# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
  else
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    lt_cv_prog_cc_can_build_shared=no
  fi
fi

echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
if test "${lt_cv_prog_cc_static_works+set}" = set; then
d4272 14
a4285 5
    lt_cv_prog_cc_static_works=no
  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4288 10
a4297 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4301 1
a4301 1

d4307 1
a4307 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4310 1
a4310 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4313 1
a4313 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4316 1
a4316 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4318 1
a4318 1
  lt_cv_prog_cc_static_works=yes
d4324 3
a4326 2
  LDFLAGS="$save_LDFLAGS"

a4328 47

# Belt *and* braces to stop my trousers falling down:
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6

pic_flag="$lt_cv_prog_cc_pic"
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
wl="$lt_cv_prog_cc_wl"
link_static_flag="$lt_cv_prog_cc_static"
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
can_build_shared="$lt_cv_prog_cc_can_build_shared"


# Check to see if options -o and -c are simultaneously supported by compiler
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

$rm -r conftest 2>/dev/null
mkdir conftest
cd conftest
echo "int some_variable = 0;" > conftest.$ac_ext
mkdir out
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
# that will create temporary files in the current directory regardless of
# the output directory.  Thus, making CWD read-only will cause this test
# to fail, enabling locking or at least warning the user not to do parallel
# builds.
chmod -w .
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  # The compiler can only warn and ignore the option if not recognized
  # So say no if there are warnings
  if test -s out/conftest.err; then
    lt_cv_compiler_c_o=no
  else
    lt_cv_compiler_c_o=yes
  fi
else
  # Append any errors to the config.log.
  cat out/conftest.err 1>&5
  lt_cv_compiler_c_o=no
a4329 7
CFLAGS="$save_CFLAGS"
chmod u+w .
$rm conftest* out/*
rmdir out
cd ..
rmdir conftest
$rm -r conftest 2>/dev/null
d4331 1
a4331 1
fi
d4333 1
a4333 3
compiler_c_o=$lt_cv_compiler_c_o
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
echo "${ECHO_T}$compiler_c_o" >&6
d4335 6
a4340 5
if test x"$compiler_c_o" = x"yes"; then
  # Check to see if we can write to a .lo
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  if test "${lt_cv_compiler_o_lo+set}" = set; then
a4342 6

  lt_cv_compiler_o_lo=no
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -c -o conftest.lo"
  save_objext="$ac_objext"
  ac_objext=lo
d4344 1
a4344 1
#line $LINENO "configure"
d4346 11
a4357 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4361 9
a4369 1
int some_variable = 0;
d4374 3
a4376 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4378 1
a4378 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4380 2
a4381 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4384 1
a4384 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4386 1
a4386 8
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      lt_cv_compiler_o_lo=no
    else
      lt_cv_compiler_o_lo=yes
    fi

d4390 3
d4394 6
a4399 3
rm -f conftest.$ac_objext conftest.$ac_ext
  ac_objext="$save_objext"
  CFLAGS="$save_CFLAGS"
d4402 1
a4403 28
  compiler_o_lo=$lt_cv_compiler_o_lo
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
echo "${ECHO_T}$compiler_o_lo" >&6
else
  compiler_o_lo=no
fi

# Check to see if we can do hard links to lock some files if needed
hard_links="nottested"
if test "$compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
d4405 60
d4466 7
a4472 8
if test "$GCC" = yes; then
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  echo "int some_variable = 0;" > conftest.$ac_ext
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  compiler_rtti_exceptions=no
d4474 58
a4531 1
#line $LINENO "configure"
d4534 4
a4537 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4541 1
a4541 1
int some_variable = 0;
d4546 3
a4548 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4550 1
a4550 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4552 2
a4553 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4556 1
a4556 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4558 1
a4558 8
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    if test -s conftest.err; then
      compiler_rtti_exceptions=no
    else
      compiler_rtti_exceptions=yes
    fi

d4563 5
a4567 4
rm -f conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$save_CFLAGS"
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
a4568 5
  if test "$compiler_rtti_exceptions" = "yes"; then
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  else
    no_builtin_flag=' -fno-builtin'
  fi
d4571 1
a4571 55
# See if the linker supports building shared libraries.
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6

allow_undefined_flag=
no_undefined_flag=
need_lib_prefix=unknown
need_version=unknown
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
archive_cmds=
archive_expsym_cmds=
old_archive_from_new_cmds=
old_archive_from_expsyms_cmds=
export_dynamic_flag_spec=
whole_archive_flag_spec=
thread_safe_flag_spec=
hardcode_into_libs=no
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
hardcode_shlibpath_var=unsupported
runpath_var=
link_all_deplibs=unknown
always_export_symbols=no
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
# include_expsyms should be a list of space-separated symbols to be *always*
# included in the symbol list
include_expsyms=
# exclude_expsyms can be an egrep regular expression of symbols to exclude
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
# as well as any symbol that contains `d'.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
# platforms (ab)use it in PIC code, but their linkers get confused if
# the symbol is explicitly referenced.  Since portable code cannot
# rely on this symbol name, it's probably fine to never include it in
# preloaded symbol tables.
extract_expsyms_cmds=

case $host_os in
cygwin* | mingw* | pw32*)
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
  # When not using gcc, we currently assume that we are using
  # Microsoft Visual C++.
  if test "$GCC" != yes; then
    with_gnu_ld=no
  fi
  ;;
openbsd*)
  with_gnu_ld=no
  ;;
esac
d4573 1
a4573 18
ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
  # If archive_cmds runs LD, not CC, wlarc should be empty
  wlarc='${wl}'

  # See if GNU ld supports shared libraries.
  case $host_os in
  aix3* | aix4* | aix5*)
    # On AIX, the GNU linker is very broken
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
    ld_shlibs=no
    cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.
d4575 22
a4596 2
EOF
    ;;
d4598 11
a4608 13
  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes

    # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
    # that the semantics of dynamic libraries on AmigaOS, at least up
    # to version 4, is to share data among multiple programs linked
    # with the same dynamic library.  Since this doesn't match the
    # behavior of shared libraries on other platforms, we can use
    # them.
    ld_shlibs=no
    ;;
d4610 30
a4639 10
  beos*)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
d4641 2
a4642 28
  cygwin* | mingw* | pw32*)
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec='-L$libdir'
    allow_undefined_flag=unsupported
    always_export_symbols=yes

    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
      else $CC -o impgen impgen.c ; fi)~
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'

    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'

    # cygwin and mingw dlls have different entry points and sets of symbols
    # to exclude.
    # FIXME: what about values for MSVC?
    dll_entry=__cygwin_dll_entry@@12
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12~
    case $host_os in
    mingw*)
      # mingw values
      dll_entry=_DllMainCRTStartup@@12
      dll_exclude_symbols=DllMain@@12,DllMainCRTStartup@@12,DllEntryPoint@@12~
      ;;
    esac
d4644 5
a4648 14
    # mingw and cygwin differ, and it's simplest to just exclude the union
    # of the two symbol sets.
    dll_exclude_symbols=DllMain@@12,_cygwin_dll_entry@@12,_cygwin_noncygwin_dll_entry@@12,DllMainCRTStartup@@12,DllEntryPoint@@12

    # recent cygwin and mingw systems supply a stub DllMain which the user
    # can override, but on older systems we have to supply one (in ltdll.c)
    if test "x$lt_cv_need_dllmain" = "xyes"; then
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
    else
      ltdll_obj=
      ltdll_cmds=
    fi
d4650 7
a4656 32
    # Extract the symbol export list from an `--export-all' def file,
    # then regenerate the def file from the symbol export list, so that
    # the compiled dll only exports the symbol export list.
    # Be careful not to strip the DATA tag left be newer dlltools.
    export_symbols_cmds="$ltdll_cmds"'
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
      sed -e "1,/EXPORTS/d" -e "s/ @@ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'

    # If the export-symbols file already is a .def file (1st line
    # is EXPORTS), use it as is.
    # If DATA tags from a recent dlltool are present, honour them!
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
	cp $export_symbols $output_objdir/$soname-def;
      else
	echo EXPORTS > $output_objdir/$soname-def;
	_lt_hint=1;
	cat $export_symbols | while read symbol; do
	 set dummy \$symbol;
	 case \$# in
	   2) echo "   \$2 @@ \$_lt_hint ; " >> $output_objdir/$soname-def;;
	   *) echo "     \$2 @@ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
	 esac;
	 _lt_hint=`expr 1 + \$_lt_hint`;
	done;
      fi~
      '"$ltdll_cmds"'
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
    ;;
d4658 15
a4672 9
  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
      wlarc=
    else
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    fi
    ;;
d4674 3
a4676 20
  solaris* | sysv5*)
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
      ld_shlibs=no
      cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
d4678 4
a4681 6
  sunos4*)
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    wlarc=
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;
d4683 3
a4685 23
  *)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    else
      ld_shlibs=no
    fi
    ;;
  esac

  if test "$ld_shlibs" = yes; then
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    case $host_os in
    cygwin* | mingw* | pw32*)
      # dlltool doesn't understand --whole-archive et. al.
      whole_archive_flag_spec=
      ;;
    *)
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d4687 1
a4687 1
	whole_archive_flag_spec=
a4688 19
      ;;
    esac
  fi
else
  # PORTME fill in a description of your system's linker (not GNU ld)
  case $host_os in
  aix3*)
    allow_undefined_flag=unsupported
    always_export_symbols=yes
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    # Note: this linker hardcodes the directories in LIBPATH if there
    # are no directories specified by -L.
    hardcode_minus_L=yes
    if test "$GCC" = yes && test -z "$link_static_flag"; then
      # Neither direct hardcoding nor static linking is supported with a
      # broken collect2.
      hardcode_direct=unsupported
    fi
    ;;
d4690 7
a4696 91
  aix4* | aix5*)
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	done
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    hardcode_direct=yes
    archive_cmds=''
    hardcode_libdir_separator=':'
    if test "$GCC" = yes; then
      case $host_os in aix4.[012]|aix4.[012].*)
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	  strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct=yes
	else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	fi
      esac

      shared_flag='-shared'
    else
      # not using gcc
      if test "$host_cpu" = ia64; then
	shared_flag='${wl}-G'
      else
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
      fi
    fi

    # It seems that -bexpall can do strange things, so it is better to
    # generate a list of symbols to export.
    always_export_symbols=yes
    if test "$aix_use_runtimelinking" = yes; then
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag='-berok'
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    else
      if test "$host_cpu" = ia64; then
	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag="-z nodefs"
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
      else
	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='${wl}-berok'
	# This is a bit strange, but is similar to how AIX traditionally builds
	# it's shared libraries.
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
a4698 795
    ;;

  amigaos*)
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    # see comment about different semantics on the GNU ld section
    ld_shlibs=no
    ;;

  cygwin* | mingw* | pw32*)
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    # hardcode_libdir_flag_spec is actually meaningless, as there is
    # no search path for DLLs.
    hardcode_libdir_flag_spec=' '
    allow_undefined_flag=unsupported
    # Tell ltmain to make .lib files, not .a files.
    libext=lib
    # FIXME: Setting linknames here is a bad hack.
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    # The linker will automatically build a .lib file if we build a DLL.
    old_archive_from_new_cmds='true'
    # FIXME: Should let the user specify the lib program.
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
    fix_srcfile_path='`cygpath -w "$srcfile"`'
    ;;

  darwin* | rhapsody*)
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      allow_undefined_flag='-flat_namespace -undefined suppress'
      ;;
    esac
    # FIXME: Relying on posixy $() will cause problems for
    #        cross-compilation, but unfortunately the echo tests do not
    #        yet detect zsh echo's removal of \ escapes.
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
    # We need to add '_' to the symbols in $export_symbols first
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    whole_archive_flag_spec='-all_load $convenience'
    ;;

  freebsd1*)
    ld_shlibs=no
    ;;

  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  # support.  Future versions do this automatically, but an explicit c++rt0.o
  # does not break anything, and helps significantly (at the cost of a little
  # extra space).
  freebsd2.2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  freebsd2*)
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  freebsd*)
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  hpux9* | hpux10* | hpux11*)
    case $host_os in
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
    esac
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_direct=yes
    hardcode_minus_L=yes # Not in the search PATH, but as the default
			 # location of the library.
    export_dynamic_flag_spec='${wl}-E'
    ;;

  irix5* | irix6*)
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    link_all_deplibs=yes
    ;;

  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    else
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    fi
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    ;;

  newsos6)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    hardcode_shlibpath_var=no
    ;;

  openbsd*)
    hardcode_direct=yes
    hardcode_shlibpath_var=no
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
    else
      case "$host_os" in
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	hardcode_libdir_flag_spec='-R$libdir'
        ;;
      *)
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
        ;;
      esac
    fi
    ;;

  os2*)
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_minus_L=yes
    allow_undefined_flag=unsupported
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    ;;

  osf3*)
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    fi
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator=:
    ;;

  osf4* | osf5*)	# as osf3* with the addition of -msym flag
    if test "$GCC" = yes; then
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    else
      allow_undefined_flag=' -expect_unresolved \*'
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'

      #Both c and cxx compiler support -rpath directly
      hardcode_libdir_flag_spec='-rpath $libdir'
    fi
    hardcode_libdir_separator=:
    ;;

  sco3.2v5*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    runpath_var=LD_RUN_PATH
    hardcode_runpath_var=yes
    export_dynamic_flag_spec='${wl}-Bexport'
    ;;

  solaris*)
    # gcc --version < 3.0 without binutils cannot create self contained
    # shared libraries reliably, requiring libgcc.a to resolve some of
    # the object symbols generated in some cases.  Libraries that use
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
    # a copy of libgcc.a into every shared library to guarantee resolving
    # such symbols causes other problems:  According to Tim Van Holder
    # <tim.van.holder@@pandora.be>, C++ libraries end up with a separate
    # (to the application) exception stack for one thing.
    no_undefined_flag=' -z defs'
    if test "$GCC" = yes; then
      case `$CC --version 2>/dev/null` in
      [12].*)
	cat <<EOF 1>&2

*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries.  However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
*** upgrade to a newer version of GCC.  Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.

EOF
        no_undefined_flag=
	;;
      esac
    fi
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec='-R$libdir'
    hardcode_shlibpath_var=no
    case $host_os in
    solaris2.[0-5] | solaris2.[0-5].*) ;;
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    esac
    link_all_deplibs=yes
    ;;

  sunos4*)
    if test "x$host_vendor" = xsequent; then
      # Use $CC to link under sequent, because it throws in some extra .o
      # files that make .init and .fini sections work.
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    fi
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_direct=yes
    hardcode_minus_L=yes
    hardcode_shlibpath_var=no
    ;;

  sysv4)
    if test "x$host_vendor" = xsno; then
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes # is this really true???
    else
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  sysv4.3*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_shlibpath_var=no
    export_dynamic_flag_spec='-Bexport'
    ;;

  sysv5*)
    no_undefined_flag=' -z text'
    # $CC -shared without GNU ld will not create a library from C++
    # object files and a static libstdc++, better avoid it by now
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    hardcode_libdir_flag_spec=
    hardcode_shlibpath_var=no
    runpath_var='LD_RUN_PATH'
    ;;

  uts4*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  dgux*)
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    hardcode_libdir_flag_spec='-L$libdir'
    hardcode_shlibpath_var=no
    ;;

  sysv4*MP*)
    if test -d /usr/nec; then
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ld_shlibs=yes
    fi
    ;;

  sysv4.2uw2*)
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    hardcode_direct=yes
    hardcode_minus_L=no
    hardcode_shlibpath_var=no
    hardcode_runpath_var=yes
    runpath_var=LD_RUN_PATH
    ;;

  sysv5uw7* | unixware7*)
    no_undefined_flag='${wl}-z ${wl}text'
    if test "$GCC" = yes; then
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    else
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    fi
    runpath_var='LD_RUN_PATH'
    hardcode_shlibpath_var=no
    ;;

  *)
    ld_shlibs=no
    ;;
  esac
fi
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
test "$ld_shlibs" = no && can_build_shared=no

# Check hardcoding attributes.
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var"; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$hardcode_shlibpath_var" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

reload_cmds='$LD$reload_flag -o $output$reload_objs'
test -z "$deplibs_check_method" && deplibs_check_method=unknown

# PORTME Fill in your ld.so characteristics
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}.so$major'
  ;;

aix4* | aix5*)
  version_type=linux
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	     echo ' yes '
	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	  :
	else
	  can_build_shared=no
	fi
	;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can
    # not hardcode correct soname into executable. Probably we can
    # add versioning support to collect2, so additional links can
    # be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}.so$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}.so'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi4*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  export_dynamic_flag_spec=-rdynamic
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  need_version=no
  need_lib_prefix=no
  case $GCC,$host_os in
  yes,cygwin*)
    library_names_spec='$libname.dll.a'
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog .libs/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    ;;
  yes,mingw*)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
    ;;
  yes,pw32*)
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
    ;;
  *)
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  # FIXME: Relying on posixy $() will cause problems for
  #        cross-compilation, but unfortunately the echo tests do not
  #        yet detect zsh echo's removal of \ escapes.
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  *)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  dynamic_linker="$host_os dld.sl"
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  shlibpath_var=SHLIB_PATH
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  soname_spec='${libname}${release}.sl$major'
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6*)
  version_type=irix
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  case $host_os in
  irix5*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux-gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
    soname_spec='${libname}${release}.so$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case "$host_os" in
    openbsd2.[89] | openbsd2.[89].*)
      shlibpath_overrides_runpath=no
      ;;
    *)
      shlibpath_overrides_runpath=yes
      ;;
    esac
  else
    shlibpath_overrides_runpath=yes
  fi
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

os2*)
  libname_spec='$name'
  need_lib_prefix=no
  library_names_spec='$libname.dll $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_version=no
  soname_spec='${libname}${release}.so'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}.so$major'
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  soname_spec='${libname}${release}.so$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
    soname_spec='$libname.so.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

# Report the final consequences.
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6

echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case "$host_os" in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
a4699 6991
  ;;
esac
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6

echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  cygwin* | mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  *)
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
f = shl_load;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
f = dlopen;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dld_dld_link=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7250 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 7348 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


if test "$enable_shared" = yes && test "$GCC" = yes; then
  case $archive_cmds in
  *'~'*)
    # FIXME: we may have to deal with multi-command sequences.
    ;;
  '$CC '*)
    # Test whether the compiler implicitly links with -lc since on some
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
    # to ld, don't add -lc before -lgcc.
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  $rm conftest*
    echo 'static int dummy;' > conftest.$ac_ext

    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
      soname=conftest
      lib=conftest
      libobjs=conftest.$ac_objext
      deplibs=
      wl=$lt_cv_prog_cc_wl
      compiler_flags=-v
      linker_flags=-v
      verstring=
      output_objdir=.
      libname=conftest
      save_allow_undefined_flag=$allow_undefined_flag
      allow_undefined_flag=
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
      then
	lt_cv_archive_cmds_need_lc=no
      else
	lt_cv_archive_cmds_need_lc=yes
      fi
      allow_undefined_flag=$save_allow_undefined_flag
    else
      cat conftest.err 1>&5
    fi
fi

    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
    ;;
  esac
fi
need_lc=${lt_cv_archive_cmds_need_lc-yes}

# The second clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  :
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  test -f Makefile && make "$ltmain"
fi

if test -f "$ltmain"; then
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  $rm -f "${ofile}T"

  echo creating $ofile

  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS \
    AR AR_FLAGS CC LD LN_S NM SHELL \
    reload_flag reload_cmds wl \
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
    library_names_spec soname_spec \
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
    old_striplib striplib file_magic_cmd export_symbols_cmds \
    deplibs_check_method allow_undefined_flag no_undefined_flag \
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
    global_symbol_to_c_name_address \
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do

    case $var in
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  cat <<__EOF__ > "${ofile}T"
#! $SHELL

# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="sed -e s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$need_lc

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# The default C compiler.
CC=$lt_CC

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_pic_flag
pic_mode=$pic_mode

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_compiler_c_o

# Can we write directly to a .lo ?
compiler_o_lo=$lt_compiler_o_lo

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_link_static_flag

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__

  case $host_os in
  aix3*)
    cat <<\EOF >> "${ofile}T"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  case $host_os in
  cygwin* | mingw* | pw32* | os2*)
    cat <<'EOF' >> "${ofile}T"
      # This is a source program that is used to create dlls on Windows
      # Don't remove nor modify the starting and closing comments
# /* ltdll.c starts here */
# #define WIN32_LEAN_AND_MEAN
# #include <windows.h>
# #undef WIN32_LEAN_AND_MEAN
# #include <stdio.h>
#
# #ifndef __CYGWIN__
# #  ifdef __CYGWIN32__
# #    define __CYGWIN__ __CYGWIN32__
# #  endif
# #endif
#
# #ifdef __cplusplus
# extern "C" {
# #endif
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
# #ifdef __cplusplus
# }
# #endif
#
# #ifdef __CYGWIN__
# #include <cygwin/cygwin_dll.h>
# DECLARE_CYGWIN_DLL( DllMain );
# #endif
# HINSTANCE __hDllInstance_base;
#
# BOOL APIENTRY
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
# {
#   __hDllInstance_base = hInst;
#   return TRUE;
# }
# /* ltdll.c ends here */
	# This is a source program that is used to create import libraries
	# on Windows for dlls which lack them. Don't remove nor modify the
	# starting and closing comments
# /* impgen.c starts here */
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
#
#  This file is part of GNU libtool.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#  */
#
# #include <stdio.h>		/* for printf() */
# #include <unistd.h>		/* for open(), lseek(), read() */
# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
# #include <string.h>		/* for strdup() */
#
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
# #ifndef O_BINARY
# #define O_BINARY 0
# #endif
#
# static unsigned int
# pe_get16 (fd, offset)
#      int fd;
#      int offset;
# {
#   unsigned char b[2];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 2);
#   return b[0] + (b[1]<<8);
# }
#
# static unsigned int
# pe_get32 (fd, offset)
#     int fd;
#     int offset;
# {
#   unsigned char b[4];
#   lseek (fd, offset, SEEK_SET);
#   read (fd, b, 4);
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# static unsigned int
# pe_as32 (ptr)
#      void *ptr;
# {
#   unsigned char *b = ptr;
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
# }
#
# int
# main (argc, argv)
#     int argc;
#     char *argv[];
# {
#     int dll;
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
#     unsigned long name_rvas, nexp;
#     unsigned char *expdata, *erva;
#     char *filename, *dll_name;
#
#     filename = argv[1];
#
#     dll = open(filename, O_RDONLY|O_BINARY);
#     if (dll < 1)
# 	return 1;
#
#     dll_name = filename;
#
#     for (i=0; filename[i]; i++)
# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
# 	    dll_name = filename + i +1;
#
#     pe_header_offset = pe_get32 (dll, 0x3c);
#     opthdr_ofs = pe_header_offset + 4 + 20;
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
#
#     if (num_entries < 1) /* no exports */
# 	return 1;
#
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
#     secptr = (pe_header_offset + 4 + 20 +
# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
#
#     expptr = 0;
#     for (i = 0; i < nsections; i++)
#     {
# 	char sname[8];
# 	unsigned long secptr1 = secptr + 40 * i;
# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
# 	lseek(dll, secptr1, SEEK_SET);
# 	read(dll, sname, 8);
# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
# 	{
# 	    expptr = fptr + (export_rva - vaddr);
# 	    if (export_rva + export_size > vaddr + vsize)
# 		export_size = vsize - (export_rva - vaddr);
# 	    break;
# 	}
#     }
#
#     expdata = (unsigned char*)malloc(export_size);
#     lseek (dll, expptr, SEEK_SET);
#     read (dll, expdata, export_size);
#     erva = expdata - export_rva;
#
#     nexp = pe_as32 (expdata+24);
#     name_rvas = pe_as32 (expdata+32);
#
#     printf ("EXPORTS\n");
#     for (i = 0; i<nexp; i++)
#     {
# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
# 	printf ("\t%s @@ %ld ;\n", erva+name_rva, 1+ i);
#     }
#
#     return 0;
# }
# /* impgen.c ends here */

EOF
    ;;
  esac

  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)

  mv -f "${ofile}T" "$ofile" || \
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  chmod +x "$ofile"
fi





# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion




WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi



# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
if test "${enable_berkeley_db+set}" = set; then
  enableval="$enable_berkeley_db"


fi;

have_ndbm=no
db_type=unknown

if test "$enable_berkeley_db" != no; then





for ac_header in 				\
	db4/db.h				\
	db3/db.h				\
	db.h					\
	db_185.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done






echo "$as_me:$LINENO: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db4 db3 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

  #include <stdio.h>
  #ifdef HAVE_DB4_DB_H
  #include <db4/db.h>
  #elif defined(HAVE_DB3_DB_H)
  #include <db3/db.h>
  #else
  #include <db.h>
  #endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
db_create(NULL, NULL, 0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_db_create"

if false; then

for ac_func in db_create
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB3 1
_ACEOF

  else





echo "$as_me:$LINENO: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db2 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

    #include <stdio.h>
    #if defined(HAVE_DB2_DB_H)
    #include <db2/db.h>
    #elif defined(HAVE_DB_185_H)
    #include <db_185.h>
    #elif defined(HAVE_DB_H)
    #include <db.h>
    #else
    #error no db.h
    #endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbopen(NULL, 0, 0, 0, NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbopen"

if false; then

for ac_func in dbopen
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbopen" = "yes"; then
      db_type=db1
      if test "$ac_cv_funclib_dbopen" != "yes"; then
        DBLIB="$ac_cv_funclib_dbopen"
      else
        DBLIB=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB1 1
_ACEOF

    fi
  fi


  if test "$ac_cv_func_dbm_firstkey" != yes; then


echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

    #include <stdio.h>
    #define DB_DBM_HSEARCH 1
    #include <db.h>
    DBM *dbm;

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_DB_NDBM 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey
    fi
  fi

fi # berkeley db

if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then



for ac_header in 				\
	dbm.h					\
	ndbm.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ndbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

  #include <stdio.h>
  #if defined(HAVE_NDBM_H)
  #include <ndbm.h>
  #elif defined(HAVE_DBM_H)
  #include <dbm.h>
  #endif
  DBM *dbm;

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
    have_ndbm=yes
    if test "$db_type" = "unknown"; then
      db_type=ndbm
      DBLIB="$LIB_NDBM"
    fi
  else

    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey


for ac_header in 				\
	  gdbm/ndbm.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" gdbm; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

    #include <stdio.h>
    #include <gdbm/ndbm.h>
    DBM *dbm;

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dbm_firstkey(NULL)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

if false; then

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
	LIB_NDBM=""
      fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
	db_type=ndbm
	DBLIB="$LIB_NDBM"
      fi
    fi
  fi

fi # unknown

if test "$have_ndbm" = "yes"; then
  echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#endif
int main()
{
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

    if test -f conftest.db; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi



if test "$db_type" = db1; then
  HAVE_DB1_TRUE=
  HAVE_DB1_FALSE='#'
else
  HAVE_DB1_TRUE='#'
  HAVE_DB1_FALSE=
fi


if test "$db_type" = db3; then
  HAVE_DB3_TRUE=
  HAVE_DB3_FALSE='#'
else
  HAVE_DB3_TRUE='#'
  HAVE_DB3_FALSE=
fi


if test "$db_type" = ndbm; then
  HAVE_NDBM_TRUE=
  HAVE_NDBM_FALSE='#'
else
  HAVE_NDBM_TRUE='#'
  HAVE_NDBM_FALSE=
fi

DBLIB="$LDFLAGS $DBLIB"





echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\_ACEOF
#define inline
_ACEOF
 ;;
  *)  cat >>confdefs.h <<_ACEOF
#define inline $ac_cv_c_inline
_ACEOF
 ;;
esac

echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\_ACEOF
#define const
_ACEOF

fi

echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_size_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned
_ACEOF

fi

echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then

cat >>confdefs.h <<\_ACEOF
#define uid_t int
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define gid_t int
_ACEOF

fi


echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signal=void
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\_ACEOF
#define VOID_RETSIGTYPE 1
_ACEOF

fi




echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF

fi



for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo "$as_me:$LINENO: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
done
if false;then


for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi




for ac_func in getlogin setlogin
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:$LINENO: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi

fi
echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then

cat >>confdefs.h <<\_ACEOF
#define POSIX_GETLOGIN 1
_ACEOF

fi
fi


echo "$as_me:$LINENO: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>

int main()
{
	return realloc(NULL, 17) == NULL;
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_realloc_broken=yes
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then

cat >>confdefs.h <<\_ACEOF
#define BROKEN_REALLOC 1
_ACEOF

fi







DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'














WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi








cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
ssize_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_ssize_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi





cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
long long foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



















































for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	grp.h					\
	ifaddrs.h				\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done






if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi



if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi



if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi



if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi







echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
socket()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_socket"

if false; then

for ac_func in socket
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi





echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
gethostbyname()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

if false; then

for ac_func in gethostbyname
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi





echo "$as_me:$LINENO: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
syslog()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_syslog"

if false; then

for ac_func in syslog
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi




# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"

if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
save_CFLAGS="${CFLAGS}"
echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
if test "${v6type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  v6type=unknown
v6lib=none

for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi

fi
echo "$as_me:$LINENO: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

echo "$as_me:$LINENO: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ipv6=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_IPV6 1
_ACEOF

else
  CFLAGS="${save_CFLAGS}"
fi

if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_in6addr_loopback=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_in6addr_loopback=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_IN6ADDR_LOOPBACK 1
_ACEOF

	fi
fi






echo "$as_me:$LINENO: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" inet6 ip6; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
gethostbyname2()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname2"

if false; then

for ac_func in gethostbyname2
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname2=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
fi






echo "$as_me:$LINENO: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_search"

if false; then

for ac_func in res_search
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi






echo "$as_me:$LINENO: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dn_expand(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dn_expand"

if false; then

for ac_func in dn_expand
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi



echo "$as_me:$LINENO: checking for _res" >&5
echo $ECHO_N "checking for _res... $ECHO_C" >&6
if test "${ac_cv_var__res+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
extern int _res;
int foo() { return _res; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var__res=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var__res=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

ac_foo=`eval echo \\$ac_cv_var__res`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE__RES 1
_ACEOF


echo "$as_me:$LINENO: checking if _res is properly declared" >&5
echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
if test "${ac_cv_var__res_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
extern struct { int foo; } _res;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
_res.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var__res_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var__res_declaration=yes"
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi




echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE__RES_DECLARATION 1
_ACEOF

fi


fi




echo "$as_me:$LINENO: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_snprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6

if test "$ac_cv_func_snprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_snprintf_working" = yes; then

if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_snprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
if test "$ac_cv_func_snprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SNPRINTF_PROTO 1
_ACEOF

fi
fi

fi


echo "$as_me:$LINENO: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>

int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}


int main()
{
	return foo(0, "12");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_vsnprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6

if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VSNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
if test "$ac_cv_func_vsnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VSNPRINTF_PROTO 1
_ACEOF

fi
fi

fi



echo "$as_me:$LINENO: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <glob.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6

if test "$ac_cv_func_glob_working" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_GLOB 1
_ACEOF

fi
if test "$ac_cv_func_glob_working" = yes; then

if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#include <glob.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_glob_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_glob_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
if test "$ac_cv_func_glob_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GLOB_PROTO 1
_ACEOF

fi
fi

fi

if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.$ac_objext"
fi


if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi





























for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	initstate				\
	issetugid				\
	on_exit					\
	random					\
	setprogname				\
	setstate				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.$ac_objext"
fi






echo "$as_me:$LINENO: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
getsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getsockopt"

if false; then

for ac_func in getsockopt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac





echo "$as_me:$LINENO: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
setsockopt(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setsockopt"

if false; then

for ac_func in setsockopt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_setsockopt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac







echo "$as_me:$LINENO: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
hstrerror(17)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then

for ac_func in hstrerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
fi

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
	LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
fi


if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_hstrerror_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_hstrerror_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
if test "$ac_cv_func_hstrerror_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_HSTRERROR_PROTO 1
_ACEOF

fi
fi
d4701 1
d4703 7
a4709 6

if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4712 1
a4712 1
#line $LINENO "configure"
d4715 8
a4722 7
	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d4724 1
a4724 2
int
main ()
d4726 1
a4726 3
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d4728 4
a4731 1
  ;
d4735 3
a4737 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d4739 3
a4741 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4744 1
a4744 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a4745 11
  eval "ac_cv_func_asprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
if test "$ac_cv_func_asprintf_noproto" = yes; then
d4747 3
a4749 3
cat >>confdefs.h <<\_ACEOF
#define NEED_ASPRINTF_PROTO 1
_ACEOF
d4751 3
a4753 2
fi
fi
d4755 4
a4758 5
if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4760 2
a4761 38
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
d4763 2
a4764 1
eval "ac_cv_func_vasprintf_noproto=no"
d4766 1
a4766 10
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
if test "$ac_cv_func_vasprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VASPRINTF_PROTO 1
_ACEOF

d4770 3
a4772 4
if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
d4775 2
d4778 1
a4778 1
#line $LINENO "configure"
d4780 3
a4782 8

	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a4783 6
int
main ()
{
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
a4784 3
  ;
  return 0;
}
d4787 1
a4787 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4790 1
a4790 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4793 1
a4793 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4796 1
a4796 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4798 1
a4798 1
  eval "ac_cv_func_asnprintf_noproto=yes"
a4801 1
eval "ac_cv_func_asnprintf_noproto=no"
d4804 1
a4804 8
fi
echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
if test "$ac_cv_func_asnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_ASNPRINTF_PROTO 1
_ACEOF
d4807 14
a4820 1
fi
d4822 3
a4824 4
if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
d4828 1
a4828 1
#line $LINENO "configure"
a4830 8
	#include <stdio.h>
	#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d4834 46
a4879 3
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);
d4886 1
a4886 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4889 1
a4889 73
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vasnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
if test "$ac_cv_func_vasnprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_VASNPRINTF_PROTO 1
_ACEOF

fi
fi





echo "$as_me:$LINENO: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
bswap16(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4891 2
a4892 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4895 1
a4895 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4897 1
a4897 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
d4901 1
d4903 1
a4903 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
d4905 7
d4915 3
a4917 11

eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then

for ac_func in bswap16
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d4921 1
a4921 1
#line $LINENO "configure"
d4923 4
a4926 29
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
a4927 3
  ;
  return 0;
}
d4929 2
a4930 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d4932 15
a4946 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d4949 2
a4950 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d4952 9
a4960 7
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d4962 5
a4966 1

d4968 1
a4968 1
done
a4970 4
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"
d4972 6
a4977 23
case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a4978 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d4980 7
d4988 1
a4988 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d4990 4
a4993 9





echo "$as_me:$LINENO: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4995 2
a4996 14

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d4998 9
a5006 8
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d5008 2
d5013 6
a5018 3
bswap32(0)
  ;
  return 0;
d5021 2
a5022 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5025 3
a5027 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5030 1
a5030 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5032 1
a5032 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
d5034 2
a5035 1
  echo "$as_me: failed program was:" >&5
d5037 3
a5040 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
a5041 1

d5043 3
d5047 3
d5051 1
a5051 1
eval "ac_res=\$ac_cv_funclib_bswap32"
d5053 1
a5053 1
if false; then
d5055 2
a5056 1
for ac_func in bswap32
d5058 4
a5061 4
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5065 1
a5065 1
#line $LINENO "configure"
d5067 2
a5068 33
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d5070 3
a5072 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5074 1
a5074 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5076 2
a5077 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5080 1
a5080 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5082 1
a5082 1
  eval "$as_ac_var=yes"
d5086 1
a5086 1
eval "$as_ac_var=no"
d5088 1
a5088 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5090 6
a5095 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5100 3
a5102 47
fi
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
d5105 2
a5106 14

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5108 1
a5108 9
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5112 4
a5115 1
pidfile(0)
d5120 3
a5122 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5124 1
a5124 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5126 2
a5127 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5130 1
a5130 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5132 1
a5132 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d5136 1
d5138 1
a5138 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d5140 9
d5152 3
a5154 11

eval "ac_res=\$ac_cv_funclib_pidfile"

if false; then

for ac_func in pidfile
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5158 1
a5158 1
#line $LINENO "configure"
d5160 1
a5160 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5164 4
a5167 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d5172 3
a5174 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5176 1
a5176 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5178 2
a5179 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5182 1
a5182 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5184 1
a5184 1
  eval "$as_ac_var=yes"
d5188 1
a5188 1
eval "$as_ac_var=no"
d5190 1
a5190 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5192 5
a5196 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5198 3
a5200 2
fi
done
a5202 4
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"
d5204 9
a5212 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a5213 14
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d5215 7
d5223 4
a5226 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d5228 3
a5230 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d5232 3
d5236 1
d5238 3
a5240 7




echo "$as_me:$LINENO: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
d5243 2
a5244 14

if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5246 4
a5249 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d5251 4
a5254 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d5256 1
d5260 1
a5260 1
getaddrinfo(0,0,0,0)
d5265 3
a5267 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5269 1
a5269 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5271 2
a5272 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5275 1
a5275 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5277 1
a5277 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
d5281 1
d5283 1
a5283 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d5285 2
d5288 3
a5290 1
fi
d5292 1
d5294 3
a5296 1
eval "ac_res=\$ac_cv_funclib_getaddrinfo"
d5298 1
a5298 1
if false; then
d5300 3
a5302 6
for ac_func in getaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5306 1
a5306 1
#line $LINENO "configure"
d5308 3
a5310 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a5311 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5315 2
a5316 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d5321 3
a5323 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5325 1
a5325 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5327 2
a5328 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5331 1
a5331 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5333 1
a5333 1
  eval "$as_ac_var=yes"
d5337 1
a5337 1
eval "$as_ac_var=no"
d5339 1
a5339 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5341 3
a5343 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5345 3
a5347 2
fi
done
a5349 4
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getaddrinfo=$ac_res"
d5351 12
a5362 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d5364 31
d5396 2
a5397 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d5399 1
a5399 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d5401 1
a5401 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d5403 13
d5417 25
a5441 2
if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
d5443 8
a5451 2
if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
d5453 2
d5456 6
a5461 8





echo "$as_me:$LINENO: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getnameinfo+set}" = set; then
d5464 2
a5465 14

if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5467 1
a5467 16
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
getnameinfo(0,0,0,0,0,0,0)
  ;
  return 0;
}
d5469 2
a5470 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5472 15
a5486 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
d5489 2
a5490 1
cat conftest.$ac_ext >&5
d5492 1
a5492 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
	LIBS="$ac_save_LIBS"
d5494 6
d5502 1
d5504 1
d5506 1
a5506 5
eval "ac_res=\$ac_cv_funclib_getnameinfo"

if false; then

for ac_func in getnameinfo
d5509 1
a5509 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d5515 1
a5515 1
#line $LINENO "configure"
a5528 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5546 1
a5546 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5549 1
a5549 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5552 1
a5552 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5555 1
a5555 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5565 1
a5565 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d5568 1
a5568 1
  cat >>confdefs.h <<_ACEOF
d5570 1
a5570 1
_ACEOF
d5575 11
a5586 4
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getnameinfo=$ac_res"
d5588 4
a5591 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d5593 3
a5595 24
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getnameinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a5596 3

if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
a5597 3

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
d5600 3
a5602 8





echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
d5606 6
a5611 13
if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5613 5
a5617 11
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d5619 1
a5619 3
freeaddrinfo(0)
  ;
  return 0;
d5621 1
d5623 2
a5624 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5627 3
a5629 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5632 1
a5632 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5634 1
a5634 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
d5636 2
a5637 1
  echo "$as_me: failed program was:" >&5
d5639 1
d5641 1
a5641 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d5645 7
d5653 1
d5655 3
a5657 1
eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
d5659 12
a5670 1
if false; then
d5672 3
a5674 6
for ac_func in freeaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5678 1
a5678 1
#line $LINENO "configure"
d5680 4
a5683 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d5685 1
a5685 26
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d5687 3
a5689 13
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d5691 1
a5691 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d5693 1
a5693 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d5696 3
a5698 52
done

fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
fi

if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
fi



d5700 3
d5704 1
d5706 4
a5709 3
echo "$as_me:$LINENO: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
if test "${ac_cv_funclib_gai_strerror+set}" = set; then
d5712 2
a5713 14

if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d5715 4
a5718 8
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d5720 1
d5724 1
a5724 1
gai_strerror(0)
d5729 3
a5731 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5733 1
a5733 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5735 2
a5736 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5739 1
a5739 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5741 1
a5741 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
d5745 1
d5747 1
a5747 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
d5749 5
a5753 6

fi


eval "ac_res=\$ac_cv_funclib_gai_strerror"

d5755 3
a5757 7

for ac_func in gai_strerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d5761 1
a5761 1
#line $LINENO "configure"
d5763 1
a5763 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5767 4
a5770 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d5775 3
a5777 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d5779 1
a5779 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5781 2
a5782 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5785 1
a5785 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5787 1
a5787 1
  eval "$as_ac_var=yes"
d5791 1
a5791 1
eval "$as_ac_var=no"
d5793 1
a5793 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5795 7
a5801 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a5803 1
done
a5805 4
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"
d5807 3
a5809 32
case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a5810 3

if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
d5813 45
a5857 3
if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
	LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
fi
d5859 5
a5863 4

echo "$as_me:$LINENO: checking for chown" >&5
echo $ECHO_N "checking for chown... $ECHO_C" >&6
if test "${ac_cv_func_chown+set}" = set; then
d5867 1
a5867 1
#line $LINENO "configure"
d5869 36
a5904 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char chown (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char chown ();
char (*f) ();
d5906 7
a5912 17
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_chown) || defined (__stub___chown)
choke me
#else
f = chown;
#endif
d5914 3
a5916 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_chown=yes
d5918 2
a5919 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_chown=no
d5921 7
a5927 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a5928 7
echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
echo "${ECHO_T}$ac_cv_func_chown" >&6
if test $ac_cv_func_chown = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_CHOWN 1
_ACEOF
d5930 3
d5934 2
a5935 1
  LIBOBJS="$LIBOBJS chown.$ac_objext"
d5937 4
a5940 3
echo "$as_me:$LINENO: checking for copyhostent" >&5
echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
if test "${ac_cv_func_copyhostent+set}" = set; then
d5943 14
a5956 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a5957 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char copyhostent (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char copyhostent ();
char (*f) ();
a5958 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d5962 1
a5962 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
choke me
#else
f = copyhostent;
#endif

d5968 1
a5968 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d5971 1
a5971 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5974 1
a5974 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d5977 1
a5977 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d5979 1
a5979 1
  ac_cv_func_copyhostent=yes
a5982 1
ac_cv_func_copyhostent=no
d5985 5
a5990 3
echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
if test $ac_cv_func_copyhostent = yes; then
d5992 3
a5994 3
cat >>confdefs.h <<_ACEOF
#define HAVE_COPYHOSTENT 1
_ACEOF
d5996 6
a6001 6
else
  LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
fi
echo "$as_me:$LINENO: checking for daemon" >&5
echo $ECHO_N "checking for daemon... $ECHO_C" >&6
if test "${ac_cv_func_daemon+set}" = set; then
d6005 1
a6005 1
#line $LINENO "configure"
d6008 1
a6008 1
    which can conflict with char daemon (); below.  */
d6016 1
a6016 1
char daemon ();
a6018 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6025 1
a6025 1
#if defined (__stub_daemon) || defined (__stub___daemon)
d6028 1
a6028 1
f = daemon;
d6036 1
a6036 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6039 1
a6039 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6042 1
a6042 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6045 1
a6045 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6047 1
a6047 1
  ac_cv_func_daemon=yes
d6051 1
a6051 1
ac_cv_func_daemon=no
d6055 43
a6097 3
echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
echo "${ECHO_T}$ac_cv_func_daemon" >&6
if test $ac_cv_func_daemon = yes; then
d6099 4
a6102 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF
d6104 2
a6105 2
else
  LIBOBJS="$LIBOBJS daemon.$ac_objext"
d6107 4
a6110 3
echo "$as_me:$LINENO: checking for ecalloc" >&5
echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
if test "${ac_cv_func_ecalloc+set}" = set; then
d6113 14
a6126 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a6127 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ecalloc (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ecalloc ();
char (*f) ();
a6128 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6132 1
a6132 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
choke me
#else
f = ecalloc;
#endif

d6138 1
a6138 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6141 1
a6141 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6144 1
a6144 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6147 1
a6147 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6149 1
a6149 1
  ac_cv_func_ecalloc=yes
a6152 1
ac_cv_func_ecalloc=no
d6155 5
a6160 3
echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
if test $ac_cv_func_ecalloc = yes; then
d6162 3
a6164 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ECALLOC 1
_ACEOF
d6166 6
a6171 6
else
  LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
fi
echo "$as_me:$LINENO: checking for emalloc" >&5
echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
if test "${ac_cv_func_emalloc+set}" = set; then
d6175 1
a6175 1
#line $LINENO "configure"
d6178 1
a6178 1
    which can conflict with char emalloc (); below.  */
d6186 1
a6186 1
char emalloc ();
a6188 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6195 1
a6195 1
#if defined (__stub_emalloc) || defined (__stub___emalloc)
d6198 1
a6198 1
f = emalloc;
d6206 1
a6206 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6209 1
a6209 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6212 1
a6212 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6215 1
a6215 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6217 1
a6217 1
  ac_cv_func_emalloc=yes
d6221 1
a6221 1
ac_cv_func_emalloc=no
d6225 58
a6282 3
echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
echo "${ECHO_T}$ac_cv_func_emalloc" >&6
if test $ac_cv_func_emalloc = yes; then
d6284 13
a6296 14
cat >>confdefs.h <<_ACEOF
#define HAVE_EMALLOC 1
_ACEOF

else
  LIBOBJS="$LIBOBJS emalloc.$ac_objext"
fi
echo "$as_me:$LINENO: checking for erealloc" >&5
echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
if test "${ac_cv_func_erealloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a6297 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char erealloc (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char erealloc ();
char (*f) ();
a6298 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6302 1
a6302 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_erealloc) || defined (__stub___erealloc)
choke me
#else
f = erealloc;
#endif

d6308 1
a6308 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6311 1
a6311 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6314 1
a6314 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6317 1
a6317 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6319 1
a6319 1
  ac_cv_func_erealloc=yes
a6322 1
ac_cv_func_erealloc=no
d6325 5
a6330 3
echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
echo "${ECHO_T}$ac_cv_func_erealloc" >&6
if test $ac_cv_func_erealloc = yes; then
d6332 3
a6334 3
cat >>confdefs.h <<_ACEOF
#define HAVE_EREALLOC 1
_ACEOF
d6336 6
a6341 6
else
  LIBOBJS="$LIBOBJS erealloc.$ac_objext"
fi
echo "$as_me:$LINENO: checking for estrdup" >&5
echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
if test "${ac_cv_func_estrdup+set}" = set; then
d6345 1
a6345 1
#line $LINENO "configure"
d6348 1
a6348 1
    which can conflict with char estrdup (); below.  */
d6356 1
a6356 1
char estrdup ();
a6358 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6365 1
a6365 1
#if defined (__stub_estrdup) || defined (__stub___estrdup)
d6368 1
a6368 1
f = estrdup;
d6376 1
a6376 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6379 1
a6379 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6382 1
a6382 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6385 1
a6385 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6387 1
a6387 1
  ac_cv_func_estrdup=yes
d6391 1
a6391 1
ac_cv_func_estrdup=no
d6395 52
a6446 3
echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
echo "${ECHO_T}$ac_cv_func_estrdup" >&6
if test $ac_cv_func_estrdup = yes; then
d6448 3
a6450 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ESTRDUP 1
_ACEOF
d6452 2
a6453 2
else
  LIBOBJS="$LIBOBJS estrdup.$ac_objext"
d6455 3
a6457 3
echo "$as_me:$LINENO: checking for err" >&5
echo $ECHO_N "checking for err... $ECHO_C" >&6
if test "${ac_cv_func_err+set}" = set; then
d6460 29
a6488 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d6490 4
a6493 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char err (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d6495 14
a6508 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char err ();
char (*f) ();
d6510 3
a6512 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d6514 18
a6531 10
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_err) || defined (__stub___err)
choke me
#else
f = err;
d6533 12
d6546 4
a6549 3
  ;
  return 0;
}
d6551 32
a6582 17
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_err=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_err=no
d6584 15
a6598 27
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
echo "${ECHO_T}$ac_cv_func_err" >&6
if test $ac_cv_func_err = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ERR 1
_ACEOF

else
  LIBOBJS="$LIBOBJS err.$ac_objext"
fi
echo "$as_me:$LINENO: checking for errx" >&5
echo $ECHO_N "checking for errx... $ECHO_C" >&6
if test "${ac_cv_func_errx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char errx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a6599 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char errx ();
char (*f) ();
a6600 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6604 10
a6613 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_errx) || defined (__stub___errx)
choke me
#else
f = errx;
#endif
d6620 1
a6620 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6623 1
a6623 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6626 1
a6626 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6629 1
a6629 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6631 1
a6631 1
  ac_cv_func_errx=yes
d6635 1
a6635 1
ac_cv_func_errx=no
a6638 3
echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
echo "${ECHO_T}$ac_cv_func_errx" >&6
if test $ac_cv_func_errx = yes; then
d6640 9
a6648 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ERRX 1
_ACEOF
d6651 1
a6651 1
  LIBOBJS="$LIBOBJS errx.$ac_objext"
d6653 5
a6657 3
echo "$as_me:$LINENO: checking for fchown" >&5
echo $ECHO_N "checking for fchown... $ECHO_C" >&6
if test "${ac_cv_func_fchown+set}" = set; then
d6660 3
a6662 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d6664 9
a6672 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fchown (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d6674 2
a6675 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fchown ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d6680 3
a6682 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fchown) || defined (__stub___fchown)
choke me
#else
f = fchown;
#endif
d6689 1
a6689 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6692 1
a6692 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6695 1
a6695 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6698 1
a6698 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6700 1
a6700 1
  ac_cv_func_fchown=yes
d6704 1
a6704 1
ac_cv_func_fchown=no
d6708 3
a6710 3
echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
echo "${ECHO_T}$ac_cv_func_fchown" >&6
if test $ac_cv_func_fchown = yes; then
d6712 3
a6714 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FCHOWN 1
_ACEOF
d6716 1
a6716 2
else
  LIBOBJS="$LIBOBJS fchown.$ac_objext"
d6718 4
a6721 3
echo "$as_me:$LINENO: checking for flock" >&5
echo $ECHO_N "checking for flock... $ECHO_C" >&6
if test "${ac_cv_func_flock+set}" = set; then
d6724 14
a6737 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a6738 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char flock (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char flock ();
char (*f) ();
a6739 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6743 1
a6743 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_flock) || defined (__stub___flock)
choke me
#else
f = flock;
#endif

d6749 1
a6749 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6752 1
a6752 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6755 1
a6755 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6758 1
a6758 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6760 1
a6760 1
  ac_cv_func_flock=yes
a6763 1
ac_cv_func_flock=no
d6766 5
a6771 3
echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
echo "${ECHO_T}$ac_cv_func_flock" >&6
if test $ac_cv_func_flock = yes; then
d6773 3
a6775 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FLOCK 1
_ACEOF
d6777 6
a6782 6
else
  LIBOBJS="$LIBOBJS flock.$ac_objext"
fi
echo "$as_me:$LINENO: checking for fnmatch" >&5
echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
if test "${ac_cv_func_fnmatch+set}" = set; then
d6786 1
a6786 1
#line $LINENO "configure"
d6789 1
a6789 1
    which can conflict with char fnmatch (); below.  */
d6797 1
a6797 1
char fnmatch ();
a6799 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6806 1
a6806 1
#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
d6809 1
a6809 1
f = fnmatch;
d6817 1
a6817 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6820 1
a6820 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6823 1
a6823 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6826 1
a6826 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6828 1
a6828 1
  ac_cv_func_fnmatch=yes
d6832 1
a6832 1
ac_cv_func_fnmatch=no
d6836 43
a6878 3
echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
if test $ac_cv_func_fnmatch = yes; then
d6880 4
a6883 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FNMATCH 1
_ACEOF
d6885 2
a6886 2
else
  LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
d6888 4
a6891 3
echo "$as_me:$LINENO: checking for freehostent" >&5
echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
if test "${ac_cv_func_freehostent+set}" = set; then
d6894 14
a6907 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d6909 13
a6921 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char freehostent (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a6922 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char freehostent ();
char (*f) ();
a6923 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6927 1
a6927 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_freehostent) || defined (__stub___freehostent)
choke me
#else
f = freehostent;
#endif

d6933 1
a6933 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d6936 1
a6936 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6939 1
a6939 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d6942 1
a6942 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6944 1
a6944 1
  ac_cv_func_freehostent=yes
a6947 1
ac_cv_func_freehostent=no
d6950 3
a6953 3
echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
echo "${ECHO_T}$ac_cv_func_freehostent" >&6
if test $ac_cv_func_freehostent = yes; then
d6955 5
a6959 3
cat >>confdefs.h <<_ACEOF
#define HAVE_FREEHOSTENT 1
_ACEOF
d6961 6
a6966 6
else
  LIBOBJS="$LIBOBJS freehostent.$ac_objext"
fi
echo "$as_me:$LINENO: checking for getcwd" >&5
echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
if test "${ac_cv_func_getcwd+set}" = set; then
d6970 1
a6970 1
#line $LINENO "configure"
d6973 1
a6973 1
    which can conflict with char getcwd (); below.  */
d6981 1
a6981 1
char getcwd ();
a6983 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d6990 1
a6990 1
#if defined (__stub_getcwd) || defined (__stub___getcwd)
d6993 1
a6993 1
f = getcwd;
d7001 1
a7001 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7004 1
a7004 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7007 1
a7007 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7010 1
a7010 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7012 1
a7012 1
  ac_cv_func_getcwd=yes
d7016 1
a7016 1
ac_cv_func_getcwd=no
d7020 43
a7062 3
echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
echo "${ECHO_T}$ac_cv_func_getcwd" >&6
if test $ac_cv_func_getcwd = yes; then
d7064 4
a7067 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETCWD 1
_ACEOF
d7069 2
a7070 2
else
  LIBOBJS="$LIBOBJS getcwd.$ac_objext"
d7072 4
a7075 3
echo "$as_me:$LINENO: checking for getdtablesize" >&5
echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
if test "${ac_cv_func_getdtablesize+set}" = set; then
d7078 14
a7091 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d7093 13
a7105 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getdtablesize (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a7106 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getdtablesize ();
char (*f) ();
a7107 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7111 1
a7111 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
choke me
#else
f = getdtablesize;
#endif

d7117 1
a7117 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7120 1
a7120 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7123 1
a7123 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7126 1
a7126 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7128 1
a7128 1
  ac_cv_func_getdtablesize=yes
a7131 1
ac_cv_func_getdtablesize=no
d7134 5
a7139 3
echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
if test $ac_cv_func_getdtablesize = yes; then
d7141 3
a7143 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETDTABLESIZE 1
_ACEOF
d7145 6
a7150 6
else
  LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
fi
echo "$as_me:$LINENO: checking for getegid" >&5
echo $ECHO_N "checking for getegid... $ECHO_C" >&6
if test "${ac_cv_func_getegid+set}" = set; then
d7154 1
a7154 1
#line $LINENO "configure"
d7157 1
a7157 1
    which can conflict with char getegid (); below.  */
d7165 1
a7165 1
char getegid ();
a7167 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7174 1
a7174 1
#if defined (__stub_getegid) || defined (__stub___getegid)
d7177 1
a7177 1
f = getegid;
d7185 1
a7185 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7188 1
a7188 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7191 1
a7191 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7194 1
a7194 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7196 1
a7196 1
  ac_cv_func_getegid=yes
d7200 1
a7200 1
ac_cv_func_getegid=no
d7204 43
a7246 3
echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
echo "${ECHO_T}$ac_cv_func_getegid" >&6
if test $ac_cv_func_getegid = yes; then
d7248 4
a7251 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETEGID 1
_ACEOF
d7253 2
a7254 2
else
  LIBOBJS="$LIBOBJS getegid.$ac_objext"
d7256 4
a7259 3
echo "$as_me:$LINENO: checking for geteuid" >&5
echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
if test "${ac_cv_func_geteuid+set}" = set; then
d7262 4
d7267 1
a7267 1
#line $LINENO "configure"
a7268 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char geteuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char geteuid ();
char (*f) ();
d7270 3
a7272 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d7274 3
a7276 11
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_geteuid) || defined (__stub___geteuid)
choke me
#else
f = geteuid;
#endif

  ;
  return 0;
d7279 2
a7280 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7283 3
a7285 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7288 1
a7288 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7290 1
a7290 1
  ac_cv_func_geteuid=yes
d7292 2
a7293 1
  echo "$as_me: failed program was:" >&5
d7295 3
a7297 1
ac_cv_func_geteuid=no
a7298 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7300 4
a7303 3
echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
echo "${ECHO_T}$ac_cv_func_geteuid" >&6
if test $ac_cv_func_geteuid = yes; then
d7305 3
a7307 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETEUID 1
_ACEOF
a7308 2
else
  LIBOBJS="$LIBOBJS geteuid.$ac_objext"
d7310 6
a7315 3
echo "$as_me:$LINENO: checking for getgid" >&5
echo $ECHO_N "checking for getgid... $ECHO_C" >&6
if test "${ac_cv_func_getgid+set}" = set; then
d7319 1
a7319 1
#line $LINENO "configure"
d7321 1
a7321 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getgid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getgid ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7325 3
a7327 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getgid) || defined (__stub___getgid)
choke me
#else
f = getgid;
#endif
d7333 3
a7335 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7337 1
a7337 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7339 2
a7340 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7343 1
a7343 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7345 1
a7345 1
  ac_cv_func_getgid=yes
d7348 4
a7351 2
cat conftest.$ac_ext >&5
ac_cv_func_getgid=no
d7353 9
a7361 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7362 3
echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
echo "${ECHO_T}$ac_cv_func_getgid" >&6
if test $ac_cv_func_getgid = yes; then
d7364 1
a7364 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETGID 1
_ACEOF
a7365 2
else
  LIBOBJS="$LIBOBJS getgid.$ac_objext"
d7367 4
a7370 3
echo "$as_me:$LINENO: checking for gethostname" >&5
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
if test "${ac_cv_func_gethostname+set}" = set; then
d7373 4
d7378 1
a7378 1
#line $LINENO "configure"
a7379 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostname (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostname ();
char (*f) ();
d7381 5
a7385 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d7387 7
a7393 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostname) || defined (__stub___gethostname)
choke me
#else
f = gethostname;
#endif
d7395 3
a7397 2
  ;
  return 0;
d7400 2
a7401 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7404 3
a7406 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7409 1
a7409 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7411 1
a7411 1
  ac_cv_func_gethostname=yes
d7413 2
a7414 1
  echo "$as_me: failed program was:" >&5
d7416 3
a7418 1
ac_cv_func_gethostname=no
a7419 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7421 2
a7422 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
if test $ac_cv_func_gethostname = yes; then
d7424 5
a7428 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETHOSTNAME 1
_ACEOF
a7429 2
else
  LIBOBJS="$LIBOBJS gethostname.$ac_objext"
d7431 6
a7436 3
echo "$as_me:$LINENO: checking for getifaddrs" >&5
echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
if test "${ac_cv_func_getifaddrs+set}" = set; then
d7440 1
a7440 1
#line $LINENO "configure"
d7442 1
a7442 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getifaddrs (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getifaddrs ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7446 3
a7448 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
choke me
#else
f = getifaddrs;
#endif
d7454 3
a7456 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7458 1
a7458 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7460 2
a7461 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7464 1
a7464 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7466 1
a7466 1
  ac_cv_func_getifaddrs=yes
d7470 1
a7470 1
ac_cv_func_getifaddrs=no
d7472 11
a7482 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7483 3
echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
if test $ac_cv_func_getifaddrs = yes; then
d7485 1
a7485 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF
a7486 2
else
  LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
d7488 4
a7491 3
echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
d7494 3
a7496 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a7497 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getipnodebyaddr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getipnodebyaddr ();
char (*f) ();
d7499 2
a7500 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7504 4
a7507 5
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
choke me
d7509 1
a7509 1
f = getipnodebyaddr;
d7511 2
d7519 1
a7519 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7522 1
a7522 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7525 1
a7525 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7528 1
a7528 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7530 1
a7530 1
  ac_cv_func_getipnodebyaddr=yes
d7534 1
a7534 1
ac_cv_func_getipnodebyaddr=no
d7538 4
a7541 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
if test $ac_cv_func_getipnodebyaddr = yes; then
d7543 3
a7545 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYADDR 1
_ACEOF
a7546 2
else
  LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
d7548 6
a7553 3
echo "$as_me:$LINENO: checking for getipnodebyname" >&5
echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyname+set}" = set; then
d7557 1
a7557 1
#line $LINENO "configure"
d7559 2
a7560 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getipnodebyname (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getipnodebyname ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7564 3
a7566 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
choke me
#else
f = getipnodebyname;
#endif
d7572 3
a7574 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d7576 1
a7576 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7578 2
a7579 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7582 1
a7582 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7584 1
a7584 1
  ac_cv_func_getipnodebyname=yes
d7588 13
a7600 1
ac_cv_func_getipnodebyname=no
d7602 3
a7604 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7605 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
if test $ac_cv_func_getipnodebyname = yes; then
d7607 3
a7609 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYNAME 1
_ACEOF
d7611 3
d7615 2
a7616 1
  LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
d7618 34
a7651 3
echo "$as_me:$LINENO: checking for getopt" >&5
echo $ECHO_N "checking for getopt... $ECHO_C" >&6
if test "${ac_cv_func_getopt+set}" = set; then
d7655 1
a7655 1
#line $LINENO "configure"
d7658 1
a7658 1
    which can conflict with char getopt (); below.  */
d7666 1
a7666 1
char getopt ();
a7668 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7675 1
a7675 1
#if defined (__stub_getopt) || defined (__stub___getopt)
d7678 1
a7678 1
f = getopt;
d7686 1
a7686 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7689 1
a7689 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7692 1
a7692 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7695 1
a7695 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7697 1
a7697 1
  ac_cv_func_getopt=yes
d7701 1
a7701 1
ac_cv_func_getopt=no
d7705 6
a7710 3
echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
echo "${ECHO_T}$ac_cv_func_getopt" >&6
if test $ac_cv_func_getopt = yes; then
d7712 2
a7713 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETOPT 1
_ACEOF
d7715 2
a7716 2
else
  LIBOBJS="$LIBOBJS getopt.$ac_objext"
d7718 4
a7721 3
echo "$as_me:$LINENO: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
d7724 14
a7737 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d7739 2
a7740 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettimeofday (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7742 2
a7743 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d7748 1
a7748 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
choke me
#else
f = gettimeofday;
#endif

d7754 1
a7754 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7757 1
a7757 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7760 1
a7760 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7763 1
a7763 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7765 1
a7765 1
  ac_cv_func_gettimeofday=yes
a7768 1
ac_cv_func_gettimeofday=no
d7771 5
a7776 3
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
d7778 3
a7780 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETTIMEOFDAY 1
_ACEOF
d7782 6
a7787 6
else
  LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
fi
echo "$as_me:$LINENO: checking for getuid" >&5
echo $ECHO_N "checking for getuid... $ECHO_C" >&6
if test "${ac_cv_func_getuid+set}" = set; then
d7791 1
a7791 1
#line $LINENO "configure"
d7794 1
a7794 1
    which can conflict with char getuid (); below.  */
d7802 1
a7802 1
char getuid ();
a7804 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7811 1
a7811 1
#if defined (__stub_getuid) || defined (__stub___getuid)
d7814 1
a7814 1
f = getuid;
d7822 1
a7822 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7825 1
a7825 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7828 1
a7828 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7831 1
a7831 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7833 1
a7833 1
  ac_cv_func_getuid=yes
d7837 1
a7837 1
ac_cv_func_getuid=no
d7841 6
a7846 3
echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
echo "${ECHO_T}$ac_cv_func_getuid" >&6
if test $ac_cv_func_getuid = yes; then
d7848 2
a7849 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETUID 1
_ACEOF
a7850 2
else
  LIBOBJS="$LIBOBJS getuid.$ac_objext"
d7852 41
a7892 3
echo "$as_me:$LINENO: checking for getusershell" >&5
echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
if test "${ac_cv_func_getusershell+set}" = set; then
d7895 14
a7908 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d7910 2
a7911 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getusershell (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d7913 2
a7914 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getusershell ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d7919 1
a7919 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getusershell) || defined (__stub___getusershell)
choke me
#else
f = getusershell;
#endif

d7925 1
a7925 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7928 1
a7928 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7931 1
a7931 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d7934 1
a7934 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7936 1
a7936 1
  ac_cv_func_getusershell=yes
a7939 1
ac_cv_func_getusershell=no
d7942 3
a7945 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
echo "${ECHO_T}$ac_cv_func_getusershell" >&6
if test $ac_cv_func_getusershell = yes; then
d7947 5
a7951 3
cat >>confdefs.h <<_ACEOF
#define HAVE_GETUSERSHELL 1
_ACEOF
d7953 6
a7958 6
else
  LIBOBJS="$LIBOBJS getusershell.$ac_objext"
fi
echo "$as_me:$LINENO: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
if test "${ac_cv_func_initgroups+set}" = set; then
d7962 1
a7962 1
#line $LINENO "configure"
d7965 1
a7965 1
    which can conflict with char initgroups (); below.  */
d7973 1
a7973 1
char initgroups ();
a7975 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d7982 1
a7982 1
#if defined (__stub_initgroups) || defined (__stub___initgroups)
d7985 1
a7985 1
f = initgroups;
d7993 1
a7993 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7996 1
a7996 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7999 1
a7999 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8002 1
a8002 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8004 1
a8004 1
  ac_cv_func_initgroups=yes
d8008 1
a8008 1
ac_cv_func_initgroups=no
d8012 6
a8017 3
echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
echo "${ECHO_T}$ac_cv_func_initgroups" >&6
if test $ac_cv_func_initgroups = yes; then
d8019 2
a8020 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INITGROUPS 1
_ACEOF
a8021 2
else
  LIBOBJS="$LIBOBJS initgroups.$ac_objext"
d8023 41
a8063 3
echo "$as_me:$LINENO: checking for innetgr" >&5
echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
if test "${ac_cv_func_innetgr+set}" = set; then
d8066 14
a8079 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8081 2
a8082 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char innetgr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char innetgr ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8087 1
a8087 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_innetgr) || defined (__stub___innetgr)
choke me
#else
f = innetgr;
#endif

d8093 1
a8093 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8096 1
a8096 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8099 1
a8099 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8102 1
a8102 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8104 1
a8104 1
  ac_cv_func_innetgr=yes
a8107 1
ac_cv_func_innetgr=no
d8110 3
a8113 3
echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
echo "${ECHO_T}$ac_cv_func_innetgr" >&6
if test $ac_cv_func_innetgr = yes; then
d8115 5
a8119 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INNETGR 1
_ACEOF
d8121 6
a8126 6
else
  LIBOBJS="$LIBOBJS innetgr.$ac_objext"
fi
echo "$as_me:$LINENO: checking for iruserok" >&5
echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
if test "${ac_cv_func_iruserok+set}" = set; then
d8130 1
a8130 1
#line $LINENO "configure"
d8133 1
a8133 1
    which can conflict with char iruserok (); below.  */
d8141 1
a8141 1
char iruserok ();
a8143 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8150 1
a8150 1
#if defined (__stub_iruserok) || defined (__stub___iruserok)
d8153 1
a8153 1
f = iruserok;
d8161 1
a8161 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8164 1
a8164 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8167 1
a8167 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8170 1
a8170 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8172 1
a8172 1
  ac_cv_func_iruserok=yes
d8176 1
a8176 1
ac_cv_func_iruserok=no
d8180 48
a8227 3
echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
echo "${ECHO_T}$ac_cv_func_iruserok" >&6
if test $ac_cv_func_iruserok = yes; then
d8229 3
a8231 3
cat >>confdefs.h <<_ACEOF
#define HAVE_IRUSEROK 1
_ACEOF
d8233 2
a8234 2
else
  LIBOBJS="$LIBOBJS iruserok.$ac_objext"
d8236 7
a8242 3
echo "$as_me:$LINENO: checking for localtime_r" >&5
echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
if test "${ac_cv_func_localtime_r+set}" = set; then
d8246 1
a8246 1
#line $LINENO "configure"
a8247 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char localtime_r (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char localtime_r ();
char (*f) ();
d8249 2
a8250 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8255 3
a8257 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
choke me
#else
f = localtime_r;
#endif
d8263 3
a8265 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8267 1
a8267 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8269 2
a8270 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8273 1
a8273 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8275 1
a8275 1
  ac_cv_func_localtime_r=yes
d8279 3
a8281 1
ac_cv_func_localtime_r=no
d8283 9
a8291 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a8292 3
echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
if test $ac_cv_func_localtime_r = yes; then
d8294 1
a8294 3
cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALTIME_R 1
_ACEOF
a8295 2
else
  LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
d8297 7
a8303 3
echo "$as_me:$LINENO: checking for lstat" >&5
echo $ECHO_N "checking for lstat... $ECHO_C" >&6
if test "${ac_cv_func_lstat+set}" = set; then
d8307 1
a8307 1
#line $LINENO "configure"
a8308 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char lstat (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char lstat ();
char (*f) ();
d8310 2
a8311 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8315 3
a8317 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_lstat) || defined (__stub___lstat)
choke me
#else
f = lstat;
#endif
d8323 3
a8325 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8327 1
a8327 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8329 2
a8330 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8333 1
a8333 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8335 1
a8335 1
  ac_cv_func_lstat=yes
d8339 1
a8339 1
ac_cv_func_lstat=no
d8341 1
a8341 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8343 8
a8350 3
echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
echo "${ECHO_T}$ac_cv_func_lstat" >&6
if test $ac_cv_func_lstat = yes; then
d8352 1
a8352 3
cat >>confdefs.h <<_ACEOF
#define HAVE_LSTAT 1
_ACEOF
a8353 2
else
  LIBOBJS="$LIBOBJS lstat.$ac_objext"
d8355 7
a8361 3
echo "$as_me:$LINENO: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
d8365 1
a8365 1
#line $LINENO "configure"
a8366 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char memmove (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char memmove ();
char (*f) ();
d8368 2
a8369 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8373 3
a8375 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_memmove) || defined (__stub___memmove)
choke me
#else
f = memmove;
#endif
d8381 3
a8383 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8385 1
a8385 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8387 2
a8388 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8391 1
a8391 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8393 1
a8393 1
  ac_cv_func_memmove=yes
d8397 1
a8397 1
ac_cv_func_memmove=no
d8399 1
a8399 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8401 4
a8404 3
echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
d8406 5
a8410 3
cat >>confdefs.h <<_ACEOF
#define HAVE_MEMMOVE 1
_ACEOF
a8411 2
else
  LIBOBJS="$LIBOBJS memmove.$ac_objext"
d8413 7
a8419 3
echo "$as_me:$LINENO: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
d8423 1
a8423 1
#line $LINENO "configure"
a8424 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mkstemp (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mkstemp ();
char (*f) ();
d8426 2
a8427 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8431 3
a8433 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
choke me
#else
f = mkstemp;
#endif
d8439 3
a8441 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8443 1
a8443 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8445 2
a8446 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8449 1
a8449 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8451 1
a8451 1
  ac_cv_func_mkstemp=yes
d8455 1
a8455 1
ac_cv_func_mkstemp=no
d8457 1
a8457 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8459 8
a8466 3
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
if test $ac_cv_func_mkstemp = yes; then
d8468 1
a8468 3
cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF
a8469 2
else
  LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
d8471 7
a8477 3
echo "$as_me:$LINENO: checking for putenv" >&5
echo $ECHO_N "checking for putenv... $ECHO_C" >&6
if test "${ac_cv_func_putenv+set}" = set; then
d8481 1
a8481 1
#line $LINENO "configure"
a8482 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char putenv (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char putenv ();
char (*f) ();
d8484 2
a8485 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8489 3
a8491 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_putenv) || defined (__stub___putenv)
choke me
#else
f = putenv;
#endif
d8497 3
a8499 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d8501 1
a8501 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8503 2
a8504 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8507 1
a8507 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8509 1
a8509 1
  ac_cv_func_putenv=yes
d8513 1
a8513 1
ac_cv_func_putenv=no
d8515 1
a8515 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d8517 2
a8518 3
echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
echo "${ECHO_T}$ac_cv_func_putenv" >&6
if test $ac_cv_func_putenv = yes; then
d8520 7
a8526 3
cat >>confdefs.h <<_ACEOF
#define HAVE_PUTENV 1
_ACEOF
a8527 2
else
  LIBOBJS="$LIBOBJS putenv.$ac_objext"
d8529 5
a8533 3
echo "$as_me:$LINENO: checking for rcmd" >&5
echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
if test "${ac_cv_func_rcmd+set}" = set; then
d8536 14
a8549 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8551 2
a8552 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char rcmd (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char rcmd ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8557 1
a8557 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_rcmd) || defined (__stub___rcmd)
choke me
#else
f = rcmd;
#endif

d8563 1
a8563 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8566 1
a8566 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8569 1
a8569 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8572 1
a8572 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8574 1
a8574 1
  ac_cv_func_rcmd=yes
a8577 1
ac_cv_func_rcmd=no
d8580 5
a8585 3
echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
echo "${ECHO_T}$ac_cv_func_rcmd" >&6
if test $ac_cv_func_rcmd = yes; then
d8587 3
a8589 3
cat >>confdefs.h <<_ACEOF
#define HAVE_RCMD 1
_ACEOF
d8591 6
a8596 6
else
  LIBOBJS="$LIBOBJS rcmd.$ac_objext"
fi
echo "$as_me:$LINENO: checking for readv" >&5
echo $ECHO_N "checking for readv... $ECHO_C" >&6
if test "${ac_cv_func_readv+set}" = set; then
d8600 1
a8600 1
#line $LINENO "configure"
d8603 1
a8603 1
    which can conflict with char readv (); below.  */
d8611 1
a8611 1
char readv ();
a8613 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8620 1
a8620 1
#if defined (__stub_readv) || defined (__stub___readv)
d8623 1
a8623 1
f = readv;
d8631 1
a8631 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8634 1
a8634 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8637 1
a8637 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8640 1
a8640 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8642 1
a8642 1
  ac_cv_func_readv=yes
d8646 1
a8646 1
ac_cv_func_readv=no
d8650 6
a8655 3
echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
echo "${ECHO_T}$ac_cv_func_readv" >&6
if test $ac_cv_func_readv = yes; then
d8657 2
a8658 3
cat >>confdefs.h <<_ACEOF
#define HAVE_READV 1
_ACEOF
a8659 2
else
  LIBOBJS="$LIBOBJS readv.$ac_objext"
d8661 41
a8701 3
echo "$as_me:$LINENO: checking for recvmsg" >&5
echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
if test "${ac_cv_func_recvmsg+set}" = set; then
d8704 14
a8717 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8719 2
a8720 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char recvmsg (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char recvmsg ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8725 1
a8725 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
choke me
#else
f = recvmsg;
#endif

d8731 1
a8731 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8734 1
a8734 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8737 1
a8737 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8740 1
a8740 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8742 1
a8742 1
  ac_cv_func_recvmsg=yes
a8745 1
ac_cv_func_recvmsg=no
d8748 5
a8753 3
echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
if test $ac_cv_func_recvmsg = yes; then
d8755 3
a8757 3
cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF
d8759 6
a8764 6
else
  LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
fi
echo "$as_me:$LINENO: checking for sendmsg" >&5
echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
if test "${ac_cv_func_sendmsg+set}" = set; then
d8768 1
a8768 1
#line $LINENO "configure"
d8771 1
a8771 1
    which can conflict with char sendmsg (); below.  */
d8779 1
a8779 1
char sendmsg ();
a8781 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8788 1
a8788 1
#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
d8791 1
a8791 1
f = sendmsg;
d8799 1
a8799 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8802 1
a8802 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8805 1
a8805 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8808 1
a8808 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8810 1
a8810 1
  ac_cv_func_sendmsg=yes
d8813 73
a8885 23
cat conftest.$ac_ext >&5
ac_cv_func_sendmsg=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
if test $ac_cv_func_sendmsg = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SENDMSG 1
_ACEOF

else
  LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
fi
echo "$as_me:$LINENO: checking for setegid" >&5
echo $ECHO_N "checking for setegid... $ECHO_C" >&6
if test "${ac_cv_func_setegid+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d8887 2
a8888 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setegid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setegid ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8893 1
a8893 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setegid) || defined (__stub___setegid)
choke me
#else
f = setegid;
#endif

d8899 1
a8899 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8902 1
a8902 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8905 1
a8905 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8908 1
a8908 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8910 1
a8910 1
  ac_cv_func_setegid=yes
a8913 1
ac_cv_func_setegid=no
d8916 3
a8919 3
echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
echo "${ECHO_T}$ac_cv_func_setegid" >&6
if test $ac_cv_func_setegid = yes; then
d8921 5
a8925 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SETEGID 1
_ACEOF
d8927 6
a8932 6
else
  LIBOBJS="$LIBOBJS setegid.$ac_objext"
fi
echo "$as_me:$LINENO: checking for setenv" >&5
echo $ECHO_N "checking for setenv... $ECHO_C" >&6
if test "${ac_cv_func_setenv+set}" = set; then
d8936 1
a8936 1
#line $LINENO "configure"
d8939 1
a8939 1
    which can conflict with char setenv (); below.  */
d8947 1
a8947 1
char setenv ();
a8949 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d8956 1
a8956 1
#if defined (__stub_setenv) || defined (__stub___setenv)
d8959 1
a8959 1
f = setenv;
d8967 1
a8967 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d8970 1
a8970 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8973 1
a8973 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d8976 1
a8976 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d8978 1
a8978 1
  ac_cv_func_setenv=yes
d8982 1
a8982 1
ac_cv_func_setenv=no
d8986 6
a8991 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
echo "${ECHO_T}$ac_cv_func_setenv" >&6
if test $ac_cv_func_setenv = yes; then
d8993 2
a8994 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SETENV 1
_ACEOF
a8995 2
else
  LIBOBJS="$LIBOBJS setenv.$ac_objext"
d8997 41
a9037 3
echo "$as_me:$LINENO: checking for seteuid" >&5
echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
if test "${ac_cv_func_seteuid+set}" = set; then
d9040 14
a9053 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9055 2
a9056 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char seteuid (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char seteuid ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9061 1
a9061 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_seteuid) || defined (__stub___seteuid)
choke me
#else
f = seteuid;
#endif

d9067 1
a9067 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9070 1
a9070 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9073 1
a9073 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9076 1
a9076 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9078 1
a9078 1
  ac_cv_func_seteuid=yes
a9081 1
ac_cv_func_seteuid=no
d9084 3
a9087 3
echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
echo "${ECHO_T}$ac_cv_func_seteuid" >&6
if test $ac_cv_func_seteuid = yes; then
d9089 5
a9093 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SETEUID 1
_ACEOF
d9095 6
a9100 6
else
  LIBOBJS="$LIBOBJS seteuid.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strcasecmp" >&5
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strcasecmp+set}" = set; then
d9104 1
a9104 1
#line $LINENO "configure"
d9107 1
a9107 1
    which can conflict with char strcasecmp (); below.  */
d9115 1
a9115 1
char strcasecmp ();
a9117 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9124 1
a9124 1
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
d9127 1
a9127 1
f = strcasecmp;
d9135 1
a9135 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9138 1
a9138 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9141 1
a9141 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9144 1
a9144 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9146 1
a9146 1
  ac_cv_func_strcasecmp=yes
d9150 1
a9150 1
ac_cv_func_strcasecmp=no
d9154 6
a9159 3
echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
if test $ac_cv_func_strcasecmp = yes; then
d9161 2
a9162 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRCASECMP 1
_ACEOF
a9163 2
else
  LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
d9165 32
a9196 19
echo "$as_me:$LINENO: checking for strdup" >&5
echo $ECHO_N "checking for strdup... $ECHO_C" >&6
if test "${ac_cv_func_strdup+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strdup ();
char (*f) ();
d9198 4
a9201 17
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strdup) || defined (__stub___strdup)
choke me
#else
f = strdup;
#endif
d9203 2
a9204 21
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_strdup=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_strdup=no
d9206 3
a9208 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a9209 3
echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
echo "${ECHO_T}$ac_cv_func_strdup" >&6
if test $ac_cv_func_strdup = yes; then
d9211 3
a9213 10
cat >>confdefs.h <<_ACEOF
#define HAVE_STRDUP 1
_ACEOF

else
  LIBOBJS="$LIBOBJS strdup.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strerror" >&5
echo $ECHO_N "checking for strerror... $ECHO_C" >&6
if test "${ac_cv_func_strerror+set}" = set; then
d9216 14
a9229 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9231 2
a9232 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strerror (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strerror ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9237 1
a9237 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strerror) || defined (__stub___strerror)
choke me
#else
f = strerror;
#endif

d9243 1
a9243 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9246 1
a9246 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9249 1
a9249 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9252 1
a9252 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9254 1
a9254 1
  ac_cv_func_strerror=yes
a9257 1
ac_cv_func_strerror=no
d9260 5
a9265 3
echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
echo "${ECHO_T}$ac_cv_func_strerror" >&6
if test $ac_cv_func_strerror = yes; then
d9267 3
a9269 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR 1
_ACEOF
d9271 6
a9276 6
else
  LIBOBJS="$LIBOBJS strerror.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strftime" >&5
echo $ECHO_N "checking for strftime... $ECHO_C" >&6
if test "${ac_cv_func_strftime+set}" = set; then
d9280 1
a9280 1
#line $LINENO "configure"
d9283 1
a9283 1
    which can conflict with char strftime (); below.  */
d9291 1
a9291 1
char strftime ();
a9293 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9300 1
a9300 1
#if defined (__stub_strftime) || defined (__stub___strftime)
d9303 1
a9303 1
f = strftime;
d9311 1
a9311 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9314 1
a9314 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9317 1
a9317 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9320 1
a9320 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9322 1
a9322 1
  ac_cv_func_strftime=yes
d9326 1
a9326 1
ac_cv_func_strftime=no
d9330 48
a9377 3
echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
echo "${ECHO_T}$ac_cv_func_strftime" >&6
if test $ac_cv_func_strftime = yes; then
d9379 3
a9381 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRFTIME 1
_ACEOF
d9383 2
a9384 2
else
  LIBOBJS="$LIBOBJS strftime.$ac_objext"
d9386 4
a9389 3
echo "$as_me:$LINENO: checking for strlcat" >&5
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
if test "${ac_cv_func_strlcat+set}" = set; then
d9392 14
a9405 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9407 2
a9408 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcat (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcat ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9413 1
a9413 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcat) || defined (__stub___strlcat)
choke me
#else
f = strlcat;
#endif

d9419 1
a9419 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9422 1
a9422 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9425 1
a9425 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9428 1
a9428 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9430 1
a9430 1
  ac_cv_func_strlcat=yes
a9433 1
ac_cv_func_strlcat=no
d9436 3
a9439 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
echo "${ECHO_T}$ac_cv_func_strlcat" >&6
if test $ac_cv_func_strlcat = yes; then
d9441 5
a9445 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCAT 1
_ACEOF
d9447 6
a9452 6
else
  LIBOBJS="$LIBOBJS strlcat.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strlcpy" >&5
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
if test "${ac_cv_func_strlcpy+set}" = set; then
d9456 1
a9456 1
#line $LINENO "configure"
d9459 1
a9459 1
    which can conflict with char strlcpy (); below.  */
d9467 1
a9467 1
char strlcpy ();
a9469 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9476 1
a9476 1
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
d9479 1
a9479 1
f = strlcpy;
d9487 1
a9487 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9490 1
a9490 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9493 1
a9493 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9496 1
a9496 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9498 1
a9498 1
  ac_cv_func_strlcpy=yes
d9502 1
a9502 1
ac_cv_func_strlcpy=no
d9506 48
a9553 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
if test $ac_cv_func_strlcpy = yes; then
d9555 3
a9557 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCPY 1
_ACEOF
d9559 2
a9560 2
else
  LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
d9562 4
a9565 3
echo "$as_me:$LINENO: checking for strlwr" >&5
echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
if test "${ac_cv_func_strlwr+set}" = set; then
d9568 14
a9581 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d9583 2
a9584 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlwr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlwr ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9589 1
a9589 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlwr) || defined (__stub___strlwr)
choke me
#else
f = strlwr;
#endif

d9595 1
a9595 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9598 1
a9598 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9601 1
a9601 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9604 1
a9604 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9606 1
a9606 1
  ac_cv_func_strlwr=yes
a9609 1
ac_cv_func_strlwr=no
d9612 5
a9617 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
echo "${ECHO_T}$ac_cv_func_strlwr" >&6
if test $ac_cv_func_strlwr = yes; then
d9619 3
a9621 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLWR 1
_ACEOF
d9623 6
a9628 6
else
  LIBOBJS="$LIBOBJS strlwr.$ac_objext"
fi
echo "$as_me:$LINENO: checking for strncasecmp" >&5
echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strncasecmp+set}" = set; then
d9632 1
a9632 1
#line $LINENO "configure"
d9635 1
a9635 1
    which can conflict with char strncasecmp (); below.  */
d9643 1
a9643 1
char strncasecmp ();
a9645 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9652 1
a9652 1
#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
d9655 1
a9655 1
f = strncasecmp;
d9663 1
a9663 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9666 1
a9666 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9669 1
a9669 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9672 1
a9672 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9674 1
a9674 1
  ac_cv_func_strncasecmp=yes
d9678 1
a9678 1
ac_cv_func_strncasecmp=no
d9682 48
a9729 3
echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
if test $ac_cv_func_strncasecmp = yes; then
d9731 3
a9733 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNCASECMP 1
_ACEOF
d9735 2
a9736 2
else
  LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
d9738 74
a9811 3
echo "$as_me:$LINENO: checking for strndup" >&5
echo $ECHO_N "checking for strndup... $ECHO_C" >&6
if test "${ac_cv_func_strndup+set}" = set; then
d9815 1
a9815 1
#line $LINENO "configure"
d9818 1
a9818 1
    which can conflict with char strndup (); below.  */
d9826 1
a9826 1
char strndup ();
a9828 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9835 1
a9835 1
#if defined (__stub_strndup) || defined (__stub___strndup)
d9838 1
a9838 1
f = strndup;
d9846 1
a9846 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9849 1
a9849 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9852 1
a9852 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9855 1
a9855 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9857 1
a9857 1
  ac_cv_func_strndup=yes
d9861 1
a9861 1
ac_cv_func_strndup=no
d9865 3
a9867 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
echo "${ECHO_T}$ac_cv_func_strndup" >&6
if test $ac_cv_func_strndup = yes; then
d9869 4
a9872 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNDUP 1
_ACEOF
d9875 1
a9875 1
  LIBOBJS="$LIBOBJS strndup.$ac_objext"
d9877 76
a9952 3
echo "$as_me:$LINENO: checking for strnlen" >&5
echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
if test "${ac_cv_func_strnlen+set}" = set; then
d9956 1
a9956 1
#line $LINENO "configure"
d9959 1
a9959 1
    which can conflict with char strnlen (); below.  */
d9967 1
a9967 1
char strnlen ();
a9969 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d9976 1
a9976 1
#if defined (__stub_strnlen) || defined (__stub___strnlen)
d9979 1
a9979 1
f = strnlen;
d9987 1
a9987 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d9990 1
a9990 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9993 1
a9993 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d9996 1
a9996 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9998 1
a9998 1
  ac_cv_func_strnlen=yes
d10002 1
a10002 1
ac_cv_func_strnlen=no
d10006 6
a10011 3
echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
echo "${ECHO_T}$ac_cv_func_strnlen" >&6
if test $ac_cv_func_strnlen = yes; then
d10013 2
a10014 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNLEN 1
_ACEOF
a10015 2
else
  LIBOBJS="$LIBOBJS strnlen.$ac_objext"
d10017 7
a10023 3
echo "$as_me:$LINENO: checking for strptime" >&5
echo $ECHO_N "checking for strptime... $ECHO_C" >&6
if test "${ac_cv_func_strptime+set}" = set; then
d10027 1
a10027 1
#line $LINENO "configure"
d10029 8
a10036 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strptime (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10038 2
a10039 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strptime ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10044 1
d10048 1
a10048 1
#if defined (__stub_strptime) || defined (__stub___strptime)
d10051 1
a10051 1
f = strptime;
d10059 1
a10059 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10062 1
a10062 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10065 1
a10065 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10068 1
a10068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10070 1
a10070 1
  ac_cv_func_strptime=yes
d10074 1
a10074 1
ac_cv_func_strptime=no
a10077 3
echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
echo "${ECHO_T}$ac_cv_func_strptime" >&6
if test $ac_cv_func_strptime = yes; then
d10079 5
a10083 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRPTIME 1
_ACEOF
d10085 2
d10088 3
a10090 1
  LIBOBJS="$LIBOBJS strptime.$ac_objext"
d10092 9
a10100 3
echo "$as_me:$LINENO: checking for strsep" >&5
echo $ECHO_N "checking for strsep... $ECHO_C" >&6
if test "${ac_cv_func_strsep+set}" = set; then
d10104 1
a10104 1
#line $LINENO "configure"
d10107 1
a10107 1
    which can conflict with char strsep (); below.  */
d10115 1
a10115 1
char strsep ();
a10117 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10124 1
a10124 1
#if defined (__stub_strsep) || defined (__stub___strsep)
d10127 1
a10127 1
f = strsep;
d10135 1
a10135 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10138 1
a10138 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10141 1
a10141 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10144 1
a10144 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10146 1
a10146 1
  ac_cv_func_strsep=yes
d10150 1
a10150 1
ac_cv_func_strsep=no
d10154 6
a10159 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
echo "${ECHO_T}$ac_cv_func_strsep" >&6
if test $ac_cv_func_strsep = yes; then
d10161 2
a10162 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP 1
_ACEOF
a10163 2
else
  LIBOBJS="$LIBOBJS strsep.$ac_objext"
d10165 6
a10170 3
echo "$as_me:$LINENO: checking for strsep_copy" >&5
echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
if test "${ac_cv_func_strsep_copy+set}" = set; then
d10174 1
a10174 1
#line $LINENO "configure"
d10176 8
a10183 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep_copy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10185 2
a10186 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strsep_copy ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10191 1
d10195 1
a10195 1
#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
d10198 1
a10198 1
f = strsep_copy;
d10206 1
a10206 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10209 1
a10209 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10212 1
a10212 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10215 1
a10215 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10217 1
a10217 1
  ac_cv_func_strsep_copy=yes
d10221 1
a10221 1
ac_cv_func_strsep_copy=no
a10224 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
if test $ac_cv_func_strsep_copy = yes; then
d10226 5
a10230 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRSEP_COPY 1
_ACEOF
d10232 2
d10235 3
a10237 1
  LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
d10239 9
a10247 3
echo "$as_me:$LINENO: checking for strtok_r" >&5
echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r+set}" = set; then
d10251 1
a10251 1
#line $LINENO "configure"
d10254 1
a10254 1
    which can conflict with char strtok_r (); below.  */
d10262 1
a10262 1
char strtok_r ();
a10264 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10271 1
a10271 1
#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
d10274 1
a10274 1
f = strtok_r;
d10282 1
a10282 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10285 1
a10285 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10288 1
a10288 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10291 1
a10291 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10293 1
a10293 1
  ac_cv_func_strtok_r=yes
d10297 1
a10297 1
ac_cv_func_strtok_r=no
d10301 6
a10306 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
if test $ac_cv_func_strtok_r = yes; then
d10308 2
a10309 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOK_R 1
_ACEOF
a10310 2
else
  LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
d10312 6
a10317 3
echo "$as_me:$LINENO: checking for strupr" >&5
echo $ECHO_N "checking for strupr... $ECHO_C" >&6
if test "${ac_cv_func_strupr+set}" = set; then
d10321 1
a10321 1
#line $LINENO "configure"
d10323 8
a10330 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strupr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10332 2
a10333 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strupr ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10338 1
d10342 1
a10342 1
#if defined (__stub_strupr) || defined (__stub___strupr)
d10345 1
a10345 1
f = strupr;
d10353 1
a10353 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10356 1
a10356 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10359 1
a10359 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10362 1
a10362 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10364 1
a10364 1
  ac_cv_func_strupr=yes
d10368 1
a10368 1
ac_cv_func_strupr=no
a10371 3
echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
echo "${ECHO_T}$ac_cv_func_strupr" >&6
if test $ac_cv_func_strupr = yes; then
d10373 5
a10377 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUPR 1
_ACEOF
d10379 2
d10382 3
a10384 1
  LIBOBJS="$LIBOBJS strupr.$ac_objext"
d10386 9
a10394 3
echo "$as_me:$LINENO: checking for swab" >&5
echo $ECHO_N "checking for swab... $ECHO_C" >&6
if test "${ac_cv_func_swab+set}" = set; then
d10398 1
a10398 1
#line $LINENO "configure"
d10401 1
a10401 1
    which can conflict with char swab (); below.  */
d10409 1
a10409 1
char swab ();
a10411 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10418 1
a10418 1
#if defined (__stub_swab) || defined (__stub___swab)
d10421 1
a10421 1
f = swab;
d10429 1
a10429 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10432 1
a10432 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10435 1
a10435 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10438 1
a10438 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10440 1
a10440 1
  ac_cv_func_swab=yes
d10444 1
a10444 1
ac_cv_func_swab=no
d10448 6
a10453 3
echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
echo "${ECHO_T}$ac_cv_func_swab" >&6
if test $ac_cv_func_swab = yes; then
d10455 2
a10456 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SWAB 1
_ACEOF
a10457 2
else
  LIBOBJS="$LIBOBJS swab.$ac_objext"
d10459 4
a10462 3
echo "$as_me:$LINENO: checking for unsetenv" >&5
echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv+set}" = set; then
a10464 14
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char unsetenv (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char unsetenv ();
char (*f) ();
d10466 5
a10470 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10474 1
a10474 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
choke me
#else
f = unsetenv;
#endif

d10479 3
a10481 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10483 1
a10483 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10485 2
a10486 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10489 1
a10489 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10491 1
a10491 1
  ac_cv_func_unsetenv=yes
d10495 1
a10495 1
ac_cv_func_unsetenv=no
d10497 1
a10497 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10499 3
a10501 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
if test $ac_cv_func_unsetenv = yes; then
d10503 3
a10505 3
cat >>confdefs.h <<_ACEOF
#define HAVE_UNSETENV 1
_ACEOF
a10506 2
else
  LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
d10508 6
a10513 3
echo "$as_me:$LINENO: checking for verr" >&5
echo $ECHO_N "checking for verr... $ECHO_C" >&6
if test "${ac_cv_func_verr+set}" = set; then
d10516 5
d10522 1
a10522 1
#line $LINENO "configure"
d10524 5
a10528 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verr ();
char (*f) ();
a10529 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10531 1
a10531 1
main ()
d10533 5
a10537 7
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verr) || defined (__stub___verr)
choke me
#else
f = verr;
d10539 6
a10545 3
  ;
  return 0;
}
d10547 2
a10548 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10551 3
a10553 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10556 1
a10556 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10558 1
a10558 1
  ac_cv_func_verr=yes
d10560 2
a10561 1
  echo "$as_me: failed program was:" >&5
d10563 3
a10565 1
ac_cv_func_verr=no
a10566 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10568 6
a10573 3
echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
echo "${ECHO_T}$ac_cv_func_verr" >&6
if test $ac_cv_func_verr = yes; then
d10575 1
a10575 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VERR 1
_ACEOF
d10577 4
d10582 4
a10585 6
  LIBOBJS="$LIBOBJS verr.$ac_objext"
fi
echo "$as_me:$LINENO: checking for verrx" >&5
echo $ECHO_N "checking for verrx... $ECHO_C" >&6
if test "${ac_cv_func_verrx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d10588 1
a10588 1
#line $LINENO "configure"
d10590 4
a10593 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verrx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verrx ();
char (*f) ();
a10594 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10596 1
a10596 1
main ()
d10598 9
a10606 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verrx) || defined (__stub___verrx)
choke me
#else
f = verrx;
#endif
a10607 3
  ;
  return 0;
}
d10609 2
a10610 2
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d10613 3
a10615 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10618 1
a10618 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10620 1
a10620 1
  ac_cv_func_verrx=yes
d10622 2
a10623 1
  echo "$as_me: failed program was:" >&5
d10625 3
a10627 1
ac_cv_func_verrx=no
a10628 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10630 6
a10635 3
echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
echo "${ECHO_T}$ac_cv_func_verrx" >&6
if test $ac_cv_func_verrx = yes; then
d10637 4
a10640 10
cat >>confdefs.h <<_ACEOF
#define HAVE_VERRX 1
_ACEOF

else
  LIBOBJS="$LIBOBJS verrx.$ac_objext"
fi
echo "$as_me:$LINENO: checking for vsyslog" >&5
echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
if test "${ac_cv_func_vsyslog+set}" = set; then
d10644 1
a10644 1
#line $LINENO "configure"
d10646 1
a10646 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vsyslog (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vsyslog ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10650 3
a10652 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
choke me
#else
f = vsyslog;
#endif
d10658 3
a10660 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10662 1
a10662 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10664 2
a10665 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10668 1
a10668 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10670 1
a10670 1
  ac_cv_func_vsyslog=yes
d10674 1
a10674 1
ac_cv_func_vsyslog=no
d10676 1
a10676 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10678 2
a10679 3
echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
if test $ac_cv_func_vsyslog = yes; then
d10681 7
a10687 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VSYSLOG 1
_ACEOF
a10688 2
else
  LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
d10690 5
a10694 3
echo "$as_me:$LINENO: checking for vwarn" >&5
echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
if test "${ac_cv_func_vwarn+set}" = set; then
d10698 1
a10698 1
#line $LINENO "configure"
d10700 1
a10700 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarn ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10704 3
a10706 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarn) || defined (__stub___vwarn)
choke me
#else
f = vwarn;
#endif
d10712 3
a10714 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10716 1
a10716 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10718 2
a10719 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10722 1
a10722 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10724 1
a10724 1
  ac_cv_func_vwarn=yes
d10728 1
a10728 1
ac_cv_func_vwarn=no
d10730 1
a10730 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10732 8
a10739 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
echo "${ECHO_T}$ac_cv_func_vwarn" >&6
if test $ac_cv_func_vwarn = yes; then
d10741 1
a10741 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARN 1
_ACEOF
a10742 2
else
  LIBOBJS="$LIBOBJS vwarn.$ac_objext"
a10743 19
echo "$as_me:$LINENO: checking for vwarnx" >&5
echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
if test "${ac_cv_func_vwarnx+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarnx ();
char (*f) ();
d10745 10
a10754 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10758 3
a10760 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
choke me
#else
f = vwarnx;
#endif
d10766 3
a10768 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10770 1
a10770 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10772 2
a10773 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10776 1
a10776 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10778 1
a10778 1
  ac_cv_func_vwarnx=yes
d10782 1
a10782 1
ac_cv_func_vwarnx=no
d10784 1
a10784 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10786 4
a10789 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
if test $ac_cv_func_vwarnx = yes; then
d10791 5
a10795 3
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARNX 1
_ACEOF
a10796 2
else
  LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
d10798 5
a10802 3
echo "$as_me:$LINENO: checking for warn" >&5
echo $ECHO_N "checking for warn... $ECHO_C" >&6
if test "${ac_cv_func_warn+set}" = set; then
d10806 1
a10806 1
#line $LINENO "configure"
d10808 1
a10808 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warn ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10812 3
a10814 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warn) || defined (__stub___warn)
choke me
#else
f = warn;
#endif
d10820 3
a10822 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10824 1
a10824 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10826 2
a10827 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10830 1
a10830 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10832 1
a10832 1
  ac_cv_func_warn=yes
d10836 1
a10836 1
ac_cv_func_warn=no
d10838 1
a10838 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10840 4
a10843 3
echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
echo "${ECHO_T}$ac_cv_func_warn" >&6
if test $ac_cv_func_warn = yes; then
d10845 5
a10849 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WARN 1
_ACEOF
a10850 2
else
  LIBOBJS="$LIBOBJS warn.$ac_objext"
d10852 5
a10856 3
echo "$as_me:$LINENO: checking for warnx" >&5
echo $ECHO_N "checking for warnx... $ECHO_C" >&6
if test "${ac_cv_func_warnx+set}" = set; then
d10860 1
a10860 1
#line $LINENO "configure"
d10862 1
a10862 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warnx ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10866 3
a10868 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warnx) || defined (__stub___warnx)
choke me
#else
f = warnx;
#endif
d10874 3
a10876 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10878 1
a10878 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10880 2
a10881 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10884 1
a10884 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10886 1
a10886 1
  ac_cv_func_warnx=yes
d10890 1
a10890 1
ac_cv_func_warnx=no
d10892 1
a10892 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10894 4
a10897 3
echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
echo "${ECHO_T}$ac_cv_func_warnx" >&6
if test $ac_cv_func_warnx = yes; then
d10899 5
a10903 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WARNX 1
_ACEOF
a10904 2
else
  LIBOBJS="$LIBOBJS warnx.$ac_objext"
d10906 5
a10910 3
echo "$as_me:$LINENO: checking for writev" >&5
echo $ECHO_N "checking for writev... $ECHO_C" >&6
if test "${ac_cv_func_writev+set}" = set; then
d10914 1
a10914 1
#line $LINENO "configure"
d10916 9
a10924 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char writev (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d10926 2
a10927 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char writev ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d10932 3
a10934 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_writev) || defined (__stub___writev)
choke me
#else
f = writev;
#endif
d10940 3
a10942 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10944 1
a10944 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10946 2
a10947 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d10950 1
a10950 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d10952 1
a10952 1
  ac_cv_func_writev=yes
d10956 1
a10956 1
ac_cv_func_writev=no
d10958 1
a10958 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10960 4
a10963 3
echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
echo "${ECHO_T}$ac_cv_func_writev" >&6
if test $ac_cv_func_writev = yes; then
d10965 3
a10967 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WRITEV 1
_ACEOF
a10968 2
else
  LIBOBJS="$LIBOBJS writev.$ac_objext"
d10971 1
d10973 3
a10975 5

if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strndup_noproto+set}" = set; then
d10978 14
a10991 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d10993 1
a10993 7
#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d10997 1
a10997 4
struct foo { int foo; } xx;
extern int strndup (struct foo*);
strndup(&xx);

d11002 3
a11004 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11006 1
a11006 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11008 2
a11009 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11012 1
a11012 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11014 1
a11014 1
  eval "ac_cv_func_strndup_noproto=yes"
a11017 1
eval "ac_cv_func_strndup_noproto=no"
d11019 6
a11024 1
rm -f conftest.$ac_objext conftest.$ac_ext
a11025 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
if test "$ac_cv_func_strndup_noproto" = yes; then
d11027 1
a11027 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRNDUP_PROTO 1
_ACEOF
d11029 1
a11029 2
fi
fi
d11031 6
a11036 4
if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
d11040 1
a11040 1
#line $LINENO "configure"
d11042 6
a11047 6
#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11049 5
d11057 8
a11064 3
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);
d11070 3
a11072 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11074 1
a11074 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11076 2
a11077 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11080 1
a11080 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11082 1
a11082 1
  eval "ac_cv_func_strsep_noproto=yes"
d11086 1
a11086 1
eval "ac_cv_func_strsep_noproto=no"
d11088 1
a11088 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11090 6
a11095 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
if test "$ac_cv_func_strsep_noproto" = yes; then
d11097 2
a11098 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRSEP_PROTO 1
_ACEOF
d11101 37
a11137 1
fi
d11139 3
a11141 4
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
d11145 1
a11145 1
#line $LINENO "configure"
d11147 15
a11161 6
#include <string.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11163 1
d11167 1
a11167 4
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

d11173 1
a11173 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11176 1
a11176 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11179 1
a11179 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11182 1
a11182 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11184 1
a11184 1
  eval "ac_cv_func_strtok_r_noproto=yes"
d11188 1
a11188 1
eval "ac_cv_func_strtok_r_noproto=no"
d11192 4
a11195 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
if test "$ac_cv_func_strtok_r_noproto" = yes; then
d11197 3
a11199 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRTOK_R_PROTO 1
_ACEOF
a11201 1
fi
d11203 3
a11205 6


if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsvis_noproto+set}" = set; then
d11209 1
a11209 1
#line $LINENO "configure"
d11211 3
a11213 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11215 8
a11222 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11224 4
d11231 1
a11231 4
struct foo { int foo; } xx;
extern int strsvis (struct foo*);
strsvis(&xx);

d11237 1
a11237 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11240 1
a11240 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11243 1
a11243 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11246 1
a11246 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11248 1
a11248 1
  eval "ac_cv_func_strsvis_noproto=yes"
d11252 1
a11252 1
eval "ac_cv_func_strsvis_noproto=no"
d11256 4
a11259 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
if test "$ac_cv_func_strsvis_noproto" = yes; then
d11261 3
a11263 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRSVIS_PROTO 1
_ACEOF
a11265 1
fi
d11267 3
a11269 4
if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strunvis_noproto+set}" = set; then
d11273 1
a11273 1
#line $LINENO "configure"
d11275 6
a11280 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11282 8
a11289 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11291 1
d11295 1
a11295 4
struct foo { int foo; } xx;
extern int strunvis (struct foo*);
strunvis(&xx);

d11301 1
a11301 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11304 1
a11304 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11307 1
a11307 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11310 1
a11310 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11312 1
a11312 1
  eval "ac_cv_func_strunvis_noproto=yes"
d11316 1
a11316 1
eval "ac_cv_func_strunvis_noproto=no"
d11320 4
a11323 3
echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
if test "$ac_cv_func_strunvis_noproto" = yes; then
d11325 3
a11327 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRUNVIS_PROTO 1
_ACEOF
a11329 1
fi
d11331 3
a11333 4
if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvis_noproto+set}" = set; then
d11337 1
a11337 1
#line $LINENO "configure"
d11339 3
a11341 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11343 2
a11344 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11346 1
d11350 1
a11350 4
struct foo { int foo; } xx;
extern int strvis (struct foo*);
strvis(&xx);

d11356 1
a11356 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11359 1
a11359 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11362 1
a11362 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11365 1
a11365 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11367 1
a11367 1
  eval "ac_cv_func_strvis_noproto=yes"
d11371 1
a11371 1
eval "ac_cv_func_strvis_noproto=no"
d11375 4
a11378 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
if test "$ac_cv_func_strvis_noproto" = yes; then
d11380 3
a11382 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRVIS_PROTO 1
_ACEOF
a11384 1
fi
d11386 3
a11388 4
if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvisx_noproto+set}" = set; then
d11392 1
a11392 1
#line $LINENO "configure"
d11394 3
a11396 8
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11398 1
d11402 1
a11402 4
struct foo { int foo; } xx;
extern int strvisx (struct foo*);
strvisx(&xx);

d11408 1
a11408 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11411 1
a11411 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11414 1
a11414 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11417 1
a11417 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11419 1
a11419 1
  eval "ac_cv_func_strvisx_noproto=yes"
d11423 1
a11423 1
eval "ac_cv_func_strvisx_noproto=no"
d11427 4
a11430 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
if test "$ac_cv_func_strvisx_noproto" = yes; then
d11432 3
a11434 3
cat >>confdefs.h <<\_ACEOF
#define NEED_STRVISX_PROTO 1
_ACEOF
a11436 1
fi
d11438 4
a11441 4
if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_svis_noproto+set}" = set; then
d11445 1
a11445 1
#line $LINENO "configure"
d11447 3
a11449 2
#ifdef HAVE_VIS_H
#include <vis.h>
d11451 2
a11452 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11454 1
d11459 2
a11460 2
extern int svis (struct foo*);
svis(&xx);
d11467 1
a11467 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11470 1
a11470 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11473 1
a11473 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11476 1
a11476 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11478 1
a11478 1
  eval "ac_cv_func_svis_noproto=yes"
d11482 1
a11482 1
eval "ac_cv_func_svis_noproto=no"
d11486 4
a11489 3
echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
if test "$ac_cv_func_svis_noproto" = yes; then
d11491 3
a11493 3
cat >>confdefs.h <<\_ACEOF
#define NEED_SVIS_PROTO 1
_ACEOF
d11496 1
d11499 4
a11502 4
if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unvis_noproto+set}" = set; then
d11506 1
a11506 1
#line $LINENO "configure"
d11508 3
a11510 9
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11515 2
a11516 2
extern int unvis (struct foo*);
unvis(&xx);
d11523 1
a11523 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11526 1
a11526 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11529 1
a11529 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11532 1
a11532 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11534 1
a11534 1
  eval "ac_cv_func_unvis_noproto=yes"
d11538 1
a11538 1
eval "ac_cv_func_unvis_noproto=no"
d11542 4
a11545 3
echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
if test "$ac_cv_func_unvis_noproto" = yes; then
d11547 3
a11549 3
cat >>confdefs.h <<\_ACEOF
#define NEED_UNVIS_PROTO 1
_ACEOF
d11552 1
d11555 4
a11558 4
if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vis_noproto+set}" = set; then
d11562 1
a11562 1
#line $LINENO "configure"
d11564 3
a11566 9
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11571 2
a11572 2
extern int vis (struct foo*);
vis(&xx);
d11579 1
a11579 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11582 1
a11582 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11585 1
a11585 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11588 1
a11588 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11590 1
a11590 1
  eval "ac_cv_func_vis_noproto=yes"
d11594 1
a11594 1
eval "ac_cv_func_vis_noproto=no"
d11598 2
a11599 3
echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
if test "$ac_cv_func_vis_noproto" = yes; then
d11601 5
a11605 3
cat >>confdefs.h <<\_ACEOF
#define NEED_VIS_PROTO 1
_ACEOF
d11608 1
d11611 3
a11613 4

echo "$as_me:$LINENO: checking for inet_aton" >&5
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton+set}" = set; then
d11616 3
a11618 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11620 2
a11621 18
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11625 1
a11625 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton(0,0)
#endif

d11631 1
a11631 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11634 1
a11634 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11637 1
a11637 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11640 1
a11640 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11642 1
a11642 1
  eval "ac_cv_func_inet_aton=yes"
d11646 1
a11646 1
eval "ac_cv_func_inet_aton=no"
d11649 1
d11652 4
a11655 1
if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
d11657 3
a11659 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INET_ATON 1
_ACEOF
d11661 4
a11664 2
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
a11665 4
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
fi
d11667 2
a11668 7
echo "$as_me:$LINENO: checking for inet_ntop" >&5
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
if test "${ac_cv_func_inet_ntop+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11673 2
a11674 14
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11676 1
d11680 1
a11680 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop(0, 0, 0, 0)
#endif

d11685 3
a11687 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11689 1
a11689 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11691 2
a11692 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11695 1
a11695 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11697 1
a11697 1
  eval "ac_cv_func_inet_ntop=yes"
d11701 1
a11701 1
eval "ac_cv_func_inet_ntop=no"
d11703 2
a11704 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d11707 7
a11713 1
if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
d11715 1
a11715 3
cat >>confdefs.h <<_ACEOF
#define HAVE_INET_NTOP 1
_ACEOF
a11716 6
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
d11719 3
a11721 3
echo "$as_me:$LINENO: checking for inet_pton" >&5
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
if test "${ac_cv_func_inet_pton+set}" = set; then
d11724 3
a11726 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11728 2
a11729 18
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11733 1
a11733 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton(0,0,0)
#endif

d11739 1
a11739 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11742 1
a11742 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11745 1
a11745 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11748 1
a11748 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11750 1
a11750 1
  eval "ac_cv_func_inet_pton=yes"
d11754 1
a11754 1
eval "ac_cv_func_inet_pton=no"
a11756 1
fi
a11757 12
if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then

cat >>confdefs.h <<_ACEOF
#define HAVE_INET_PTON 1
_ACEOF

  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
d11760 4
d11765 3
d11769 3
a11771 3
echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
d11776 1
a11776 1
#line $LINENO "configure"
d11778 2
a11779 7
#include <sys/types.h>
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11781 1
d11785 1
a11785 1
struct sockaddr x; x.sa_len;
d11791 1
a11791 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d11794 1
a11794 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11797 1
a11797 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11800 1
a11800 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11802 1
a11802 1
  ac_cv_type_struct_sockaddr_sa_len=yes
d11806 1
a11806 1
ac_cv_type_struct_sockaddr_sa_len=no
d11809 1
a11810 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
d11812 3
d11816 3
a11818 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
_ACEOF
d11820 1
d11824 3
a11826 7


if test "$ac_cv_func_getnameinfo" = "yes"; then

echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
d11829 3
a11831 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11833 2
a11834 6
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

d11836 1
a11836 1
main(int argc, char **argv)
d11838 3
a11840 11
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
a11841 1

d11843 2
a11844 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d11847 4
a11850 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11853 1
a11853 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11855 1
a11855 1
  ac_cv_func_getnameinfo_broken=no
d11857 1
a11857 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d11859 1
a11859 2
( exit $ac_status )
ac_cv_func_getnameinfo_broken=yes
d11861 2
a11862 8
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
  fi
d11865 8
a11872 1
if test "$ac_cv_func_getaddrinfo" = "yes"; then
d11874 3
a11876 3
echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
d11879 3
a11881 7
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11883 1
a11883 3
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
d11885 2
a11886 1

d11888 1
a11888 1
main(int argc, char **argv)
d11890 3
a11892 8
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
		return 1;
	return 0;
a11893 1

d11895 3
a11897 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d11899 4
a11902 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11905 1
a11905 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11907 1
a11907 1
  ac_cv_func_getaddrinfo_numserv=yes
d11909 1
a11909 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d11911 1
a11911 2
( exit $ac_status )
ac_cv_func_getaddrinfo_numserv=no
d11913 2
a11914 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11916 9
d11926 1
a11926 6
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
  fi
d11929 3
a11931 5

if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
d11934 3
a11936 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11938 2
a11939 7
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d11943 1
a11943 4
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);

d11948 3
a11950 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11952 1
a11952 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11954 2
a11955 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d11958 1
a11958 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d11960 1
a11960 1
  eval "ac_cv_func_setenv_noproto=yes"
d11964 1
a11964 1
eval "ac_cv_func_setenv_noproto=no"
d11966 2
a11967 1
rm -f conftest.$ac_objext conftest.$ac_ext
a11968 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
if test "$ac_cv_func_setenv_noproto" = yes; then
d11970 4
a11973 3
cat >>confdefs.h <<\_ACEOF
#define NEED_SETENV_PROTO 1
_ACEOF
d11975 3
a11977 2
fi
fi
d11979 3
a11981 5

if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
d11984 3
a11986 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d11988 2
a11989 6
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11991 1
d11995 1
a11995 4
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);

d12001 1
a12001 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12004 1
a12004 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12007 1
a12007 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12010 1
a12010 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12012 1
a12012 1
  eval "ac_cv_func_unsetenv_noproto=yes"
d12016 1
a12016 1
eval "ac_cv_func_unsetenv_noproto=no"
d12019 1
a12020 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d12022 7
a12028 3
cat >>confdefs.h <<\_ACEOF
#define NEED_UNSETENV_PROTO 1
_ACEOF
d12031 1
d12034 3
a12036 5

if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
d12039 3
a12041 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12043 2
a12045 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12047 1
d12051 1
a12051 4
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

d12057 1
a12057 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12060 1
a12060 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12063 1
a12063 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12066 1
a12066 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12068 1
a12068 1
  eval "ac_cv_func_gethostname_noproto=yes"
d12072 1
a12072 1
eval "ac_cv_func_gethostname_noproto=no"
d12075 1
a12076 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
if test "$ac_cv_func_gethostname_noproto" = yes; then
d12078 7
a12084 3
cat >>confdefs.h <<\_ACEOF
#define NEED_GETHOSTNAME_PROTO 1
_ACEOF
a12086 1
fi
d12088 3
a12090 5

if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
d12093 3
a12095 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12097 2
a12099 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12101 1
d12105 1
a12105 4
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

d12111 1
a12111 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12114 1
a12114 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12117 1
a12117 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12120 1
a12120 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12122 1
a12122 1
  eval "ac_cv_func_mkstemp_noproto=yes"
d12126 1
a12126 1
eval "ac_cv_func_mkstemp_noproto=no"
d12129 1
a12130 3
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
if test "$ac_cv_func_mkstemp_noproto" = yes; then
d12132 7
a12138 3
cat >>confdefs.h <<\_ACEOF
#define NEED_MKSTEMP_PROTO 1
_ACEOF
a12140 1
fi
d12142 3
a12144 5

if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
d12147 3
a12149 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12151 2
a12153 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12155 1
d12159 1
a12159 4
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);

d12165 1
a12165 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12168 1
a12168 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12171 1
a12171 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12174 1
a12174 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12176 1
a12176 1
  eval "ac_cv_func_getusershell_noproto=yes"
d12180 1
a12180 1
eval "ac_cv_func_getusershell_noproto=no"
d12183 1
a12184 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
if test "$ac_cv_func_getusershell_noproto" = yes; then
d12186 7
a12192 3
cat >>confdefs.h <<\_ACEOF
#define NEED_GETUSERSHELL_PROTO 1
_ACEOF
a12194 1
fi
d12196 3
a12198 6


if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
d12201 3
a12203 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12205 3
a12207 18

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12209 1
d12213 1
a12213 4
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

d12219 1
a12219 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12222 1
a12222 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12225 1
a12225 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12228 1
a12228 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12230 1
a12230 1
  eval "ac_cv_func_inet_aton_noproto=yes"
d12234 1
a12234 1
eval "ac_cv_func_inet_aton_noproto=no"
a12236 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
if test "$ac_cv_func_inet_aton_noproto" = yes; then
a12237 5
cat >>confdefs.h <<\_ACEOF
#define NEED_INET_ATON_PROTO 1
_ACEOF

fi
d12240 3
d12244 3
d12248 1
d12250 3
a12252 4

echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
d12256 2
a12257 13
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12259 2
a12260 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12264 1
a12264 1
crypt()
d12269 3
a12271 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12273 1
a12273 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12275 2
a12276 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12279 1
a12279 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12281 1
a12281 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d12285 1
d12287 1
a12287 5
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
fi
d12291 3
d12295 3
a12297 1
eval "ac_res=\$ac_cv_funclib_crypt"
d12299 1
a12299 1
if false; then
d12301 3
a12303 6
for ac_func in crypt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12306 3
a12308 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12310 1
a12310 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12314 1
a12314 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d12319 3
a12321 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12323 1
a12323 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12325 2
a12326 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12329 1
a12329 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12331 1
a12331 1
  eval "$as_ac_var=yes"
d12335 1
a12335 1
eval "$as_ac_var=no"
d12337 1
a12337 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d12339 3
a12341 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d12343 3
a12345 2
fi
done
a12347 4
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"
d12349 3
a12351 41
case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
d12354 3
a12356 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12358 1
a12358 23

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12362 1
a12362 1
struct hostent *gethostbyname(const char *);
d12368 1
a12368 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12371 1
a12371 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12374 1
a12374 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12377 1
a12377 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12379 1
a12379 1
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
d12383 1
a12383 1
eval "ac_cv_func_gethostbyname_proto_compat=no"
d12387 9
a12395 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
d12397 5
a12401 1
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
d12403 12
a12414 2
cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
d12416 19
d12438 4
d12443 3
d12447 3
a12449 4

echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
d12452 3
a12454 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12456 2
a12457 23

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12461 1
a12461 1
struct hostent *gethostbyaddr(const void *, size_t, int);
d12467 1
a12467 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12470 1
a12470 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12473 1
a12473 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12476 1
a12476 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12478 1
a12478 1
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
d12482 1
a12482 1
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d12485 1
a12486 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
d12488 3
a12490 1
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
d12492 3
a12494 3
cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
_ACEOF
d12498 1
d12500 4
a12503 5


echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
d12507 1
a12507 1
#line $LINENO "configure"
a12508 2

#ifdef HAVE_SYS_TYPES_H
d12510 3
a12513 1
#ifdef HAVE_SYS_SOCKET_H
a12514 17
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12518 1
a12518 1
struct servent *getservbyname(const char *, const char *);
d12524 1
a12524 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12527 1
a12527 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12530 1
a12530 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12533 1
a12533 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12535 1
a12535 1
  eval "ac_cv_func_getservbyname_proto_compat=yes"
d12539 1
a12539 1
eval "ac_cv_func_getservbyname_proto_compat=no"
d12543 9
a12551 17
echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
_ACEOF

fi




echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
d12555 1
a12555 1
#line $LINENO "configure"
d12557 1
a12557 14

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12561 4
a12564 1
int getsockname(int, struct sockaddr*, socklen_t*);
d12570 1
a12570 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12573 1
a12573 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12576 1
a12576 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12579 1
a12579 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12581 1
a12581 1
  eval "ac_cv_func_getsockname_proto_compat=yes"
d12585 1
a12585 1
eval "ac_cv_func_getsockname_proto_compat=no"
d12589 3
a12591 2
echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
d12593 3
a12595 1
if test "$ac_cv_func_getsockname_proto_compat" = yes; then
d12597 1
a12597 3
cat >>confdefs.h <<\_ACEOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
_ACEOF
d12601 3
d12605 1
d12607 4
a12610 4

echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
d12614 1
a12614 1
#line $LINENO "configure"
d12616 4
a12619 10

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12621 1
d12625 1
a12625 1
void openlog(const char *, int, int);
d12631 1
a12631 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12634 1
a12634 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12637 1
a12637 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12640 1
a12640 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12642 1
a12642 1
  eval "ac_cv_func_openlog_proto_compat=yes"
d12646 1
a12646 1
eval "ac_cv_func_openlog_proto_compat=no"
d12650 9
a12658 18
echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6

if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OPENLOG_PROTO_COMPATIBLE 1
_ACEOF

fi




if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
d12662 1
a12662 1
#line $LINENO "configure"
d12664 1
a12664 14

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12668 4
a12671 4
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

d12677 1
a12677 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12680 1
a12680 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12683 1
a12683 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12686 1
a12686 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12688 1
a12688 1
  eval "ac_cv_func_crypt_noproto=yes"
d12692 1
a12692 1
eval "ac_cv_func_crypt_noproto=no"
d12696 3
a12698 3
echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
if test "$ac_cv_func_crypt_noproto" = yes; then
d12700 3
a12702 3
cat >>confdefs.h <<\_ACEOF
#define NEED_CRYPT_PROTO 1
_ACEOF
d12705 1
d12708 3
d12712 1
d12714 4
a12717 4

echo "$as_me:$LINENO: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
d12720 2
a12721 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12723 4
a12726 7
extern int h_errno;
int foo() { return h_errno; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12728 1
d12732 1
a12732 1
foo()
d12737 3
a12739 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12741 1
a12741 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12743 2
a12744 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12747 1
a12747 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12749 1
a12749 1
  ac_cv_var_h_errno=yes
d12753 1
a12753 1
ac_cv_var_h_errno=no
d12755 1
a12755 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d12757 2
a12758 3

ac_foo=`eval echo \\$ac_cv_var_h_errno`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d12761 5
a12765 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRNO 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
d12768 2
a12769 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12771 1
a12771 13
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12775 4
a12778 1
h_errno.foo = 1;
d12784 1
a12784 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12787 1
a12787 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12790 1
a12790 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12793 1
a12793 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12795 1
a12795 1
  eval "ac_cv_var_h_errno_declaration=no"
d12799 1
a12799 1
eval "ac_cv_var_h_errno_declaration=yes"
a12801 1

d12803 3
d12807 3
d12811 1
a12811 9


echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRNO_DECLARATION 1
_ACEOF
d12815 3
d12821 4
a12824 5


echo "$as_me:$LINENO: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
d12827 2
a12828 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12830 4
a12833 7
extern int h_errlist;
int foo() { return h_errlist; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12835 1
d12839 1
a12839 1
foo()
d12844 3
a12846 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12848 1
a12848 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12850 2
a12851 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12854 1
a12854 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12856 1
a12856 1
  ac_cv_var_h_errlist=yes
d12860 1
a12860 1
ac_cv_var_h_errlist=no
d12862 1
a12862 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d12864 2
a12865 3

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d12868 5
a12872 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRLIST 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
d12875 2
a12876 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12878 1
a12878 10
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12882 4
a12885 1
h_errlist.foo = 1;
d12891 1
a12891 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d12894 1
a12894 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12897 1
a12897 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12900 1
a12900 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12902 1
a12902 1
  eval "ac_cv_var_h_errlist_declaration=no"
d12906 1
a12906 1
eval "ac_cv_var_h_errlist_declaration=yes"
a12908 1

d12910 3
d12914 3
d12918 1
a12918 9


echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRLIST_DECLARATION 1
_ACEOF
d12922 3
d12928 4
a12931 5


echo "$as_me:$LINENO: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
d12934 2
a12935 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12937 4
a12940 7
extern int h_nerr;
int foo() { return h_nerr; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d12942 1
d12946 1
a12946 1
foo()
d12951 3
a12953 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12955 1
a12955 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12957 2
a12958 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d12961 1
a12961 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12963 1
a12963 1
  ac_cv_var_h_nerr=yes
d12967 1
a12967 1
ac_cv_var_h_nerr=no
d12969 1
a12969 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d12971 2
a12972 3

ac_foo=`eval echo \\$ac_cv_var_h_nerr`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d12975 5
a12979 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_NERR 1
_ACEOF


echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
d12982 2
a12983 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d12985 1
a12985 10
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d12989 4
a12992 1
h_nerr.foo = 1;
d12998 1
a12998 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13001 1
a13001 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13004 1
a13004 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13007 1
a13007 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13009 1
a13009 1
  eval "ac_cv_var_h_nerr_declaration=no"
d13013 1
a13013 1
eval "ac_cv_var_h_nerr_declaration=yes"
a13015 1

d13017 3
d13021 3
d13025 1
a13025 9


echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_H_NERR_DECLARATION 1
_ACEOF
d13029 3
d13035 4
a13038 5


echo "$as_me:$LINENO: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
d13041 2
a13042 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13044 4
a13047 7
extern int __progname;
int foo() { return __progname; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13049 1
d13053 1
a13053 1
foo()
d13058 3
a13060 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d13062 1
a13062 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13064 2
a13065 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13068 1
a13068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13070 1
a13070 1
  ac_cv_var___progname=yes
d13074 1
a13074 1
ac_cv_var___progname=no
d13076 1
a13076 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d13078 2
a13079 3

ac_foo=`eval echo \\$ac_cv_var___progname`
echo "$as_me:$LINENO: result: $ac_foo" >&5
d13082 5
a13086 9

cat >>confdefs.h <<_ACEOF
#define HAVE___PROGNAME 1
_ACEOF


echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
d13089 2
a13090 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13092 1
a13092 10
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13096 4
a13099 1
__progname.foo = 1;
d13105 1
a13105 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13108 1
a13108 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13111 1
a13111 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13114 1
a13114 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13116 1
a13116 1
  eval "ac_cv_var___progname_declaration=no"
d13120 1
a13120 1
eval "ac_cv_var___progname_declaration=yes"
d13123 24
d13148 11
d13160 2
d13163 1
d13165 1
d13167 3
d13171 7
a13177 3
echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
a13178 2
cat >>confdefs.h <<\_ACEOF
#define HAVE___PROGNAME_DECLARATION 1
d13180 6
d13188 10
d13199 3
d13204 1
d13206 3
a13208 5


echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
d13213 1
a13213 1
#line $LINENO "configure"
d13215 3
a13217 10
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optarg;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13222 1
a13222 1
optarg.foo = 1;
d13228 1
a13228 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13231 1
a13231 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13234 1
a13234 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13237 1
a13237 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13239 1
a13239 1
  eval "ac_cv_var_optarg_declaration=no"
d13243 1
a13243 1
eval "ac_cv_var_optarg_declaration=yes"
d13249 12
d13262 1
d13264 3
d13268 1
a13268 3
echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
d13270 11
a13280 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTARG_DECLARATION 1
_ACEOF
d13282 9
d13292 1
d13294 2
d13297 19
d13317 10
a13326 5
echo "$as_me:$LINENO: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d13328 7
a13334 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13336 2
a13337 11
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13341 1
a13341 1
optind.foo = 1;
d13347 1
a13347 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13350 1
a13350 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13353 1
a13353 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13356 1
a13356 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13358 1
a13358 1
  eval "ac_cv_var_optind_declaration=no"
a13361 1
eval "ac_cv_var_optind_declaration=yes"
d13364 5
a13368 26

fi




echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTIND_DECLARATION 1
_ACEOF

fi



echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13370 2
a13371 11
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13375 1
a13375 1
opterr.foo = 1;
d13380 3
a13382 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d13384 1
a13384 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13386 2
a13387 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13390 1
a13390 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13392 1
a13392 1
  eval "ac_cv_var_opterr_declaration=no"
a13395 1
eval "ac_cv_var_opterr_declaration=yes"
d13397 14
a13410 1
rm -f conftest.$ac_objext conftest.$ac_ext
d13412 9
d13423 3
d13427 3
d13431 1
d13433 11
a13443 7
echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTERR_DECLARATION 1
_ACEOF
d13445 9
d13455 1
d13457 2
d13460 19
d13480 10
a13489 5
echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d13491 7
a13497 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13499 1
a13499 11
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13503 1
a13503 1
optopt.foo = 1;
d13509 1
a13509 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13512 1
a13512 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13515 1
a13515 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13518 1
a13518 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13520 1
a13520 1
  eval "ac_cv_var_optopt_declaration=no"
a13523 1
eval "ac_cv_var_optopt_declaration=yes"
d13526 10
d13537 20
d13558 4
d13563 5
d13569 3
d13573 9
a13581 9

echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTOPT_DECLARATION 1
_ACEOF

d13584 7
d13592 3
a13594 5


echo "$as_me:$LINENO: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
d13597 2
a13598 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13600 1
a13600 8
#include <stdlib.h>
extern struct { int foo; } environ;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13604 3
a13606 1
environ.foo = 1;
d13612 1
a13612 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13615 1
a13615 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13618 1
a13618 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13621 1
a13621 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13623 1
a13623 1
  eval "ac_cv_var_environ_declaration=no"
d13627 1
a13627 1
eval "ac_cv_var_environ_declaration=yes"
d13632 3
d13636 3
d13640 1
d13642 3
a13644 19

echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ENVIRON_DECLARATION 1
_ACEOF

fi






echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
d13647 2
a13648 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13650 1
a13650 7
#include <time.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13654 2
a13655 1
struct tm x; x.tm_gmtoff;
d13661 1
a13661 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13664 1
a13664 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13667 1
a13667 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13670 1
a13670 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13672 1
a13672 1
  ac_cv_type_struct_tm_tm_gmtoff=yes
d13676 1
a13676 1
ac_cv_type_struct_tm_tm_gmtoff=no
a13678 10
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
_ACEOF

d13681 3
d13685 3
d13689 3
d13693 4
a13696 4

echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
d13699 2
a13700 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13702 1
a13702 7
#include <time.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13706 2
a13707 1
struct tm x; x.tm_zone;
d13713 1
a13713 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d13716 1
a13716 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13719 1
a13719 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13722 1
a13722 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13724 1
a13724 1
  ac_cv_type_struct_tm_tm_zone=yes
d13728 1
a13728 1
ac_cv_type_struct_tm_tm_zone=no
a13730 10
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF

d13733 3
d13737 3
d13741 1
d13743 3
a13745 5


echo "$as_me:$LINENO: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
d13749 13
a13761 2
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13763 1
a13763 8
extern int timezone;
int foo() { return timezone; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13767 1
a13767 1
foo()
d13773 1
a13773 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13776 1
a13776 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13779 1
a13779 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13782 1
a13782 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13784 1
a13784 1
  ac_cv_var_timezone=yes
a13787 1
ac_cv_var_timezone=no
d13790 4
d13797 1
a13797 4
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d13799 1
a13799 3
cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEZONE 1
_ACEOF
d13801 6
a13806 4

echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
d13809 2
a13810 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13812 6
a13817 7
#include <time.h>
extern struct { int foo; } timezone;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13819 5
d13827 9
a13835 1
timezone.foo = 1;
d13840 3
a13842 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d13844 1
a13844 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13846 2
a13847 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13850 1
a13850 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13852 1
a13852 1
  eval "ac_cv_var_timezone_declaration=no"
d13856 3
a13858 1
eval "ac_cv_var_timezone_declaration=yes"
d13860 6
a13865 1
rm -f conftest.$ac_objext conftest.$ac_ext
d13868 1
d13870 5
d13876 7
d13884 15
d13900 3
a13902 3
echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
d13904 4
a13907 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_TIMEZONE_DECLARATION 1
_ACEOF
d13909 2
d13913 21
a13933 21

fi


echo "$as_me:$LINENO: checking for altzone" >&5
echo $ECHO_N "checking for altzone... $ECHO_C" >&6
if test "${ac_cv_var_altzone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
extern int altzone;
int foo() { return altzone; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d13937 1
a13937 1
foo()
d13943 1
a13943 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d13946 1
a13946 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13949 1
a13949 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d13952 1
a13952 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d13954 1
a13954 1
  ac_cv_var_altzone=yes
a13957 1
ac_cv_var_altzone=no
d13960 4
d13967 1
a13967 4
ac_foo=`eval echo \\$ac_cv_var_altzone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
d13969 1
a13969 3
cat >>confdefs.h <<_ACEOF
#define HAVE_ALTZONE 1
_ACEOF
d13971 6
a13976 4

echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_altzone_declaration+set}" = set; then
d13979 2
a13980 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d13982 6
a13987 7
#include <time.h>
extern struct { int foo; } altzone;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d13989 5
d13997 9
a14005 1
altzone.foo = 1;
d14010 3
a14012 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14014 1
a14014 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14016 2
a14017 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14020 1
a14020 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14022 1
a14022 1
  eval "ac_cv_var_altzone_declaration=no"
d14026 1
a14026 1
eval "ac_cv_var_altzone_declaration=yes"
d14028 8
a14035 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14038 1
d14040 5
d14046 7
d14054 15
d14070 3
a14072 3
echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
d14074 4
a14077 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_ALTZONE_DECLARATION 1
_ACEOF
d14079 2
d14083 3
a14085 10

fi




cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14088 14
a14101 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14103 1
a14103 12
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14107 1
a14107 1
sa_family_t foo;
d14112 3
a14114 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14116 1
a14116 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14118 2
a14119 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14122 1
a14122 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14124 1
a14124 1
  eval "ac_cv_type_$cv=yes"
a14127 1
eval "ac_cv_type_$cv=no"
d14129 4
a14132 63
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_sa_family_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SA_FAMILY_T 1
_ACEOF


d14137 1
a14137 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14139 1
a14139 1
fi
d14141 6
a14146 6


cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14150 1
a14150 1
#line $LINENO "configure"
d14152 6
a14157 60
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
socklen_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d14159 5
d14167 9
a14175 4
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
d14180 3
a14182 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14184 1
a14184 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14186 2
a14187 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14190 1
a14190 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14192 1
a14192 1
  ac_cv_type_socklen_t=yes
d14196 1
a14196 1
ac_cv_type_socklen_t=no
d14198 1
a14198 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14200 6
a14205 7
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
_ACEOF
d14207 2
d14211 4
d14216 7
a14222 1
fi
d14224 15
a14238 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14240 3
a14242 1
fi
d14244 4
d14249 3
d14253 3
a14255 4
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14259 1
a14259 1
#line $LINENO "configure"
d14261 4
a14264 12
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14268 1
a14268 1
struct sockaddr foo;
d14274 1
a14274 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14277 1
a14277 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14280 1
a14280 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14283 1
a14283 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14285 1
a14285 1
  eval "ac_cv_type_$cv=yes"
d14289 1
a14289 1
eval "ac_cv_type_$cv=no"
d14292 120
d14413 6
a14418 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
d14421 25
a14445 34
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr=yes
d14447 2
a14448 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
a14449 10
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR 1
_ACEOF

d14451 21
d14473 1
d14475 2
d14478 1
d14480 6
a14485 4
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

d14488 3
a14490 6


cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14493 17
a14509 40
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct sockaddr_storage foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d14511 8
a14518 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14520 2
a14521 49
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_sockaddr_storage=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
a14522 10
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
_ACEOF

d14525 4
d14532 6
a14537 4
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

d14539 3
a14541 7



cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14544 2
a14545 36
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct addrinfo foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_type_$cv=yes"
d14547 1
a14547 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
d14549 1
a14549 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14551 4
a14554 10
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d14556 1
a14556 38
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_addrinfo=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
d14558 16
a14573 11
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_ADDRINFO 1
_ACEOF


d14575 1
d14577 9
d14587 1
d14589 2
a14590 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14592 19
a14610 1
fi
d14612 10
d14623 7
a14629 9

cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14631 2
a14632 12
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14636 1
a14636 1
struct ifaddrs foo;
d14642 1
a14642 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14645 1
a14645 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14648 1
a14648 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14651 1
a14651 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14653 1
a14653 1
  eval "ac_cv_type_$cv=yes"
a14656 1
eval "ac_cv_type_$cv=no"
d14659 5
a14663 14
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14665 2
a14666 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14670 1
a14670 4
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
d14675 3
a14677 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14679 1
a14679 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14681 2
a14682 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14685 1
a14685 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14687 1
a14687 1
  ac_cv_type_struct_ifaddrs=yes
a14690 1
ac_cv_type_struct_ifaddrs=no
d14692 4
a14695 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then
d14697 5
a14701 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFADDRS 1
_ACEOF
d14703 3
d14707 9
d14718 3
a14720 1
fi
d14722 1
a14722 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d14724 9
d14734 1
d14736 11
d14748 2
d14751 19
a14769 14
cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d14771 10
a14780 2
#include <sys/types.h>
#include <sys/uio.h>
d14782 9
a14790 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14794 1
a14794 1
struct iovec foo;
d14800 1
a14800 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14803 1
a14803 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14806 1
a14806 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14809 1
a14809 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14811 1
a14811 1
  eval "ac_cv_type_$cv=yes"
a14814 1
eval "ac_cv_type_$cv=no"
d14817 5
a14821 14
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if test "${ac_cv_type_struct_iovec+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14823 1
a14823 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14827 1
a14827 4
if ((struct iovec *) 0)
  return 0;
if (sizeof (struct iovec))
  return 0;
d14832 3
a14834 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14836 1
a14836 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14838 2
a14839 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14842 1
a14842 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14844 1
a14844 1
  ac_cv_type_struct_iovec=yes
a14847 1
ac_cv_type_struct_iovec=no
d14849 4
a14852 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
if test $ac_cv_type_struct_iovec = yes; then
d14854 5
a14858 3
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IOVEC 1
_ACEOF
d14860 3
d14864 9
d14875 13
a14887 14
fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d14891 1
a14891 1
#line $LINENO "configure"
a14892 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d14895 1
a14895 8
#include <sys/socket.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14899 4
a14902 1
struct msghdr foo;
d14908 1
a14908 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14911 1
a14911 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14914 1
a14914 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14917 1
a14917 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14919 1
a14919 1
  eval "ac_cv_type_$cv=yes"
d14923 1
a14923 1
eval "ac_cv_type_$cv=no"
d14927 11
a14937 13
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if test "${ac_cv_type_struct_msghdr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14939 3
a14941 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d14945 4
a14948 4
if ((struct msghdr *) 0)
  return 0;
if (sizeof (struct msghdr))
  return 0;
d14954 1
a14954 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d14957 1
a14957 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14960 1
a14960 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d14963 1
a14963 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d14965 1
a14965 1
  ac_cv_type_struct_msghdr=yes
d14969 1
a14969 1
ac_cv_type_struct_msghdr=no
d14972 5
a14976 27
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
if test $ac_cv_type_struct_msghdr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_MSGHDR 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi




echo "$as_me:$LINENO: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d14978 2
a14979 5

ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d14981 10
a14990 2
#include <$i>

d14992 17
a15008 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
d15010 1
a15010 3
rm -f conftest*
done

d15012 1
a15012 6

if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_WINSIZE 1
_ACEOF
d15015 3
a15017 14
echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_WS_XPIXEL 1
_ACEOF
d15019 3
d15023 1
a15023 14
rm -f conftest*

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_WS_YPIXEL 1
_ACEOF
d15025 3
a15028 1
rm -f conftest*
d15030 3
a15032 7




echo "$as_me:$LINENO: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
d15035 4
a15038 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15040 3
a15042 3
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
d15044 1
a15044 13
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
d15047 1
a15047 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d15050 1
a15050 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15053 1
a15053 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15056 1
a15056 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15058 1
a15058 1
  ac_cv_struct_spwd=yes
a15061 1
ac_cv_struct_spwd=no
d15064 1
d15067 14
d15082 9
a15090 8
echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6

if test "$ac_cv_struct_spwd" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SPWD 1
_ACEOF
d15092 6
d15100 6
a15105 24


LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"


LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"



# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"

fi;

# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
d15107 1
a15107 1
fi;
d15109 6
a15114 9
# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
a15115 1
fi;
d15117 5
a15121 57
# Check whether --with-openldap-config or --without-openldap-config was given.
if test "${with_openldap_config+set}" = set; then
  withval="$with_openldap_config"

fi;



echo "$as_me:$LINENO: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6

case "$with_openldap" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_openldap" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_openldap_include" = ""; then
		if test -d "$i/include/openldap"; then
			header_dirs="$header_dirs $i/include/openldap"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_openldap_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_openldap_include"; then
	header_dirs="$with_openldap_include $header_dirs"
fi
if test "$with_openldap_lib"; then
	lib_dirs="$with_openldap_lib $lib_dirs"
fi

if test "$with_openldap_config" = ""; then
	with_openldap_config=''
fi

openldap_cflags=
openldap_libs=

case "$with_openldap_config" in
yes|no|"")
	;;
*)
	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
	openldap_libs="`$with_openldap_config --libs 2>&1`"
	;;
esac
d15123 11
a15133 7
found=no
if test "$with_openldap" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$openldap_cflags" -a "$openldap_libs"; then
		CFLAGS="$openldap_cflags $save_CFLAGS"
		LIBS="$openldap_libs $save_LIBS"
d15135 1
a15135 1
#line $LINENO "configure"
d15137 1
a15137 8
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15141 1
a15141 1

d15147 1
a15147 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15150 1
a15150 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15153 1
a15153 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15156 1
a15156 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15158 1
a15158 6

			INCLUDE_openldap="$openldap_cflags"
			LIB_openldap="$openldap_libs"
			echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
echo "${ECHO_T}from $with_openldap_config" >&6
			found=yes
d15164 10
a15173 19
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
d15175 7
a15181 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
d15183 2
a15184 9
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lldap -llber  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15186 6
a15191 7
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15193 5
d15201 8
d15215 1
a15215 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15218 1
a15218 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15221 1
a15221 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15224 1
a15224 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15226 1
a15226 1
  lres=$i;break
d15230 1
a15232 11
		done
		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
			INCLUDE_openldap="-I$ires"
			LIB_openldap="-L$lres -lldap -llber"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d15234 9
d15244 5
a15248 1
if test "$found" = yes; then
d15250 7
a15256 3
cat >>confdefs.h <<_ACEOF
#define OPENLDAP 1
_ACEOF
d15258 7
a15264 6
	with_openldap=yes
else
	with_openldap=no
	INCLUDE_openldap=
	LIB_openldap=
	echo "$as_me:$LINENO: result: no" >&5
d15266 7
a15272 1
fi
d15274 3
d15278 4
d15283 13
d15297 6
a15302 3

if test "$openldap_libdir"; then
	LIB_openldap="-R $openldap_libdir $LIB_openldap"
d15305 4
d15310 7
d15318 2
a15319 3
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"
d15321 3
a15323 1
fi;
a15324 10
# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
d15326 46
a15371 10

# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
a15372 1
fi;
d15374 7
a15380 3
# Check whether --with-krb4-config or --without-krb4-config was given.
if test "${with_krb4_config+set}" = set; then
  withval="$with_krb4_config"
d15382 4
a15385 1
fi;
d15387 4
d15392 4
d15397 3
a15399 2
echo "$as_me:$LINENO: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6
d15401 6
a15406 5
case "$with_krb4" in
yes|"") d='/usr/athena' ;;
no)	d= ;;
*)	d="$with_krb4" ;;
esac
d15408 2
a15409 17
header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_krb4_include" = ""; then
		if test -d "$i/include/krb4"; then
			header_dirs="$header_dirs $i/include/krb4"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_krb4_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done
d15411 23
a15433 2
if test "$with_krb4_include"; then
	header_dirs="$with_krb4_include $header_dirs"
d15435 12
a15446 2
if test "$with_krb4_lib"; then
	lib_dirs="$with_krb4_lib $lib_dirs"
d15448 2
d15451 8
a15458 25
if test "$with_krb4_config" = ""; then
	with_krb4_config='krb4-config'
fi

krb4_cflags=
krb4_libs=

case "$with_krb4_config" in
yes|no|"")
	;;
*)
	krb4_cflags="`$with_krb4_config --cflags 2>&1`"
	krb4_libs="`$with_krb4_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_krb4" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$krb4_cflags" -a "$krb4_libs"; then
		CFLAGS="$krb4_cflags $save_CFLAGS"
		LIBS="$krb4_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15460 1
a15460 7
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15464 1
a15464 1

d15470 1
a15470 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15473 1
a15473 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15476 1
a15476 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15479 1
a15479 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15481 3
a15483 6

			INCLUDE_krb4="$krb4_cflags"
			LIB_krb4="$krb4_libs"
			echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
echo "${ECHO_T}from $with_krb4_config" >&6
			found=yes
d15487 11
d15500 15
a15514 18
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
d15516 4
a15519 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
d15521 8
a15528 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d15530 26
a15555 6
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lkrb -ldes $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15557 1
a15557 7
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15567 1
a15567 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15570 1
a15570 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15573 1
a15573 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15576 1
a15576 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15578 1
a15578 1
  lres=$i;break
d15582 1
d15585 2
a15586 25
		done
		if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
			INCLUDE_krb4="-I$ires"
			LIB_krb4="-L$lres -lkrb"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define KRB4 1
_ACEOF

	with_krb4=yes
else
	with_krb4=no
	INCLUDE_krb4=
	LIB_krb4=
	echo "$as_me:$LINENO: result: no" >&5
d15588 6
a15593 13
fi





LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 $LIBS"
	EXTRA_LIB45=lib45.a
a15594 15
	echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
a15598 2
		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
d15603 3
a15605 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15607 1
a15607 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15609 2
a15610 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15613 1
a15613 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15615 1
a15615 1
  ac_cv_func_krb_put_int_four=yes
d15619 1
a15619 1
ac_cv_func_krb_put_int_four=no
d15621 13
a15633 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15635 3
a15637 10
fi
echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
_ACEOF

	fi
d15639 10
d15650 3
a15652 14
	echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15654 3
d15660 1
a15660 2

		int x = KRB_VERIFY_SECURE
d15665 3
a15667 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15669 1
a15669 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15671 2
a15672 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15675 1
a15675 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15677 1
a15677 1
  ac_cv_func_krb_verify_secure=yes
d15681 3
a15683 22
ac_cv_func_krb_verify_secure=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then

cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_SECURE 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_SECURE_FAIL 2
_ACEOF

	fi
	echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
d15686 4
a15689 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15691 4
a15694 6
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15696 3
d15702 1
a15702 2

		int x = KRB_VERIFY_NOT_SECURE
d15707 3
a15709 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15711 1
a15711 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15713 2
a15714 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15717 1
a15717 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15719 1
a15719 1
  ac_cv_func_krb_verify_not_secure=yes
d15723 4
a15726 1
ac_cv_func_krb_verify_not_secure=no
d15728 4
a15731 2
rm -f conftest.$ac_objext conftest.$ac_ext

a15732 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
d15734 4
a15737 12
cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_NOT_SECURE 0
_ACEOF

	fi




echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
d15740 4
a15743 14

if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15746 3
a15748 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15750 3
d15756 1
a15756 1
krb_enable_debug()
d15762 1
a15762 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15765 1
a15765 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15768 1
a15768 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15771 1
a15771 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15773 1
a15773 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
d15777 1
d15780 6
a15785 3
	done
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
	LIBS="$ac_save_LIBS"
d15788 1
d15790 2
d15793 11
a15803 11

eval "ac_res=\$ac_cv_funclib_krb_enable_debug"

if false; then

for ac_func in krb_enable_debug
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15807 1
a15807 1
#line $LINENO "configure"
d15810 1
a15810 1
    which can conflict with char $ac_func (); below.  */
d15818 1
a15818 1
char $ac_func ();
a15820 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d15827 1
a15827 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d15830 1
a15830 1
f = $ac_func;
d15838 1
a15838 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15841 1
a15841 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15844 1
a15844 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15847 1
a15847 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15849 1
a15849 1
  eval "$as_ac_var=yes"
d15853 1
a15853 1
eval "$as_ac_var=no"
d15857 29
a15885 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15887 17
a15903 1

d15905 2
a15906 2
done

d15908 4
a15911 41
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_enable_debug=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
d15914 4
a15917 7




echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
d15920 4
a15923 14

if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d15926 3
a15928 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d15930 3
d15936 1
a15936 1
krb_disable_debug()
d15942 1
a15942 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d15945 1
a15945 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15948 1
a15948 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d15951 1
a15951 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d15953 1
a15953 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d15957 1
d15960 1
a15960 3
	done
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
	LIBS="$ac_save_LIBS"
d15962 4
a15965 1

d15968 2
d15971 10
a15980 10
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"

if false; then

for ac_func in krb_disable_debug
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15984 1
a15984 1
#line $LINENO "configure"
d15987 1
a15987 1
    which can conflict with char $ac_func (); below.  */
d15995 1
a15995 1
char $ac_func ();
a15997 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16004 1
a16004 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16007 1
a16007 1
f = $ac_func;
d16015 1
a16015 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16018 1
a16018 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16021 1
a16021 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16024 1
a16024 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16026 1
a16026 1
  eval "$as_ac_var=yes"
d16030 1
a16030 1
eval "$as_ac_var=no"
d16034 2
a16035 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16037 4
a16040 54
fi
done

fi
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_disable_debug=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
fi





echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
d16043 4
a16046 14

if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d16049 3
a16051 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d16053 3
d16059 1
a16059 1
krb_get_our_ip_for_realm()
d16065 1
a16065 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16068 1
a16068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16071 1
a16071 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16074 1
a16074 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16076 1
a16076 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
d16080 1
d16083 1
a16083 3
	done
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
	LIBS="$ac_save_LIBS"
d16085 4
a16088 1

d16091 1
d16093 4
a16096 10
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"

if false; then

for ac_func in krb_get_our_ip_for_realm
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16100 1
a16100 1
#line $LINENO "configure"
d16103 1
a16103 1
    which can conflict with char $ac_func (); below.  */
d16111 1
a16111 1
char $ac_func ();
a16113 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16120 1
a16120 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16123 1
a16123 1
f = $ac_func;
d16131 1
a16131 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16134 1
a16134 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16137 1
a16137 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16140 1
a16140 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16142 1
a16142 1
  eval "$as_ac_var=yes"
d16146 1
a16146 1
eval "$as_ac_var=no"
d16150 2
a16151 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16153 4
a16156 54
fi
done

fi
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi





echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
d16159 4
a16162 14

if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d16165 3
a16167 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d16169 3
d16175 1
a16175 1
krb_kdctimeofday()
d16181 1
a16181 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16184 1
a16184 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16187 1
a16187 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16190 1
a16190 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16192 1
a16192 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
d16196 1
d16199 1
a16199 3
	done
	eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
	LIBS="$ac_save_LIBS"
d16201 4
a16204 1

d16207 1
d16209 4
a16212 10
eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"

if false; then

for ac_func in krb_kdctimeofday
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16216 1
a16216 1
#line $LINENO "configure"
d16219 1
a16219 1
    which can conflict with char $ac_func (); below.  */
d16227 1
a16227 1
char $ac_func ();
a16229 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16236 1
a16236 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16239 1
a16239 1
f = $ac_func;
d16247 1
a16247 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16250 1
a16250 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16253 1
a16253 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16256 1
a16256 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16258 1
a16258 1
  eval "$as_ac_var=yes"
d16262 1
a16262 1
eval "$as_ac_var=no"
d16266 29
a16294 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16296 20
a16315 1

d16317 4
a16320 2
done

a16321 4
# krb_kdctimeofday
eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_kdctimeofday=$ac_res"
d16323 2
a16324 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "LIB_krb_kdctimeofday="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d16326 19
a16344 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_kdctimeofday=no"
	eval "LIB_krb_kdctimeofday="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d16346 14
a16359 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d16361 26
d16388 1
a16388 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d16390 1
d16392 8
a16399 3
if test -n "$LIB_krb_kdctimeofday"; then
	LIBS="$LIB_krb_kdctimeofday $LIBS"
fi
d16401 30
d16432 9
d16442 24
d16467 5
d16473 7
d16481 6
d16488 3
a16490 3
echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
d16494 1
a16494 1
if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
d16496 1
a16496 1
	for ac_lib in "" ; do
d16506 1
a16506 1
#line $LINENO "configure"
a16508 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16512 1
a16512 1
krb_get_kdc_time_diff()
d16518 1
a16518 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16521 1
a16521 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16524 1
a16524 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16527 1
a16527 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16529 1
a16529 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
d16536 1
a16536 1
	eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
d16542 1
a16542 2

eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
d16546 1
a16546 1
for ac_func in krb_get_kdc_time_diff
d16549 1
a16549 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d16555 1
a16555 1
#line $LINENO "configure"
a16568 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16586 1
a16586 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d16589 1
a16589 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16592 1
a16592 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16595 1
a16595 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16605 1
a16605 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d16608 1
a16608 1
  cat >>confdefs.h <<_ACEOF
d16610 1
a16610 1
_ACEOF
d16616 2
a16617 2
# krb_get_kdc_time_diff
eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d16619 1
a16619 1
eval "LIB_krb_get_kdc_time_diff=$ac_res"
d16623 3
a16625 3
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
	eval "LIB_krb_get_kdc_time_diff="
	cat >>confdefs.h <<_ACEOF
d16627 1
a16627 1
_ACEOF
d16629 1
a16629 1
	echo "$as_me:$LINENO: result: yes" >&5
d16633 3
a16635 3
	eval "ac_cv_func_krb_get_kdc_time_diff=no"
	eval "LIB_krb_get_kdc_time_diff="
	echo "$as_me:$LINENO: result: no" >&5
d16639 1
a16639 1
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
d16641 1
a16641 1
	cat >>confdefs.h <<_ACEOF
d16643 1
a16643 1
_ACEOF
d16645 1
a16645 1
	cat >>confdefs.h <<_ACEOF
d16647 1
a16647 1
_ACEOF
d16649 1
a16649 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d16654 2
d16657 3
a16659 9
if test -n "$LIB_krb_get_kdc_time_diff"; then
	LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
fi



	echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
d16662 14
a16675 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d16677 1
a16677 8
#include <krb.h>
			#include <prot.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d16681 1
a16681 2

		char *x = KRB_SENDAUTH_VERS
d16686 3
a16688 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d16690 1
a16690 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16692 2
a16693 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16696 1
a16696 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16698 1
a16698 1
  ac_cv_func_krb_sendauth_vers=yes
a16701 1
ac_cv_func_krb_sendauth_vers=no
d16703 5
a16707 1
rm -f conftest.$ac_objext conftest.$ac_ext
a16709 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
	if test "$ac_cv_func_krb_sendauth_vers" != yes; then
d16711 3
a16713 3
cat >>confdefs.h <<\_ACEOF
#define KRB_SENDAUTH_VERS "AUTHV0.1"
_ACEOF
d16715 6
a16720 4
	fi
	echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
d16724 1
a16724 1
#line $LINENO "configure"
d16726 6
a16731 9
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d16733 5
d16741 8
d16754 3
a16756 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d16758 1
a16758 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16760 2
a16761 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d16764 1
a16764 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d16766 1
a16766 1
  ac_cv_func_krb_mk_req_const=yes
d16770 1
a16770 1
ac_cv_func_krb_mk_req_const=no
d16772 1
a16772 2
rm -f conftest.$ac_objext conftest.$ac_ext

d16774 6
a16779 9
echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define KRB_MK_REQ_CONST 1
_ACEOF

	fi
a16780 7
	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
	if test "$krb4_libdir"; then
		LIB_krb4="-R $krb4_libdir $LIB_krb4"
		LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
	fi
d16782 1
a16783 17

if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
fi



if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
d16785 4
d16790 7
d16798 7
a16804 148

if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
else
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi



cat >>confdefs.h <<\_ACEOF
#define KRB5 1
_ACEOF

# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\_ACEOF
#define DCE 1
_ACEOF

fi


if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
else
  DCE_TRUE='#'
  DCE_FALSE=
fi


## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
	dpagaix_ldflags=
else
	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
fi





# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval="$enable_otp"

fi;
if test "$enable_otp" = yes -a "$db_type" = unknown; then
	{ { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$enable_otp" != no; then
	if test "$db_type" != unknown; then
		enable_otp=yes
	else
		enable_otp=no
	fi
fi
if test "$enable_otp" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OTP 1
_ACEOF

	LIB_otp='$(top_builddir)/lib/otp/libotp.la'

fi
echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $enable_otp" >&5
echo "${ECHO_T}$enable_otp" >&6


if test "$enable_otp" = yes; then
  OTP_TRUE=
  OTP_FALSE='#'
else
  OTP_TRUE='#'
  OTP_FALSE=
fi



# Check whether --enable-osfc2 or --disable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
  enableval="$enable_osfc2"

fi;
LIB_security=
if test "$enable_osfc2" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OSFC2 1
_ACEOF

	LIB_security=-lsecurity
fi



# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_NROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $NROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
NROFF=$ac_cv_path_NROFF

if test -n "$NROFF"; then
  echo "$as_me:$LINENO: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
d16806 7
a16812 1
fi
d16814 3
a16816 25
# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GROFF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
d16818 3
a16820 1
  ;;
a16821 2
fi
GROFF=$ac_cv_path_GROFF
d16823 1
a16823 7
if test -n "$GROFF"; then
  echo "$as_me:$LINENO: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d16825 3
a16827 3
echo "$as_me:$LINENO: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
if test "${ac_cv_sys_man_format+set}" = set; then
a16829 8
  cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
END
d16831 39
a16869 8
if test "$NROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$NROFF" $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$NROFF $i"
			break
		fi
	done
d16871 1
a16871 7
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
	for i in "-mdoc" "-mandoc"; do
		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
			grep Jan > /dev/null 2>&1 ; then
			ac_cv_sys_man_format="$GROFF -Tascii $i"
			break
		fi
d16873 2
a16874 3
fi
if test "$ac_cv_sys_man_format"; then
	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@@"
a16877 4
echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6
if test "$ac_cv_sys_man_format"; then
	CATMAN="$ac_cv_sys_man_format"
d16879 1
a16879 1
fi
d16881 1
d16883 7
a16889 3
if test "$CATMAN"; then
  CATMAN_TRUE=
  CATMAN_FALSE='#'
d16891 26
a16916 3
  CATMAN_TRUE='#'
  CATMAN_FALSE=
fi
d16918 17
a16934 4
echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
if test "${ac_cv_sys_catman_ext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d16936 5
a16940 4
  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
	ac_cv_sys_catman_ext=0
else
	ac_cv_sys_catman_ext=number
d16942 6
d16950 2
a16951 6
echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
if test "$ac_cv_sys_catman_ext" = number; then
	CATMANEXT='$$section'
else
	CATMANEXT=0
d16953 12
d16966 15
d16982 3
d16986 4
d16991 1
d16993 18
a17010 3
# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
  withval="$with_readline"
d17012 1
a17012 1
fi;
d17014 6
a17019 9
# Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval="$with_readline_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
echo "$as_me: error: No argument for --with-readline-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
d17021 1
a17021 1
fi;
d17023 7
a17029 9
# Check whether --with-readline-include or --without-readline-include was given.
if test "${with_readline_include+set}" = set; then
  withval="$with_readline_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
echo "$as_me: error: No argument for --with-readline-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
d17031 3
a17033 1
fi;
d17035 8
a17042 3
# Check whether --with-readline-config or --without-readline-config was given.
if test "${with_readline_config+set}" = set; then
  withval="$with_readline_config"
d17044 27
a17070 1
fi;
d17072 21
d17094 21
a17114 30

echo "$as_me:$LINENO: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6

case "$with_readline" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_readline" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_readline_include" = ""; then
		if test -d "$i/include/readline"; then
			header_dirs="$header_dirs $i/include/readline"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_readline_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_readline_include"; then
	header_dirs="$with_readline_include $header_dirs"
d17116 1
a17116 2
if test "$with_readline_lib"; then
	lib_dirs="$with_readline_lib $lib_dirs"
d17118 7
a17125 2
if test "$with_readline_config" = ""; then
	with_readline_config=''
d17128 7
a17134 21
readline_cflags=
readline_libs=

case "$with_readline_config" in
yes|no|"")
	;;
*)
	readline_cflags="`$with_readline_config --cflags 2>&1`"
	readline_libs="`$with_readline_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_readline" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$readline_cflags" -a "$readline_libs"; then
		CFLAGS="$readline_cflags $save_CFLAGS"
		LIBS="$readline_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17136 1
a17136 8
#include <stdio.h>
 #include <readline.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17140 4
a17143 1

d17148 3
a17150 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17152 1
a17152 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17154 2
a17155 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17158 1
a17158 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17160 1
a17160 6

			INCLUDE_readline="$readline_cflags"
			LIB_readline="$readline_libs"
			echo "$as_me:$LINENO: result: from $with_readline_config" >&5
echo "${ECHO_T}from $with_readline_config" >&6
			found=yes
d17164 14
d17179 8
a17186 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17188 1
a17188 8
#include <stdio.h>
 #include <readline.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17192 4
a17195 1

d17201 1
a17201 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d17204 1
a17204 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17207 1
a17207 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17210 1
a17210 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17212 1
a17212 1
  ires=$i;break
d17216 1
d17219 20
a17238 5
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lreadline  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17240 4
a17243 7
#include <stdio.h>
 #include <readline.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d17245 30
d17278 4
a17281 1

d17286 3
a17288 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17290 1
a17290 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17292 2
a17293 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17296 1
a17296 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17298 1
a17298 1
  lres=$i;break
d17302 1
d17304 12
a17315 12
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
			INCLUDE_readline="-I$ires"
			LIB_readline="-L$lres -lreadline"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d17318 9
a17326 1
if test "$found" = yes; then
a17327 2
cat >>confdefs.h <<_ACEOF
#define READLINE 1
d17329 3
a17331 2

	with_readline=yes
d17333 1
a17333 5
	with_readline=no
	INCLUDE_readline=
	LIB_readline=
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d17335 1
d17337 4
d17342 3
d17346 3
d17350 1
d17352 13
d17366 6
a17371 16

# Check whether --with-hesiod or --without-hesiod was given.
if test "${with_hesiod+set}" = set; then
  withval="$with_hesiod"

fi;

# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
  withval="$with_hesiod_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
d17373 1
a17373 1
fi;
a17374 9
# Check whether --with-hesiod-include or --without-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
  withval="$with_hesiod_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
d17376 3
a17378 1
fi;
d17380 3
a17382 3
# Check whether --with-hesiod-config or --without-hesiod-config was given.
if test "${with_hesiod_config+set}" = set; then
  withval="$with_hesiod_config"
d17384 1
a17384 1
fi;
d17386 20
a17405 34


echo "$as_me:$LINENO: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6

case "$with_hesiod" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_hesiod" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_hesiod_include" = ""; then
		if test -d "$i/include/hesiod"; then
			header_dirs="$header_dirs $i/include/hesiod"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_hesiod_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_hesiod_include"; then
	header_dirs="$with_hesiod_include $header_dirs"
fi
if test "$with_hesiod_lib"; then
	lib_dirs="$with_hesiod_lib $lib_dirs"
d17407 1
a17408 2
if test "$with_hesiod_config" = ""; then
	with_hesiod_config=''
d17410 3
d17414 3
a17416 2
hesiod_cflags=
hesiod_libs=
d17418 1
a17418 8
case "$with_hesiod_config" in
yes|no|"")
	;;
*)
	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
	;;
esac
d17420 8
a17427 9
found=no
if test "$with_hesiod" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$hesiod_cflags" -a "$hesiod_libs"; then
		CFLAGS="$hesiod_cflags $save_CFLAGS"
		LIBS="$hesiod_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17429 4
a17432 6
#include <hesiod.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d17434 1
d17438 1
a17438 1

d17443 3
a17445 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17447 1
a17447 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17449 2
a17450 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17453 1
a17453 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17455 1
a17455 6

			INCLUDE_hesiod="$hesiod_cflags"
			LIB_hesiod="$hesiod_libs"
			echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
echo "${ECHO_T}from $with_hesiod_config" >&6
			found=yes
d17459 3
d17463 13
a17475 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17477 1
a17477 7
#include <hesiod.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17481 4
a17484 1

d17490 1
a17490 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d17493 1
a17493 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17496 1
a17496 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17499 1
a17499 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17501 1
a17501 1
  ires=$i;break
d17505 1
d17508 26
a17533 5
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lhesiod  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17535 4
a17538 7
#include <hesiod.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17542 2
a17543 1

d17548 3
a17550 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17552 1
a17552 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17554 2
a17555 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17558 1
a17558 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17560 1
a17560 1
  lres=$i;break
d17564 1
d17566 1
a17566 12
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
			INCLUDE_hesiod="-I$ires"
			LIB_hesiod="-L$lres -lhesiod"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d17568 3
d17572 3
a17574 1
if test "$found" = yes; then
a17575 11
cat >>confdefs.h <<_ACEOF
#define HESIOD 1
_ACEOF

	with_hesiod=yes
else
	with_hesiod=no
	INCLUDE_hesiod=
	LIB_hesiod=
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
d17578 3
a17580 18





# Check whether --enable-bigendian or --disable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
  enableval="$enable_bigendian"
  krb_cv_c_bigendian=yes
fi;
# Check whether --enable-littleendian or --disable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
  enableval="$enable_littleendian"
  krb_cv_c_bigendian=no
fi;
echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
if test "${krb_cv_c_bigendian_compile+set}" = set; then
d17584 1
a17584 1
#line $LINENO "configure"
d17586 2
a17588 8
#include <sys/types.h>
#include <sys/param.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d17592 1
a17592 4

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
d17598 1
a17598 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d17601 1
a17601 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17604 1
a17604 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17607 1
a17607 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17609 1
a17609 1
  krb_cv_c_bigendian_compile=yes
d17613 1
a17613 1
krb_cv_c_bigendian_compile=no
d17617 13
a17629 5
echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${krb_cv_c_bigendian+set}" = set; then
d17632 49
d17682 6
a17687 3
  if test "$krb_cv_c_bigendian_compile" = "yes"; then
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17689 12
d17702 17
a17718 7
#include <sys/types.h>
#include <sys/param.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d17720 2
d17725 6
a17730 6

#if BYTE_ORDER != BIG_ENDIAN
  not big endian
#endif
  ;
  return 0;
d17733 3
a17735 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d17737 3
a17739 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d17742 1
a17742 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d17744 1
a17744 1
  krb_cv_c_bigendian=yes
d17746 2
a17747 1
  echo "$as_me: failed program was:" >&5
d17749 14
a17762 1
krb_cv_c_bigendian=no
d17764 96
a17859 6
rm -f conftest.$ac_objext conftest.$ac_ext
  else
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
   { (exit 1); exit 1; }; }
d17862 1
a17862 1
#line $LINENO "configure"
d17864 1
a17864 10
main () {
      /* Are we little or big endian?  From Harbison&Steele.  */
      union
      {
	long l;
	char c[sizeof (long)];
    } u;
    u.l = 1;
    exit (u.c[sizeof (long) - 1] == 1);
  }
d17866 2
a17867 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17869 10
a17878 8
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_c_bigendian=no
d17880 1
a17880 5
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
krb_cv_c_bigendian=yes
d17882 6
a17887 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d17889 1
a17889 2
  fi

d17891 6
a17896 3
echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6
if test "$krb_cv_c_bigendian" = "yes"; then
a17897 3
cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
d17899 1
a17899 1
if test "$krb_cv_c_bigendian_compile" = "yes"; then
d17901 6
a17906 10
cat >>confdefs.h <<\_ACEOF
#define ENDIANESS_IN_SYS_PARAM_H 1
_ACEOF
fi



echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
a17908 2
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
d17910 1
a17910 1
#line $LINENO "configure"
d17912 1
a17912 5
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif

d17914 2
a17915 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d17917 15
a17931 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
d17934 4
a17937 1
cat conftest.$ac_ext >&5
d17939 6
a17944 2
rm -f conftest.$ac_objext conftest.$ac_ext
done
d17947 1
a17947 14
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\_ACEOF
#define inline
_ACEOF
 ;;
  *)  cat >>confdefs.h <<_ACEOF
#define inline $ac_cv_c_inline
_ACEOF
 ;;
esac
d17949 1
d17951 1
d17953 3
a17955 6



echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dlopen+set}" = set; then
d17958 2
a17959 14

if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" dl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d17961 5
a17966 13
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
dlopen()
  ;
  return 0;
}
d17968 2
a17969 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d17971 15
a17985 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
d17988 2
a17989 1
cat conftest.$ac_ext >&5
d17991 1
a17991 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
	LIBS="$ac_save_LIBS"
d17993 8
d18003 2
d18006 1
a18006 6

eval "ac_res=\$ac_cv_funclib_dlopen"

if false; then

for ac_func in dlopen
d18008 4
a18011 4
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d18015 1
a18015 1
#line $LINENO "configure"
d18017 1
a18017 33
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
d18019 2
a18020 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d18022 15
a18036 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
d18039 2
a18040 2
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
d18042 1
a18042 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d18044 6
a18049 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a18054 4
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dlopen=$ac_res"
d18056 3
a18058 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_dlopen=yes"
	eval "LIB_dlopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d18060 1
a18060 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dlopen=no"
	eval "LIB_dlopen="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dlopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d18062 1
a18062 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d18064 3
a18066 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a18067 9



if test "$ac_cv_funclib_dlopen" != no; then
  HAVE_DLOPEN_TRUE=
  HAVE_DLOPEN_FALSE='#'
else
  HAVE_DLOPEN_TRUE='#'
  HAVE_DLOPEN_FALSE=
d18070 3
a18072 18



aix=no
case "$host" in
*-*-aix3*)
	aix=3
	;;
*-*-aix4*|*-*-aix5*)
	aix=4
	;;
esac



if test "$aix" != no; then
  AIX_TRUE=
  AIX_FALSE='#'
d18074 2
a18075 2
  AIX_TRUE='#'
  AIX_FALSE=
d18078 3
a18080 4

if test "$aix" = 4; then
  AIX4_TRUE=
  AIX4_FALSE='#'
d18082 2
a18083 2
  AIX4_TRUE='#'
  AIX4_FALSE=
d18086 3
a18088 18


# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
if test "${enable_dynamic_afs+set}" = set; then
  enableval="$enable_dynamic_afs"

fi;

if test "$aix" != no; then
	if test "$enable_dynamic_afs" != no; then

		if test "$ac_cv_func_dlopen" = no; then



echo "$as_me:$LINENO: checking for loadquery" >&5
echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
if test "${ac_cv_funclib_loadquery+set}" = set; then
d18092 1
a18092 1
if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
d18094 1
a18094 1
	for ac_lib in "" ld; do
d18104 1
a18104 1
#line $LINENO "configure"
a18106 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18110 1
a18110 1
loadquery()
d18116 1
a18116 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18119 1
a18119 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18122 1
a18122 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18125 1
a18125 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18127 1
a18127 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
d18134 1
a18134 1
	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
d18140 1
a18140 2

eval "ac_res=\$ac_cv_funclib_loadquery"
d18144 1
a18144 1
for ac_func in loadquery
d18147 1
a18147 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d18153 1
a18153 1
#line $LINENO "configure"
a18166 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18184 1
a18184 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18187 1
a18187 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18190 1
a18190 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18193 1
a18193 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18203 1
a18203 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d18206 1
a18206 1
  cat >>confdefs.h <<_ACEOF
d18208 1
a18208 1
_ACEOF
d18214 2
a18215 2
# loadquery
eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d18217 1
a18217 1
eval "LIB_loadquery=$ac_res"
d18221 3
a18223 3
	eval "ac_cv_func_loadquery=yes"
	eval "LIB_loadquery="
	cat >>confdefs.h <<_ACEOF
d18225 1
a18225 175
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_loadquery=no"
	eval "LIB_loadquery="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_loadquery=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


		fi
		if test "$ac_cv_func_dlopen" != no; then
			AIX_EXTRA_KAFS='$(LIB_dlopen)'
		elif test "$ac_cv_func_loadquery" != no; then
			AIX_EXTRA_KAFS='$(LIB_loadquery)'
		else
			{ echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
echo "$as_me: not using dynloaded AFS library" >&6;}
			AIX_EXTRA_KAFS=
			enable_dynamic_afs=no
		fi
	else
		AIX_EXTRA_KAFS=
	fi
fi



if test "$enable_dynamic_afs" != no; then
  AIX_DYNAMIC_AFS_TRUE=
  AIX_DYNAMIC_AFS_FALSE='#'
else
  AIX_DYNAMIC_AFS_TRUE='#'
  AIX_DYNAMIC_AFS_FALSE=
fi






irix=no
case "$host" in
*-*-irix4*)

cat >>confdefs.h <<\_ACEOF
#define IRIX4 1
_ACEOF

	irix=yes
	;;
*-*-irix*)
	irix=yes
	;;
esac


if test "$irix" != no; then
  IRIX_TRUE=
  IRIX_FALSE='#'
else
  IRIX_TRUE='#'
  IRIX_FALSE=
fi





sunos=no
case "$host" in
*-*-sunos4*)
	sunos=40
	;;
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2.89)
	sunos=58
	;;
*-*-solaris2*)
	sunos=50
	;;
esac
if test "$sunos" != no; then

cat >>confdefs.h <<_ACEOF
#define SunOS $sunos
_ACEOF

fi


echo "$as_me:$LINENO: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6


# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"

fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
    if test "${ac_cv_have_x+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -fr conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat >Imakefile <<'_ACEOF'
acfindx:
	@@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
_ACEOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
         test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -fr conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include
d18227 15
a18241 4
/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4
d18243 3
a18245 4
/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include
d18247 4
a18250 4
/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4
d18252 3
a18254 3
/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11
d18256 5
a18260 6
/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include
d18262 14
a18275 2
/usr/openwin/include
/usr/openwin/share/include'
d18277 7
a18283 7
if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Intrinsic.h.
  # First, try using that file with no special directory specified.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
d18285 9
a18293 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d18295 3
a18297 10
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d18299 7
a18305 1
  ac_cpp_err=yes
d18307 1
a18307 12
if test -z "$ac_cpp_err"; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Intrinsic.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
a18308 2
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no
d18310 12
a18321 6
if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lXt $LIBS"
d18323 1
a18323 1
#line $LINENO "configure"
d18325 6
a18330 6
#include <X11/Intrinsic.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18332 5
d18340 9
a18348 1
XtMalloc (0)
d18354 1
a18354 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18357 1
a18357 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18360 1
a18360 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18363 1
a18363 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18365 1
a18365 3
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
d18369 1
a18369 11
LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl; do
    if test -r $ac_dir/libXt.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
d18372 7
a18378 1
fi # $ac_x_libraries = no
a18379 7
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
d18381 2
d18384 4
d18389 7
a18395 3
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no
d18397 15
a18411 14
if test "$have_x" != yes; then
  echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi
d18413 3
d18417 4
a18420 2
if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.
d18422 3
a18424 3
cat >>confdefs.h <<\_ACEOF
#define X_DISPLAY_MISSING 1
_ACEOF
d18426 4
a18429 1
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
d18431 14
a18444 16
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case `(uname -sr) 2>/dev/null` in
    "SunOS 5"*)
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
      cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a18446 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18450 1
a18450 1

d18456 1
a18456 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18459 1
a18459 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18462 1
a18462 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18465 1
a18465 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18467 1
a18467 1
  ac_R_nospace=yes
a18470 1
ac_R_nospace=no
d18473 4
a18476 19
      if test $ac_R_nospace = yes; then
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
a18477 21
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_R_space=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_space=no
a18478 13
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	if test $ac_R_space = yes; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$as_me:$LINENO: result: neither works" >&5
echo "${ECHO_T}neither works" >&6
	fi
      fi
      LIBS=$ac_xsave_LIBS
    esac
  fi
d18480 1
a18480 3
  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.
d18482 1
a18482 10
  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
d18484 6
a18489 40
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char XOpenDisplay ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
d18492 2
a18493 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d18495 3
a18497 1

d18504 3
a18506 7
char dnet_ntoa ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18510 9
a18518 1
dnet_ntoa ();
d18524 1
a18524 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18527 1
a18527 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18530 1
a18530 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18533 1
a18533 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18535 1
a18535 1
  ac_cv_lib_dnet_dnet_ntoa=yes
d18539 1
a18539 1
ac_cv_lib_dnet_dnet_ntoa=no
a18541 1
LIBS=$ac_check_lib_save_LIBS
d18543 51
a18593 4
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
d18596 10
a18605 4
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
d18608 29
a18636 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d18639 3
a18641 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18643 18
a18660 8
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dnet_ntoa ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a18661 7
int
main ()
{
dnet_ntoa ();
  ;
  return 0;
}
d18663 5
a18667 25
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
d18669 7
d18677 8
a18684 1
    fi
d18686 1
a18686 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"
d18688 4
a18691 15
    # msh@@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a18692 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
char (*f) ();
d18694 3
a18696 16
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
f = gethostbyname;
a18697 4

  ;
  return 0;
}
d18699 5
a18703 17
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gethostbyname=no
d18705 26
a18730 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a18731 11
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6

    if test $ac_cv_func_gethostbyname = no; then
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
d18733 1
a18733 1
#line $LINENO "configure"
d18736 8
a18743 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18745 2
a18746 8
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18748 1
d18752 11
a18762 1
gethostbyname ();
d18768 1
a18768 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18771 1
a18771 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18774 1
a18774 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18777 1
a18777 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18779 1
a18779 1
  ac_cv_lib_nsl_gethostbyname=yes
d18783 1
a18783 1
ac_cv_lib_nsl_gethostbyname=no
a18785 1
LIBS=$ac_check_lib_save_LIBS
d18787 13
a18799 4
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
d18802 4
a18805 4
      if test $ac_cv_lib_nsl_gethostbyname = no; then
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
d18808 3
a18810 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d18813 2
a18814 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18816 2
a18817 8
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18819 2
a18820 59
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gethostbyname=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test $ac_cv_lib_bsd_gethostbyname = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the nameserver (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    echo "$as_me:$LINENO: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d18822 2
a18823 10
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char connect ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d18828 3
a18830 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_connect) || defined (__stub___connect)
choke me
#else
f = connect;
#endif
d18837 1
a18837 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18840 1
a18840 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18843 1
a18843 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18846 1
a18846 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18848 1
a18848 1
  ac_cv_func_connect=yes
d18852 1
a18852 1
ac_cv_func_connect=no
d18856 10
a18865 2
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6
d18867 3
a18869 4
    if test $ac_cv_func_connect = no; then
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then
d18872 14
a18885 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a18887 13
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char connect ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18891 1
a18891 1
connect ();
d18897 1
a18897 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18900 1
a18900 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18903 1
a18903 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18906 1
a18906 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18908 1
a18908 1
  ac_cv_lib_socket_connect=yes
a18911 1
ac_cv_lib_socket_connect=no
d18914 3
a18916 1
LIBS=$ac_check_lib_save_LIBS
d18918 1
a18918 4
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test $ac_cv_lib_socket_connect = yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
d18921 3
a18923 1
    fi
d18925 6
a18930 4
    # Guillermo Gomez says -lposix is necessary on A/UX.
    echo "$as_me:$LINENO: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then
d18934 1
a18934 1
#line $LINENO "configure"
d18937 1
a18937 1
    which can conflict with char remove (); below.  */
d18945 1
a18945 1
char remove ();
a18947 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d18954 1
a18954 1
#if defined (__stub_remove) || defined (__stub___remove)
d18957 1
a18957 1
f = remove;
d18965 1
a18965 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d18968 1
a18968 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18971 1
a18971 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d18974 1
a18974 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d18976 1
a18976 1
  ac_cv_func_remove=yes
d18980 1
a18980 1
ac_cv_func_remove=no
d18984 48
a19031 2
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6
d19033 3
a19035 4
    if test $ac_cv_func_remove = no; then
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then
d19038 14
a19051 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a19053 13
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char remove ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19057 1
a19057 1
remove ();
d19063 1
a19063 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19066 1
a19066 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19069 1
a19069 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19072 1
a19072 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19074 1
a19074 1
  ac_cv_lib_posix_remove=yes
a19077 1
ac_cv_lib_posix_remove=no
d19080 3
a19082 1
LIBS=$ac_check_lib_save_LIBS
d19084 1
a19084 4
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test $ac_cv_lib_posix_remove = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
d19087 3
a19089 1
    fi
d19091 6
a19096 4
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo "$as_me:$LINENO: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then
d19100 1
a19100 1
#line $LINENO "configure"
d19103 1
a19103 1
    which can conflict with char shmat (); below.  */
d19111 1
a19111 1
char shmat ();
a19113 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19120 1
a19120 1
#if defined (__stub_shmat) || defined (__stub___shmat)
d19123 1
a19123 1
f = shmat;
d19131 1
a19131 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19134 1
a19134 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19137 1
a19137 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19140 1
a19140 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19142 1
a19142 1
  ac_cv_func_shmat=yes
d19146 1
a19146 1
ac_cv_func_shmat=no
d19149 49
a19197 3
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6
d19199 3
a19201 4
    if test $ac_cv_func_shmat = no; then
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
d19204 14
a19217 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a19219 13
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shmat ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19223 1
a19223 1
shmat ();
d19229 1
a19229 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19232 1
a19232 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19235 1
a19235 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19238 1
a19238 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19240 1
a19240 1
  ac_cv_lib_ipc_shmat=yes
a19243 1
ac_cv_lib_ipc_shmat=no
d19246 3
a19248 1
LIBS=$ac_check_lib_save_LIBS
d19250 1
a19250 4
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test $ac_cv_lib_ipc_shmat = yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d19253 3
a19255 2
    fi
  fi
d19257 6
a19262 12
  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
d19265 2
a19266 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d19268 3
a19270 1

d19277 3
a19279 7
char IceConnectionNumber ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19283 9
a19291 1
IceConnectionNumber ();
d19297 1
a19297 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19300 1
a19300 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19303 1
a19303 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19306 1
a19306 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19308 1
a19308 1
  ac_cv_lib_ICE_IceConnectionNumber=yes
d19312 1
a19312 1
ac_cv_lib_ICE_IceConnectionNumber=no
a19314 1
LIBS=$ac_check_lib_save_LIBS
d19316 6
a19321 7
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS
d19324 1
a19325 70

# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
	echo "$as_me:$LINENO: checking for special X linker flags" >&5
echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_save_libs="$LIBS"
	ac_save_cflags="$CFLAGS"
	CFLAGS="$CFLAGS $X_CFLAGS"
	krb_cv_sys_x_libs_rpath=""
	krb_cv_sys_x_libs=""
	for rflag in "" "-R" "-R " "-rpath "; do
		if test "$rflag" = ""; then
			foo="$X_LIBS"
		else
			foo=""
			for flag in $X_LIBS; do
			case $flag in
			-L*)
				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
				;;
			*)
				foo="$foo $flag"
				;;
			esac
			done
		fi
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
		if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

		#include <X11/Xlib.h>
		foo()
		{
		XOpenDisplay(NULL);
		}
		main()
		{
		return 0;
		}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
:
d19327 4
a19330 5
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"
d19332 7
a19338 5
fi
echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
	X_LIBS="$krb_cv_sys_x_libs"
fi
d19340 15
d19356 3
d19360 4
d19365 3
a19367 24
if test "$no_x" != yes; then
  HAVE_X_TRUE=
  HAVE_X_FALSE='#'
else
  HAVE_X_TRUE='#'
  HAVE_X_FALSE=
fi



save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"





echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
d19371 1
a19371 1
if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
d19373 1
a19373 1
	for ac_lib in "" X11 Xau; do
d19383 1
a19383 1
#line $LINENO "configure"
a19385 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19389 1
a19389 1
XauWriteAuth()
d19395 1
a19395 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19398 1
a19398 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19401 1
a19401 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19404 1
a19404 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19406 1
a19406 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
d19413 1
a19413 1
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
d19419 1
a19419 2

eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
d19423 1
a19423 1
for ac_func in XauWriteAuth
d19426 1
a19426 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d19432 1
a19432 1
#line $LINENO "configure"
a19445 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19463 1
a19463 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19466 1
a19466 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19469 1
a19469 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19472 1
a19472 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19482 1
a19482 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d19485 1
a19485 1
  cat >>confdefs.h <<_ACEOF
d19487 1
a19487 1
_ACEOF
d19493 2
a19494 2
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d19496 1
a19496 1
eval "LIB_XauWriteAuth=$ac_res"
d19500 3
a19502 3
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
	cat >>confdefs.h <<_ACEOF
d19504 1
a19504 1
_ACEOF
d19506 1
a19506 1
	echo "$as_me:$LINENO: result: yes" >&5
d19510 3
a19512 3
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
	echo "$as_me:$LINENO: result: no" >&5
d19516 1
a19516 1
	eval "ac_cv_func_XauWriteAuth=yes"
d19518 1
a19518 1
	cat >>confdefs.h <<_ACEOF
d19520 1
a19520 1
_ACEOF
d19522 1
a19522 1
	cat >>confdefs.h <<_ACEOF
d19524 1
a19524 1
_ACEOF
d19526 1
a19526 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d19531 3
a19533 9

ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"



echo "$as_me:$LINENO: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
d19537 1
a19537 1
if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
d19539 1
a19539 1
	for ac_lib in "" X11 Xau; do
d19549 1
a19549 1
#line $LINENO "configure"
a19551 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19555 1
a19555 1
XauReadAuth()
d19561 1
a19561 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19564 1
a19564 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19567 1
a19567 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19570 1
a19570 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19572 1
a19572 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
d19579 1
a19579 1
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
d19585 1
a19585 2

eval "ac_res=\$ac_cv_funclib_XauReadAuth"
d19589 1
a19589 1
for ac_func in XauReadAuth
d19592 1
a19592 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d19598 1
a19598 1
#line $LINENO "configure"
a19611 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19629 1
a19629 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19632 1
a19632 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19635 1
a19635 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19638 1
a19638 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19648 1
a19648 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d19651 1
a19651 1
  cat >>confdefs.h <<_ACEOF
d19653 1
a19653 1
_ACEOF
d19659 2
a19660 2
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d19662 1
a19662 1
eval "LIB_XauReadAuth=$ac_res"
d19666 3
a19668 3
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >>confdefs.h <<_ACEOF
d19670 1
a19670 1
_ACEOF
d19672 1
a19672 1
	echo "$as_me:$LINENO: result: yes" >&5
d19676 3
a19678 3
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
	echo "$as_me:$LINENO: result: no" >&5
d19682 1
a19682 1
	eval "ac_cv_func_XauReadAuth=yes"
d19684 1
a19684 1
	cat >>confdefs.h <<_ACEOF
d19686 1
a19686 1
_ACEOF
d19688 1
a19688 1
	cat >>confdefs.h <<_ACEOF
d19690 1
a19690 1
_ACEOF
d19692 1
a19692 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d19697 3
d19701 3
a19703 7
LIBS="$LIB_XauReadAauth $LIBS"



echo "$as_me:$LINENO: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
if test "${ac_cv_funclib_XauFileName+set}" = set; then
d19707 1
a19707 1
if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
d19709 1
a19709 1
	for ac_lib in "" X11 Xau; do
d19719 1
a19719 1
#line $LINENO "configure"
d19722 12
a19733 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d19735 1
d19739 1
a19739 1
XauFileName()
d19745 1
a19745 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19748 1
a19748 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19751 1
a19751 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19754 1
a19754 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19756 1
a19756 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
d19763 1
a19763 1
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
d19769 1
a19769 2

eval "ac_res=\$ac_cv_funclib_XauFileName"
d19773 1
a19773 1
for ac_func in XauFileName
d19776 1
a19776 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d19782 1
a19782 1
#line $LINENO "configure"
a19795 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d19813 1
a19813 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d19816 1
a19816 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19819 1
a19819 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19822 1
a19822 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19832 1
a19832 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d19835 1
a19835 1
  cat >>confdefs.h <<_ACEOF
d19837 1
a19837 1
_ACEOF
d19843 2
a19844 2
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d19846 1
a19846 1
eval "LIB_XauFileName=$ac_res"
d19850 3
a19852 3
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
	cat >>confdefs.h <<_ACEOF
d19854 1
a19854 1
_ACEOF
d19856 1
a19856 1
	echo "$as_me:$LINENO: result: yes" >&5
d19860 3
a19862 3
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
	echo "$as_me:$LINENO: result: no" >&5
d19866 1
a19866 1
	eval "ac_cv_func_XauFileName=yes"
d19868 1
a19868 1
	cat >>confdefs.h <<_ACEOF
d19870 1
a19870 1
_ACEOF
d19872 1
a19872 1
	cat >>confdefs.h <<_ACEOF
d19874 1
a19874 1
_ACEOF
d19876 1
a19876 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d19881 2
a19882 31

LIBS="$ac_xxx"

case "$ac_cv_funclib_XauWriteAuth" in
yes)	;;
no)	;;
*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
		fi
	else
		if test "$ac_cv_funclib_XauFileName" = yes; then
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
		else
			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
		fi
	fi
	;;
esac

if test "$AUTOMAKE" != ""; then


if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
else
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
d19885 4
d19891 13
a19903 22

	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS



echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d19906 9
a19914 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d19916 4
d19923 1
a19923 47
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

d19928 3
a19930 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d19932 1
a19932 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19934 2
a19935 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d19938 1
a19938 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d19940 1
a19940 1
  ac_cv_c_const=yes
a19943 1
ac_cv_c_const=no
d19945 6
a19950 1
rm -f conftest.$ac_objext conftest.$ac_ext
a19951 3
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
d19953 1
a19953 3
cat >>confdefs.h <<\_ACEOF
#define const
_ACEOF
d19955 1
a19955 1
fi
d19957 6
a19962 3
echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
d19966 1
a19966 1
#line $LINENO "configure"
d19968 6
a19973 6
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d19975 5
d19983 9
a19991 4
if ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  return 0;
d19996 3
a19998 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20000 1
a20000 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20002 2
a20003 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20006 1
a20006 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20008 1
a20008 1
  ac_cv_type_off_t=yes
d20012 11
a20022 1
ac_cv_type_off_t=no
d20024 2
a20025 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20027 32
a20058 5
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else
d20060 4
a20063 3
cat >>confdefs.h <<_ACEOF
#define off_t long
_ACEOF
d20065 2
d20069 3
a20071 3
echo "$as_me:$LINENO: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
d20074 4
d20079 1
a20079 1
#line $LINENO "configure"
a20080 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d20082 8
d20091 12
a20102 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_mode_t=yes
d20104 7
a20110 1
  ac_cv_type_mode_t=no
d20112 2
a20113 1
rm -f conftest*
d20115 1
a20115 4
fi
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = no; then
d20117 3
a20119 3
cat >>confdefs.h <<\_ACEOF
#define mode_t unsigned short
_ACEOF
d20122 1
d20124 4
a20127 3
echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
d20131 1
a20131 1
#line $LINENO "configure"
d20133 11
a20143 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
d20145 13
a20157 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  ac_cv_type_sig_atomic_t=yes
d20159 5
a20163 1
  ac_cv_type_sig_atomic_t=no
d20165 2
a20166 1
rm -f conftest*
d20168 1
a20168 4
fi
echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
if test $ac_cv_type_sig_atomic_t = no; then
d20170 3
a20172 3
cat >>confdefs.h <<\_ACEOF
#define sig_atomic_t int
_ACEOF
d20176 1
d20178 1
d20180 3
a20182 4
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d20185 4
d20190 1
a20190 1
#line $LINENO "configure"
a20191 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d20193 15
a20207 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d20209 1
a20209 3
long long foo;
  ;
  return 0;
d20211 4
a20214 4
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20216 3
a20218 4
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20221 1
a20221 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20223 1
a20223 1
  eval "ac_cv_type_$cv=yes"
d20225 2
a20226 1
  echo "$as_me: failed program was:" >&5
d20228 4
a20231 1
eval "ac_cv_type_$cv=no"
d20233 9
a20241 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20243 6
a20248 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d20252 1
a20252 1
#line $LINENO "configure"
d20254 1
a20254 7
$ac_includes_default
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d20258 4
a20261 4
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
d20267 1
a20267 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d20270 1
a20270 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20273 1
a20273 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20276 1
a20276 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20278 1
a20278 1
  ac_cv_type_long_long=yes
d20282 1
a20282 1
ac_cv_type_long_long=no
d20286 2
a20287 3
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
d20289 1
a20289 3
cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF
d20291 3
d20299 1
a20299 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d20301 32
a20332 1
fi
d20334 5
a20338 3
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
d20342 1
a20342 1
#line $LINENO "configure"
d20344 11
a20354 3
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
a20355 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d20359 9
a20367 2
if ((struct tm *) 0)
return 0;
d20372 3
a20374 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20376 1
a20376 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20378 2
a20379 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20382 1
a20382 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20384 1
a20384 1
  ac_cv_header_time=yes
d20388 1
a20388 1
ac_cv_header_time=no
d20390 1
a20390 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20392 6
a20397 7
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF
d20400 1
d20402 6
a20407 3
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+set}" = set; then
d20411 1
a20411 1
#line $LINENO "configure"
d20413 1
a20413 16
#include <sys/types.h>
#include <time.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct tm *tp; tp->tm_sec;
  ;
  return 0;
}
d20415 2
a20416 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20418 15
a20432 9
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_struct_tm=time.h
d20435 2
a20436 2
cat conftest.$ac_ext >&5
ac_cv_struct_tm=sys/time.h
d20438 1
a20438 1
rm -f conftest.$ac_objext conftest.$ac_ext
d20440 6
a20445 7
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then

cat >>confdefs.h <<\_ACEOF
#define TM_IN_SYS_TIME 1
_ACEOF
d20448 1
d20450 6
a20455 4

echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
d20459 1
a20459 1
#line $LINENO "configure"
d20461 23
a20483 4
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
d20485 3
d20489 9
a20497 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d20499 3
a20501 15
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
d20504 2
a20505 2
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
d20507 1
a20507 15
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
d20509 6
a20514 1
rm -f conftest*
d20517 1
d20519 4
a20522 11
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
a20523 3
  ac_cv_header_stdc=no
fi
rm -f conftest*
d20525 13
a20537 9
fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
a20538 10
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
a20539 1
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d20543 3
a20545 6
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
d20548 2
a20549 2
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d20552 4
a20555 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20558 1
a20558 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20560 1
a20560 1
  :
d20562 1
a20562 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a20563 5
( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d20565 4
a20569 7
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
d20573 1
d20575 1
d20577 1
a20577 97















































for ac_header in \
	arpa/ftp.h				\
	arpa/telnet.h				\
	bind/bitypes.h				\
	bsdsetjmp.h				\
	curses.h				\
	dlfcn.h					\
	fnmatch.h				\
	inttypes.h				\
	io.h					\
	libutil.h				\
	limits.h				\
	maillock.h				\
	netinet/in6_machtypes.h			\
	netinfo/ni.h				\
	pthread.h				\
	pty.h					\
	sac.h					\
	security/pam_modules.h			\
	sgtty.h					\
	siad.h					\
	signal.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/pty.h				\
	sys/ptyio.h				\
	sys/ptyvar.h				\
	sys/select.h				\
	sys/str_tty.h				\
	sys/stream.h				\
	sys/stropts.h				\
	sys/strtty.h				\
	sys/syscall.h				\
	sys/termio.h				\
	sys/timeb.h				\
	sys/times.h				\
	sys/un.h				\
	term.h					\
	termcap.h				\
	termio.h				\
	time.h					\
	tmpdir.h				\
	udb.h					\
	utmp.h					\
	utmpx.h					\

d20579 4
a20582 5
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a20583 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d20585 2
a20586 5
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d20588 31
a20618 6
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d20620 1
a20620 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20622 2
a20623 2
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20626 1
a20626 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20628 1
a20628 1
  ac_header_compiler=yes
d20632 1
a20632 1
ac_header_compiler=no
d20634 1
a20634 27
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d20636 6
a20641 10
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
a20642 21
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
d20644 1
a20644 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d20647 4
a20650 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d20652 7
a20658 1
fi
d20660 15
a20674 1
done
d20676 3
d20680 4
a20683 3
# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
  enableval="$enable_netinfo"
d20685 14
a20698 1
fi;
d20700 6
a20705 1
if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
a20706 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_NETINFO 1
d20708 21
a20728 1

d20730 3
d20734 3
d20738 2
d20741 3
a20743 5


echo "$as_me:$LINENO: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
if test "${ac_cv_funclib_logwtmp+set}" = set; then
d20747 1
a20747 1
if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
d20749 1
a20749 1
	for ac_lib in "" util; do
d20759 1
a20759 1
#line $LINENO "configure"
d20761 5
a20765 6

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d20770 1
a20770 1
logwtmp()
d20776 1
a20776 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d20779 1
a20779 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20782 1
a20782 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20785 1
a20785 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20787 1
a20787 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d20794 1
a20794 1
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
d20800 1
a20800 2

eval "ac_res=\$ac_cv_funclib_logwtmp"
d20804 1
a20804 1
for ac_func in logwtmp
d20807 1
a20807 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d20813 1
a20813 1
#line $LINENO "configure"
a20826 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d20844 1
a20844 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d20847 1
a20847 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20850 1
a20850 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d20853 1
a20853 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d20863 1
a20863 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d20866 1
a20866 1
  cat >>confdefs.h <<_ACEOF
d20868 1
a20868 1
_ACEOF
d20874 2
a20875 2
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d20877 1
a20877 1
eval "LIB_logwtmp=$ac_res"
d20881 3
a20883 3
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >>confdefs.h <<_ACEOF
d20885 1
a20885 1
_ACEOF
d20887 1
a20887 1
	echo "$as_me:$LINENO: result: yes" >&5
d20891 3
a20893 3
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
	echo "$as_me:$LINENO: result: no" >&5
d20897 1
a20897 1
	eval "ac_cv_func_logwtmp=yes"
d20899 1
a20899 1
	cat >>confdefs.h <<_ACEOF
d20901 1
a20901 1
_ACEOF
d20903 1
a20903 1
	cat >>confdefs.h <<_ACEOF
d20905 1
a20905 1
_ACEOF
d20907 1
a20907 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
d20912 3
a20914 7




echo "$as_me:$LINENO: checking for logout" >&5
echo $ECHO_N "checking for logout... $ECHO_C" >&6
if test "${ac_cv_funclib_logout+set}" = set; then
d20918 1
a20918 1
if eval "test \"\$ac_cv_func_logout\" != yes" ; then
d20920 1
a20920 1
	for ac_lib in "" util; do
d20930 1
a20930 1
#line $LINENO "configure"
d20932 40
d20973 19
a20991 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d20993 5
d21001 9
a21009 1
logout()
d21015 1
a21015 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d21018 1
a21018 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21021 1
a21021 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21024 1
a21024 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21026 1
a21026 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
d21030 1
a21032 3
	done
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
	LIBS="$ac_save_LIBS"
d21034 9
d21045 12
d21058 15
d21074 3
a21076 1
eval "ac_res=\$ac_cv_funclib_logout"
d21078 4
a21081 1
if false; then
d21083 1
a21083 1
for ac_func in logout
d21086 1
a21086 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d21092 1
a21092 1
#line $LINENO "configure"
a21105 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21123 1
a21123 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d21126 1
a21126 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21129 1
a21129 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21132 1
a21132 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21142 1
a21142 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d21145 1
a21145 1
  cat >>confdefs.h <<_ACEOF
d21147 1
a21147 1
_ACEOF
d21152 5
a21156 5
fi
# logout
eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logout=$ac_res"
d21158 11
a21168 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_logout=yes"
	eval "LIB_logout="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d21170 23
d21194 3
a21196 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_logout=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d21198 1
a21198 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
d21200 5
a21204 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d21206 35
d21242 3
d21246 1
d21248 3
a21250 4

echo "$as_me:$LINENO: checking for openpty" >&5
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
if test "${ac_cv_funclib_openpty+set}" = set; then
d21254 2
a21255 13
if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21257 1
a21257 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21261 1
a21261 1
openpty()
d21266 3
a21268 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21270 1
a21270 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21272 2
a21273 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21276 1
a21276 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21278 1
a21278 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
d21282 1
d21284 1
a21284 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
	LIBS="$ac_save_LIBS"
d21286 7
d21296 3
a21298 11

eval "ac_res=\$ac_cv_funclib_openpty"

if false; then

for ac_func in openpty
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21301 3
a21303 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21305 1
a21305 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21309 40
a21348 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif
d21350 8
d21362 3
a21364 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21366 1
a21366 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21368 2
a21369 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21372 1
a21372 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21374 1
a21374 1
  eval "$as_ac_var=yes"
d21378 1
a21378 1
eval "$as_ac_var=no"
d21380 1
a21380 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21382 3
a21384 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d21386 3
a21388 2
fi
done
a21390 4
# openpty
eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_openpty=$ac_res"
d21392 3
a21394 40
case "$ac_res" in
	yes)
	eval "ac_cv_func_openpty=yes"
	eval "LIB_openpty="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_openpty=no"
	eval "LIB_openpty="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_openpty=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac





echo "$as_me:$LINENO: checking for tgetent" >&5
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
if test "${ac_cv_funclib_tgetent+set}" = set; then
d21398 2
a21399 13
if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" termcap ncurses curses; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21401 1
a21401 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21405 1
a21405 1
tgetent()
d21410 3
a21412 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21414 1
a21414 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21416 2
a21417 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21420 1
a21420 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21422 1
a21422 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
d21426 1
d21428 1
a21428 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
d21430 7
d21440 3
a21442 11

eval "ac_res=\$ac_cv_funclib_tgetent"

if false; then

for ac_func in tgetent
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21445 3
a21447 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21449 1
a21449 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21453 1
a21453 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21458 3
a21460 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21462 1
a21462 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21464 2
a21465 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21468 1
a21468 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21470 1
a21470 1
  eval "$as_ac_var=yes"
d21474 1
a21474 1
eval "$as_ac_var=no"
d21476 1
a21476 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21478 3
a21480 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d21482 3
a21484 2
fi
done
a21486 98
# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_tgetent=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_tgetent=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
































for ac_func in 				\
	_getpty					\
	_scrsize				\
	fcntl					\
	grantpt					\
	mktime					\
	ptsname					\
	rand					\
	revoke					\
	select					\
	setitimer				\
	setpcred				\
	setpgid					\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	strstr					\
	timegm					\
	ttyname					\
	ttyslot					\
	umask					\
	unlockpt				\
	vhangup					\
	yp_get_default_domain			\
d21488 3
a21490 5
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21493 3
a21495 2
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21497 1
a21497 18
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21501 1
a21501 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21506 3
a21508 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21510 1
a21510 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21512 2
a21513 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21516 1
a21516 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21518 1
a21518 1
  eval "$as_ac_var=yes"
d21522 1
a21522 1
eval "$as_ac_var=no"
d21524 1
a21524 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21526 7
a21532 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a21534 1
done
d21536 5
d21542 35
d21578 3
d21582 1
d21584 3
a21586 8

for ac_header in capability.h sys/capability.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a21587 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d21589 1
a21589 3
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
d21591 1
a21591 1
#line $LINENO "configure"
d21593 8
a21600 2
$ac_includes_default
#include <$ac_header>
d21603 1
a21603 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d21606 1
a21606 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21609 1
a21609 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21612 1
a21612 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21614 1
a21614 1
  ac_header_compiler=yes
d21618 1
a21618 1
ac_header_compiler=no
d21621 16
a21636 2
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
a21637 3
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
d21639 1
a21639 1
#line $LINENO "configure"
d21641 9
a21649 1
#include <$ac_header>
d21651 9
a21659 2
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d21661 3
a21663 10
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d21665 3
a21667 1
  ac_cpp_err=yes
d21669 2
a21670 6
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
a21671 3
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d21673 12
a21684 18
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a21686 4
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d21688 30
d21719 1
a21719 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d21723 3
a21725 1
done
d21727 3
d21731 1
d21733 1
d21735 4
a21738 6
for ac_func in sgi_getcapabilitybyname cap_set_proc
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21742 1
a21742 1
#line $LINENO "configure"
d21744 4
a21747 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
d21749 5
a21753 1

d21758 3
a21760 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21762 1
a21762 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21764 2
a21765 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21768 1
a21768 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21770 1
a21770 1
  eval "$as_ac_var=yes"
d21774 1
a21774 1
eval "$as_ac_var=no"
d21776 1
a21776 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21778 9
a21786 19
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done







echo "$as_me:$LINENO: checking for getpwnam_r" >&5
echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
d21789 2
a21790 14

if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" c_r; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d21792 1
a21792 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21796 4
a21799 1
getpwnam_r()
d21804 3
a21806 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21808 1
a21808 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21810 2
a21811 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21814 1
a21814 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21816 1
a21816 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
d21820 1
d21822 1
a21822 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
d21824 7
d21834 1
d21836 3
a21838 1
eval "ac_res=\$ac_cv_funclib_getpwnam_r"
d21840 1
a21840 1
if false; then
d21842 4
a21845 6
for ac_func in getpwnam_r
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d21849 1
a21849 1
#line $LINENO "configure"
d21851 4
a21854 17
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d21856 1
d21860 1
a21860 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21865 3
a21867 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21869 1
a21869 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21871 2
a21872 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21875 1
a21875 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21877 1
a21877 1
  eval "$as_ac_var=yes"
d21881 1
a21881 1
eval "$as_ac_var=no"
d21883 1
a21883 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21885 9
a21893 54
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test "$ac_cv_func_getpwnam_r" = yes; then
	echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
a21895 5
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
d21897 1
a21897 1
#line $LINENO "configure"
d21899 3
a21901 3

#include <pwd.h>
int main()
d21903 6
a21908 2
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
a21909 1

d21911 3
a21913 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21915 4
a21918 3
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21921 1
a21921 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21923 1
a21923 1
  ac_cv_func_getpwnam_r_posix=yes
d21925 1
a21925 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d21927 1
a21927 2
( exit $ac_status )
ac_cv_func_getpwnam_r_posix=no
d21929 1
a21929 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d21931 3
a21933 5
LIBS="$ac_libs"
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
if test "$ac_cv_func_getpwnam_r_posix" = yes; then
d21935 3
a21937 3
cat >>confdefs.h <<\_ACEOF
#define POSIX_GETPWNAM_R 1
_ACEOF
d21940 1
d21943 3
d21947 1
d21949 13
a21961 29

for ac_func in getudbnam setlim
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d21963 1
d21967 1
a21967 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d21972 3
a21974 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21976 1
a21976 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21978 2
a21979 2
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d21982 1
a21982 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d21984 1
a21984 1
  eval "$as_ac_var=yes"
d21988 1
a21988 1
eval "$as_ac_var=no"
d21990 1
a21990 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21992 9
a22000 18
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done






echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
d22003 2
a22004 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22006 1
a22006 7
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22010 4
a22013 1
struct utmp x; x.ut_addr;
d22019 1
a22019 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22022 1
a22022 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22025 1
a22025 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22028 1
a22028 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22030 1
a22030 1
  ac_cv_type_struct_utmp_ut_addr=yes
d22034 1
a22034 1
ac_cv_type_struct_utmp_ut_addr=no
d22038 3
a22040 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
d22042 3
d22046 1
a22046 4
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_ADDR 1
_ACEOF

d22050 3
d22054 1
d22056 4
a22059 4

echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
d22062 2
a22063 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22065 4
a22068 6
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d22070 1
d22074 1
a22074 1
struct utmp x; x.ut_host;
d22080 1
a22080 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22083 1
a22083 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22086 1
a22086 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22089 1
a22089 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22091 1
a22091 1
  ac_cv_type_struct_utmp_ut_host=yes
d22095 1
a22095 1
ac_cv_type_struct_utmp_ut_host=no
d22099 9
a22107 18
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
if test "$ac_cv_type_struct_utmp_ut_host" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_HOST 1
_ACEOF


fi




echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
d22110 2
a22111 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22113 1
a22113 7
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22117 4
a22120 1
struct utmp x; x.ut_id;
d22126 1
a22126 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22129 1
a22129 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22132 1
a22132 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22135 1
a22135 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22137 1
a22137 1
  ac_cv_type_struct_utmp_ut_id=yes
d22141 1
a22141 1
ac_cv_type_struct_utmp_ut_id=no
d22145 3
a22147 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
d22149 3
d22153 1
a22153 4
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_ID 1
_ACEOF

d22157 3
d22161 1
d22163 4
a22166 4

echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
d22169 2
a22170 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22172 4
a22175 6
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d22177 1
d22181 1
a22181 1
struct utmp x; x.ut_pid;
d22187 1
a22187 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22190 1
a22190 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22193 1
a22193 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22196 1
a22196 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22198 1
a22198 1
  ac_cv_type_struct_utmp_ut_pid=yes
d22202 1
a22202 1
ac_cv_type_struct_utmp_ut_pid=no
d22206 9
a22214 18
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_PID 1
_ACEOF


fi




echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
d22217 2
a22218 3

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d22220 1
a22220 7
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22224 4
a22227 1
struct utmp x; x.ut_type;
d22233 1
a22233 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22236 1
a22236 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22239 1
a22239 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22242 1
a22242 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22244 1
a22244 1
  ac_cv_type_struct_utmp_ut_type=yes
d22248 1
a22248 1
ac_cv_type_struct_utmp_ut_type=no
d22252 3
a22254 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
d22256 3
d22260 1
a22260 4
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_TYPE 1
_ACEOF

d22264 3
d22268 1
d22270 3
a22272 4

echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
d22276 2
d22279 1
a22279 1
#line $LINENO "configure"
d22281 2
a22282 14
#include <utmp.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct utmp x; x.ut_user;
  ;
  return 0;
}
d22284 3
a22286 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_struct_utmp_ut_user=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_user=no
d22288 3
a22290 1
rm -f conftest.$ac_objext conftest.$ac_ext
a22291 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
d22293 13
a22306 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMP_UT_USER 1
d22308 2
d22311 3
d22316 6
d22323 3
d22327 3
d22331 2
d22334 3
a22336 3
echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
d22341 1
a22341 1
#line $LINENO "configure"
d22343 3
a22345 6
#include <utmpx.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d22350 1
a22350 1
struct utmpx x; x.ut_exit;
d22356 1
a22356 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22359 1
a22359 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22362 1
a22362 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22365 1
a22365 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22367 1
a22367 1
  ac_cv_type_struct_utmpx_ut_exit=yes
d22371 1
a22371 1
ac_cv_type_struct_utmpx_ut_exit=no
d22374 1
a22375 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
d22377 2
d22380 1
a22380 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMPX_UT_EXIT 1
_ACEOF
d22382 3
d22388 3
a22390 6



echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
d22395 1
a22395 1
#line $LINENO "configure"
d22397 2
a22398 7
#include <utmpx.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22402 1
a22402 1
struct utmpx x; x.ut_syslen;
d22408 1
a22408 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22411 1
a22411 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22414 1
a22414 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22417 1
a22417 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22419 1
a22419 1
  ac_cv_type_struct_utmpx_ut_syslen=yes
d22423 1
a22423 1
ac_cv_type_struct_utmpx_ut_syslen=no
d22427 3
a22429 8
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
_ACEOF
d22431 3
d22437 1
a22437 3


echo "$as_me:$LINENO: checking for int8_t" >&5
d22443 1
a22443 1
#line $LINENO "configure"
a22461 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22474 1
a22474 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22477 1
a22477 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22480 1
a22480 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22483 1
a22483 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22493 1
a22493 1
echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
d22497 1
a22497 1
cat >>confdefs.h <<_ACEOF
d22499 1
a22499 2
_ACEOF

d22502 1
a22502 1
echo "$as_me:$LINENO: checking for int16_t" >&5
d22508 1
a22508 1
#line $LINENO "configure"
a22526 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22539 1
a22539 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22542 1
a22542 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22545 1
a22545 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22548 1
a22548 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22558 1
a22558 1
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
d22562 1
a22562 1
cat >>confdefs.h <<_ACEOF
d22564 1
a22564 2
_ACEOF

d22567 1
a22567 1
echo "$as_me:$LINENO: checking for int32_t" >&5
d22573 1
a22573 1
#line $LINENO "configure"
a22591 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22604 1
a22604 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22607 1
a22607 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22610 1
a22610 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22613 1
a22613 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22623 1
a22623 1
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
d22627 1
a22627 1
cat >>confdefs.h <<_ACEOF
d22629 1
a22629 2
_ACEOF

d22632 1
a22632 1
echo "$as_me:$LINENO: checking for int64_t" >&5
d22638 1
a22638 1
#line $LINENO "configure"
a22656 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22669 1
a22669 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22672 1
a22672 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22675 1
a22675 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22678 1
a22678 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22688 1
a22688 1
echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
d22692 1
a22692 1
cat >>confdefs.h <<_ACEOF
d22694 1
a22694 2
_ACEOF

d22697 1
a22697 1
echo "$as_me:$LINENO: checking for u_int8_t" >&5
d22703 1
a22703 1
#line $LINENO "configure"
a22721 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22734 1
a22734 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22737 1
a22737 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22740 1
a22740 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22743 1
a22743 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22753 1
a22753 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
d22757 1
a22757 1
cat >>confdefs.h <<_ACEOF
d22759 1
a22759 2
_ACEOF

d22762 1
a22762 1
echo "$as_me:$LINENO: checking for u_int16_t" >&5
d22768 1
a22768 1
#line $LINENO "configure"
a22786 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22799 1
a22799 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22802 1
a22802 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22805 1
a22805 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22808 1
a22808 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22818 1
a22818 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
d22822 1
a22822 1
cat >>confdefs.h <<_ACEOF
d22824 1
a22824 2
_ACEOF

d22827 1
a22827 1
echo "$as_me:$LINENO: checking for u_int32_t" >&5
d22833 1
a22833 1
#line $LINENO "configure"
a22851 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22864 1
a22864 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22867 1
a22867 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22870 1
a22870 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22873 1
a22873 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22883 1
a22883 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
d22887 1
a22887 1
cat >>confdefs.h <<_ACEOF
d22889 1
a22889 2
_ACEOF

d22892 1
a22892 1
echo "$as_me:$LINENO: checking for u_int64_t" >&5
d22898 1
a22898 1
#line $LINENO "configure"
a22916 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22929 1
a22929 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22932 1
a22932 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22935 1
a22935 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d22938 1
a22938 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d22948 1
a22948 1
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
d22952 1
a22952 1
cat >>confdefs.h <<_ACEOF
d22954 1
a22954 2
_ACEOF

d22957 1
a22957 1
echo "$as_me:$LINENO: checking for uint8_t" >&5
d22963 1
a22963 1
#line $LINENO "configure"
a22981 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d22994 1
a22994 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d22997 1
a22997 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23000 1
a23000 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23003 1
a23003 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23013 1
a23013 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
d23017 1
a23017 1
cat >>confdefs.h <<_ACEOF
d23019 1
a23019 2
_ACEOF

d23022 1
a23022 1
echo "$as_me:$LINENO: checking for uint16_t" >&5
d23028 1
a23028 1
#line $LINENO "configure"
a23046 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23059 1
a23059 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23062 1
a23062 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23065 1
a23065 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23068 1
a23068 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23078 1
a23078 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
d23082 1
a23082 1
cat >>confdefs.h <<_ACEOF
d23084 1
a23084 2
_ACEOF

d23087 1
a23087 1
echo "$as_me:$LINENO: checking for uint32_t" >&5
d23093 1
a23093 1
#line $LINENO "configure"
a23111 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23124 1
a23124 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23127 1
a23127 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23130 1
a23130 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23133 1
a23133 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23143 1
a23143 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
d23147 1
a23147 1
cat >>confdefs.h <<_ACEOF
d23149 1
a23149 2
_ACEOF

d23152 1
a23152 1
echo "$as_me:$LINENO: checking for uint64_t" >&5
d23158 1
a23158 1
#line $LINENO "configure"
a23176 7

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23189 1
a23189 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23192 1
a23192 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23195 1
a23195 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23198 1
a23198 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23208 1
a23208 1
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
d23212 1
a23212 1
cat >>confdefs.h <<_ACEOF
d23214 1
a23214 2
_ACEOF

a23217 2


a23219 1

a23225 1

d23230 1
a23230 1
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
a23237 1

d23242 1
a23242 1
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
a23262 1

d23265 1
a23265 1
echo "$as_me:$LINENO: checking for crypto library" >&5
a23267 1
openssl=no
d23287 1
a23287 1
#line $LINENO "configure"
a23295 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
a23299 1
    void *schedule = 0;
d23304 3
a23306 190
    MD4_Init(&md4);
    MD5_Init(&md5);
    SHA1_Init(&sha1);

    des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
    RC4(0, 0, 0, 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

  crypto_lib=libcrypto openssl=yes
  echo "$as_me:$LINENO: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  CPPFLAGS="$save_CPPFLAGS"
  LIBS="$save_LIBS"
fi

if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
	save_CPPFLAGS="$CPPFLAGS"
	save_LIBS="$LIBS"

	cdirs= clibs=
	for i in $LIB_krb4; do
		case "$i" in
		-L*) cdirs="$cdirs $i";;
		-l*) clibs="$clibs $i";;
		esac
	done

	ires=
	for i in $INCLUDE_krb4; do
		CFLAGS="$i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

			#undef KRB5 /* makes md4.h et al unhappy */
			#define KRB4
			#include <openssl/md4.h>
			#include <openssl/md5.h>
			#include <openssl/sha.h>
			#include <openssl/des.h>
			#include <openssl/rc4.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

			MD4_CTX md4;
			MD5_CTX md5;
			SHA_CTX sha1;

			MD4_Init(&md4);
			MD5_Init(&md5);
			SHA1_Init(&sha1);

			des_cbc_encrypt(0, 0, 0, 0, 0, 0);
			RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  openssl=yes ires="$i"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

			#undef KRB5 /* makes md4.h et al unhappy */
			#define KRB4
			#include <md4.h>
			#include <md5.h>
			#include <sha.h>
			#include <des.h>
			#include <rc4.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

			MD4_CTX md4;
			MD5_CTX md5;
			SHA_CTX sha1;

			MD4_Init(&md4);
			MD5_Init(&md5);
			SHA1_Init(&sha1);

			des_cbc_encrypt(0, 0, 0, 0, 0, 0);
			RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires="$i"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	done
	lres=
	for i in $cdirs; do
		for j in $clibs; do
			LIBS="$i $j $save_LIBS"
			if test "$openssl" = yes; then
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

				#undef KRB5 /* makes md4.h et al unhappy */
				#define KRB4
				#include <openssl/md4.h>
				#include <openssl/md5.h>
				#include <openssl/sha.h>
				#include <openssl/des.h>
				#include <openssl/rc4.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

				MD4_CTX md4;
				MD5_CTX md5;
				SHA_CTX sha1;
d23308 2
a23309 3
				MD4_Init(&md4);
				MD5_Init(&md5);
				SHA1_Init(&sha1);
a23310 2
				des_cbc_encrypt(0, 0, 0, 0, 0, 0);
				RC4(0, 0, 0, 0);
d23316 1
a23316 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23319 1
a23319 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23322 1
a23322 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23325 1
a23325 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23327 9
a23335 1
  lres="$i $j"; break 2
d23341 22
a23362 3
			else
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
d23365 7
a23371 7
				#undef KRB5 /* makes md4.h et al unhappy */
				#define KRB4
				#include <md4.h>
				#include <md5.h>
				#include <sha.h>
				#include <des.h>
				#include <rc4.h>
a23372 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23377 7
a23383 3
				MD4_CTX md4;
				MD5_CTX md5;
				SHA_CTX sha1;
d23385 2
a23386 3
				MD4_Init(&md4);
				MD5_Init(&md5);
				SHA1_Init(&sha1);
a23387 2
				des_cbc_encrypt(0, 0, 0, 0, 0, 0);
				RC4(0, 0, 0, 0);
d23393 1
a23393 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23396 1
a23396 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23399 1
a23399 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23402 1
a23402 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23404 2
a23405 1
  lres="$i $j"; break 2
d23411 2
a23412 15
			fi
		done
	done
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
	if test "$ires" -a "$lres"; then
		INCLUDE_des="$ires"
		LIB_des="$lres"
		crypto_lib=krb4
		echo "$as_me:$LINENO: result: same as krb4" >&5
echo "${ECHO_T}same as krb4" >&6
		LIB_des_a='$(LIB_des)'
		LIB_des_so='$(LIB_des)'
		LIB_des_appl='$(LIB_des)'
	fi
d23423 1
a23423 1
  echo "$as_me:$LINENO: result: included libdes" >&5
d23428 1
a23428 30
if test "$openssl" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENSSL 1
_ACEOF

fi


if test "$openssl" = yes; then
  HAVE_OPENSSL_TRUE=
  HAVE_OPENSSL_FALSE='#'
else
  HAVE_OPENSSL_TRUE='#'
  HAVE_OPENSSL_FALSE=
fi













echo "$as_me:$LINENO: checking for el_init" >&5
d23446 1
a23446 1
#line $LINENO "configure"
a23448 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23458 1
a23458 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23461 1
a23461 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23464 1
a23464 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23467 1
a23467 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a23481 1

d23489 1
a23489 1
echo "$as_me:$LINENO: checking for $ac_func" >&5
d23495 1
a23495 1
#line $LINENO "configure"
a23508 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23526 1
a23526 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23529 1
a23529 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23532 1
a23532 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23535 1
a23535 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23545 1
a23545 1
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d23548 1
a23548 1
  cat >>confdefs.h <<_ACEOF
d23550 1
a23550 1
_ACEOF
d23565 1
a23565 1
	cat >>confdefs.h <<_ACEOF
d23567 1
a23567 1
_ACEOF
d23569 1
a23569 1
	echo "$as_me:$LINENO: result: yes" >&5
d23575 1
a23575 1
	echo "$as_me:$LINENO: result: no" >&5
d23581 1
a23581 1
	cat >>confdefs.h <<_ACEOF
d23583 1
a23583 1
_ACEOF
d23585 1
a23585 1
	cat >>confdefs.h <<_ACEOF
d23587 1
a23587 1
_ACEOF
d23589 1
a23589 1
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
a23593 1

d23595 1
a23595 1
	echo "$as_me:$LINENO: checking for four argument el_init" >&5
d23602 1
a23602 1
#line $LINENO "configure"
a23605 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23615 1
a23615 1
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d23618 1
a23618 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23621 1
a23621 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23624 1
a23624 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23634 1
a23634 1
echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
d23638 1
a23638 1
cat >>confdefs.h <<\_ACEOF
d23640 1
a23640 1
_ACEOF
a23644 1

d23652 1
a23652 1
	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
d23654 1
a23654 1
	LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
a23656 1

d23664 4
d23669 1
a23669 2

cat >>confdefs.h <<\_ACEOF
d23671 1
a23671 2
_ACEOF

d23673 1
a23673 4



cat >>confdefs.h <<\_ACEOF
d23675 1
a23675 1
_ACEOF
d23677 1
a23677 1
cat >>confdefs.h <<\_ACEOF
d23679 1
a23679 1
_ACEOF
d23681 1
a23681 1
cat >>confdefs.h <<\_ACEOF
d23683 1
a23683 1
_ACEOF
d23685 1
a23685 1
cat >>confdefs.h <<\_ACEOF
d23687 1
a23687 1
_ACEOF
d23689 1
a23689 1
cat >>confdefs.h <<\_ACEOF
d23691 1
a23691 1
_ACEOF
d23694 1
a23694 1
cat >>confdefs.h <<\_ACEOF
d23696 1
a23696 1
_ACEOF
d23705 1
a23705 5
case "$host" in
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
	;;
*)
	echo "$as_me:$LINENO: checking for getmsg" >&5
d23711 1
a23711 1
#line $LINENO "configure"
a23724 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23742 1
a23742 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23745 1
a23745 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23748 1
a23748 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23751 1
a23751 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23761 1
a23761 1
echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
d23764 5
a23768 4
	if test "$ac_cv_func_getmsg" = "yes"; then
		echo "$as_me:$LINENO: checking if getmsg works" >&5
echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
if test "${ac_cv_func_getmsg_works+set}" = set; then
d23772 1
a23772 1
  ac_cv_func_getmsg_works=no
d23775 1
a23775 1
#line $LINENO "configure"
d23778 2
a23779 2
			#include <stdio.h>
			#include <errno.h>
d23781 8
a23788 8
			int main()
			{
			  int ret;
			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
			  if(ret < 0 && errno == ENOSYS)
			    return 1;
			  return 0;
			}
d23792 1
a23792 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23795 1
a23795 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23797 1
a23797 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23800 1
a23800 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23802 1
a23802 1
  ac_cv_func_getmsg_works=yes
d23807 1
a23807 2
( exit $ac_status )
ac_cv_func_getmsg_works=no
d23812 3
a23814 3
echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
		if test "$ac_cv_func_getmsg_works" = "yes"; then
d23816 1
a23816 1
cat >>confdefs.h <<\_ACEOF
d23818 1
a23818 1
_ACEOF
d23820 1
d23822 9
a23830 6
cat >>confdefs.h <<\_ACEOF
#define STREAMSPTY 1
_ACEOF

		fi
	fi
d23833 4
d23838 3
d23842 1
a23842 4




d23846 1
a23846 1
echo "$as_me:$LINENO: checking for $ac_word" >&5
d23854 9
a23862 12
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_COMPILE_ET="compile_et"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d23869 1
a23869 1
  echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
d23872 1
a23872 1
  echo "$as_me:$LINENO: result: no" >&5
a23875 1

d23879 1
a23879 1
echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
d23896 1
a23896 1
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
d23901 1
a23901 1
#line $LINENO "configure"
d23911 1
a23911 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23914 1
a23914 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23916 1
a23916 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23919 1
a23919 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
a23925 1
( exit $ac_status )
d23931 1
a23931 1
echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
d23939 1
a23939 1
  echo "$as_me:$LINENO: checking for com_err" >&5
d23942 1
a23942 1
#line $LINENO "configure"
a23944 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d23957 1
a23957 1
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d23960 1
a23960 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23963 1
a23963 1
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d23966 1
a23966 1
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
d23975 1
a23975 1
  echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
d23987 1
a23987 1
    { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
d23995 1
a23995 1
    { echo "$as_me:$LINENO: Using our own com_err" >&5
d23999 1
a23999 8







echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
d24008 1
a24008 8
case "${host}" in
*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
*)		ac_cv_want_pam_krb4=yes ;;
esac

if test "$ac_cv_want_pam_krb4" = yes -a \
    "$ac_cv_header_security_pam_modules_h" = yes -a \
    "$enable_shared" = yes; then
d24016 1
a24016 1
echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
a24018 4



# This is done by AC_OUTPUT but we need the result here.
d24022 4
a24025 2

	x="${bindir}"
d24031 3
d24035 1
a24035 66
cat >>confdefs.h <<_ACEOF
#define BINDIR "$x"
_ACEOF

	x="${libdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBDIR "$x"
_ACEOF

	x="${libexecdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LIBEXECDIR "$x"
_ACEOF

	x="${localstatedir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define LOCALSTATEDIR "$x"
_ACEOF

	x="${sbindir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SBINDIR "$x"
_ACEOF

	x="${sysconfdir}"
	eval y="$x"
	while test "x$y" != "x$x"; do
		x="$y"
		eval y="$x"
	done

cat >>confdefs.h <<_ACEOF
#define SYSCONFDIR "$x"
_ACEOF



LTLIBOBJS=`echo "$LIBOBJS" |
	sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`



d24037 1
a24040 1

d24094 19
a24112 190
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
fi

DEFS=-DHAVE_CONFIG_H

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_err_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_vis_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_glob_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OTP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"CATMAN\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"IRIX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_X\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"el_compat\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
d24114 2
d24120 1
a24120 1
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
d24124 1
a24124 1
# Generated by $as_me.
d24131 2
a24135 5

## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

a24143 34
# NLS nuisances.
# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
    { $as_unset LANG || test "${LANG+set}" != set; } ||
      { LANG=C; export LANG; }
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
      { LC_ALL=C; export LC_ALL; }
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
      { LC_TIME=C; export LC_TIME; }
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
      { LC_CTYPE=C; export LC_CTYPE; }
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
      { LANGUAGE=C; export LANGUAGE; }
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
      { LC_COLLATE=C; export LC_COLLATE; }
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
      { LC_NUMERIC=C; export LC_NUMERIC; }
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
      { LC_MESSAGES=C; export LC_MESSAGES; }


d24145 1
a24145 126
as_me=`(basename "$0") 2>/dev/null ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`

# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conftest.sh
  echo  "exit 0"   >>conftest.sh
  chmod +x conftest.sh
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conftest.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
d24173 6
a24178 5
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
d24180 9
d24197 1
a24197 1
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
a24200 24
# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by Heimdal $as_me 0.4f, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
d24220 1
a24220 1
cat >>$CONFIG_STATUS <<\_ACEOF
d24247 1
a24247 1
_ACEOF
d24249 1
a24249 1
cat >>$CONFIG_STATUS <<_ACEOF
d24251 2
a24252 2
Heimdal config.status 0.4f
configured by $0, generated by GNU Autoconf 2.53,
d24261 1
a24261 1
_ACEOF
d24263 1
a24263 1
cat >>$CONFIG_STATUS <<\_ACEOF
d24285 2
a24286 2
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
d24290 2
a24291 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d24296 1
a24296 1
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
d24315 1
a24315 1
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
d24327 15
d24343 1
d24345 1
a24345 1
cat >>$CONFIG_STATUS <<_ACEOF
d24350 2
a24351 3
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"

_ACEOF
d24353 1
d24355 1
a24355 2

cat >>$CONFIG_STATUS <<\_ACEOF
d24412 1
a24412 1
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d24414 1
a24414 1
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
d24452 1
a24452 1
_ACEOF
d24454 1
a24454 1
cat >>$CONFIG_STATUS <<_ACEOF
a24466 6
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
d24482 5
a24489 1
s,@@DEFS@@,$DEFS,;t t
d24493 2
a24515 2
s,@@STRIP@@,$STRIP,;t t
s,@@ac_ct_STRIP@@,$ac_ct_STRIP,;t t
d24519 3
a24524 3
s,@@AMDEP_TRUE@@,$AMDEP_TRUE,;t t
s,@@AMDEP_FALSE@@,$AMDEP_FALSE,;t t
s,@@AMDEPBACKSLASH@@,$AMDEPBACKSLASH,;t t
a24538 2
s,@@LN_S@@,$LN_S,;t t
s,@@ECHO@@,$ECHO,;t t
d24541 1
a24548 6
s,@@HAVE_DB1_TRUE@@,$HAVE_DB1_TRUE,;t t
s,@@HAVE_DB1_FALSE@@,$HAVE_DB1_FALSE,;t t
s,@@HAVE_DB3_TRUE@@,$HAVE_DB3_TRUE,;t t
s,@@HAVE_DB3_FALSE@@,$HAVE_DB3_FALSE,;t t
s,@@HAVE_NDBM_TRUE@@,$HAVE_NDBM_TRUE,;t t
s,@@HAVE_NDBM_FALSE@@,$HAVE_NDBM_FALSE,;t t
a24565 1
s,@@LIBOBJS@@,$LIBOBJS,;t t
d24571 1
a24590 2
s,@@LIB_krb_kdctimeofday@@,$LIB_krb_kdctimeofday,;t t
s,@@LIB_krb_get_kdc_time_diff@@,$LIB_krb_get_kdc_time_diff,;t t
d24600 2
a24601 3
s,@@dpagaix_cflags@@,$dpagaix_cflags,;t t
s,@@dpagaix_ldadd@@,$dpagaix_ldadd,;t t
s,@@dpagaix_ldflags@@,$dpagaix_ldflags,;t t
d24620 2
a24624 3
s,@@LIB_loadquery@@,$LIB_loadquery,;t t
s,@@AIX_DYNAMIC_AFS_TRUE@@,$AIX_DYNAMIC_AFS_TRUE,;t t
s,@@AIX_DYNAMIC_AFS_FALSE@@,$AIX_DYNAMIC_AFS_FALSE,;t t
a24643 2
s,@@HAVE_OPENSSL_TRUE@@,$HAVE_OPENSSL_TRUE,;t t
s,@@HAVE_OPENSSL_FALSE@@,$HAVE_OPENSSL_FALSE,;t t
d24662 1
a24662 1
_ACEOF
d24664 1
a24664 1
  cat >>$CONFIG_STATUS <<\_ACEOF
d24703 2
a24704 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d24718 1
a24718 2
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d24729 2
a24730 1
  { case "$ac_dir" in
d24741 1
a24741 5
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }
d24746 6
a24751 1
  ac_builddir=.
d24753 10
a24762 19
if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
d24764 3
a24766 10
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

d24770 1
a24770 1
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d24774 1
a24774 1
    { echo "$as_me:$LINENO: creating $ac_file" >&5
d24780 3
a24782 8
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated from `echo $ac_file_in |
                                     sed 's,.*/,,'` by configure."
d24792 1
a24792 1
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24805 1
a24805 1
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24811 2
a24812 2
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
d24815 2
a24816 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
a24820 1
s,@@abs_srcdir@@,$ac_abs_srcdir,;t t
a24821 5
s,@@abs_top_srcdir@@,$ac_abs_top_srcdir,;t t
s,@@builddir@@,$ac_builddir,;t t
s,@@abs_builddir@@,$ac_abs_builddir,;t t
s,@@top_builddir@@,$ac_top_builddir,;t t
s,@@abs_top_builddir@@,$ac_abs_top_builddir,;t t
d24833 2
a24834 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
d24866 1
a24866 1
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
d24877 1
a24877 1
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24890 1
a24890 1
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d24899 1
a24899 1
_ACEOF
d24915 1
a24915 1
cat >confdef2sed.sed <<\_ACEOF
d24920 1
a24920 1
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
d24924 1
a24924 1
_ACEOF
d24935 1
a24935 1
cat >>conftest.undefs <<\_ACEOF
d24937 1
a24937 1
_ACEOF
d24994 1
a24994 1
cat >>$CONFIG_STATUS <<\_ACEOF
d24997 1
a24997 1
  #    /* config.h.  Generated by config.status.  */
d24999 1
a24999 1
    echo "/* Generated by configure.  */" >$tmp/config.h
d25001 1
a25001 1
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
d25007 1
a25007 1
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
d25010 1
a25010 2
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d25021 2
a25022 1
      { case "$ac_dir" in
d25033 1
a25033 5
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }
d25038 1
d25049 1
a25049 1
echo 'timestamp for include/config.h' >"include/stamp-h1"
d25053 2
a25054 2
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
a25061 43
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_dest" : 'X\(//\)[^/]' \| \
         X"$ac_dest" : 'X\(//\)$' \| \
         X"$ac_dest" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a25062 3

  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
d25064 8
a25071 25
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  # Strip MF so we end up with the name of the file.
  mf=`echo "$mf" | sed -e 's/:.*$//'`
  # Check whether this is an Automake generated Makefile or not.
  # We used to match only the files named `Makefile.in', but
  # some people rename them; so instead we look at the file content.
  # Grep'ing the first line is not enough: some people post-process
  # each Makefile.in and add a new line on top of each file to say so.
  # So let's grep whole file.
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    dirpart=`(dirname "$mf") 2>/dev/null ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$mf" : 'X\(//\)[^/]' \| \
         X"$mf" : 'X\(//\)$' \| \
         X"$mf" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  else
    continue
  fi
d25096 2
a25097 32
    fdir=`(dirname "$file") 2>/dev/null ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$file" : 'X\(//\)[^/]' \| \
         X"$file" : 'X\(//\)$' \| \
         X"$file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    { case $dirpart/$fdir in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy=$dirpart/$fdir
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" ||
        mkdir "$as_incr_dir" ||
	{ { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
   { (exit 1); exit 1; }; }
    ;;
  esac
done; }

d25105 1
a25105 1
_ACEOF
d25107 1
a25107 1
cat >>$CONFIG_STATUS <<\_ACEOF
d25110 1
a25110 1
_ACEOF
a25113 1

d25132 1
a25132 1

d25135 2
a25136 2
const char *heimdal_long_version = "@@(#)\$Version: $PACKAGE_STRING by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
const char *heimdal_version = "Heimdal 0.4f";
@


1.1.1.9
log
@Import of Heimdal Kerberos from KTH repository circa 2002/09/16.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.325 .
a422 1
ac_unique_file="kuser/kinit.c"
a1003 1
  --disable-largefile     omit support for large files
d1008 1
a1009 1
  --disable-berkeley-db   if you don't want berkeley db
a1011 1
  --disable-mmap          disable use of mmap
d1023 1
a1033 5
  --with-openssl=dir      use openssl in dir
  --with-openssl-lib=dir  use openssl libraries in dir
  --with-openssl-include=dir
                          use openssl headers in dir
  --without-ipv6          do not enable IPv6 support
d1047 4
a1419 1

a3068 314
# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then

cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
_ACEOF

fi
rm -f conftest*
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF

fi
rm -f conftest*
fi


d4921 1
a4921 1
  echo '#line 5239 "configure"' > conftest.$ac_ext
d5457 1
a5457 1
if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
d7250 1
a7250 1
#line 7568 "configure"
d7348 1
a7348 1
#line 7666 "configure"
d8089 3
a8092 3
# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
  withval="$with_openldap"
d8096 2
a8097 11
# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval="$with_openldap_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;
d8099 1
a8099 11
# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval="$with_openldap_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi;
a8100 3
# Check whether --with-openldap-config or --without-openldap-config was given.
if test "${with_openldap_config+set}" = set; then
  withval="$with_openldap_config"
a8101 1
fi;
d8105 5
a8109 2
echo "$as_me:$LINENO: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6
d8111 41
a8151 5
case "$with_openldap" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_openldap" ;;
esac
d8153 34
a8186 17
header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_openldap_include" = ""; then
		if test -d "$i/include/openldap"; then
			header_dirs="$header_dirs $i/include/openldap"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_openldap_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done
d8188 21
a8208 2
if test "$with_openldap_include"; then
	header_dirs="$with_openldap_include $header_dirs"
d8210 3
a8212 2
if test "$with_openldap_lib"; then
	lib_dirs="$with_openldap_lib $lib_dirs"
d8214 4
a8218 2
if test "$with_openldap_config" = ""; then
	with_openldap_config=''
d8221 6
a8226 2
openldap_cflags=
openldap_libs=
d8228 5
a8232 8
case "$with_openldap_config" in
yes|no|"")
	;;
*)
	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
	openldap_libs="`$with_openldap_config --libs 2>&1`"
	;;
esac
d8234 11
a8244 7
found=no
if test "$with_openldap" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$openldap_cflags" -a "$openldap_libs"; then
		CFLAGS="$openldap_cflags $save_CFLAGS"
		LIBS="$openldap_libs $save_LIBS"
d8248 10
a8257 2
#include <lber.h>
#include <ldap.h>
d8267 1
a8267 1

d8284 1
a8284 6

			INCLUDE_openldap="$openldap_cflags"
			LIB_openldap="$openldap_libs"
			echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
echo "${ECHO_T}from $with_openldap_config" >&6
			found=yes
d8290 21
a8310 6
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
d8313 12
a8324 2
#include <lber.h>
#include <ldap.h>
d8334 7
a8340 36

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lldap -llber  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <lber.h>
#include <ldap.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
a8341 3
int
main ()
{
d8359 1
a8359 1
  lres=$i;break
d8363 1
a8365 11
		done
		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
			INCLUDE_openldap="-I$ires"
			LIB_openldap="-L$lres -lldap -llber "
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d8367 9
d8377 5
a8381 1
if test "$found" = yes; then
d8383 6
a8388 2
cat >>confdefs.h <<_ACEOF
#define OPENLDAP 1
d8391 6
a8396 5
	with_openldap=yes
else
	with_openldap=no
	INCLUDE_openldap=
	LIB_openldap=
d8399 7
a8405 1
fi
d8407 3
d8411 4
d8418 7
d8426 3
d8430 1
a8430 17
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"

fi;

# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
a8431 11
# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
echo "$as_me: error: No argument for --with-krb4-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi;
a8432 3
# Check whether --with-krb4-config or --without-krb4-config was given.
if test "${with_krb4_config+set}" = set; then
  withval="$with_krb4_config"
a8433 1
fi;
d8436 5
d8442 11
a8452 57
echo "$as_me:$LINENO: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6

case "$with_krb4" in
yes|"") d='/usr/athena' ;;
no)	d= ;;
*)	d="$with_krb4" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_krb4_include" = ""; then
		if test -d "$i/include/krb4"; then
			header_dirs="$header_dirs $i/include/krb4"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_krb4_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_krb4_include"; then
	header_dirs="$with_krb4_include $header_dirs"
fi
if test "$with_krb4_lib"; then
	lib_dirs="$with_krb4_lib $lib_dirs"
fi

if test "$with_krb4_config" = ""; then
	with_krb4_config='krb4-config'
fi

krb4_cflags=
krb4_libs=

case "$with_krb4_config" in
yes|no|"")
	;;
*)
	krb4_cflags="`$with_krb4_config --cflags 2>&1`"
	krb4_libs="`$with_krb4_config --libs 2>&1`"
	;;
esac

found=no
if test "$with_krb4" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$krb4_cflags" -a "$krb4_libs"; then
		CFLAGS="$krb4_cflags $save_CFLAGS"
		LIBS="$krb4_libs $save_LIBS"
d8456 12
a8467 1
#include <krb.h>
d8477 1
a8477 1

d8494 1
a8494 6

			INCLUDE_krb4="$krb4_cflags"
			LIB_krb4="$krb4_libs"
			echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
echo "${ECHO_T}from $with_krb4_config" >&6
			found=yes
d8500 21
a8520 6
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
d8523 6
a8528 6
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d8530 4
a8533 3
int
main ()
{
a8534 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ires=$i;break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lkrb -ldes $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
d8544 8
d8569 1
a8569 1
  lres=$i;break
d8573 1
a8575 11
		done
		if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
			INCLUDE_krb4="-I$ires"
			LIB_krb4="-L$lres -lkrb -ldes"
			found=yes
			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
d8577 9
d8587 5
a8591 1
if test "$found" = yes; then
d8593 6
a8598 2
cat >>confdefs.h <<_ACEOF
#define KRB4 1
d8601 6
a8606 5
	with_krb4=yes
else
	with_krb4=no
	INCLUDE_krb4=
	LIB_krb4=
d8609 26
a8634 1
fi
d8636 3
d8640 2
d8644 1
a8645 7
LIB_kdb=
if test "$with_krb4" != "no"; then
	save_CFLAGS="$CFLAGS"
	CFLAGS="$CFLAGS $INCLUDE_krb4"
	save_LIBS="$LIBS"
	LIBS="$LIB_krb4 $LIBS"
	EXTRA_LIB45=lib45.a
d8647 3
a8649 3
	echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
d8652 13
a8664 1
  cat >conftest.$ac_ext <<_ACEOF
d8667 6
a8672 1
#include <krb.h>
d8682 1
a8682 3

		char tmp[4];
		krb_put_int(17, tmp, 4, sizeof(tmp));
d8687 3
a8689 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8693 1
a8693 1
         { ac_try='test -s conftest.$ac_objext'
d8699 1
a8699 1
  ac_cv_func_krb_put_int_four=yes
a8702 1
ac_cv_func_krb_put_int_four=no
d8704 5
a8708 1
rm -f conftest.$ac_objext conftest.$ac_ext
a8710 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
	if test "$ac_cv_func_krb_put_int_four" = yes; then
a8711 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
_ACEOF
d8713 1
a8713 1
	fi
d8715 1
d8717 6
a8722 3
	echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
d8728 12
a8739 1
#include <krb.h>
d8749 8
a8757 1
		int x = KRB_VERIFY_SECURE
d8762 3
a8764 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d8768 1
a8768 1
         { ac_try='test -s conftest.$ac_objext'
d8774 1
a8774 1
  ac_cv_func_krb_verify_secure=yes
d8778 11
a8788 1
ac_cv_func_krb_verify_secure=no
d8790 1
a8790 1
rm -f conftest.$ac_objext conftest.$ac_ext
d8793 46
a8838 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
	if test "$ac_cv_func_krb_verify_secure" != yes; then
d8841 1
a8841 1
#define KRB_VERIFY_SECURE 1
d8846 1
a8846 1
#define KRB_VERIFY_SECURE_FAIL 2
d8849 22
a8870 4
	fi
	echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
d8872 3
d8876 4
a8879 1
  cat >conftest.$ac_ext <<_ACEOF
d8882 2
a8883 15
#include <krb.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		int x = KRB_VERIFY_NOT_SECURE
  ;
  return 0;
}
d8897 1
a8897 1
  ac_cv_func_krb_verify_not_secure=yes
d8901 1
a8901 1
ac_cv_func_krb_verify_not_secure=no
d8904 2
d8907 56
d8964 2
a8965 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
d8967 4
a8970 2
cat >>confdefs.h <<\_ACEOF
#define KRB_VERIFY_NOT_SECURE 0
d8973 4
a8976 1
	fi
d8981 3
a8983 3
echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
d8987 1
a8987 1
if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
d8989 1
a8989 1
	for ac_lib in "" ; do
d9002 8
d9019 1
a9019 1
krb_enable_debug()
d9036 1
a9036 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
d9043 1
a9043 1
	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
d9050 1
a9050 1
eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
d9054 1
a9054 1
for ac_func in krb_enable_debug
d9130 2
a9131 2
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d9133 1
a9133 1
eval "LIB_krb_enable_debug=$ac_res"
d9137 2
a9138 2
	eval "ac_cv_func_krb_enable_debug=yes"
	eval "LIB_krb_enable_debug="
d9147 2
a9148 2
	eval "ac_cv_func_krb_enable_debug=no"
	eval "LIB_krb_enable_debug="
d9153 1
a9153 1
	eval "ac_cv_func_krb_enable_debug=yes"
d9169 133
a9301 2
if test -n "$LIB_krb_enable_debug"; then
	LIBS="$LIB_krb_enable_debug $LIBS"
d9304 2
d9310 3
a9312 3
echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
d9316 1
a9316 1
if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
d9318 1
a9318 1
	for ac_lib in "" ; do
d9331 4
d9344 1
a9344 1
krb_disable_debug()
d9361 1
a9361 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
d9368 1
a9368 1
	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
d9375 1
a9375 1
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
d9379 1
a9379 1
for ac_func in krb_disable_debug
d9455 2
a9456 2
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d9458 1
a9458 1
eval "LIB_krb_disable_debug=$ac_res"
d9462 2
a9463 2
	eval "ac_cv_func_krb_disable_debug=yes"
	eval "LIB_krb_disable_debug="
d9472 2
a9473 2
	eval "ac_cv_func_krb_disable_debug=no"
	eval "LIB_krb_disable_debug="
d9478 1
a9478 1
	eval "ac_cv_func_krb_disable_debug=yes"
a9493 3
if test -n "$LIB_krb_disable_debug"; then
	LIBS="$LIB_krb_disable_debug $LIBS"
fi
d9495 6
d9502 10
d9513 1
d9515 7
a9521 5

echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d9523 1
a9523 13

if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d9527 8
a9534 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d9536 1
a9536 2
int
main ()
d9538 6
a9543 2
krb_get_our_ip_for_realm()
  ;
d9547 1
a9547 1
rm -f conftest.$ac_objext conftest$ac_exeext
d9552 1
a9552 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
a9557 10
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
	LIBS="$ac_save_LIBS"
fi
d9559 54
a9612 1
fi
a9614 1
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
a9615 1
if false; then
d9617 3
a9619 6
for ac_func in krb_get_our_ip_for_realm
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9622 2
d9627 3
a9629 28
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
a9631 3
  ;
  return 0;
}
d9633 3
a9635 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9639 1
a9639 1
         { ac_try='test -s conftest$ac_exeext'
d9645 1
a9645 1
  eval "$as_ac_var=yes"
a9648 11
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d9650 1
d9654 7
a9660 11
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "LIB_krb_get_our_ip_for_realm="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d9662 3
a9664 15

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
	eval "LIB_krb_get_our_ip_for_realm="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d9666 1
a9666 8

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
d9669 3
a9671 12

if test -n "$LIB_krb_get_our_ip_for_realm"; then
	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi





echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
d9674 1
a9674 13

if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d9687 47
a9733 1
krb_kdctimeofday()
d9738 3
a9740 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9744 1
a9744 1
         { ac_try='test -s conftest$ac_exeext'
d9750 1
a9750 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
d9754 1
d9756 1
a9756 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
	LIBS="$ac_save_LIBS"
d9758 7
d9768 3
a9770 11

eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"

if false; then

for ac_func in krb_kdctimeofday
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9776 1
a9776 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d9786 4
a9789 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9794 3
a9796 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9800 1
a9800 1
         { ac_try='test -s conftest$ac_exeext'
d9806 1
a9806 1
  eval "$as_ac_var=yes"
d9810 1
a9810 1
eval "$as_ac_var=no"
d9812 1
a9812 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9814 5
a9818 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d9820 2
a9821 31
fi
done

fi
# krb_kdctimeofday
eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_kdctimeofday=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "LIB_krb_kdctimeofday="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_kdctimeofday=no"
	eval "LIB_krb_kdctimeofday="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_kdctimeofday=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
a9823 12
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_krb_kdctimeofday"; then
	LIBS="$LIB_krb_kdctimeofday $LIBS"
d9826 3
a9828 9






echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
d9831 1
a9831 13

if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d9834 1
a9834 1

d9844 4
a9847 1
krb_get_kdc_time_diff()
d9852 3
a9854 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9858 1
a9858 1
         { ac_try='test -s conftest$ac_exeext'
d9864 1
a9864 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
d9868 1
d9870 30
a9899 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
	LIBS="$ac_save_LIBS"
d9901 1
d9904 7
d9913 5
a9917 1
eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
a9918 1
if false; then
d9920 3
a9922 6
for ac_func in krb_get_kdc_time_diff
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d9928 5
a9932 4
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
d9934 3
a9936 1
extern "C"
a9937 4
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d9948 1
a9948 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d9953 3
a9955 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d9959 1
a9959 1
         { ac_try='test -s conftest$ac_exeext'
d9965 1
a9965 1
  eval "$as_ac_var=yes"
d9969 1
a9969 1
eval "$as_ac_var=no"
d9971 1
a9971 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d9973 5
a9977 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a9979 2
fi
done
d9981 1
a9981 5
fi
# krb_get_kdc_time_diff
eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_kdc_time_diff=$ac_res"
d9983 2
a9984 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
	eval "LIB_krb_get_kdc_time_diff="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d9987 1
a9987 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_krb_get_kdc_time_diff=no"
	eval "LIB_krb_get_kdc_time_diff="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a9988 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
a9989 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d9992 3
a9994 9
if test -n "$LIB_krb_get_kdc_time_diff"; then
	LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
fi



	echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
d10000 3
a10002 36
#include <krb.h>
			#include <prot.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		char *x = KRB_SENDAUTH_VERS
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_krb_sendauth_vers=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_sendauth_vers=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
a10003 22
fi
echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
	if test "$ac_cv_func_krb_sendauth_vers" != yes; then

cat >>confdefs.h <<\_ACEOF
#define KRB_SENDAUTH_VERS "AUTHV0.1"
_ACEOF

	fi
	echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <krb.h>
		int krb_mk_req(KTEXT a, const char *s, const char *i,
			       const char *r, int32_t checksum)
		{ return 17; }
d10013 2
a10014 1

d10031 1
a10031 1
  ac_cv_func_krb_mk_req_const=yes
d10035 1
a10035 1
ac_cv_func_krb_mk_req_const=no
a10037 1

d10039 3
a10041 3
echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
d10044 1
a10044 1
#define KRB_MK_REQ_CONST 1
a10046 14
	fi

	LIBS="$save_LIBS"
	CFLAGS="$save_CFLAGS"
	LIB_kdb="-lkdb -lkrb"
fi


if test "$with_krb4" != "no"; then
  KRB4_TRUE=
  KRB4_FALSE='#'
else
  KRB4_TRUE='#'
  KRB4_FALSE=
d10051 8
a10058 6
if true; then
  KRB5_TRUE=
  KRB5_FALSE='#'
else
  KRB5_TRUE='#'
  KRB5_FALSE=
d10060 2
a10061 6



if true; then
  do_roken_rename_TRUE=
  do_roken_rename_FALSE='#'
d10063 4
a10066 84
  do_roken_rename_TRUE='#'
  do_roken_rename_FALSE=
fi



cat >>confdefs.h <<\_ACEOF
#define KRB5 1
_ACEOF


crypto_lib=unknown


# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"

fi;


# Check whether --with-openssl-lib or --without-openssl-lib was given.
if test "${with_openssl_lib+set}" = set; then
  withval="$with_openssl_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;


# Check whether --with-openssl-include or --without-openssl-include was given.
if test "${with_openssl_include+set}" = set; then
  withval="$with_openssl_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
echo "$as_me: error: No argument for --with-openssl-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openssl" = "X"; then
  with_openssl=yes
fi
fi;

case "$with_openssl" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_openssl_include" = ""; then
		with_openssl_include="$with_openssl/include"
	fi
	if test "$with_openssl_lib" = ""; then
		with_openssl_lib="$with_openssl/lib$abilibdirext"
	fi
	;;
esac


DIR_des=

echo "$as_me:$LINENO: checking for crypto library" >&5
echo $ECHO_N "checking for crypto library... $ECHO_C" >&6

openssl=no
old_hash=no

if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
	save_CPPFLAGS="$CPPFLAGS"
	save_LIBS="$LIBS"

	cdirs= clibs=
	for i in $LIB_krb4; do
		case "$i" in
		-L*) cdirs="$cdirs $i";;
		-l*) clibs="$clibs $i";;
		esac
	done

	ires=
	for i in $INCLUDE_krb4; do
		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
d10069 2
a10070 54

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
d10084 1
a10084 1
  openssl=yes ires="$i"; break
d10088 1
d10091 2
a10092 4
		CFLAGS="$i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
d10094 4
a10097 74
		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  openssl=no ires="$i"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CFLAGS="-DOLD_HASH_NAMES $i $save_CFLAGS"
		cat >conftest.$ac_ext <<_ACEOF
d10100 1
a10100 54

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
d10102 2
a10103 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d10105 3
d10109 6
a10114 8
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  openssl=no ires="$i" old_hash=yes; break
d10116 1
a10116 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10118 2
a10119 77
rm -f conftest.$ac_objext conftest.$ac_ext
	done
	lres=
	for i in $cdirs; do
		for j in $clibs; do
			LIBS="$i $j $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lres="$i $j"; break 2
d10122 2
a10123 17
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		done
	done
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
	if test "$ires" -a "$lres"; then
		INCLUDE_des="$ires"
		LIB_des="$lres"
		crypto_lib=krb4
		echo "$as_me:$LINENO: result: same as krb4" >&5
echo "${ECHO_T}same as krb4" >&6
		LIB_des_a='$(LIB_des)'
		LIB_des_so='$(LIB_des)'
		LIB_des_appl='$(LIB_des)'
	fi
d10125 3
d10129 19
a10147 92
if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	INCLUDE_des=
	LIB_des=
	if test "$with_openssl_include" != ""; then
		INCLUDE_des="-I${with_openssl}/include"
	fi
	if test "$with_openssl_lib" != ""; then
		LIB_des="-L${with_openssl}/lib"
	fi
	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
	LIB_des="${LIB_des} -lcrypto"
	LIB_des_a="$LIB_des"
	LIB_des_so="$LIB_des"
	LIB_des_appl="$LIB_des"
	LIBS="${LIBS} ${LIB_des}"
	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

		#undef KRB5 /* makes md4.h et al unhappy */
		#ifdef HAVE_OPENSSL
		#include <openssl/md4.h>
		#include <openssl/md5.h>
		#include <openssl/sha.h>
		#include <openssl/des.h>
		#include <openssl/rc4.h>
		#else
		#include <md4.h>
		#include <md5.h>
		#include <sha.h>
		#include <des.h>
		#include <rc4.h>
		#endif
		#ifdef OLD_HASH_NAMES
		typedef struct md4 MD4_CTX;
		#define MD4_Init(C) md4_init((C))
		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
		#define MD4_Final(D, C) md4_finito((C), (D))
		typedef struct md5 MD5_CTX;
		#define MD5_Init(C) md5_init((C))
		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
		#define MD5_Final(D, C) md5_finito((C), (D))
		typedef struct sha SHA_CTX;
		#define SHA1_Init(C) sha_init((C))
		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
		#define SHA1_Final(D, C) sha_finito((C), (D))
		#endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

		void *schedule = 0;
		MD4_CTX md4;
		MD5_CTX md5;
		SHA_CTX sha1;

		MD4_Init(&md4);
		MD5_Init(&md5);
		SHA1_Init(&sha1);

		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
		RC4(0, 0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

		crypto_lib=libcrypto openssl=yes
		echo "$as_me:$LINENO: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6

d10149 1
a10149 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d10151 2
a10152 40
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$crypto_lib" = "unknown"; then

  DIR_des='des'
  LIB_des='$(top_builddir)/lib/des/libdes.la'
  LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
  LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
  LIB_des_appl="-ldes"

  echo "$as_me:$LINENO: result: included libdes" >&5
echo "${ECHO_T}included libdes" >&6

fi

if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
	{ { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
required by Kerberos 5; to continue, you need to install a newer
Kerberos 4 or configure --without-krb4" >&5
echo "$as_me: error: the crypto library used by krb4 lacks features
required by Kerberos 5; to continue, you need to install a newer
Kerberos 4 or configure --without-krb4" >&2;}
   { (exit 1); exit 1; }; }
fi

if test "$openssl" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENSSL 1
_ACEOF

fi
if test "$old_hash" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OLD_HASH_NAMES 1
_ACEOF
d10155 4
a10159 7

if test "$openssl" = yes; then
  HAVE_OPENSSL_TRUE=
  HAVE_OPENSSL_FALSE='#'
else
  HAVE_OPENSSL_TRUE='#'
  HAVE_OPENSSL_FALSE=
d10162 1
d10164 1
d10166 1
d10168 13
a10181 13




# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval="$enable_dce"

fi;
if test "$enable_dce" = yes; then

cat >>confdefs.h <<\_ACEOF
#define DCE 1
d10183 15
a10197 1

d10199 2
a10200 5


if test "$enable_dce" = yes; then
  DCE_TRUE=
  DCE_FALSE='#'
d10202 5
a10206 2
  DCE_TRUE='#'
  DCE_FALSE=
d10208 8
a10216 10

## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
	dpagaix_ldflags=
else
	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
d10218 2
d10222 1
a10222 25



# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
if test "${enable_berkeley_db+set}" = set; then
  enableval="$enable_berkeley_db"


fi;

have_ndbm=no
db_type=unknown

if test "$enable_berkeley_db" != no; then





for ac_header in 				\
	db4/db.h				\
	db3/db.h				\
	db.h					\
	db_185.h				\

a10334 72





echo "$as_me:$LINENO: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db4 db3 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

  #include <stdio.h>
  #ifdef HAVE_DB4_DB_H
  #include <db4/db.h>
  #elif defined(HAVE_DB3_DB_H)
  #include <db3/db.h>
  #else
  #include <db.h>
  #endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
db_create(NULL, NULL, 0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
	LIBS="$ac_save_LIBS"
fi

a10337 1
eval "ac_res=\$ac_cv_funclib_db_create"
a10338 1
if false; then
d10340 1
a10340 1
for ac_func in db_create
d10415 13
d10429 3
a10431 4
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"
d10433 2
a10434 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_db_create=yes"
	eval "LIB_db_create="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d10437 26
a10462 14
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_db_create=no"
	eval "LIB_db_create="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_db_create=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d10464 26
d10491 2
a10492 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d10495 23
a10517 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d10520 12
a10532 7
  if test "$ac_cv_func_db_create" = "yes"; then
    db_type=db3
    if test "$ac_cv_funclib_db_create" != "yes"; then
      DBLIB="$ac_cv_funclib_db_create"
    else
      DBLIB=""
    fi
a10533 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_DB3 1
_ACEOF
a10534 1
  else
d10540 4
a10543 3
echo "$as_me:$LINENO: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
d10546 1
a10546 13

if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db2 db; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d10549 6
a10554 12

    #include <stdio.h>
    #if defined(HAVE_DB2_DB_H)
    #include <db2/db.h>
    #elif defined(HAVE_DB_185_H)
    #include <db_185.h>
    #elif defined(HAVE_DB_H)
    #include <db.h>
    #else
    #error no db.h
    #endif

d10564 1
a10564 1
dbopen(NULL, 0, 0, 0, NULL)
d10569 3
a10571 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10575 1
a10575 1
         { ac_try='test -s conftest$ac_exeext'
d10581 1
a10581 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
d10585 1
d10587 1
a10587 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
d10589 5
a10593 6

fi


eval "ac_res=\$ac_cv_funclib_dbopen"

d10595 3
a10597 7

for ac_func in dbopen
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10603 1
a10603 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10613 4
a10616 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10621 3
a10623 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10627 1
a10627 1
         { ac_try='test -s conftest$ac_exeext'
d10633 1
a10633 1
  eval "$as_ac_var=yes"
d10637 1
a10637 1
eval "$as_ac_var=no"
d10639 1
a10639 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10641 6
a10646 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d10649 1
a10650 1
done
a10652 47
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbopen=yes"
	eval "LIB_dbopen="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbopen=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac



    if test "$ac_cv_func_dbopen" = "yes"; then
      db_type=db1
      if test "$ac_cv_funclib_dbopen" != "yes"; then
        DBLIB="$ac_cv_funclib_dbopen"
      else
        DBLIB=""
      fi
d10654 2
a10655 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_DB1 1
d10658 2
a10659 2
    fi
  fi
a10661 1
  if test "$ac_cv_func_dbm_firstkey" != yes; then
d10664 4
a10667 3
echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d10670 1
a10670 13

if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d10673 5
a10677 5

    #include <stdio.h>
    #define DB_DBM_HSEARCH 1
    #include <db.h>
    DBM *dbm;
d10688 1
a10688 1
dbm_firstkey(NULL)
d10693 3
a10695 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10699 1
a10699 1
         { ac_try='test -s conftest$ac_exeext'
d10705 1
a10705 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d10709 1
d10711 1
a10711 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
d10713 5
a10717 6

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

d10719 3
a10721 7

for ac_func in dbm_firstkey
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d10727 1
a10727 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d10737 4
a10740 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d10745 3
a10747 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10751 1
a10751 1
         { ac_try='test -s conftest$ac_exeext'
d10757 1
a10757 1
  eval "$as_ac_var=yes"
d10761 1
a10761 1
eval "$as_ac_var=no"
d10763 1
a10763 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d10765 6
a10770 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d10773 1
a10774 1
done
a10776 4
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"
d10778 2
a10779 6
case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d10782 38
a10819 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
a10820 3
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF
a10821 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
a10824 6
    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi
a10825 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_DB_NDBM 1
_ACEOF
a10827 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF
a10828 5
    else
      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey
    fi
  fi
a10829 1
fi # berkeley db
a10830 1
if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
d10834 45
a10878 3
for ac_header in 				\
	dbm.h					\
	ndbm.h					\
d10996 48
a11043 3
echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d11047 1
a11047 1
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
d11049 1
a11049 1
	for ac_lib in "" ndbm; do
a11061 8
  #include <stdio.h>
  #if defined(HAVE_NDBM_H)
  #include <ndbm.h>
  #elif defined(HAVE_DBM_H)
  #include <dbm.h>
  #endif
  DBM *dbm;

d11071 1
a11071 1
dbm_firstkey(NULL)
d11088 1
a11088 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d11095 1
a11095 1
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
d11102 1
a11102 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d11106 1
a11106 1
for ac_func in dbm_firstkey
d11182 2
a11183 2
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11185 1
a11185 1
eval "LIB_dbm_firstkey=$ac_res"
d11189 2
a11190 2
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
d11199 2
a11200 2
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
d11205 1
a11205 1
	eval "ac_cv_func_dbm_firstkey=yes"
d11221 2
a11222 133

  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
    else
      LIB_NDBM=""
    fi

cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
    have_ndbm=yes
    if test "$db_type" = "unknown"; then
      db_type=ndbm
      DBLIB="$LIB_NDBM"
    fi
  else

    $as_unset ac_cv_func_dbm_firstkey
    $as_unset ac_cv_funclib_dbm_firstkey


for ac_header in 				\
	  gdbm/ndbm.h				\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

a11224 1
done
d11229 3
a11231 4

echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
d11235 1
a11235 1
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
d11237 1
a11237 1
	for ac_lib in "" gdbm; do
a11249 4
    #include <stdio.h>
    #include <gdbm/ndbm.h>
    DBM *dbm;

d11259 1
a11259 1
dbm_firstkey(NULL)
d11276 1
a11276 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
d11283 1
a11283 1
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
d11290 1
a11290 1
eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
d11294 1
a11294 1
for ac_func in dbm_firstkey
d11370 2
a11371 2
# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d11373 1
a11373 1
eval "LIB_dbm_firstkey=$ac_res"
d11377 2
a11378 2
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
d11387 2
a11388 2
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
d11393 1
a11393 1
	eval "ac_cv_func_dbm_firstkey=yes"
d11409 4
a11413 6
    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
	LIB_NDBM=""
      fi
a11414 10
cat >>confdefs.h <<\_ACEOF
#define HAVE_NDBM 1
_ACEOF
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
	db_type=ndbm
	DBLIB="$LIB_NDBM"
      fi
    fi
  fi
a11415 1
fi # unknown
d11417 4
a11420 7
if test "$have_ndbm" = "yes"; then
  echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d11422 13
a11434 1
  cat >conftest.$ac_ext <<_ACEOF
d11438 5
a11442 8
#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#elif defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
d11444 2
a11445 1
int main()
d11447 2
a11448 6
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if (d == NULL)
    return 1;
  dbm_close(d);
d11452 1
a11452 1
rm -f conftest$ac_exeext
d11457 2
a11458 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d11464 1
a11464 13

    if test -f conftest.db; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_NEW_DB 1
_ACEOF

    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
d11466 1
a11466 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
a11467 5
( exit $ac_status )
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d11469 4
a11474 8


if test "$db_type" = db1; then
  HAVE_DB1_TRUE=
  HAVE_DB1_FALSE='#'
else
  HAVE_DB1_TRUE='#'
  HAVE_DB1_FALSE=
d11478 1
a11478 7
if test "$db_type" = db3; then
  HAVE_DB3_TRUE=
  HAVE_DB3_FALSE='#'
else
  HAVE_DB3_TRUE='#'
  HAVE_DB3_FALSE=
fi
d11480 1
d11482 6
a11487 23
if test "$db_type" = ndbm; then
  HAVE_NDBM_TRUE=
  HAVE_NDBM_FALSE='#'
else
  HAVE_NDBM_TRUE='#'
  HAVE_NDBM_FALSE=
fi

z=""
for i in $LDFLAGS; do
	case "$i" in
	-L*) z="$z $i";;
	esac
done
DBLIB="$z $DBLIB"





echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
a11489 2
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
d11493 28
a11520 3
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
d11523 3
d11527 3
a11529 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11533 1
a11533 1
         { ac_try='test -s conftest.$ac_objext'
d11539 1
a11539 1
  ac_cv_c_inline=$ac_kw; break
d11543 11
a11554 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11558 27
a11584 7
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\_ACEOF
#define inline
d11586 3
a11588 3
 ;;
  *)  cat >>confdefs.h <<_ACEOF
#define inline $ac_cv_c_inline
d11590 4
a11593 1
 ;;
d11596 20
a11615 3
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
d11618 7
a11624 1
  cat >conftest.$ac_ext <<_ACEOF
d11628 3
a11630 5
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
d11632 14
a11645 27
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;
d11647 3
a11649 20
    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
d11651 14
d11666 4
a11669 3
  ;
  return 0;
}
d11671 5
a11675 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d11677 16
a11692 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11694 7
a11700 3
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
d11702 4
a11705 2
cat >>confdefs.h <<\_ACEOF
#define const
d11707 41
d11749 16
a11764 1
fi
a11765 9
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
d11775 11
a11785 4
if ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  return 0;
d11790 3
a11792 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11796 1
a11796 1
         { ac_try='test -s conftest.$ac_objext'
d11802 1
a11802 1
  ac_cv_type_size_t=yes
d11806 1
a11806 1
ac_cv_type_size_t=no
d11808 1
a11808 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11810 3
a11812 5
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else
d11814 2
a11815 2
cat >>confdefs.h <<_ACEOF
#define size_t unsigned
d11818 2
d11822 4
a11825 3
echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
d11828 2
a11829 1
  cat >conftest.$ac_ext <<_ACEOF
d11832 13
a11844 1
$ac_includes_default
d11854 4
a11857 4
if ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  return 0;
d11862 3
a11864 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11868 1
a11868 1
         { ac_try='test -s conftest.$ac_objext'
d11874 1
a11874 1
  ac_cv_type_pid_t=yes
d11878 1
a11878 1
ac_cv_type_pid_t=no
d11880 1
a11880 1
rm -f conftest.$ac_objext conftest.$ac_ext
d11882 3
a11884 5
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else
d11886 2
a11887 2
cat >>confdefs.h <<_ACEOF
#define pid_t int
d11890 1
a11892 23
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
a11893 3
cat >>confdefs.h <<\_ACEOF
#define uid_t int
_ACEOF
a11895 3
cat >>confdefs.h <<\_ACEOF
#define gid_t int
_ACEOF
a11896 1
fi
d11898 3
a11900 4

echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
d11903 13
a11915 1
  cat >conftest.$ac_ext <<_ACEOF
a11917 10
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif
d11928 1
a11928 1
int i;
d11933 3
a11935 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d11939 1
a11939 1
         { ac_try='test -s conftest.$ac_objext'
d11945 1
a11945 1
  ac_cv_type_signal=void
a11948 1
ac_cv_type_signal=int
d11950 4
a11953 1
rm -f conftest.$ac_objext conftest.$ac_ext
a11954 13
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


if test "$ac_cv_type_signal" = "void" ; then

cat >>confdefs.h <<\_ACEOF
#define VOID_RETSIGTYPE 1
_ACEOF
d11959 1
d11961 1
d11963 6
a11968 3
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
d11974 11
a11984 3
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
d11995 9
a12003 2
if ((struct tm *) 0)
return 0;
d12008 3
a12010 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12014 1
a12014 1
         { ac_try='test -s conftest.$ac_objext'
d12020 1
a12020 1
  ac_cv_header_time=yes
d12024 1
a12024 1
ac_cv_header_time=no
d12026 1
a12026 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12028 5
a12032 6
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
d12036 1
d12038 5
d12044 7
d12052 14
a12065 20
for ac_header in standards.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
a12066 21
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
d12068 2
a12069 7
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
a12070 26
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d12072 3
a12074 14
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
d12076 4
a12079 6
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
a12080 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a12081 5
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a12082 1
fi
a12083 1
done
a12084 1
for i in netinet/ip.h netinet/tcp.h; do
a12085 1
cv=`echo "$i" | sed 'y%./+-%__p_%'`
d12087 3
a12089 3
echo "$as_me:$LINENO: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
d12092 13
a12104 1
  cat >conftest.$ac_ext <<_ACEOF
d12107 13
a12119 3
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
a12120 1
#include <$i>
d12122 13
d12136 3
a12138 63
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "ac_cv_header_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "ac_cv_header_$cv=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
done
if false;then


for ac_header in netinet/ip.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12142 1
a12142 1
         { ac_try='test -s conftest.$ac_objext'
d12148 1
a12148 1
  ac_header_compiler=yes
a12151 1
ac_header_compiler=no
d12153 4
a12156 70
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

a12158 2
done

d12162 1
d12164 1
d12166 1
a12166 1
for ac_func in getlogin setlogin
d12241 5
a12245 6
if test "$ac_cv_func_getlogin" = yes; then
echo "$as_me:$LINENO: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d12247 7
a12253 5
if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
else
	ac_cv_func_getlogin_posix=yes
fi
d12255 15
a12269 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then
d12271 2
a12272 2
cat >>confdefs.h <<\_ACEOF
#define POSIX_GETLOGIN 1
d12275 8
a12282 1
fi
d12287 6
a12292 7
for ac_header in stdlib.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
a12293 3
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d12295 13
a12307 4
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
d12310 28
a12337 2
$ac_includes_default
#include <$ac_header>
d12339 3
a12341 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12345 1
a12345 1
         { ac_try='test -s conftest.$ac_objext'
d12351 1
a12351 1
  ac_header_compiler=yes
a12354 1
ac_header_compiler=no
d12356 4
a12359 60
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
a12360 2
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a12362 4
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a12363 1
fi
d12365 1
a12365 1
done
d12367 1
d12369 1
a12369 1
for ac_func in getpagesize
a12443 156
echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !STDC_HEADERS && !HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    exit (1);
  if (write (fd, data, pagesize) != pagesize)
    exit (1);
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    exit (1);
  if (read (fd, data3, pagesize) != pagesize)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      exit (1);
  close (fd);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mmap_fixed_mapped=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
d12445 4
a12448 6
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
d12450 6
a12455 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
d12458 14
a12471 26
fi
rm -f conftest.mmap


echo "$as_me:$LINENO: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stddef.h>
#include <stdlib.h>

int main()
{
	return realloc(NULL, 17) == NULL;
}

a12472 21
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_realloc_broken=yes
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
d12474 2
a12475 7
fi
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then

cat >>confdefs.h <<\_ACEOF
#define BROKEN_REALLOC 1
d12478 4
a12481 1
fi
d12484 2
a12485 33





DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'














WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
d12490 3
a12492 9





cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d12495 2
a12496 1
  cat >conftest.$ac_ext <<_ACEOF
d12499 2
a12500 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
d12510 1
a12510 1
ssize_t foo;
d12515 3
a12517 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12521 1
a12521 1
         { ac_try='test -s conftest.$ac_objext'
d12527 1
a12527 1
  eval "ac_cv_type_$cv=yes"
d12531 1
a12531 1
eval "ac_cv_type_$cv=no"
d12533 2
a12534 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12536 2
a12537 1
ac_foo=`eval echo \\$ac_cv_type_$cv`
d12541 9
a12549 5
  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
d12552 2
a12553 1
  cat >conftest.$ac_ext <<_ACEOF
d12556 14
a12569 1
$ac_includes_default
d12579 1
a12579 4
if ((ssize_t *) 0)
  return 0;
if (sizeof (ssize_t))
  return 0;
d12596 1
a12596 1
  ac_cv_type_ssize_t=yes
d12600 1
a12600 1
ac_cv_type_ssize_t=no
d12603 1
a12604 3
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = yes; then
a12605 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF
a12607 1
fi
d12609 3
a12611 1
fi
d12613 2
a12614 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d12620 2
d12625 3
a12627 4
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d12630 4
a12636 5
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d12638 3
a12640 8
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
d12642 3
a12644 3
long long foo;
  ;
  return 0;
d12647 3
a12649 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12652 1
a12652 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d12658 1
a12658 1
  eval "ac_cv_type_$cv=yes"
d12660 2
a12661 1
  echo "$as_me: failed program was:" >&5
d12663 5
a12667 1
eval "ac_cv_type_$cv=no"
d12669 9
a12677 1
rm -f conftest.$ac_objext conftest.$ac_ext
d12679 6
a12684 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
d12690 1
a12690 1
$ac_includes_default
d12700 4
a12703 4
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
d12720 1
a12720 1
  ac_cv_type_long_long=yes
d12724 1
a12724 1
ac_cv_type_long_long=no
d12728 3
a12730 3
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
d12732 2
a12733 2
cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
a12735 1

a12736 1

a12738 4
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

d12742 12
d12755 3
d12759 9
d12770 4
a12773 112














































for ac_header in \
	arpa/inet.h				\
	arpa/nameser.h				\
	config.h				\
	crypt.h					\
	dirent.h				\
	errno.h					\
	err.h					\
	fcntl.h					\
	grp.h					\
	ifaddrs.h				\
	net/if.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6.h				\
	netinet/in_systm.h			\
	netinet6/in6.h				\
	netinet6/in6_var.h			\
	paths.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/ypclnt.h				\
	shadow.h				\
	sys/bswap.h				\
	sys/ioctl.h				\
	sys/mman.h				\
	sys/param.h				\
	sys/proc.h				\
	sys/resource.h				\
	sys/socket.h				\
	sys/sockio.h				\
	sys/stat.h				\
	sys/sysctl.h				\
	sys/time.h				\
	sys/tty.h				\
	sys/types.h				\
	sys/uio.h				\
	sys/utsname.h				\
	sys/wait.h				\
	syslog.h				\
	termios.h				\
	unistd.h				\
	userconf.h				\
	usersec.h				\
	util.h					\
	vis.h					\

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
d12775 3
a12777 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d12780 1
a12780 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
d12786 1
a12786 1
  ac_header_compiler=yes
d12788 2
a12789 1
  echo "$as_me: failed program was:" >&5
d12791 2
a12792 1
ac_header_compiler=no
d12794 1
a12794 27
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a12795 6
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
d12797 2
a12798 3
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
d12800 1
a12800 24
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d12802 2
a12803 4
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d12807 1
d12809 4
a12812 54
done






if test "$ac_cv_header_err_h" = yes; then
  have_err_h_TRUE=
  have_err_h_FALSE='#'
else
  have_err_h_TRUE='#'
  have_err_h_FALSE=
fi



if test "$ac_cv_header_fnmatch_h" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi



if test "$ac_cv_header_ifaddrs_h" = yes; then
  have_ifaddrs_h_TRUE=
  have_ifaddrs_h_FALSE='#'
else
  have_ifaddrs_h_TRUE='#'
  have_ifaddrs_h_FALSE=
fi



if test "$ac_cv_header_vis_h" = yes; then
  have_vis_h_TRUE=
  have_vis_h_FALSE='#'
else
  have_vis_h_TRUE='#'
  have_vis_h_FALSE=
fi







echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
d12815 1
a12815 13

if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d12818 1
a12818 1

d12828 4
a12831 1
socket()
d12836 3
a12838 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12842 1
a12842 1
         { ac_try='test -s conftest$ac_exeext'
d12848 1
a12848 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d12852 1
d12854 1
a12854 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d12856 7
d12865 1
d12867 1
a12868 1
eval "ac_res=\$ac_cv_funclib_socket"
a12869 1
if false; then
d12871 3
a12873 6
for ac_func in socket
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d12876 2
a12877 1
  cat >conftest.$ac_ext <<_ACEOF
a12879 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
d12881 2
d12892 4
a12895 5
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
d12897 1
a12897 1
f = $ac_func;
d12899 2
d12918 1
a12918 1
  eval "$as_ac_var=yes"
d12922 1
a12922 1
eval "$as_ac_var=no"
d12926 2
a12927 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d12929 1
a12929 2
fi
done
d12931 2
a12932 32
fi
# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
a12934 8
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d12936 1
d12938 4
a12941 7




echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
d12944 1
a12944 13

if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d12947 2
a12948 1

d12958 4
a12961 1
gethostbyname()
d12966 3
a12968 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d12972 1
a12972 1
         { ac_try='test -s conftest$ac_exeext'
d12978 1
a12978 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d12982 15
d12998 3
a13000 4
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d13003 7
a13012 1
eval "ac_res=\$ac_cv_funclib_gethostbyname"
a13013 1
if false; then
d13015 53
a13067 1
for ac_func in gethostbyname
d13142 3
a13145 38
# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac

a13146 3
if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi
d13152 3
a13154 3
echo "$as_me:$LINENO: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
d13158 1
a13158 1
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
d13160 1
a13160 1
	for ac_lib in "" syslog; do
d13172 6
a13177 1

d13187 1
a13187 1
syslog()
d13204 1
a13204 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d13211 1
a13211 1
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
d13218 1
a13218 1
eval "ac_res=\$ac_cv_funclib_syslog"
d13222 1
a13222 1
for ac_func in syslog
d13298 2
a13299 2
# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d13301 1
a13301 1
eval "LIB_syslog=$ac_res"
d13305 2
a13306 2
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
d13315 2
a13316 2
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
d13321 1
a13321 1
	eval "ac_cv_func_syslog=yes"
a13336 5
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi


a13338 3
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
  withval="$with_ipv6"
d13340 3
a13342 8
if test "$withval" = "no"; then
	ac_cv_lib_ipv6=no
fi
fi;
save_CFLAGS="${CFLAGS}"
echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
if test "${v6type+set}" = set; then
a13344 2
  v6type=unknown
v6lib=none
d13346 11
a13356 77
for i in v6d toshiba kame inria zeta linux; do
	case $i in
	v6d)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=v6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*

		;;
	toshiba)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	kame)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	inria)
		cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	zeta)
a13359 52

#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  v6type=$i; v6lib=inet6;
			v6libdir=/usr/local/v6/lib;
			CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*

		;;
	linux)
		if test -d /usr/inet6; then
			v6type=$i
			v6lib=inet6
			v6libdir=/usr/inet6
			CFLAGS="-DINET6 $CFLAGS"
		fi
		;;
	esac
	if test "$v6type" != "unknown"; then
		break
	fi
done

if test "$v6lib" != "none"; then
	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
		if test -d $dir -a -f $dir/lib$v6lib.a; then
			LIBS="-L$dir -l$v6lib $LIBS"
			break
		fi
	done
fi

fi
echo "$as_me:$LINENO: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6

echo "$as_me:$LINENO: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
if test "${ac_cv_lib_ipv6+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

a13365 7
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif

d13375 1
a13375 11

 struct sockaddr_in6 sin6;
 int s;

 s = socket(AF_INET6, SOCK_DGRAM, 0);

 sin6.sin6_family = AF_INET6;
 sin6.sin6_port = htons(17);
 sin6.sin6_addr = in6addr_any;
 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));

d13392 1
a13392 1
  ac_cv_lib_ipv6=yes
a13395 1
ac_cv_lib_ipv6=no
d13398 3
a13401 3
echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then
d13403 4
a13406 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_IPV6 1
_ACEOF
d13408 1
a13408 3
else
  CFLAGS="${save_CFLAGS}"
fi
d13410 6
a13415 4
if test "$ac_cv_lib_ipv6" = yes; then
	echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
if test "${ac_cv_var_in6addr_loopback+set}" = set; then
d13418 14
a13432 16
	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
d13442 8
a13449 3

struct sockaddr_in6 sin6;
sin6.sin6_addr = in6addr_loopback;
d13467 1
a13467 1
  ac_cv_var_in6addr_loopback=yes
d13471 1
a13471 1
ac_cv_var_in6addr_loopback=no
d13475 39
a13513 3
echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
	if test "$ac_cv_var_in6addr_loopback" = yes; then
d13515 2
a13516 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_IN6ADDR_LOOPBACK 1
d13519 5
a13523 2
	fi
fi
d13530 3
a13532 3
echo "$as_me:$LINENO: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
d13536 1
a13536 1
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
d13538 1
a13538 1
	for ac_lib in "" inet6 ip6; do
d13550 3
a13552 1

d13562 1
a13562 1
gethostbyname2()
d13579 1
a13579 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
d13586 1
a13586 1
	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
d13593 1
a13593 1
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
d13597 1
a13597 1
for ac_func in gethostbyname2
d13673 2
a13674 2
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d13676 1
a13676 1
eval "LIB_gethostbyname2=$ac_res"
d13680 2
a13681 2
	eval "ac_cv_func_gethostbyname2=yes"
	eval "LIB_gethostbyname2="
d13690 2
a13691 2
	eval "ac_cv_func_gethostbyname2=no"
	eval "LIB_gethostbyname2="
d13696 1
a13696 1
	eval "ac_cv_func_gethostbyname2=yes"
d13712 300
a14011 2
if test -n "$LIB_gethostbyname2"; then
	LIBS="$LIB_gethostbyname2 $LIBS"
d14013 7
d14021 2
d14028 3
a14030 3
echo "$as_me:$LINENO: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
d14034 1
a14034 1
if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
d14036 1
a14036 1
	for ac_lib in "" resolv; do
d14048 2
a14049 13

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
a14050 1

d14060 1
a14060 1
res_search(0,0,0,0,0)
d14077 1
a14077 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d14084 1
a14084 1
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
d14091 1
a14091 1
eval "ac_res=\$ac_cv_funclib_res_search"
d14095 1
a14095 1
for ac_func in res_search
d14171 2
a14172 2
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d14174 1
a14174 1
eval "LIB_res_search=$ac_res"
d14178 2
a14179 2
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
d14188 2
a14189 2
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
d14194 1
a14194 1
	eval "ac_cv_func_res_search=yes"
a14209 5
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi


d14214 3
a14216 3
echo "$as_me:$LINENO: checking for res_nsearch" >&5
echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
if test "${ac_cv_funclib_res_nsearch+set}" = set; then
d14220 1
a14220 1
if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
d14222 1
a14222 1
	for ac_lib in "" resolv; do
d14234 2
a14235 10

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
a14236 4
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

d14246 1
a14246 1
res_nsearch(0,0,0,0,0)
d14263 1
a14263 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
d14270 1
a14270 1
	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
d14277 1
a14277 1
eval "ac_res=\$ac_cv_funclib_res_nsearch"
d14281 1
a14281 1
for ac_func in res_nsearch
d14357 2
a14358 2
# res_nsearch
eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d14360 1
a14360 1
eval "LIB_res_nsearch=$ac_res"
d14364 2
a14365 2
	eval "ac_cv_func_res_nsearch=yes"
	eval "LIB_res_nsearch="
d14374 2
a14375 2
	eval "ac_cv_func_res_nsearch=no"
	eval "LIB_res_nsearch="
d14380 1
a14380 1
	eval "ac_cv_func_res_nsearch=yes"
a14395 3
if test -n "$LIB_res_nsearch"; then
	LIBS="$LIB_res_nsearch $LIBS"
fi
d14400 3
a14402 5


echo "$as_me:$LINENO: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
d14406 1
a14406 1
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
d14408 1
a14408 1
	for ac_lib in "" resolv; do
d14420 2
a14421 4

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
a14422 10
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

d14432 1
a14432 1
dn_expand(0,0,0,0,0)
d14449 1
a14449 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d14456 1
a14456 1
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
d14463 1
a14463 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d14467 1
a14467 1
for ac_func in dn_expand
d14543 2
a14544 2
# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d14546 1
a14546 1
eval "LIB_dn_expand=$ac_res"
d14550 2
a14551 2
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
d14560 2
a14561 2
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
d14566 1
a14566 1
	eval "ac_cv_func_dn_expand=yes"
a14581 3
if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi
d14585 5
a14589 3
echo "$as_me:$LINENO: checking for _res" >&5
echo $ECHO_N "checking for _res... $ECHO_C" >&6
if test "${ac_cv_var__res+set}" = set; then
d14593 12
a14604 1
cat >conftest.$ac_ext <<_ACEOF
d14607 3
a14609 2
extern int _res;
int foo() { return _res; }
d14619 1
a14619 1
foo()
d14636 1
a14636 1
  ac_cv_var__res=yes
a14639 1
ac_cv_var__res=no
d14642 3
a14644 67

fi

ac_foo=`eval echo \\$ac_cv_var__res`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE__RES 1
_ACEOF


echo "$as_me:$LINENO: checking if _res is properly declared" >&5
echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
if test "${ac_cv_var__res_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
extern struct { int foo; } _res;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
_res.foo = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var__res_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var__res_declaration=yes"
a14645 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14650 1
d14652 1
d14654 6
a14659 19
echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE__RES_DECLARATION 1
_ACEOF

fi


fi




echo "$as_me:$LINENO: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
a14661 4
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
d14665 11
a14676 53
#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_snprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6

if test "$ac_cv_func_snprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SNPRINTF 1
_ACEOF

fi
if test "$ac_cv_func_snprintf_working" = yes; then

if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
d14686 8
a14693 3
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
d14699 3
a14701 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14705 1
a14705 1
         { ac_try='test -s conftest.$ac_objext'
d14711 1
a14711 1
  eval "ac_cv_func_snprintf_noproto=yes"
d14715 1
a14715 1
eval "ac_cv_func_snprintf_noproto=no"
d14717 1
a14717 1
rm -f conftest.$ac_objext conftest.$ac_ext
d14719 5
a14723 6
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
if test "$ac_cv_func_snprintf_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SNPRINTF_PROTO 1
d14727 1
a14727 1
fi
d14730 4
d14735 6
a14740 33

echo "$as_me:$LINENO: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>

int foo(int num, ...)
{
	char bar[3];
	va_list arg;
	va_start(arg, num);
	vsnprintf(bar, 2, "%s", arg);
	va_end(arg);
	return strcmp(bar, "1");
}


int main()
{
	return foo(0, "12");
}
a14741 24
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_vsnprintf_working=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
d14743 14
a14756 4
if test "$ac_cv_func_vsnprintf_working" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_VSNPRINTF 1
d14759 2
a14760 29
fi
if test "$ac_cv_func_vsnprintf_working" = yes; then

if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);

  ;
  return 0;
}
a14761 23
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_func_vsnprintf_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
d14763 4
a14766 3
cat >>confdefs.h <<\_ACEOF
#define NEED_VSNPRINTF_PROTO 1
_ACEOF
a14767 2
fi
fi
d14769 2
d14772 3
a14774 57



echo "$as_me:$LINENO: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <stdio.h>
#include <glob.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
NULL, NULL);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a14775 2
echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6
a14776 1
if test "$ac_cv_func_glob_working" = yes; then
a14777 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_GLOB 1
_ACEOF
a14778 2
fi
if test "$ac_cv_func_glob_working" = yes; then
d14780 5
a14784 4
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
d14787 13
a14799 1
  cat >conftest.$ac_ext <<_ACEOF
d14802 3
a14804 2
#include <stdio.h>
#include <glob.h>
d14814 1
a14814 4
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);

d14819 3
a14821 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d14825 1
a14825 1
         { ac_try='test -s conftest.$ac_objext'
d14831 1
a14831 1
  eval "ac_cv_func_glob_noproto=yes"
a14834 12
eval "ac_cv_func_glob_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
if test "$ac_cv_func_glob_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GLOB_PROTO 1
_ACEOF

d14836 4
a14843 3
if test "$ac_cv_func_glob_working" != yes; then
	LIBOBJS="$LIBOBJS glob.$ac_objext"
fi
d14845 1
d14847 1
a14847 63
if test "$ac_cv_func_glob_working" = yes; then
  have_glob_h_TRUE=
  have_glob_h_FALSE='#'
else
  have_glob_h_TRUE='#'
  have_glob_h_FALSE=
fi





























for ac_func in 				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	getconfattr				\
	getprogname				\
	getrlimit				\
	getspnam				\
	initstate				\
	issetugid				\
	on_exit					\
	random					\
	setprogname				\
	setstate				\
	strsvis					\
	strunvis				\
	strvis					\
	strvisx					\
	svis					\
	sysconf					\
	sysctl					\
	uname					\
	unvis					\
	vasnprintf				\
	vasprintf				\
	vis					\
d14849 1
d14924 39
d14964 2
a14965 2
if test "$ac_cv_func_cgetent" = no; then
	LIBOBJS="$LIBOBJS getcap.$ac_objext"
d14968 3
d14977 3
a14979 4

echo "$as_me:$LINENO: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
d14983 1
a14983 1
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
d14997 2
a14998 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d15009 1
a15009 1
getsockopt(0,0,0,0,0)
d15026 1
a15026 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d15033 1
a15033 1
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
d15040 1
a15040 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
d15044 1
a15044 1
for ac_func in getsockopt
d15120 2
a15121 2
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d15123 1
a15123 1
eval "LIB_getsockopt=$ac_res"
d15127 2
a15128 2
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
d15137 2
a15138 2
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
d15143 1
a15143 1
	eval "ac_cv_func_getsockopt=yes"
d15159 10
d15172 3
a15174 3
echo "$as_me:$LINENO: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
d15178 1
a15178 1
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
d15192 2
a15193 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d15204 1
a15204 1
setsockopt(0,0,0,0,0)
d15221 1
a15221 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d15228 1
a15228 1
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
d15235 1
a15235 1
eval "ac_res=\$ac_cv_funclib_setsockopt"
d15239 1
a15239 1
for ac_func in setsockopt
d15315 2
a15316 2
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d15318 1
a15318 1
eval "LIB_setsockopt=$ac_res"
d15322 2
a15323 2
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
d15332 2
a15333 2
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
d15338 1
a15338 1
	eval "ac_cv_func_setsockopt=yes"
d15341 233
a15573 2
#define $ac_tr_func 1
_ACEOF
d15575 2
a15576 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d15579 6
a15584 14
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac







echo "$as_me:$LINENO: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
d15587 1
a15587 13

if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d15590 6
a15595 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d15597 5
d15611 9
a15619 1
hstrerror(17)
d15636 1
a15636 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
d15640 1
a15642 3
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
d15644 3
d15648 6
d15655 3
a15657 12


eval "ac_res=\$ac_cv_funclib_hstrerror"

if false; then

for ac_func in hstrerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d15664 1
a15664 1
    which can conflict with char $ac_func (); below.  */
d15672 1
a15672 1
char $ac_func ();
d15687 1
a15687 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d15690 1
a15690 1
f = $ac_func;
d15709 1
a15709 1
  eval "$as_ac_var=yes"
d15713 1
a15713 1
eval "$as_ac_var=no"
d15717 3
a15719 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d15721 2
a15722 15
fi
done

fi
# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d15725 2
a15726 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
d15728 3
a15730 10

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
	LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
fi


if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
d15736 11
a15747 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d15757 8
a15764 3
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);
d15770 3
a15772 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15776 1
a15776 1
         { ac_try='test -s conftest.$ac_objext'
d15782 1
a15782 1
  eval "ac_cv_func_hstrerror_noproto=yes"
d15786 1
a15786 1
eval "ac_cv_func_hstrerror_noproto=no"
d15788 1
a15788 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15790 3
a15792 3
echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
if test "$ac_cv_func_hstrerror_noproto" = yes; then
d15794 2
a15795 2
cat >>confdefs.h <<\_ACEOF
#define NEED_HSTRERROR_PROTO 1
d15798 2
d15801 3
a15803 8
fi



if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
d15809 11
a15820 2
	#include <stdio.h>
	#include <string.h>
d15830 8
a15837 3
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
d15843 3
a15845 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15849 1
a15849 1
         { ac_try='test -s conftest.$ac_objext'
d15855 1
a15855 1
  eval "ac_cv_func_asprintf_noproto=yes"
d15859 1
a15859 1
eval "ac_cv_func_asprintf_noproto=no"
d15861 1
a15861 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15863 3
a15865 3
echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
if test "$ac_cv_func_asprintf_noproto" = yes; then
d15867 2
a15868 2
cat >>confdefs.h <<\_ACEOF
#define NEED_ASPRINTF_PROTO 1
d15871 2
d15874 3
a15876 6
fi

if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
d15882 11
a15893 2
	#include <stdio.h>
	#include <string.h>
d15903 8
a15910 3
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);
d15916 3
a15918 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15922 1
a15922 1
         { ac_try='test -s conftest.$ac_objext'
d15928 1
a15928 1
  eval "ac_cv_func_vasprintf_noproto=yes"
d15932 1
a15932 1
eval "ac_cv_func_vasprintf_noproto=no"
d15934 1
a15934 1
rm -f conftest.$ac_objext conftest.$ac_ext
d15936 3
a15938 3
echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
if test "$ac_cv_func_vasprintf_noproto" = yes; then
d15940 2
a15941 2
cat >>confdefs.h <<\_ACEOF
#define NEED_VASPRINTF_PROTO 1
d15944 2
d15947 3
a15949 6
fi

if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
d15955 11
a15966 2
	#include <stdio.h>
	#include <string.h>
d15976 8
a15983 3
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
d15989 3
a15991 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d15995 1
a15995 1
         { ac_try='test -s conftest.$ac_objext'
d16001 1
a16001 1
  eval "ac_cv_func_asnprintf_noproto=yes"
d16005 1
a16005 1
eval "ac_cv_func_asnprintf_noproto=no"
d16007 1
a16007 1
rm -f conftest.$ac_objext conftest.$ac_ext
d16009 3
a16011 3
echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
if test "$ac_cv_func_asnprintf_noproto" = yes; then
d16013 2
a16014 2
cat >>confdefs.h <<\_ACEOF
#define NEED_ASNPRINTF_PROTO 1
d16017 2
d16020 3
a16022 6
fi

if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
d16028 11
a16039 2
	#include <stdio.h>
	#include <string.h>
d16049 8
a16056 3
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);
d16062 3
a16064 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d16068 1
a16068 1
         { ac_try='test -s conftest.$ac_objext'
d16074 1
a16074 1
  eval "ac_cv_func_vasnprintf_noproto=yes"
d16078 1
a16078 1
eval "ac_cv_func_vasnprintf_noproto=no"
d16080 1
a16080 1
rm -f conftest.$ac_objext conftest.$ac_ext
d16082 3
a16084 3
echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
if test "$ac_cv_func_vasnprintf_noproto" = yes; then
d16086 2
a16087 2
cat >>confdefs.h <<\_ACEOF
#define NEED_VASNPRINTF_PROTO 1
d16090 2
d16093 3
a16095 9
fi





echo "$as_me:$LINENO: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap16+set}" = set; then
d16098 1
a16098 13

if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16101 6
a16106 2
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
d16108 5
d16122 9
a16130 1
bswap16(0)
d16147 1
a16147 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
d16151 1
a16153 3
	done
	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
	LIBS="$ac_save_LIBS"
d16155 7
d16163 2
d16166 3
a16168 12


eval "ac_res=\$ac_cv_funclib_bswap16"

if false; then

for ac_func in bswap16
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16175 1
a16175 1
    which can conflict with char $ac_func (); below.  */
d16183 1
a16183 1
char $ac_func ();
d16198 1
a16198 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16201 1
a16201 1
f = $ac_func;
d16220 1
a16220 1
  eval "$as_ac_var=yes"
d16224 1
a16224 1
eval "$as_ac_var=no"
d16228 6
a16233 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16236 2
d16239 3
a16241 49
done

fi
# bswap16
eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap16=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap16=yes"
	eval "LIB_bswap16="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap16=no"
	eval "LIB_bswap16="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap16=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
if test "${ac_cv_funclib_bswap32+set}" = set; then
d16244 1
a16244 13

if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16247 6
a16252 2
#ifdef HAVE_SYS_BSWAP_H
#include <sys/bswap.h>
d16254 5
d16268 9
a16276 1
bswap32(0)
d16293 1
a16293 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
d16297 1
a16299 3
	done
	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
	LIBS="$ac_save_LIBS"
d16301 7
d16309 2
d16312 3
a16314 12


eval "ac_res=\$ac_cv_funclib_bswap32"

if false; then

for ac_func in bswap32
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16321 1
a16321 1
    which can conflict with char $ac_func (); below.  */
d16329 1
a16329 1
char $ac_func ();
d16344 1
a16344 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16347 1
a16347 1
f = $ac_func;
d16366 1
a16366 1
  eval "$as_ac_var=yes"
d16370 1
a16370 1
eval "$as_ac_var=no"
d16374 6
a16379 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16382 2
d16385 3
a16387 49
done

fi
# bswap32
eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_bswap32=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_bswap32=yes"
	eval "LIB_bswap32="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_bswap32=no"
	eval "LIB_bswap32="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_bswap32=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac






echo "$as_me:$LINENO: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
if test "${ac_cv_funclib_pidfile+set}" = set; then
d16390 1
a16390 13

if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16393 6
a16398 2
#ifdef HAVE_UTIL_H
#include <util.h>
d16400 5
d16414 9
a16422 1
pidfile(0)
d16439 1
a16439 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
d16443 1
a16445 3
	done
	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
	LIBS="$ac_save_LIBS"
d16447 7
d16455 2
d16458 3
a16460 12


eval "ac_res=\$ac_cv_funclib_pidfile"

if false; then

for ac_func in pidfile
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16467 1
a16467 1
    which can conflict with char $ac_func (); below.  */
d16475 1
a16475 1
char $ac_func ();
d16490 1
a16490 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16493 1
a16493 1
f = $ac_func;
d16512 1
a16512 1
  eval "$as_ac_var=yes"
d16516 1
a16516 1
eval "$as_ac_var=no"
d16520 6
a16525 5
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16528 2
d16531 3
a16533 50
done

fi
# pidfile
eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_pidfile=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_pidfile=yes"
	eval "LIB_pidfile="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_pidfile=no"
	eval "LIB_pidfile="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_pidfile=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac







echo "$as_me:$LINENO: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
d16536 1
a16536 13

if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16539 6
a16544 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16546 5
d16560 9
a16568 1
getaddrinfo(0,0,0,0)
d16585 1
a16585 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
d16589 1
a16591 3
	done
	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d16593 7
d16601 2
d16604 3
a16606 12


eval "ac_res=\$ac_cv_funclib_getaddrinfo"

if false; then

for ac_func in getaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16613 1
a16613 1
    which can conflict with char $ac_func (); below.  */
d16621 1
a16621 1
char $ac_func ();
d16636 1
a16636 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16639 1
a16639 1
f = $ac_func;
d16658 1
a16658 1
  eval "$as_ac_var=yes"
d16662 1
a16662 1
eval "$as_ac_var=no"
d16666 3
a16668 39
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# getaddrinfo
eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "LIB_getaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getaddrinfo=no"
	eval "LIB_getaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d16670 2
a16671 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d16674 2
a16675 8
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_getaddrinfo"; then
	LIBS="$LIB_getaddrinfo $LIBS"
d16677 3
a16679 13

if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
fi






echo "$as_me:$LINENO: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_getnameinfo+set}" = set; then
d16682 1
a16682 13

if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16685 6
a16690 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16692 5
d16706 9
a16714 1
getnameinfo(0,0,0,0,0,0,0)
d16731 1
a16731 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
d16735 1
a16737 3
	done
	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
	LIBS="$ac_save_LIBS"
d16739 7
d16747 2
d16750 3
a16752 12


eval "ac_res=\$ac_cv_funclib_getnameinfo"

if false; then

for ac_func in getnameinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16759 1
a16759 1
    which can conflict with char $ac_func (); below.  */
d16767 1
a16767 1
char $ac_func ();
d16782 1
a16782 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16785 1
a16785 1
f = $ac_func;
d16804 1
a16804 1
  eval "$as_ac_var=yes"
d16808 1
a16808 1
eval "$as_ac_var=no"
d16812 3
a16814 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16816 2
a16817 15
fi
done

fi
# getnameinfo
eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getnameinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getnameinfo=yes"
	eval "LIB_getnameinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d16820 2
a16821 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_getnameinfo=no"
	eval "LIB_getnameinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_getnameinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_getnameinfo"; then
	LIBS="$LIB_getnameinfo $LIBS"
d16823 3
a16825 13

if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
fi






echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
d16828 1
a16828 13

if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16831 6
a16836 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16838 5
d16852 9
a16860 1
freeaddrinfo(0)
d16877 1
a16877 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
d16881 1
a16883 3
	done
	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
	LIBS="$ac_save_LIBS"
d16885 3
d16889 6
d16896 3
a16898 12


eval "ac_res=\$ac_cv_funclib_freeaddrinfo"

if false; then

for ac_func in freeaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d16905 1
a16905 1
    which can conflict with char $ac_func (); below.  */
d16913 1
a16913 1
char $ac_func ();
d16928 1
a16928 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d16931 1
a16931 1
f = $ac_func;
d16950 1
a16950 1
  eval "$as_ac_var=yes"
d16954 1
a16954 1
eval "$as_ac_var=no"
d16958 3
a16960 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d16962 2
a16963 15
fi
done

fi
# freeaddrinfo
eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_freeaddrinfo=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "LIB_freeaddrinfo="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d16966 2
a16967 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_freeaddrinfo=no"
	eval "LIB_freeaddrinfo="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_freeaddrinfo=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_freeaddrinfo"; then
	LIBS="$LIB_freeaddrinfo $LIBS"
d16969 3
a16971 13

if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
fi






echo "$as_me:$LINENO: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
if test "${ac_cv_funclib_gai_strerror+set}" = set; then
d16974 1
a16974 13

if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" ; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d16977 6
a16982 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d16984 5
d16998 9
a17006 1
gai_strerror(0)
d17023 1
a17023 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
d17027 1
a17029 3
	done
	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
	LIBS="$ac_save_LIBS"
d17031 7
d17039 2
d17042 3
a17044 12


eval "ac_res=\$ac_cv_funclib_gai_strerror"

if false; then

for ac_func in gai_strerror
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d17051 1
a17051 1
    which can conflict with char $ac_func (); below.  */
d17059 1
a17059 1
char $ac_func ();
d17074 1
a17074 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d17077 1
a17077 1
f = $ac_func;
d17096 1
a17096 1
  eval "$as_ac_var=yes"
d17100 1
a17100 1
eval "$as_ac_var=no"
d17104 3
a17106 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d17108 2
a17109 15
fi
done

fi
# gai_strerror
eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gai_strerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gai_strerror=yes"
	eval "LIB_gai_strerror="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
d17112 2
a17113 28
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_gai_strerror=no"
	eval "LIB_gai_strerror="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_gai_strerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac


if test -n "$LIB_gai_strerror"; then
	LIBS="$LIB_gai_strerror $LIBS"
d17115 3
a17117 9

if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
	LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
fi


echo "$as_me:$LINENO: checking for chown" >&5
echo $ECHO_N "checking for chown... $ECHO_C" >&6
if test "${ac_cv_func_chown+set}" = set; then
d17124 1
a17124 1
    which can conflict with char chown (); below.  */
d17132 1
a17132 1
char chown ();
d17147 1
a17147 1
#if defined (__stub_chown) || defined (__stub___chown)
d17150 1
a17150 1
f = chown;
d17169 1
a17169 1
  ac_cv_func_chown=yes
d17173 1
a17173 1
ac_cv_func_chown=no
d17177 3
a17179 3
echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
echo "${ECHO_T}$ac_cv_func_chown" >&6
if test $ac_cv_func_chown = yes; then
d17182 1
a17182 1
#define HAVE_CHOWN 1
d17186 1
a17186 1
  LIBOBJS="$LIBOBJS chown.$ac_objext"
d17188 3
a17190 3
echo "$as_me:$LINENO: checking for copyhostent" >&5
echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
if test "${ac_cv_func_copyhostent+set}" = set; then
d17197 1
a17197 1
    which can conflict with char copyhostent (); below.  */
d17205 1
a17205 1
char copyhostent ();
d17220 1
a17220 1
#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
d17223 1
a17223 1
f = copyhostent;
d17242 1
a17242 1
  ac_cv_func_copyhostent=yes
d17246 1
a17246 1
ac_cv_func_copyhostent=no
d17250 3
a17252 3
echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
if test $ac_cv_func_copyhostent = yes; then
d17255 1
a17255 1
#define HAVE_COPYHOSTENT 1
d17259 1
a17259 1
  LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
d17261 3
a17263 3
echo "$as_me:$LINENO: checking for daemon" >&5
echo $ECHO_N "checking for daemon... $ECHO_C" >&6
if test "${ac_cv_func_daemon+set}" = set; then
d17270 1
a17270 1
    which can conflict with char daemon (); below.  */
d17278 1
a17278 1
char daemon ();
d17293 1
a17293 1
#if defined (__stub_daemon) || defined (__stub___daemon)
d17296 1
a17296 1
f = daemon;
d17315 1
a17315 1
  ac_cv_func_daemon=yes
d17319 1
a17319 1
ac_cv_func_daemon=no
d17323 3
a17325 3
echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
echo "${ECHO_T}$ac_cv_func_daemon" >&6
if test $ac_cv_func_daemon = yes; then
d17328 1
a17328 1
#define HAVE_DAEMON 1
d17332 1
a17332 1
  LIBOBJS="$LIBOBJS daemon.$ac_objext"
d17334 3
a17336 3
echo "$as_me:$LINENO: checking for ecalloc" >&5
echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
if test "${ac_cv_func_ecalloc+set}" = set; then
d17343 1
a17343 1
    which can conflict with char ecalloc (); below.  */
d17351 1
a17351 1
char ecalloc ();
d17366 1
a17366 1
#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
d17369 1
a17369 1
f = ecalloc;
d17388 1
a17388 1
  ac_cv_func_ecalloc=yes
d17392 1
a17392 1
ac_cv_func_ecalloc=no
d17396 3
a17398 3
echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
if test $ac_cv_func_ecalloc = yes; then
d17401 1
a17401 1
#define HAVE_ECALLOC 1
d17405 1
a17405 1
  LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
d17407 3
a17409 3
echo "$as_me:$LINENO: checking for emalloc" >&5
echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
if test "${ac_cv_func_emalloc+set}" = set; then
d17416 1
a17416 1
    which can conflict with char emalloc (); below.  */
d17424 1
a17424 1
char emalloc ();
d17439 1
a17439 1
#if defined (__stub_emalloc) || defined (__stub___emalloc)
d17442 1
a17442 1
f = emalloc;
d17461 1
a17461 1
  ac_cv_func_emalloc=yes
d17465 1
a17465 1
ac_cv_func_emalloc=no
d17469 3
a17471 3
echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
echo "${ECHO_T}$ac_cv_func_emalloc" >&6
if test $ac_cv_func_emalloc = yes; then
d17474 1
a17474 1
#define HAVE_EMALLOC 1
d17478 1
a17478 1
  LIBOBJS="$LIBOBJS emalloc.$ac_objext"
d17480 3
a17482 3
echo "$as_me:$LINENO: checking for erealloc" >&5
echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
if test "${ac_cv_func_erealloc+set}" = set; then
d17489 1
a17489 1
    which can conflict with char erealloc (); below.  */
d17497 1
a17497 1
char erealloc ();
d17512 1
a17512 1
#if defined (__stub_erealloc) || defined (__stub___erealloc)
d17515 1
a17515 1
f = erealloc;
d17534 1
a17534 1
  ac_cv_func_erealloc=yes
d17538 1
a17538 1
ac_cv_func_erealloc=no
d17542 3
a17544 3
echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
echo "${ECHO_T}$ac_cv_func_erealloc" >&6
if test $ac_cv_func_erealloc = yes; then
d17547 1
a17547 1
#define HAVE_EREALLOC 1
d17551 1
a17551 1
  LIBOBJS="$LIBOBJS erealloc.$ac_objext"
d17553 3
a17555 3
echo "$as_me:$LINENO: checking for estrdup" >&5
echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
if test "${ac_cv_func_estrdup+set}" = set; then
d17562 1
a17562 1
    which can conflict with char estrdup (); below.  */
d17570 1
a17570 1
char estrdup ();
d17585 1
a17585 1
#if defined (__stub_estrdup) || defined (__stub___estrdup)
d17588 1
a17588 1
f = estrdup;
d17607 1
a17607 1
  ac_cv_func_estrdup=yes
d17611 1
a17611 1
ac_cv_func_estrdup=no
d17615 3
a17617 3
echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
echo "${ECHO_T}$ac_cv_func_estrdup" >&6
if test $ac_cv_func_estrdup = yes; then
d17620 1
a17620 1
#define HAVE_ESTRDUP 1
d17624 1
a17624 1
  LIBOBJS="$LIBOBJS estrdup.$ac_objext"
d17626 3
a17628 3
echo "$as_me:$LINENO: checking for err" >&5
echo $ECHO_N "checking for err... $ECHO_C" >&6
if test "${ac_cv_func_err+set}" = set; then
d17635 1
a17635 1
    which can conflict with char err (); below.  */
d17643 1
a17643 1
char err ();
d17658 1
a17658 1
#if defined (__stub_err) || defined (__stub___err)
d17661 1
a17661 1
f = err;
d17680 1
a17680 1
  ac_cv_func_err=yes
d17684 1
a17684 1
ac_cv_func_err=no
d17688 3
a17690 3
echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
echo "${ECHO_T}$ac_cv_func_err" >&6
if test $ac_cv_func_err = yes; then
d17693 1
a17693 1
#define HAVE_ERR 1
d17697 1
a17697 1
  LIBOBJS="$LIBOBJS err.$ac_objext"
d17699 3
a17701 3
echo "$as_me:$LINENO: checking for errx" >&5
echo $ECHO_N "checking for errx... $ECHO_C" >&6
if test "${ac_cv_func_errx+set}" = set; then
d17708 1
a17708 1
    which can conflict with char errx (); below.  */
d17716 1
a17716 1
char errx ();
d17731 1
a17731 1
#if defined (__stub_errx) || defined (__stub___errx)
d17734 1
a17734 1
f = errx;
d17753 1
a17753 1
  ac_cv_func_errx=yes
d17757 1
a17757 1
ac_cv_func_errx=no
d17761 3
a17763 3
echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
echo "${ECHO_T}$ac_cv_func_errx" >&6
if test $ac_cv_func_errx = yes; then
d17766 1
a17766 1
#define HAVE_ERRX 1
d17770 1
a17770 1
  LIBOBJS="$LIBOBJS errx.$ac_objext"
d17772 3
a17774 3
echo "$as_me:$LINENO: checking for fchown" >&5
echo $ECHO_N "checking for fchown... $ECHO_C" >&6
if test "${ac_cv_func_fchown+set}" = set; then
d17781 1
a17781 1
    which can conflict with char fchown (); below.  */
d17789 1
a17789 1
char fchown ();
d17804 1
a17804 1
#if defined (__stub_fchown) || defined (__stub___fchown)
d17807 1
a17807 1
f = fchown;
d17826 1
a17826 1
  ac_cv_func_fchown=yes
d17830 1
a17830 1
ac_cv_func_fchown=no
d17834 3
a17836 3
echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
echo "${ECHO_T}$ac_cv_func_fchown" >&6
if test $ac_cv_func_fchown = yes; then
d17839 1
a17839 1
#define HAVE_FCHOWN 1
d17843 1
a17843 1
  LIBOBJS="$LIBOBJS fchown.$ac_objext"
d17845 3
a17847 3
echo "$as_me:$LINENO: checking for flock" >&5
echo $ECHO_N "checking for flock... $ECHO_C" >&6
if test "${ac_cv_func_flock+set}" = set; then
d17854 1
a17854 1
    which can conflict with char flock (); below.  */
d17862 1
a17862 1
char flock ();
d17877 1
a17877 1
#if defined (__stub_flock) || defined (__stub___flock)
d17880 1
a17880 1
f = flock;
d17899 1
a17899 1
  ac_cv_func_flock=yes
d17903 1
a17903 1
ac_cv_func_flock=no
d17907 3
a17909 3
echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
echo "${ECHO_T}$ac_cv_func_flock" >&6
if test $ac_cv_func_flock = yes; then
d17912 1
a17912 1
#define HAVE_FLOCK 1
d17916 1
a17916 1
  LIBOBJS="$LIBOBJS flock.$ac_objext"
d17918 3
a17920 3
echo "$as_me:$LINENO: checking for fnmatch" >&5
echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
if test "${ac_cv_func_fnmatch+set}" = set; then
d17927 1
a17927 1
    which can conflict with char fnmatch (); below.  */
d17935 1
a17935 1
char fnmatch ();
d17950 1
a17950 1
#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
d17953 1
a17953 1
f = fnmatch;
d17972 1
a17972 1
  ac_cv_func_fnmatch=yes
d17976 1
a17976 1
ac_cv_func_fnmatch=no
d17980 3
a17982 3
echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
if test $ac_cv_func_fnmatch = yes; then
d17985 1
a17985 1
#define HAVE_FNMATCH 1
d17989 1
a17989 1
  LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
d17991 3
a17993 3
echo "$as_me:$LINENO: checking for freehostent" >&5
echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
if test "${ac_cv_func_freehostent+set}" = set; then
d18000 1
a18000 1
    which can conflict with char freehostent (); below.  */
d18008 1
a18008 1
char freehostent ();
d18023 1
a18023 1
#if defined (__stub_freehostent) || defined (__stub___freehostent)
d18026 1
a18026 1
f = freehostent;
d18045 1
a18045 1
  ac_cv_func_freehostent=yes
d18049 1
a18049 1
ac_cv_func_freehostent=no
d18053 3
a18055 3
echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
echo "${ECHO_T}$ac_cv_func_freehostent" >&6
if test $ac_cv_func_freehostent = yes; then
d18058 1
a18058 1
#define HAVE_FREEHOSTENT 1
d18062 1
a18062 1
  LIBOBJS="$LIBOBJS freehostent.$ac_objext"
d18064 3
a18066 3
echo "$as_me:$LINENO: checking for getcwd" >&5
echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
if test "${ac_cv_func_getcwd+set}" = set; then
d18073 1
a18073 1
    which can conflict with char getcwd (); below.  */
d18081 1
a18081 1
char getcwd ();
d18096 1
a18096 1
#if defined (__stub_getcwd) || defined (__stub___getcwd)
d18099 1
a18099 1
f = getcwd;
d18118 1
a18118 1
  ac_cv_func_getcwd=yes
d18122 1
a18122 1
ac_cv_func_getcwd=no
d18126 3
a18128 3
echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
echo "${ECHO_T}$ac_cv_func_getcwd" >&6
if test $ac_cv_func_getcwd = yes; then
d18131 1
a18131 1
#define HAVE_GETCWD 1
d18135 1
a18135 1
  LIBOBJS="$LIBOBJS getcwd.$ac_objext"
d18137 3
a18139 3
echo "$as_me:$LINENO: checking for getdtablesize" >&5
echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
if test "${ac_cv_func_getdtablesize+set}" = set; then
d18146 1
a18146 1
    which can conflict with char getdtablesize (); below.  */
d18154 1
a18154 1
char getdtablesize ();
d18169 1
a18169 1
#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
d18172 1
a18172 1
f = getdtablesize;
d18191 1
a18191 1
  ac_cv_func_getdtablesize=yes
d18195 1
a18195 1
ac_cv_func_getdtablesize=no
d18199 3
a18201 3
echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
if test $ac_cv_func_getdtablesize = yes; then
d18204 1
a18204 1
#define HAVE_GETDTABLESIZE 1
d18208 1
a18208 1
  LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
d18210 3
a18212 3
echo "$as_me:$LINENO: checking for getegid" >&5
echo $ECHO_N "checking for getegid... $ECHO_C" >&6
if test "${ac_cv_func_getegid+set}" = set; then
d18219 1
a18219 1
    which can conflict with char getegid (); below.  */
d18227 1
a18227 1
char getegid ();
d18242 1
a18242 1
#if defined (__stub_getegid) || defined (__stub___getegid)
d18245 1
a18245 1
f = getegid;
d18264 1
a18264 1
  ac_cv_func_getegid=yes
d18268 1
a18268 1
ac_cv_func_getegid=no
d18272 3
a18274 3
echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
echo "${ECHO_T}$ac_cv_func_getegid" >&6
if test $ac_cv_func_getegid = yes; then
d18277 1
a18277 1
#define HAVE_GETEGID 1
d18281 1
a18281 1
  LIBOBJS="$LIBOBJS getegid.$ac_objext"
d18283 3
a18285 3
echo "$as_me:$LINENO: checking for geteuid" >&5
echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
if test "${ac_cv_func_geteuid+set}" = set; then
d18292 1
a18292 1
    which can conflict with char geteuid (); below.  */
d18300 1
a18300 1
char geteuid ();
d18315 1
a18315 1
#if defined (__stub_geteuid) || defined (__stub___geteuid)
d18318 1
a18318 1
f = geteuid;
d18337 1
a18337 1
  ac_cv_func_geteuid=yes
d18341 1
a18341 1
ac_cv_func_geteuid=no
d18345 3
a18347 3
echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
echo "${ECHO_T}$ac_cv_func_geteuid" >&6
if test $ac_cv_func_geteuid = yes; then
d18350 1
a18350 1
#define HAVE_GETEUID 1
d18354 1
a18354 1
  LIBOBJS="$LIBOBJS geteuid.$ac_objext"
d18356 3
a18358 3
echo "$as_me:$LINENO: checking for getgid" >&5
echo $ECHO_N "checking for getgid... $ECHO_C" >&6
if test "${ac_cv_func_getgid+set}" = set; then
d18365 1
a18365 1
    which can conflict with char getgid (); below.  */
d18373 1
a18373 1
char getgid ();
d18388 1
a18388 1
#if defined (__stub_getgid) || defined (__stub___getgid)
d18391 1
a18391 1
f = getgid;
d18410 1
a18410 1
  ac_cv_func_getgid=yes
d18414 1
a18414 1
ac_cv_func_getgid=no
d18418 3
a18420 3
echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
echo "${ECHO_T}$ac_cv_func_getgid" >&6
if test $ac_cv_func_getgid = yes; then
d18423 1
a18423 1
#define HAVE_GETGID 1
d18427 1
a18427 1
  LIBOBJS="$LIBOBJS getgid.$ac_objext"
d18429 3
a18431 3
echo "$as_me:$LINENO: checking for gethostname" >&5
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
if test "${ac_cv_func_gethostname+set}" = set; then
d18438 1
a18438 1
    which can conflict with char gethostname (); below.  */
d18446 1
a18446 1
char gethostname ();
d18461 1
a18461 1
#if defined (__stub_gethostname) || defined (__stub___gethostname)
d18464 1
a18464 1
f = gethostname;
d18483 1
a18483 1
  ac_cv_func_gethostname=yes
d18487 1
a18487 1
ac_cv_func_gethostname=no
d18491 3
a18493 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
if test $ac_cv_func_gethostname = yes; then
d18496 1
a18496 1
#define HAVE_GETHOSTNAME 1
d18500 1
a18500 1
  LIBOBJS="$LIBOBJS gethostname.$ac_objext"
d18502 3
a18504 3
echo "$as_me:$LINENO: checking for getifaddrs" >&5
echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
if test "${ac_cv_func_getifaddrs+set}" = set; then
d18511 1
a18511 1
    which can conflict with char getifaddrs (); below.  */
d18519 1
a18519 1
char getifaddrs ();
d18534 1
a18534 1
#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
d18537 1
a18537 1
f = getifaddrs;
d18556 1
a18556 1
  ac_cv_func_getifaddrs=yes
d18560 1
a18560 1
ac_cv_func_getifaddrs=no
d18564 3
a18566 3
echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
if test $ac_cv_func_getifaddrs = yes; then
d18569 1
a18569 1
#define HAVE_GETIFADDRS 1
d18573 1
a18573 1
  LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
d18575 3
a18577 3
echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
d18584 1
a18584 1
    which can conflict with char getipnodebyaddr (); below.  */
d18592 1
a18592 1
char getipnodebyaddr ();
d18607 1
a18607 1
#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
d18610 1
a18610 1
f = getipnodebyaddr;
d18629 1
a18629 1
  ac_cv_func_getipnodebyaddr=yes
d18633 1
a18633 1
ac_cv_func_getipnodebyaddr=no
d18637 3
a18639 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
if test $ac_cv_func_getipnodebyaddr = yes; then
d18642 1
a18642 1
#define HAVE_GETIPNODEBYADDR 1
d18646 1
a18646 1
  LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
d18648 3
a18650 3
echo "$as_me:$LINENO: checking for getipnodebyname" >&5
echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
if test "${ac_cv_func_getipnodebyname+set}" = set; then
d18657 1
a18657 1
    which can conflict with char getipnodebyname (); below.  */
d18665 1
a18665 1
char getipnodebyname ();
d18680 1
a18680 1
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
d18683 1
a18683 1
f = getipnodebyname;
d18702 1
a18702 1
  ac_cv_func_getipnodebyname=yes
d18706 1
a18706 1
ac_cv_func_getipnodebyname=no
d18710 3
a18712 3
echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
if test $ac_cv_func_getipnodebyname = yes; then
d18715 1
a18715 1
#define HAVE_GETIPNODEBYNAME 1
d18719 1
a18719 1
  LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
d18721 3
a18723 3
echo "$as_me:$LINENO: checking for getopt" >&5
echo $ECHO_N "checking for getopt... $ECHO_C" >&6
if test "${ac_cv_func_getopt+set}" = set; then
d18730 1
a18730 1
    which can conflict with char getopt (); below.  */
d18738 1
a18738 1
char getopt ();
d18753 1
a18753 1
#if defined (__stub_getopt) || defined (__stub___getopt)
d18756 1
a18756 1
f = getopt;
d18775 1
a18775 1
  ac_cv_func_getopt=yes
d18779 1
a18779 1
ac_cv_func_getopt=no
d18783 3
a18785 3
echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
echo "${ECHO_T}$ac_cv_func_getopt" >&6
if test $ac_cv_func_getopt = yes; then
d18788 1
a18788 1
#define HAVE_GETOPT 1
d18792 1
a18792 1
  LIBOBJS="$LIBOBJS getopt.$ac_objext"
d18794 3
a18796 3
echo "$as_me:$LINENO: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
d18803 1
a18803 1
    which can conflict with char gettimeofday (); below.  */
d18811 1
a18811 1
char gettimeofday ();
d18826 1
a18826 1
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
d18829 1
a18829 1
f = gettimeofday;
d18848 1
a18848 1
  ac_cv_func_gettimeofday=yes
d18852 1
a18852 1
ac_cv_func_gettimeofday=no
d18856 3
a18858 3
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
d18861 1
a18861 1
#define HAVE_GETTIMEOFDAY 1
d18865 1
a18865 1
  LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
d18867 3
a18869 3
echo "$as_me:$LINENO: checking for getuid" >&5
echo $ECHO_N "checking for getuid... $ECHO_C" >&6
if test "${ac_cv_func_getuid+set}" = set; then
d18876 1
a18876 1
    which can conflict with char getuid (); below.  */
d18884 1
a18884 1
char getuid ();
d18899 1
a18899 1
#if defined (__stub_getuid) || defined (__stub___getuid)
d18902 1
a18902 1
f = getuid;
d18921 1
a18921 1
  ac_cv_func_getuid=yes
d18925 1
a18925 1
ac_cv_func_getuid=no
d18929 3
a18931 3
echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
echo "${ECHO_T}$ac_cv_func_getuid" >&6
if test $ac_cv_func_getuid = yes; then
d18934 1
a18934 1
#define HAVE_GETUID 1
d18938 1
a18938 1
  LIBOBJS="$LIBOBJS getuid.$ac_objext"
d18940 3
a18942 3
echo "$as_me:$LINENO: checking for getusershell" >&5
echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
if test "${ac_cv_func_getusershell+set}" = set; then
d18949 1
a18949 1
    which can conflict with char getusershell (); below.  */
d18957 1
a18957 1
char getusershell ();
d18972 1
a18972 1
#if defined (__stub_getusershell) || defined (__stub___getusershell)
d18975 1
a18975 1
f = getusershell;
d18994 1
a18994 1
  ac_cv_func_getusershell=yes
d18998 1
a18998 1
ac_cv_func_getusershell=no
d19002 3
a19004 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
echo "${ECHO_T}$ac_cv_func_getusershell" >&6
if test $ac_cv_func_getusershell = yes; then
d19007 1
a19007 1
#define HAVE_GETUSERSHELL 1
d19011 1
a19011 1
  LIBOBJS="$LIBOBJS getusershell.$ac_objext"
d19013 3
a19015 3
echo "$as_me:$LINENO: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
if test "${ac_cv_func_initgroups+set}" = set; then
d19022 1
a19022 1
    which can conflict with char initgroups (); below.  */
d19030 1
a19030 1
char initgroups ();
d19045 1
a19045 1
#if defined (__stub_initgroups) || defined (__stub___initgroups)
d19048 1
a19048 1
f = initgroups;
d19067 1
a19067 1
  ac_cv_func_initgroups=yes
d19071 1
a19071 1
ac_cv_func_initgroups=no
d19075 3
a19077 3
echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
echo "${ECHO_T}$ac_cv_func_initgroups" >&6
if test $ac_cv_func_initgroups = yes; then
d19080 1
a19080 1
#define HAVE_INITGROUPS 1
d19084 1
a19084 1
  LIBOBJS="$LIBOBJS initgroups.$ac_objext"
d19086 3
a19088 3
echo "$as_me:$LINENO: checking for innetgr" >&5
echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
if test "${ac_cv_func_innetgr+set}" = set; then
d19095 1
a19095 1
    which can conflict with char innetgr (); below.  */
d19103 1
a19103 1
char innetgr ();
d19118 1
a19118 1
#if defined (__stub_innetgr) || defined (__stub___innetgr)
d19121 1
a19121 1
f = innetgr;
d19140 1
a19140 1
  ac_cv_func_innetgr=yes
d19144 1
a19144 1
ac_cv_func_innetgr=no
d19148 3
a19150 3
echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
echo "${ECHO_T}$ac_cv_func_innetgr" >&6
if test $ac_cv_func_innetgr = yes; then
d19153 1
a19153 1
#define HAVE_INNETGR 1
d19157 1
a19157 1
  LIBOBJS="$LIBOBJS innetgr.$ac_objext"
d19159 3
a19161 3
echo "$as_me:$LINENO: checking for iruserok" >&5
echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
if test "${ac_cv_func_iruserok+set}" = set; then
d19168 1
a19168 1
    which can conflict with char iruserok (); below.  */
d19176 1
a19176 1
char iruserok ();
d19191 1
a19191 1
#if defined (__stub_iruserok) || defined (__stub___iruserok)
d19194 1
a19194 1
f = iruserok;
d19213 1
a19213 1
  ac_cv_func_iruserok=yes
d19217 1
a19217 1
ac_cv_func_iruserok=no
d19221 3
a19223 3
echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
echo "${ECHO_T}$ac_cv_func_iruserok" >&6
if test $ac_cv_func_iruserok = yes; then
d19226 1
a19226 1
#define HAVE_IRUSEROK 1
d19230 1
a19230 1
  LIBOBJS="$LIBOBJS iruserok.$ac_objext"
d19232 3
a19234 3
echo "$as_me:$LINENO: checking for localtime_r" >&5
echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
if test "${ac_cv_func_localtime_r+set}" = set; then
d19241 1
a19241 1
    which can conflict with char localtime_r (); below.  */
d19249 1
a19249 1
char localtime_r ();
d19264 1
a19264 1
#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
d19267 1
a19267 1
f = localtime_r;
d19286 1
a19286 1
  ac_cv_func_localtime_r=yes
d19290 1
a19290 1
ac_cv_func_localtime_r=no
d19294 3
a19296 3
echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
if test $ac_cv_func_localtime_r = yes; then
d19299 1
a19299 1
#define HAVE_LOCALTIME_R 1
d19303 1
a19303 1
  LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
d19305 3
a19307 3
echo "$as_me:$LINENO: checking for lstat" >&5
echo $ECHO_N "checking for lstat... $ECHO_C" >&6
if test "${ac_cv_func_lstat+set}" = set; then
d19314 1
a19314 1
    which can conflict with char lstat (); below.  */
d19322 1
a19322 1
char lstat ();
d19337 1
a19337 1
#if defined (__stub_lstat) || defined (__stub___lstat)
d19340 1
a19340 1
f = lstat;
d19359 1
a19359 1
  ac_cv_func_lstat=yes
d19363 1
a19363 1
ac_cv_func_lstat=no
d19367 3
a19369 3
echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
echo "${ECHO_T}$ac_cv_func_lstat" >&6
if test $ac_cv_func_lstat = yes; then
d19372 1
a19372 1
#define HAVE_LSTAT 1
d19376 1
a19376 1
  LIBOBJS="$LIBOBJS lstat.$ac_objext"
d19378 3
a19380 3
echo "$as_me:$LINENO: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
d19387 1
a19387 1
    which can conflict with char memmove (); below.  */
d19395 1
a19395 1
char memmove ();
d19410 1
a19410 1
#if defined (__stub_memmove) || defined (__stub___memmove)
d19413 1
a19413 1
f = memmove;
d19432 1
a19432 1
  ac_cv_func_memmove=yes
d19436 1
a19436 1
ac_cv_func_memmove=no
d19440 3
a19442 3
echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
d19445 1
a19445 1
#define HAVE_MEMMOVE 1
d19449 1
a19449 1
  LIBOBJS="$LIBOBJS memmove.$ac_objext"
d19451 3
a19453 3
echo "$as_me:$LINENO: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
d19460 1
a19460 1
    which can conflict with char mkstemp (); below.  */
d19468 1
a19468 1
char mkstemp ();
d19483 1
a19483 1
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
d19486 1
a19486 1
f = mkstemp;
d19505 1
a19505 1
  ac_cv_func_mkstemp=yes
d19509 1
a19509 1
ac_cv_func_mkstemp=no
d19513 3
a19515 3
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
if test $ac_cv_func_mkstemp = yes; then
d19518 1
a19518 1
#define HAVE_MKSTEMP 1
d19522 1
a19522 1
  LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
d19524 3
a19526 3
echo "$as_me:$LINENO: checking for putenv" >&5
echo $ECHO_N "checking for putenv... $ECHO_C" >&6
if test "${ac_cv_func_putenv+set}" = set; then
d19533 1
a19533 1
    which can conflict with char putenv (); below.  */
d19541 1
a19541 1
char putenv ();
d19556 1
a19556 1
#if defined (__stub_putenv) || defined (__stub___putenv)
d19559 1
a19559 1
f = putenv;
d19578 1
a19578 1
  ac_cv_func_putenv=yes
d19582 1
a19582 1
ac_cv_func_putenv=no
d19586 3
a19588 3
echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
echo "${ECHO_T}$ac_cv_func_putenv" >&6
if test $ac_cv_func_putenv = yes; then
d19591 1
a19591 1
#define HAVE_PUTENV 1
d19595 1
a19595 1
  LIBOBJS="$LIBOBJS putenv.$ac_objext"
d19597 3
a19599 3
echo "$as_me:$LINENO: checking for rcmd" >&5
echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
if test "${ac_cv_func_rcmd+set}" = set; then
d19606 1
a19606 1
    which can conflict with char rcmd (); below.  */
d19614 1
a19614 1
char rcmd ();
d19629 1
a19629 1
#if defined (__stub_rcmd) || defined (__stub___rcmd)
d19632 1
a19632 1
f = rcmd;
d19651 1
a19651 1
  ac_cv_func_rcmd=yes
d19655 1
a19655 1
ac_cv_func_rcmd=no
d19659 3
a19661 3
echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
echo "${ECHO_T}$ac_cv_func_rcmd" >&6
if test $ac_cv_func_rcmd = yes; then
d19664 1
a19664 1
#define HAVE_RCMD 1
d19668 1
a19668 1
  LIBOBJS="$LIBOBJS rcmd.$ac_objext"
d19670 3
a19672 3
echo "$as_me:$LINENO: checking for readv" >&5
echo $ECHO_N "checking for readv... $ECHO_C" >&6
if test "${ac_cv_func_readv+set}" = set; then
d19679 1
a19679 1
    which can conflict with char readv (); below.  */
d19687 1
a19687 1
char readv ();
d19702 1
a19702 1
#if defined (__stub_readv) || defined (__stub___readv)
d19705 1
a19705 1
f = readv;
d19724 1
a19724 1
  ac_cv_func_readv=yes
d19728 1
a19728 1
ac_cv_func_readv=no
d19732 3
a19734 3
echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
echo "${ECHO_T}$ac_cv_func_readv" >&6
if test $ac_cv_func_readv = yes; then
d19737 1
a19737 1
#define HAVE_READV 1
d19741 1
a19741 1
  LIBOBJS="$LIBOBJS readv.$ac_objext"
d19743 3
a19745 3
echo "$as_me:$LINENO: checking for recvmsg" >&5
echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
if test "${ac_cv_func_recvmsg+set}" = set; then
d19752 1
a19752 1
    which can conflict with char recvmsg (); below.  */
d19760 1
a19760 1
char recvmsg ();
d19775 1
a19775 1
#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
d19778 1
a19778 1
f = recvmsg;
d19797 1
a19797 1
  ac_cv_func_recvmsg=yes
d19801 1
a19801 1
ac_cv_func_recvmsg=no
d19805 3
a19807 3
echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
if test $ac_cv_func_recvmsg = yes; then
d19810 1
a19810 1
#define HAVE_RECVMSG 1
d19814 1
a19814 1
  LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
d19816 3
a19818 3
echo "$as_me:$LINENO: checking for sendmsg" >&5
echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
if test "${ac_cv_func_sendmsg+set}" = set; then
d19825 1
a19825 1
    which can conflict with char sendmsg (); below.  */
d19833 1
a19833 1
char sendmsg ();
d19848 1
a19848 1
#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
d19851 1
a19851 1
f = sendmsg;
d19870 1
a19870 1
  ac_cv_func_sendmsg=yes
d19874 1
a19874 1
ac_cv_func_sendmsg=no
d19878 3
a19880 3
echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
if test $ac_cv_func_sendmsg = yes; then
d19883 1
a19883 1
#define HAVE_SENDMSG 1
d19887 1
a19887 1
  LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
d19889 3
a19891 3
echo "$as_me:$LINENO: checking for setegid" >&5
echo $ECHO_N "checking for setegid... $ECHO_C" >&6
if test "${ac_cv_func_setegid+set}" = set; then
d19898 1
a19898 1
    which can conflict with char setegid (); below.  */
d19906 1
a19906 1
char setegid ();
d19921 1
a19921 1
#if defined (__stub_setegid) || defined (__stub___setegid)
d19924 1
a19924 1
f = setegid;
d19943 1
a19943 1
  ac_cv_func_setegid=yes
d19947 1
a19947 1
ac_cv_func_setegid=no
d19951 3
a19953 3
echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
echo "${ECHO_T}$ac_cv_func_setegid" >&6
if test $ac_cv_func_setegid = yes; then
d19956 1
a19956 1
#define HAVE_SETEGID 1
d19960 1
a19960 1
  LIBOBJS="$LIBOBJS setegid.$ac_objext"
d19962 3
a19964 3
echo "$as_me:$LINENO: checking for setenv" >&5
echo $ECHO_N "checking for setenv... $ECHO_C" >&6
if test "${ac_cv_func_setenv+set}" = set; then
d19971 1
a19971 1
    which can conflict with char setenv (); below.  */
d19979 1
a19979 1
char setenv ();
d19994 1
a19994 1
#if defined (__stub_setenv) || defined (__stub___setenv)
d19997 1
a19997 1
f = setenv;
d20016 1
a20016 1
  ac_cv_func_setenv=yes
d20020 1
a20020 1
ac_cv_func_setenv=no
d20024 3
a20026 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
echo "${ECHO_T}$ac_cv_func_setenv" >&6
if test $ac_cv_func_setenv = yes; then
d20029 1
a20029 1
#define HAVE_SETENV 1
d20033 1
a20033 1
  LIBOBJS="$LIBOBJS setenv.$ac_objext"
d20035 3
a20037 3
echo "$as_me:$LINENO: checking for seteuid" >&5
echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
if test "${ac_cv_func_seteuid+set}" = set; then
d20044 1
a20044 1
    which can conflict with char seteuid (); below.  */
d20052 1
a20052 1
char seteuid ();
d20067 1
a20067 1
#if defined (__stub_seteuid) || defined (__stub___seteuid)
d20070 1
a20070 1
f = seteuid;
d20089 1
a20089 1
  ac_cv_func_seteuid=yes
d20093 1
a20093 1
ac_cv_func_seteuid=no
d20097 3
a20099 3
echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
echo "${ECHO_T}$ac_cv_func_seteuid" >&6
if test $ac_cv_func_seteuid = yes; then
d20102 1
a20102 1
#define HAVE_SETEUID 1
d20106 1
a20106 1
  LIBOBJS="$LIBOBJS seteuid.$ac_objext"
d20108 3
a20110 3
echo "$as_me:$LINENO: checking for strcasecmp" >&5
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strcasecmp+set}" = set; then
d20117 1
a20117 1
    which can conflict with char strcasecmp (); below.  */
d20125 1
a20125 1
char strcasecmp ();
d20140 1
a20140 1
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
d20143 1
a20143 1
f = strcasecmp;
d20162 1
a20162 1
  ac_cv_func_strcasecmp=yes
d20166 1
a20166 1
ac_cv_func_strcasecmp=no
d20170 3
a20172 3
echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
if test $ac_cv_func_strcasecmp = yes; then
d20175 1
a20175 1
#define HAVE_STRCASECMP 1
d20179 1
a20179 1
  LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
d20181 7
a20187 3
echo "$as_me:$LINENO: checking for strdup" >&5
echo $ECHO_N "checking for strdup... $ECHO_C" >&6
if test "${ac_cv_func_strdup+set}" = set; then
d20193 1
a20193 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strdup ();
char (*f) ();

d20203 3
a20205 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strdup) || defined (__stub___strdup)
choke me
#else
f = strdup;
#endif
d20211 3
a20213 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20217 1
a20217 1
         { ac_try='test -s conftest$ac_exeext'
d20223 1
a20223 1
  ac_cv_func_strdup=yes
d20227 1
a20227 1
ac_cv_func_strdup=no
d20229 1
a20229 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20231 3
a20233 3
echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
echo "${ECHO_T}$ac_cv_func_strdup" >&6
if test $ac_cv_func_strdup = yes; then
d20235 2
a20236 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRDUP 1
a20238 2
else
  LIBOBJS="$LIBOBJS strdup.$ac_objext"
d20240 6
a20245 3
echo "$as_me:$LINENO: checking for strerror" >&5
echo $ECHO_N "checking for strerror... $ECHO_C" >&6
if test "${ac_cv_func_strerror+set}" = set; then
d20251 1
a20251 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strerror (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strerror ();
char (*f) ();

d20261 3
a20263 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strerror) || defined (__stub___strerror)
choke me
#else
f = strerror;
#endif
d20269 3
a20271 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20275 1
a20275 1
         { ac_try='test -s conftest$ac_exeext'
d20281 1
a20281 1
  ac_cv_func_strerror=yes
d20285 1
a20285 1
ac_cv_func_strerror=no
d20287 1
a20287 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20289 3
a20291 3
echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
echo "${ECHO_T}$ac_cv_func_strerror" >&6
if test $ac_cv_func_strerror = yes; then
d20293 2
a20294 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR 1
a20296 2
else
  LIBOBJS="$LIBOBJS strerror.$ac_objext"
d20298 6
a20303 3
echo "$as_me:$LINENO: checking for strftime" >&5
echo $ECHO_N "checking for strftime... $ECHO_C" >&6
if test "${ac_cv_func_strftime+set}" = set; then
d20309 1
a20309 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strftime (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strftime ();
char (*f) ();

d20319 3
a20321 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strftime) || defined (__stub___strftime)
choke me
#else
f = strftime;
#endif
d20327 3
a20329 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20333 1
a20333 1
         { ac_try='test -s conftest$ac_exeext'
d20339 1
a20339 1
  ac_cv_func_strftime=yes
d20343 1
a20343 1
ac_cv_func_strftime=no
d20345 1
a20345 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20347 3
a20349 3
echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
echo "${ECHO_T}$ac_cv_func_strftime" >&6
if test $ac_cv_func_strftime = yes; then
d20351 2
a20352 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRFTIME 1
a20354 2
else
  LIBOBJS="$LIBOBJS strftime.$ac_objext"
d20356 8
a20363 3
echo "$as_me:$LINENO: checking for strlcat" >&5
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
if test "${ac_cv_func_strlcat+set}" = set; then
d20369 2
a20370 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcat (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20371 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcat ();
char (*f) ();

d20381 3
a20383 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcat) || defined (__stub___strlcat)
choke me
#else
f = strlcat;
#endif
d20389 3
a20391 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20395 1
a20395 1
         { ac_try='test -s conftest$ac_exeext'
d20401 1
a20401 1
  ac_cv_func_strlcat=yes
d20405 1
a20405 1
ac_cv_func_strlcat=no
d20407 1
a20407 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20409 3
a20411 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
echo "${ECHO_T}$ac_cv_func_strlcat" >&6
if test $ac_cv_func_strlcat = yes; then
d20413 2
a20414 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCAT 1
a20416 2
else
  LIBOBJS="$LIBOBJS strlcat.$ac_objext"
d20418 6
a20423 3
echo "$as_me:$LINENO: checking for strlcpy" >&5
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
if test "${ac_cv_func_strlcpy+set}" = set; then
d20429 2
a20430 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcpy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20431 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcpy ();
char (*f) ();

d20441 3
a20443 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
choke me
#else
f = strlcpy;
#endif
d20449 3
a20451 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20455 1
a20455 1
         { ac_try='test -s conftest$ac_exeext'
d20461 1
a20461 1
  ac_cv_func_strlcpy=yes
d20465 1
a20465 1
ac_cv_func_strlcpy=no
d20467 1
a20467 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20469 3
a20471 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
if test $ac_cv_func_strlcpy = yes; then
d20473 2
a20474 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLCPY 1
a20476 2
else
  LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
d20478 6
a20483 3
echo "$as_me:$LINENO: checking for strlwr" >&5
echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
if test "${ac_cv_func_strlwr+set}" = set; then
d20489 2
a20490 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlwr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20491 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlwr ();
char (*f) ();

d20501 3
a20503 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlwr) || defined (__stub___strlwr)
choke me
#else
f = strlwr;
#endif
d20509 3
a20511 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20515 1
a20515 1
         { ac_try='test -s conftest$ac_exeext'
d20521 1
a20521 1
  ac_cv_func_strlwr=yes
d20525 1
a20525 1
ac_cv_func_strlwr=no
d20527 1
a20527 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20529 3
a20531 3
echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
echo "${ECHO_T}$ac_cv_func_strlwr" >&6
if test $ac_cv_func_strlwr = yes; then
d20533 2
a20534 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRLWR 1
a20536 2
else
  LIBOBJS="$LIBOBJS strlwr.$ac_objext"
d20538 6
a20543 3
echo "$as_me:$LINENO: checking for strncasecmp" >&5
echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
if test "${ac_cv_func_strncasecmp+set}" = set; then
d20549 2
a20550 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strncasecmp (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20551 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strncasecmp ();
char (*f) ();

d20561 3
a20563 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
choke me
#else
f = strncasecmp;
#endif
d20569 3
a20571 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20575 1
a20575 1
         { ac_try='test -s conftest$ac_exeext'
d20581 1
a20581 1
  ac_cv_func_strncasecmp=yes
d20585 1
a20585 1
ac_cv_func_strncasecmp=no
d20587 1
a20587 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20589 3
a20591 3
echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
if test $ac_cv_func_strncasecmp = yes; then
d20593 2
a20594 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNCASECMP 1
a20596 2
else
  LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
d20598 6
a20603 3
echo "$as_me:$LINENO: checking for strndup" >&5
echo $ECHO_N "checking for strndup... $ECHO_C" >&6
if test "${ac_cv_func_strndup+set}" = set; then
d20609 2
a20610 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strndup (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20611 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strndup ();
char (*f) ();

d20621 3
a20623 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strndup) || defined (__stub___strndup)
choke me
#else
f = strndup;
#endif
d20629 3
a20631 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20635 1
a20635 1
         { ac_try='test -s conftest$ac_exeext'
d20641 1
a20641 1
  ac_cv_func_strndup=yes
d20645 1
a20645 1
ac_cv_func_strndup=no
d20647 1
a20647 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20649 3
a20651 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
echo "${ECHO_T}$ac_cv_func_strndup" >&6
if test $ac_cv_func_strndup = yes; then
d20653 2
a20654 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNDUP 1
a20656 2
else
  LIBOBJS="$LIBOBJS strndup.$ac_objext"
d20658 6
a20663 3
echo "$as_me:$LINENO: checking for strnlen" >&5
echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
if test "${ac_cv_func_strnlen+set}" = set; then
d20669 2
a20670 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strnlen (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20671 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strnlen ();
char (*f) ();

d20681 3
a20683 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strnlen) || defined (__stub___strnlen)
choke me
#else
f = strnlen;
#endif
d20689 3
a20691 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20695 1
a20695 1
         { ac_try='test -s conftest$ac_exeext'
d20701 1
a20701 1
  ac_cv_func_strnlen=yes
d20705 1
a20705 1
ac_cv_func_strnlen=no
d20707 1
a20707 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20709 3
a20711 3
echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
echo "${ECHO_T}$ac_cv_func_strnlen" >&6
if test $ac_cv_func_strnlen = yes; then
d20713 2
a20714 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRNLEN 1
a20716 2
else
  LIBOBJS="$LIBOBJS strnlen.$ac_objext"
d20718 6
a20723 3
echo "$as_me:$LINENO: checking for strptime" >&5
echo $ECHO_N "checking for strptime... $ECHO_C" >&6
if test "${ac_cv_func_strptime+set}" = set; then
d20729 2
a20730 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strptime (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20731 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strptime ();
char (*f) ();

d20741 3
a20743 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strptime) || defined (__stub___strptime)
choke me
#else
f = strptime;
#endif
d20749 3
a20751 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d20755 1
a20755 1
         { ac_try='test -s conftest$ac_exeext'
d20761 1
a20761 1
  ac_cv_func_strptime=yes
d20765 1
a20765 1
ac_cv_func_strptime=no
d20767 1
a20767 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d20769 3
a20771 3
echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
echo "${ECHO_T}$ac_cv_func_strptime" >&6
if test $ac_cv_func_strptime = yes; then
d20773 2
a20774 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRPTIME 1
a20776 2
else
  LIBOBJS="$LIBOBJS strptime.$ac_objext"
d20778 6
a20783 3
echo "$as_me:$LINENO: checking for strsep" >&5
echo $ECHO_N "checking for strsep... $ECHO_C" >&6
if test "${ac_cv_func_strsep+set}" = set; then
d20789 11
a20799 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20800 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strsep ();
char (*f) ();

d20810 1
d20814 1
a20814 1
#if defined (__stub_strsep) || defined (__stub___strsep)
d20817 1
a20817 1
f = strsep;
d20836 1
a20836 1
  ac_cv_func_strsep=yes
d20840 1
a20840 1
ac_cv_func_strsep=no
d20844 2
a20845 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
echo "${ECHO_T}$ac_cv_func_strsep" >&6
if test $ac_cv_func_strsep = yes; then
d20848 1
a20848 1
#define HAVE_STRSEP 1
d20851 2
d20854 3
a20856 1
  LIBOBJS="$LIBOBJS strsep.$ac_objext"
d20858 4
a20861 3
echo "$as_me:$LINENO: checking for strsep_copy" >&5
echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
if test "${ac_cv_func_strsep_copy+set}" = set; then
d20867 11
a20877 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strsep_copy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20878 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strsep_copy ();
char (*f) ();

d20888 1
d20892 1
a20892 1
#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
d20895 1
a20895 1
f = strsep_copy;
d20914 1
a20914 1
  ac_cv_func_strsep_copy=yes
d20918 1
a20918 1
ac_cv_func_strsep_copy=no
d20922 2
a20923 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
if test $ac_cv_func_strsep_copy = yes; then
d20926 1
a20926 1
#define HAVE_STRSEP_COPY 1
d20929 2
d20932 3
a20934 1
  LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
d20936 4
a20939 3
echo "$as_me:$LINENO: checking for strtok_r" >&5
echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r+set}" = set; then
d20945 11
a20955 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strtok_r (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a20956 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strtok_r ();
char (*f) ();

d20966 1
d20970 1
a20970 1
#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
d20973 1
a20973 1
f = strtok_r;
d20992 1
a20992 1
  ac_cv_func_strtok_r=yes
d20996 1
a20996 1
ac_cv_func_strtok_r=no
d21000 2
a21001 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
if test $ac_cv_func_strtok_r = yes; then
d21004 1
a21004 1
#define HAVE_STRTOK_R 1
d21007 2
d21010 3
a21012 1
  LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
d21014 6
a21019 3
echo "$as_me:$LINENO: checking for strupr" >&5
echo $ECHO_N "checking for strupr... $ECHO_C" >&6
if test "${ac_cv_func_strupr+set}" = set; then
d21022 2
a21023 1
  cat >conftest.$ac_ext <<_ACEOF
d21026 2
a21027 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strupr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strupr ();
char (*f) ();

d21037 1
a21037 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strupr) || defined (__stub___strupr)
choke me
#else
f = strupr;
#endif

d21042 3
a21044 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21048 1
a21048 1
         { ac_try='test -s conftest$ac_exeext'
d21054 1
a21054 1
  ac_cv_func_strupr=yes
d21058 1
a21058 1
ac_cv_func_strupr=no
d21060 1
a21060 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21062 4
a21065 3
echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
echo "${ECHO_T}$ac_cv_func_strupr" >&6
if test $ac_cv_func_strupr = yes; then
d21067 2
a21068 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUPR 1
d21071 1
a21071 2
else
  LIBOBJS="$LIBOBJS strupr.$ac_objext"
d21073 8
a21080 3
echo "$as_me:$LINENO: checking for swab" >&5
echo $ECHO_N "checking for swab... $ECHO_C" >&6
if test "${ac_cv_func_swab+set}" = set; then
d21083 5
d21091 5
a21095 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char swab (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char swab ();
char (*f) ();
a21096 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21098 1
a21098 1
main ()
d21100 5
a21104 7
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_swab) || defined (__stub___swab)
choke me
#else
f = swab;
d21106 6
a21112 3
  ;
  return 0;
}
d21114 1
a21114 1
rm -f conftest.$ac_objext conftest$ac_exeext
d21119 1
a21119 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
d21125 1
a21125 1
  ac_cv_func_swab=yes
d21127 2
a21128 1
  echo "$as_me: failed program was:" >&5
d21130 5
a21134 1
ac_cv_func_swab=no
d21136 5
a21140 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a21141 3
echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
echo "${ECHO_T}$ac_cv_func_swab" >&6
if test $ac_cv_func_swab = yes; then
d21143 1
a21143 3
cat >>confdefs.h <<_ACEOF
#define HAVE_SWAB 1
_ACEOF
d21145 4
d21150 4
a21153 6
  LIBOBJS="$LIBOBJS swab.$ac_objext"
fi
echo "$as_me:$LINENO: checking for unsetenv" >&5
echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d21158 4
a21161 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char unsetenv (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char unsetenv ();
char (*f) ();
a21162 6
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
d21164 1
a21164 1
main ()
d21166 9
a21174 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
choke me
#else
f = unsetenv;
#endif
a21175 3
  ;
  return 0;
}
d21177 1
a21177 1
rm -f conftest.$ac_objext conftest$ac_exeext
d21182 1
a21182 2
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
d21188 1
a21188 1
  ac_cv_func_unsetenv=yes
d21190 2
a21191 1
  echo "$as_me: failed program was:" >&5
d21193 5
a21197 1
ac_cv_func_unsetenv=no
d21199 6
a21204 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a21205 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
if test $ac_cv_func_unsetenv = yes; then
a21206 3
cat >>confdefs.h <<_ACEOF
#define HAVE_UNSETENV 1
_ACEOF
d21208 4
a21211 6
else
  LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
fi
echo "$as_me:$LINENO: checking for verr" >&5
echo $ECHO_N "checking for verr... $ECHO_C" >&6
if test "${ac_cv_func_verr+set}" = set; then
d21217 1
a21217 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verr (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verr ();
char (*f) ();

d21227 3
a21229 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verr) || defined (__stub___verr)
choke me
#else
f = verr;
#endif
d21235 3
a21237 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21241 1
a21241 1
         { ac_try='test -s conftest$ac_exeext'
d21247 1
a21247 1
  ac_cv_func_verr=yes
d21251 1
a21251 1
ac_cv_func_verr=no
d21253 1
a21253 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21255 3
a21257 3
echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
echo "${ECHO_T}$ac_cv_func_verr" >&6
if test $ac_cv_func_verr = yes; then
d21259 2
a21260 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VERR 1
a21262 2
else
  LIBOBJS="$LIBOBJS verr.$ac_objext"
d21264 7
a21270 3
echo "$as_me:$LINENO: checking for verrx" >&5
echo $ECHO_N "checking for verrx... $ECHO_C" >&6
if test "${ac_cv_func_verrx+set}" = set; then
d21276 1
a21276 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char verrx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char verrx ();
char (*f) ();

d21286 3
a21288 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_verrx) || defined (__stub___verrx)
choke me
#else
f = verrx;
#endif
d21294 3
a21296 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21300 1
a21300 1
         { ac_try='test -s conftest$ac_exeext'
d21306 1
a21306 1
  ac_cv_func_verrx=yes
d21310 1
a21310 1
ac_cv_func_verrx=no
d21312 1
a21312 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21314 3
a21316 3
echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
echo "${ECHO_T}$ac_cv_func_verrx" >&6
if test $ac_cv_func_verrx = yes; then
d21318 2
a21319 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VERRX 1
a21321 2
else
  LIBOBJS="$LIBOBJS verrx.$ac_objext"
d21323 7
a21329 3
echo "$as_me:$LINENO: checking for vsyslog" >&5
echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
if test "${ac_cv_func_vsyslog+set}" = set; then
d21335 1
a21335 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vsyslog (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vsyslog ();
char (*f) ();

d21345 3
a21347 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
choke me
#else
f = vsyslog;
#endif
d21353 3
a21355 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21359 1
a21359 1
         { ac_try='test -s conftest$ac_exeext'
d21365 1
a21365 1
  ac_cv_func_vsyslog=yes
d21369 1
a21369 1
ac_cv_func_vsyslog=no
d21371 1
a21371 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21373 3
a21375 3
echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
if test $ac_cv_func_vsyslog = yes; then
d21377 2
a21378 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VSYSLOG 1
a21380 2
else
  LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
d21382 7
a21388 3
echo "$as_me:$LINENO: checking for vwarn" >&5
echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
if test "${ac_cv_func_vwarn+set}" = set; then
d21394 1
a21394 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarn ();
char (*f) ();

d21404 3
a21406 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarn) || defined (__stub___vwarn)
choke me
#else
f = vwarn;
#endif
d21412 3
a21414 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21418 1
a21418 1
         { ac_try='test -s conftest$ac_exeext'
d21424 1
a21424 1
  ac_cv_func_vwarn=yes
d21428 1
a21428 1
ac_cv_func_vwarn=no
d21430 1
a21430 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21432 3
a21434 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
echo "${ECHO_T}$ac_cv_func_vwarn" >&6
if test $ac_cv_func_vwarn = yes; then
d21436 2
a21437 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARN 1
a21439 2
else
  LIBOBJS="$LIBOBJS vwarn.$ac_objext"
d21441 7
a21447 3
echo "$as_me:$LINENO: checking for vwarnx" >&5
echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
if test "${ac_cv_func_vwarnx+set}" = set; then
d21453 1
a21453 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vwarnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char vwarnx ();
char (*f) ();

d21463 3
a21465 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
choke me
#else
f = vwarnx;
#endif
d21471 3
a21473 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21477 1
a21477 1
         { ac_try='test -s conftest$ac_exeext'
d21483 1
a21483 1
  ac_cv_func_vwarnx=yes
d21487 1
a21487 1
ac_cv_func_vwarnx=no
d21489 1
a21489 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21491 3
a21493 3
echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
if test $ac_cv_func_vwarnx = yes; then
d21495 2
a21496 2
cat >>confdefs.h <<_ACEOF
#define HAVE_VWARNX 1
a21498 2
else
  LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
d21500 8
a21507 3
echo "$as_me:$LINENO: checking for warn" >&5
echo $ECHO_N "checking for warn... $ECHO_C" >&6
if test "${ac_cv_func_warn+set}" = set; then
d21513 12
a21524 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warn (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
a21525 5
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warn ();
char (*f) ();

d21535 3
a21537 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warn) || defined (__stub___warn)
choke me
#else
f = warn;
#endif
d21543 3
a21545 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d21549 1
a21549 1
         { ac_try='test -s conftest$ac_exeext'
d21555 1
a21555 1
  ac_cv_func_warn=yes
d21559 1
a21559 1
ac_cv_func_warn=no
d21561 1
a21561 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d21563 3
a21565 3
echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
echo "${ECHO_T}$ac_cv_func_warn" >&6
if test $ac_cv_func_warn = yes; then
d21567 2
a21568 2
cat >>confdefs.h <<_ACEOF
#define HAVE_WARN 1
a21570 2
else
  LIBOBJS="$LIBOBJS warn.$ac_objext"
d21572 9
a21580 3
echo "$as_me:$LINENO: checking for warnx" >&5
echo $ECHO_N "checking for warnx... $ECHO_C" >&6
if test "${ac_cv_func_warnx+set}" = set; then
d21583 13
a21595 1
  cat >conftest.$ac_ext <<_ACEOF
a21597 11
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char warnx (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char warnx ();
char (*f) ();
d21608 1
a21608 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_warnx) || defined (__stub___warnx)
choke me
#else
f = warnx;
#endif

d21625 1
a21625 1
  ac_cv_func_warnx=yes
a21628 1
ac_cv_func_warnx=no
d21631 9
a21639 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
echo "${ECHO_T}$ac_cv_func_warnx" >&6
if test $ac_cv_func_warnx = yes; then
d21641 1
a21641 3
cat >>confdefs.h <<_ACEOF
#define HAVE_WARNX 1
_ACEOF
d21643 6
a21648 6
else
  LIBOBJS="$LIBOBJS warnx.$ac_objext"
fi
echo "$as_me:$LINENO: checking for writev" >&5
echo $ECHO_N "checking for writev... $ECHO_C" >&6
if test "${ac_cv_func_writev+set}" = set; then
d21655 1
a21655 1
    which can conflict with char writev (); below.  */
d21663 1
a21663 1
char writev ();
d21678 1
a21678 1
#if defined (__stub_writev) || defined (__stub___writev)
d21681 1
a21681 1
f = writev;
d21700 1
a21700 1
  ac_cv_func_writev=yes
d21704 1
a21704 1
ac_cv_func_writev=no
d21708 39
a21746 3
echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
echo "${ECHO_T}$ac_cv_func_writev" >&6
if test $ac_cv_func_writev = yes; then
d21748 2
a21749 2
cat >>confdefs.h <<_ACEOF
#define HAVE_WRITEV 1
d21752 7
a21758 3
else
  LIBOBJS="$LIBOBJS writev.$ac_objext"
fi
d21762 3
a21764 4
if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strndup_noproto+set}" = set; then
d21770 17
a21786 1
#include <string.h>
d21796 1
a21796 4
struct foo { int foo; } xx;
extern int strndup (struct foo*);
strndup(&xx);

d21813 1
a21813 1
  eval "ac_cv_func_strndup_noproto=yes"
d21817 1
a21817 1
eval "ac_cv_func_strndup_noproto=no"
d21821 4
a21824 3
echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
if test "$ac_cv_func_strndup_noproto" = yes; then
d21827 1
a21827 1
#define NEED_STRNDUP_PROTO 1
a21830 1
fi
d21832 6
a21837 4
if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
d21843 17
a21859 1
#include <string.h>
d21869 1
a21869 4
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);

d21886 1
a21886 1
  eval "ac_cv_func_strsep_noproto=yes"
d21890 1
a21890 1
eval "ac_cv_func_strsep_noproto=no"
d21894 4
a21897 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
if test "$ac_cv_func_strsep_noproto" = yes; then
d21900 1
a21900 1
#define NEED_STRSEP_PROTO 1
a21903 1
fi
d21905 6
a21910 4
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
d21916 17
a21932 1
#include <string.h>
d21942 1
a21942 4
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

d21959 1
a21959 1
  eval "ac_cv_func_strtok_r_noproto=yes"
d21963 1
a21963 1
eval "ac_cv_func_strtok_r_noproto=no"
d21967 4
a21970 3
echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
if test "$ac_cv_func_strtok_r_noproto" = yes; then
d21973 1
a21973 1
#define NEED_STRTOK_R_PROTO 1
a21976 1
fi
d21980 4
a21983 4
if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsvis_noproto+set}" = set; then
d21989 6
a21994 2
#ifdef HAVE_VIS_H
#include <vis.h>
d21996 1
d22006 1
a22006 4
struct foo { int foo; } xx;
extern int strsvis (struct foo*);
strsvis(&xx);

d22023 1
a22023 1
  eval "ac_cv_func_strsvis_noproto=yes"
d22027 1
a22027 1
eval "ac_cv_func_strsvis_noproto=no"
d22031 4
a22034 3
echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
if test "$ac_cv_func_strsvis_noproto" = yes; then
d22037 1
a22037 1
#define NEED_STRSVIS_PROTO 1
a22040 1
fi
d22042 6
a22047 4
if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strunvis_noproto+set}" = set; then
d22053 3
a22055 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22057 1
d22067 1
a22067 4
struct foo { int foo; } xx;
extern int strunvis (struct foo*);
strunvis(&xx);

d22084 1
a22084 1
  eval "ac_cv_func_strunvis_noproto=yes"
d22088 1
a22088 1
eval "ac_cv_func_strunvis_noproto=no"
d22092 4
a22095 3
echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
if test "$ac_cv_func_strunvis_noproto" = yes; then
d22098 1
a22098 1
#define NEED_STRUNVIS_PROTO 1
a22101 1
fi
d22103 7
a22109 4
if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvis_noproto+set}" = set; then
d22115 6
a22120 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22122 1
d22133 2
a22134 2
extern int strvis (struct foo*);
strvis(&xx);
d22152 1
a22152 1
  eval "ac_cv_func_strvis_noproto=yes"
d22156 1
a22156 1
eval "ac_cv_func_strvis_noproto=no"
d22160 3
a22162 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
if test "$ac_cv_func_strvis_noproto" = yes; then
d22165 1
a22165 1
#define NEED_STRVIS_PROTO 1
d22171 6
a22176 4
if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strvisx_noproto+set}" = set; then
d22179 2
a22180 1
  cat >conftest.$ac_ext <<_ACEOF
d22183 2
a22184 3
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
d22194 1
a22194 4
struct foo { int foo; } xx;
extern int strvisx (struct foo*);
strvisx(&xx);

d22199 3
a22201 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d22205 1
a22205 1
         { ac_try='test -s conftest.$ac_objext'
d22211 1
a22211 1
  eval "ac_cv_func_strvisx_noproto=yes"
d22215 1
a22215 1
eval "ac_cv_func_strvisx_noproto=no"
d22217 2
a22218 1
rm -f conftest.$ac_objext conftest.$ac_ext
a22219 3
echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
if test "$ac_cv_func_strvisx_noproto" = yes; then
d22221 7
a22227 2
cat >>confdefs.h <<\_ACEOF
#define NEED_STRVISX_PROTO 1
a22229 2
fi
fi
d22231 3
a22233 4
if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_svis_noproto+set}" = set; then
d22236 2
a22237 1
  cat >conftest.$ac_ext <<_ACEOF
d22240 5
a22244 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22246 1
d22256 1
a22256 4
struct foo { int foo; } xx;
extern int svis (struct foo*);
svis(&xx);

d22273 1
a22273 1
  eval "ac_cv_func_svis_noproto=yes"
d22277 1
a22277 1
eval "ac_cv_func_svis_noproto=no"
d22280 1
d22282 7
a22288 3
echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
if test "$ac_cv_func_svis_noproto" = yes; then
d22291 1
a22291 1
#define NEED_SVIS_PROTO 1
d22295 2
d22299 5
a22303 4
if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unvis_noproto+set}" = set; then
d22306 2
a22307 1
  cat >conftest.$ac_ext <<_ACEOF
d22310 2
a22311 3
#ifdef HAVE_VIS_H
#include <vis.h>
#endif
d22321 1
a22321 4
struct foo { int foo; } xx;
extern int unvis (struct foo*);
unvis(&xx);

d22326 3
a22328 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d22332 1
a22332 1
         { ac_try='test -s conftest.$ac_objext'
d22338 1
a22338 1
  eval "ac_cv_func_unvis_noproto=yes"
d22342 1
a22342 1
eval "ac_cv_func_unvis_noproto=no"
d22344 2
a22345 1
rm -f conftest.$ac_objext conftest.$ac_ext
a22346 3
echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
if test "$ac_cv_func_unvis_noproto" = yes; then
d22348 7
a22354 2
cat >>confdefs.h <<\_ACEOF
#define NEED_UNVIS_PROTO 1
a22356 2
fi
fi
d22358 3
a22360 4
if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vis_noproto+set}" = set; then
d22363 2
a22364 1
  cat >conftest.$ac_ext <<_ACEOF
d22367 2
a22368 2
#ifdef HAVE_VIS_H
#include <vis.h>
d22370 1
d22380 1
a22380 4
struct foo { int foo; } xx;
extern int vis (struct foo*);
vis(&xx);

d22397 1
a22397 1
  eval "ac_cv_func_vis_noproto=yes"
d22401 12
a22412 7
eval "ac_cv_func_vis_noproto=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
if test "$ac_cv_func_vis_noproto" = yes; then
d22415 1
a22415 1
#define NEED_VIS_PROTO 1
d22419 2
d22424 4
a22427 3
echo "$as_me:$LINENO: checking for inet_aton" >&5
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton+set}" = set; then
d22430 2
a22431 1
  cat >conftest.$ac_ext <<_ACEOF
d22434 2
a22435 12
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d22445 1
a22445 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton(0,0)
#endif

d22462 1
a22462 1
  eval "ac_cv_func_inet_aton=yes"
d22466 1
a22466 1
eval "ac_cv_func_inet_aton=no"
d22469 1
d22472 4
a22475 1
if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
d22478 1
a22478 1
#define HAVE_INET_ATON 1
a22480 7
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
fi
d22482 3
a22484 3
echo "$as_me:$LINENO: checking for inet_ntop" >&5
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
if test "${ac_cv_func_inet_ntop+set}" = set; then
d22487 2
a22488 1
  cat >conftest.$ac_ext <<_ACEOF
d22491 2
a22492 11
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d22494 1
d22504 1
a22504 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop(0, 0, 0, 0)
#endif

d22509 3
a22511 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d22515 1
a22515 1
         { ac_try='test -s conftest$ac_exeext'
d22521 1
a22521 1
  eval "ac_cv_func_inet_ntop=yes"
d22525 1
a22525 1
eval "ac_cv_func_inet_ntop=no"
d22527 2
a22528 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a22530 1
if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
d22532 8
a22539 2
cat >>confdefs.h <<_ACEOF
#define HAVE_INET_NTOP 1
a22541 6
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
d22544 8
a22551 3
echo "$as_me:$LINENO: checking for inet_pton" >&5
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
if test "${ac_cv_func_inet_pton+set}" = set; then
d22554 2
a22555 1
  cat >conftest.$ac_ext <<_ACEOF
d22558 2
a22559 12
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d22569 1
a22569 10

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton(0,0,0)
#endif

d22586 1
a22586 1
  eval "ac_cv_func_inet_pton=yes"
d22590 1
a22590 1
eval "ac_cv_func_inet_pton=no"
d22593 1
d22596 4
a22599 1
if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
d22602 1
a22602 1
#define HAVE_INET_PTON 1
a22604 7
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
fi
d22606 3
a22608 5


echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
d22615 4
a22618 2
#include <sys/types.h>
#include <sys/socket.h>
d22628 1
a22628 1
struct sockaddr x; x.sa_len;
d22645 1
a22645 1
  ac_cv_type_struct_sockaddr_sa_len=yes
d22649 1
a22649 1
ac_cv_type_struct_sockaddr_sa_len=no
d22652 1
a22653 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
d22656 6
d22663 1
a22663 1
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
d22666 2
d22673 3
a22675 5
if test "$ac_cv_func_getnameinfo" = "yes"; then

echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
d22678 2
a22679 6
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
d22682 11
a22692 6
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

d22694 1
a22694 1
main(int argc, char **argv)
d22696 3
a22698 11
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
	      NULL, 0, 0);
a22699 1

d22701 3
a22703 3
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d22706 2
a22707 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d22713 1
a22713 1
  ac_cv_func_getnameinfo_broken=no
d22715 1
a22715 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d22717 1
a22717 2
( exit $ac_status )
ac_cv_func_getnameinfo_broken=yes
d22719 2
a22720 8
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
  if test "$ac_cv_func_getnameinfo_broken" = yes; then
	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
  fi
a22722 1
if test "$ac_cv_func_getaddrinfo" = "yes"; then
a22723 17
echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
a22724 12
int
main(int argc, char **argv)
{
	struct addrinfo hints, *ai;
	memset(&hints, 0, sizeof(hints));
	hints.ai_flags = AI_PASSIVE;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_family = PF_UNSPEC;
	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
		return 1;
	return 0;
}
d22726 6
d22733 1
a22733 28
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getaddrinfo_numserv=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_getaddrinfo_numserv=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
  fi
d22737 4
a22740 4
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
d22743 2
a22744 1
  cat >conftest.$ac_ext <<_ACEOF
d22748 4
d22761 1
a22761 4
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);

d22778 1
a22778 1
  eval "ac_cv_func_setenv_noproto=yes"
d22782 1
a22782 1
eval "ac_cv_func_setenv_noproto=no"
d22785 1
d22787 7
a22793 3
echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
if test "$ac_cv_func_setenv_noproto" = yes; then
d22796 1
a22796 1
#define NEED_SETENV_PROTO 1
a22799 1
fi
d22802 4
a22805 4
if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
d22808 2
a22809 1
  cat >conftest.$ac_ext <<_ACEOF
d22813 4
d22826 1
a22826 4
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);

d22843 1
a22843 1
  eval "ac_cv_func_unsetenv_noproto=yes"
d22847 1
a22847 1
eval "ac_cv_func_unsetenv_noproto=no"
d22850 1
d22852 7
a22858 3
echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
if test "$ac_cv_func_unsetenv_noproto" = yes; then
d22861 1
a22861 1
#define NEED_UNSETENV_PROTO 1
a22864 1
fi
d22867 4
a22870 4
if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
d22873 2
a22874 1
  cat >conftest.$ac_ext <<_ACEOF
d22877 2
d22880 2
d22891 1
a22891 4
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

d22908 1
a22908 1
  eval "ac_cv_func_gethostname_noproto=yes"
d22912 1
a22912 1
eval "ac_cv_func_gethostname_noproto=no"
d22915 1
d22917 7
a22923 3
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
if test "$ac_cv_func_gethostname_noproto" = yes; then
d22926 1
a22926 1
#define NEED_GETHOSTNAME_PROTO 1
a22929 1
fi
d22932 5
a22936 4
if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
d22939 2
a22940 1
  cat >conftest.$ac_ext <<_ACEOF
d22943 2
a22944 1
#include <unistd.h>
d22954 1
a22954 4
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

d22971 1
a22971 1
  eval "ac_cv_func_mkstemp_noproto=yes"
d22975 1
a22975 1
eval "ac_cv_func_mkstemp_noproto=no"
d22978 9
a22986 4
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
if test "$ac_cv_func_mkstemp_noproto" = yes; then
d22989 1
a22989 1
#define NEED_MKSTEMP_PROTO 1
a22992 1
fi
d22995 7
a23001 4
if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
d23004 2
a23005 1
  cat >conftest.$ac_ext <<_ACEOF
d23008 1
a23008 1
#include <unistd.h>
d23018 1
a23018 4
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);

d23035 1
a23035 1
  eval "ac_cv_func_getusershell_noproto=yes"
d23039 1
a23039 1
eval "ac_cv_func_getusershell_noproto=no"
d23043 4
a23046 3
echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
if test "$ac_cv_func_getusershell_noproto" = yes; then
d23049 1
a23049 1
#define NEED_GETUSERSHELL_PROTO 1
d23052 1
a23052 1
fi
d23057 4
a23060 4
if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
d23063 2
a23064 1
  cat >conftest.$ac_ext <<_ACEOF
d23067 1
a23067 13

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
d23077 1
a23077 4
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

d23094 1
a23094 1
  eval "ac_cv_func_inet_aton_noproto=yes"
d23098 1
a23098 1
eval "ac_cv_func_inet_aton_noproto=no"
d23102 4
a23105 3
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
if test "$ac_cv_func_inet_aton_noproto" = yes; then
d23108 1
a23108 1
#define NEED_INET_ATON_PROTO 1
d23111 1
a23111 1
fi
d23118 3
a23120 3
echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
d23124 1
a23124 12
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" crypt; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d23127 2
a23128 1

d23138 1
a23138 1
crypt()
d23155 1
a23155 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d23159 1
a23161 4
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
fi
d23165 4
d23170 3
a23172 1
eval "ac_res=\$ac_cv_funclib_crypt"
a23173 1
if false; then
d23175 3
a23177 6
for ac_func in crypt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
d23180 2
a23181 1
  cat >conftest.$ac_ext <<_ACEOF
d23184 2
a23185 12
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

d23195 1
a23195 9
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

d23200 3
a23202 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23206 1
a23206 1
         { ac_try='test -s conftest$ac_exeext'
d23212 1
a23212 1
  eval "$as_ac_var=yes"
d23216 1
a23216 1
eval "$as_ac_var=no"
d23218 2
a23219 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a23220 6
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a23221 2
fi
done
a23222 5
fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"
a23223 7
case "$ac_res" in
	yes)
	eval "ac_cv_func_crypt=yes"
	eval "LIB_crypt="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d23225 3
a23227 15
	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	;;
	*)
	eval "ac_cv_func_crypt=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF
d23229 2
a23230 2
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
d23233 1
a23233 4
	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
	;;
esac
d23236 1
d23239 3
a23241 5


echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
d23244 2
a23245 1
  cat >conftest.$ac_ext <<_ACEOF
d23248 2
a23249 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d23259 1
a23259 1
struct hostent *gethostbyname(const char *);
d23264 3
a23266 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d23270 1
a23270 1
         { ac_try='test -s conftest.$ac_objext'
d23276 1
a23276 1
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
d23280 1
a23280 1
eval "ac_cv_func_gethostbyname_proto_compat=no"
d23282 2
a23283 1
rm -f conftest.$ac_objext conftest.$ac_ext
a23284 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
d23286 4
a23289 1
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
d23291 2
a23292 2
cat >>confdefs.h <<\_ACEOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
a23294 1
fi
d23296 3
a23298 6



echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
d23301 2
a23302 1
  cat >conftest.$ac_ext <<_ACEOF
d23305 2
a23306 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d23316 1
a23316 1
struct hostent *gethostbyaddr(const void *, size_t, int);
d23333 1
a23333 1
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
d23337 1
a23337 1
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d23340 1
a23341 2
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
d23343 6
a23348 1
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
d23351 1
a23351 1
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
d23357 3
d23362 4
a23365 3
echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
a23370 2

#ifdef HAVE_SYS_TYPES_H
d23372 3
a23375 1
#ifdef HAVE_SYS_SOCKET_H
a23376 11
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

d23386 1
a23386 1
struct servent *getservbyname(const char *, const char *);
d23403 1
a23403 1
  eval "ac_cv_func_getservbyname_proto_compat=yes"
d23407 1
a23407 1
eval "ac_cv_func_getservbyname_proto_compat=no"
d23411 9
a23419 17
echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
_ACEOF

fi




echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
d23425 1
a23425 8

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

d23435 4
a23438 1
int getsockname(int, struct sockaddr*, socklen_t*);
d23455 1
a23455 1
  eval "ac_cv_func_getsockname_proto_compat=yes"
d23459 1
a23459 1
eval "ac_cv_func_getsockname_proto_compat=no"
d23463 10
a23472 2
echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
d23474 1
a23474 1
if test "$ac_cv_func_getsockname_proto_compat" = yes; then
d23476 2
a23477 2
cat >>confdefs.h <<\_ACEOF
#define GETSOCKNAME_PROTO_COMPATIBLE 1
d23484 4
a23487 4

echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
d23493 4
a23496 3

#ifdef HAVE_SYSLOG_H
#include <syslog.h>
d23498 1
a23498 1

d23508 1
a23508 1
void openlog(const char *, int, int);
d23525 1
a23525 1
  eval "ac_cv_func_openlog_proto_compat=yes"
d23529 1
a23529 1
eval "ac_cv_func_openlog_proto_compat=no"
d23533 9
a23541 18
echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6

if test "$ac_cv_func_openlog_proto_compat" = yes; then

cat >>confdefs.h <<\_ACEOF
#define OPENLOG_PROTO_COMPATIBLE 1
_ACEOF

fi




if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
d23547 1
a23547 8

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

d23557 4
a23560 4
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

d23577 1
a23577 1
  eval "ac_cv_func_crypt_noproto=yes"
d23581 13
a23593 1
eval "ac_cv_func_crypt_noproto=no"
d23595 1
a23595 1
rm -f conftest.$ac_objext conftest.$ac_ext
a23596 3
echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
if test "$ac_cv_func_crypt_noproto" = yes; then
d23598 2
a23599 2
cat >>confdefs.h <<\_ACEOF
#define NEED_CRYPT_PROTO 1
a23602 1
fi
d23606 4
a23609 4

echo "$as_me:$LINENO: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
d23612 1
a23612 2

cat >conftest.$ac_ext <<_ACEOF
d23615 6
a23620 2
extern int h_errno;
int foo() { return h_errno; }
d23630 1
a23630 1
foo()
d23635 3
a23637 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23641 1
a23641 1
         { ac_try='test -s conftest$ac_exeext'
d23647 1
a23647 1
  ac_cv_var_h_errno=yes
d23651 1
a23651 1
ac_cv_var_h_errno=no
d23653 1
a23653 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d23655 1
a23655 2

ac_foo=`eval echo \\$ac_cv_var_h_errno`
d23659 5
a23663 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRNO 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
d23666 1
a23666 2

cat >conftest.$ac_ext <<_ACEOF
d23669 1
a23669 7
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
d23679 4
a23682 1
h_errno.foo = 1;
d23699 1
a23699 1
  eval "ac_cv_var_h_errno_declaration=no"
d23703 1
a23703 1
eval "ac_cv_var_h_errno_declaration=yes"
a23705 1

d23707 3
d23711 3
d23716 1
d23718 1
a23718 3
echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
d23720 2
a23721 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRNO_DECLARATION 1
a23726 1
fi
d23728 4
a23731 5


echo "$as_me:$LINENO: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
d23734 1
a23734 2

cat >conftest.$ac_ext <<_ACEOF
d23737 6
a23742 2
extern int h_errlist;
int foo() { return h_errlist; }
d23752 1
a23752 1
foo()
d23757 3
a23759 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23763 1
a23763 1
         { ac_try='test -s conftest$ac_exeext'
d23769 1
a23769 1
  ac_cv_var_h_errlist=yes
d23773 1
a23773 1
ac_cv_var_h_errlist=no
d23775 1
a23775 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d23777 1
a23777 2

ac_foo=`eval echo \\$ac_cv_var_h_errlist`
d23781 5
a23785 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_ERRLIST 1
_ACEOF


echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
d23788 1
a23788 2

cat >conftest.$ac_ext <<_ACEOF
d23791 1
a23791 4
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
d23801 4
a23804 1
h_errlist.foo = 1;
d23821 1
a23821 1
  eval "ac_cv_var_h_errlist_declaration=no"
d23825 1
a23825 1
eval "ac_cv_var_h_errlist_declaration=yes"
a23827 1

d23829 3
d23833 3
d23838 1
d23840 1
a23840 3
echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
d23842 2
a23843 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_H_ERRLIST_DECLARATION 1
a23848 1
fi
d23850 4
a23853 5


echo "$as_me:$LINENO: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
d23856 1
a23856 2

cat >conftest.$ac_ext <<_ACEOF
d23859 6
a23864 2
extern int h_nerr;
int foo() { return h_nerr; }
d23874 1
a23874 1
foo()
d23879 3
a23881 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d23885 1
a23885 1
         { ac_try='test -s conftest$ac_exeext'
d23891 1
a23891 1
  ac_cv_var_h_nerr=yes
d23895 1
a23895 1
ac_cv_var_h_nerr=no
d23897 1
a23897 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d23899 1
a23899 2

ac_foo=`eval echo \\$ac_cv_var_h_nerr`
d23903 5
a23907 9

cat >>confdefs.h <<_ACEOF
#define HAVE_H_NERR 1
_ACEOF


echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
d23910 1
a23910 2

cat >conftest.$ac_ext <<_ACEOF
d23913 1
a23913 4
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
d23923 4
a23926 1
h_nerr.foo = 1;
d23943 1
a23943 1
  eval "ac_cv_var_h_nerr_declaration=no"
d23947 1
a23947 1
eval "ac_cv_var_h_nerr_declaration=yes"
a23949 1

d23951 3
d23955 3
d23960 1
d23962 1
a23962 3
echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
d23964 2
a23965 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_H_NERR_DECLARATION 1
a23970 1
fi
d23972 4
a23975 5


echo "$as_me:$LINENO: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
d23978 1
a23978 2

cat >conftest.$ac_ext <<_ACEOF
d23981 6
a23986 2
extern int __progname;
int foo() { return __progname; }
d23996 1
a23996 1
foo()
d24001 3
a24003 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d24007 1
a24007 1
         { ac_try='test -s conftest$ac_exeext'
d24013 1
a24013 1
  ac_cv_var___progname=yes
d24017 1
a24017 1
ac_cv_var___progname=no
d24019 1
a24019 2
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

d24021 1
a24021 2

ac_foo=`eval echo \\$ac_cv_var___progname`
d24025 5
a24029 9

cat >>confdefs.h <<_ACEOF
#define HAVE___PROGNAME 1
_ACEOF


echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
d24032 1
a24032 2

cat >conftest.$ac_ext <<_ACEOF
d24035 1
a24035 4
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
d24045 4
a24048 1
__progname.foo = 1;
d24065 1
a24065 1
  eval "ac_cv_var___progname_declaration=no"
d24069 1
a24069 1
eval "ac_cv_var___progname_declaration=yes"
a24071 1

d24073 3
d24077 3
d24082 1
d24084 1
a24084 3
echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
d24086 2
a24087 2
cat >>confdefs.h <<\_ACEOF
#define HAVE___PROGNAME_DECLARATION 1
a24092 1
fi
d24094 4
a24097 5


echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
d24100 1
a24100 2

cat >conftest.$ac_ext <<_ACEOF
d24103 2
d24106 1
a24106 2
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d24108 4
a24111 1
extern struct { int foo; } optarg;
d24121 1
a24121 1
optarg.foo = 1;
d24138 1
a24138 1
  eval "ac_cv_var_optarg_declaration=no"
d24142 1
a24142 1
eval "ac_cv_var_optarg_declaration=yes"
a24144 1

d24146 9
a24154 19




echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTARG_DECLARATION 1
_ACEOF

fi



echo "$as_me:$LINENO: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
d24157 1
a24157 2

cat >conftest.$ac_ext <<_ACEOF
d24160 1
a24160 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
d24170 4
a24173 1
optind.foo = 1;
d24190 1
a24190 1
  eval "ac_cv_var_optind_declaration=no"
d24194 1
a24194 1
eval "ac_cv_var_optind_declaration=yes"
a24196 1

d24198 3
d24202 3
d24207 1
d24209 1
a24209 3
echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
d24211 2
a24212 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTIND_DECLARATION 1
d24219 4
a24222 3
echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
d24225 1
a24225 2

cat >conftest.$ac_ext <<_ACEOF
d24228 2
d24231 1
a24231 2
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d24233 4
a24236 1
extern struct { int foo; } opterr;
d24246 1
a24246 1
opterr.foo = 1;
d24263 1
a24263 1
  eval "ac_cv_var_opterr_declaration=no"
d24267 1
a24267 1
eval "ac_cv_var_opterr_declaration=yes"
a24269 1

d24271 9
a24279 19




echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTERR_DECLARATION 1
_ACEOF

fi



echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
d24282 1
a24282 2

cat >conftest.$ac_ext <<_ACEOF
d24285 1
a24285 5
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
d24295 4
a24298 1
optopt.foo = 1;
d24315 1
a24315 1
  eval "ac_cv_var_optopt_declaration=no"
d24319 1
a24319 1
eval "ac_cv_var_optopt_declaration=yes"
a24321 1

d24323 3
d24327 3
d24332 1
d24334 1
a24334 3
echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
d24336 2
a24337 2
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPTOPT_DECLARATION 1
d24345 3
a24347 3
echo "$as_me:$LINENO: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
d24351 2
d24356 2
a24357 15
#include <stdlib.h>
extern struct { int foo; } environ;
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
environ.foo = 1;
  ;
  return 0;
}
d24359 3
a24361 17
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "ac_cv_var_environ_declaration=no"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_environ_declaration=yes"
d24363 2
a24364 1
rm -f conftest.$ac_objext conftest.$ac_ext
d24368 1
d24370 3
d24374 7
d24382 3
a24384 3
echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
d24387 1
a24387 1
#define HAVE_ENVIRON_DECLARATION 1
d24391 14
d24406 2
d24413 3
a24415 3
echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
d24422 4
a24425 1
#include <time.h>
d24435 1
a24435 1
struct tm x; x.tm_gmtoff;
d24452 1
a24452 1
  ac_cv_type_struct_tm_tm_gmtoff=yes
d24456 1
a24456 1
ac_cv_type_struct_tm_tm_gmtoff=no
d24459 1
a24460 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
d24462 4
d24468 1
a24468 1
#define HAVE_STRUCT_TM_TM_GMTOFF 1
d24471 28
d24500 9
d24510 12
d24523 30
d24554 3
d24558 2
d24561 8
a24568 5
echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d24570 8
a24577 1
cat >conftest.$ac_ext <<_ACEOF
d24580 2
a24581 1
#include <time.h>
d24591 1
a24591 1
struct tm x; x.tm_zone;
d24596 3
a24598 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d24602 1
a24602 1
         { ac_try='test -s conftest.$ac_objext'
d24608 6
a24613 1
  ac_cv_type_struct_tm_tm_zone=yes
a24616 1
ac_cv_type_struct_tm_tm_zone=no
d24618 7
a24624 25
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then


cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF


fi





echo "$as_me:$LINENO: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
d24627 2
a24628 2
extern int timezone;
int foo() { return timezone; }
d24638 1
a24638 1
foo()
d24643 3
a24645 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d24649 1
a24649 1
         { ac_try='test -s conftest$ac_exeext'
d24655 1
a24655 1
  ac_cv_var_timezone=yes
a24658 1
ac_cv_var_timezone=no
d24660 5
a24664 21
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEZONE 1
_ACEOF


echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
d24667 2
a24668 2
#include <time.h>
extern struct { int foo; } timezone;
d24678 1
a24678 1
timezone.foo = 1;
d24683 3
a24685 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d24689 1
a24689 1
         { ac_try='test -s conftest.$ac_objext'
d24695 1
a24695 1
  eval "ac_cv_var_timezone_declaration=no"
a24698 1
eval "ac_cv_var_timezone_declaration=yes"
d24700 32
a24731 1
rm -f conftest.$ac_objext conftest.$ac_ext
d24733 2
d24739 3
d24743 1
a24743 3
echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
d24745 11
a24755 3
cat >>confdefs.h <<\_ACEOF
#define HAVE_TIMEZONE_DECLARATION 1
_ACEOF
d24757 9
d24767 36
d24804 6
d24811 2
d24815 2
d24818 8
a24825 5
echo "$as_me:$LINENO: checking for altzone" >&5
echo $ECHO_N "checking for altzone... $ECHO_C" >&6
if test "${ac_cv_var_altzone+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d24827 8
a24834 1
cat >conftest.$ac_ext <<_ACEOF
d24837 1
a24837 2
extern int altzone;
int foo() { return altzone; }
d24847 1
a24847 1
foo()
a24863 18
  ac_cv_var_altzone=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_altzone=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

ac_foo=`eval echo \\$ac_cv_var_altzone`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_ALTZONE 1
_ACEOF
d24865 5
a24869 5

echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_altzone_declaration+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d24871 10
a24880 2

cat >conftest.$ac_ext <<_ACEOF
d24883 1
a24883 2
#include <time.h>
extern struct { int foo; } altzone;
d24893 1
a24893 1
altzone.foo = 1;
d24910 1
a24910 1
  eval "ac_cv_var_altzone_declaration=no"
a24913 1
eval "ac_cv_var_altzone_declaration=yes"
d24916 4
a24919 29

fi




echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ALTZONE_DECLARATION 1
_ACEOF

fi


fi




cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
d24922 1
a24922 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d24932 1
a24932 1
sa_family_t foo;
d24937 3
a24939 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d24943 1
a24943 1
         { ac_try='test -s conftest.$ac_objext'
d24949 1
a24949 1
  eval "ac_cv_type_$cv=yes"
a24952 1
eval "ac_cv_type_$cv=no"
d24954 27
a24980 1
rm -f conftest.$ac_objext conftest.$ac_ext
d24982 16
a24997 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
d25003 1
a25003 1
$ac_includes_default
d25013 3
a25015 4
if ((sa_family_t *) 0)
  return 0;
if (sizeof (sa_family_t))
  return 0;
d25032 1
a25032 1
  ac_cv_type_sa_family_t=yes
d25036 1
a25036 1
ac_cv_type_sa_family_t=no
a25038 9
fi
echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SA_FAMILY_T 1
_ACEOF

d25041 3
d25045 2
a25046 4
fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25049 1
a25049 1
fi
d25052 3
a25054 5

cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25060 1
a25060 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d25070 2
a25071 1
socklen_t foo;
d25088 1
a25088 1
  eval "ac_cv_type_$cv=yes"
d25092 1
a25092 1
eval "ac_cv_type_$cv=no"
d25095 1
d25097 17
a25113 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
d25119 1
a25119 1
$ac_includes_default
d25129 2
a25130 4
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
d25147 1
a25147 1
  ac_cv_type_socklen_t=yes
d25151 1
a25151 1
ac_cv_type_socklen_t=no
d25154 1
d25156 3
a25158 3
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
d25160 2
a25161 2
cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
d25164 1
a25165 9
fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi
d25169 3
a25171 4
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25174 13
a25186 1
  cat >conftest.$ac_ext <<_ACEOF
d25189 1
a25189 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d25199 1
a25199 1
struct sockaddr foo;
d25204 3
a25206 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25210 1
a25210 1
         { ac_try='test -s conftest.$ac_objext'
d25216 1
a25216 1
  eval "ac_cv_type_$cv=yes"
a25219 1
eval "ac_cv_type_$cv=no"
d25221 6
a25226 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25228 4
a25231 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25233 7
a25239 3
	echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
d25245 12
a25256 1
$ac_includes_default
d25266 9
a25274 4
if ((struct sockaddr *) 0)
  return 0;
if (sizeof (struct sockaddr))
  return 0;
d25279 3
a25281 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25285 1
a25285 1
         { ac_try='test -s conftest.$ac_objext'
d25291 1
a25291 1
  ac_cv_type_struct_sockaddr=yes
d25295 1
a25295 1
ac_cv_type_struct_sockaddr=no
d25297 1
a25297 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25299 5
a25303 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR 1
d25306 2
d25310 12
d25323 15
a25337 1
fi
d25339 2
a25340 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25343 8
d25355 5
a25359 4
cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25362 13
a25374 1
  cat >conftest.$ac_ext <<_ACEOF
d25377 1
a25377 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
d25387 1
a25387 1
struct sockaddr_storage foo;
d25392 3
a25394 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25398 1
a25398 1
         { ac_try='test -s conftest.$ac_objext'
d25404 1
a25404 1
  eval "ac_cv_type_$cv=yes"
a25407 1
eval "ac_cv_type_$cv=no"
d25409 6
a25414 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25416 4
a25419 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25421 7
a25427 3
	echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
d25433 12
a25444 1
$ac_includes_default
d25454 9
a25462 4
if ((struct sockaddr_storage *) 0)
  return 0;
if (sizeof (struct sockaddr_storage))
  return 0;
d25466 4
a25469 4
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25473 1
a25473 1
         { ac_try='test -s conftest.$ac_objext'
d25479 1
a25479 1
  ac_cv_type_struct_sockaddr_storage=yes
d25483 1
a25483 1
ac_cv_type_struct_sockaddr_storage=no
d25485 1
a25485 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25487 5
a25491 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
d25494 2
d25498 12
d25511 15
a25525 1
fi
d25527 2
a25528 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25531 8
d25543 5
a25547 4
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25550 13
a25562 1
  cat >conftest.$ac_ext <<_ACEOF
d25565 1
a25565 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
d25575 1
a25575 1
struct addrinfo foo;
d25580 3
a25582 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25586 1
a25586 1
         { ac_try='test -s conftest.$ac_objext'
d25592 1
a25592 1
  eval "ac_cv_type_$cv=yes"
a25595 1
eval "ac_cv_type_$cv=no"
d25597 6
a25602 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25604 4
a25607 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25609 7
a25615 3
	echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
d25621 12
a25632 1
$ac_includes_default
d25642 9
a25650 4
if ((struct addrinfo *) 0)
  return 0;
if (sizeof (struct addrinfo))
  return 0;
d25655 3
a25657 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25661 1
a25661 1
         { ac_try='test -s conftest.$ac_objext'
d25667 1
a25667 1
  ac_cv_type_struct_addrinfo=yes
d25671 1
a25671 1
ac_cv_type_struct_addrinfo=no
d25673 1
a25673 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25675 5
a25679 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_ADDRINFO 1
d25682 2
d25686 12
d25699 15
a25713 1
fi
d25715 2
a25716 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25719 8
d25731 5
a25735 4
cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25738 13
a25750 1
  cat >conftest.$ac_ext <<_ACEOF
d25753 1
a25753 6
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <ifaddrs.h>
d25763 1
a25763 1
struct ifaddrs foo;
d25768 3
a25770 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25774 1
a25774 1
         { ac_try='test -s conftest.$ac_objext'
d25780 1
a25780 1
  eval "ac_cv_type_$cv=yes"
a25783 1
eval "ac_cv_type_$cv=no"
d25785 6
a25790 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25792 4
a25795 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25797 7
a25803 3
	echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
d25809 12
a25820 1
$ac_includes_default
d25830 9
a25838 4
if ((struct ifaddrs *) 0)
  return 0;
if (sizeof (struct ifaddrs))
  return 0;
d25843 3
a25845 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25849 1
a25849 1
         { ac_try='test -s conftest.$ac_objext'
d25855 1
a25855 1
  ac_cv_type_struct_ifaddrs=yes
d25859 1
a25859 1
ac_cv_type_struct_ifaddrs=no
d25861 1
a25861 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25863 5
a25867 6
echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
if test $ac_cv_type_struct_ifaddrs = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFADDRS 1
d25870 2
d25874 12
d25887 15
a25901 1
fi
d25903 2
a25904 2
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
d25907 8
d25919 7
a25925 4
cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d25928 13
a25940 1
  cat >conftest.$ac_ext <<_ACEOF
a25942 8
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/uio.h>
d25953 1
a25953 1
struct iovec foo;
d25958 3
a25960 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d25964 1
a25964 1
         { ac_try='test -s conftest.$ac_objext'
d25970 1
a25970 1
  eval "ac_cv_type_$cv=yes"
a25973 1
eval "ac_cv_type_$cv=no"
d25975 6
a25980 1
rm -f conftest.$ac_objext conftest.$ac_ext
d25982 4
a25985 5
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
d25987 7
a25993 3
	echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
if test "${ac_cv_type_struct_iovec+set}" = set; then
d25999 12
a26010 1
$ac_includes_default
d26020 9
a26028 4
if ((struct iovec *) 0)
  return 0;
if (sizeof (struct iovec))
  return 0;
d26033 3
a26035 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
d26039 1
a26039 1
         { ac_try='test -s conftest.$ac_objext'
d26045 1
a26045 1
  ac_cv_type_struct_iovec=yes
d26049 14
a26062 1
ac_cv_type_struct_iovec=no
d26064 4
a26067 5
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
if test $ac_cv_type_struct_iovec = yes; then
d26069 6
a26074 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IOVEC 1
d26077 15
d26093 3
a26095 1
fi
d26097 4
a26100 1
fi
a26101 3
cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d26103 2
d26109 3
a26111 4
cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
d26117 2
a26118 9
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

#include <sys/types.h>
#include <sys/socket.h>

d26128 2
a26129 1
struct msghdr foo;
d26146 1
a26146 1
  eval "ac_cv_type_$cv=yes"
d26150 1
a26150 1
eval "ac_cv_type_$cv=no"
d26153 1
d26155 12
a26166 9
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
if test "${ac_cv_type_struct_msghdr+set}" = set; then
d26172 4
a26175 1
$ac_includes_default
d26185 1
a26185 4
if ((struct msghdr *) 0)
  return 0;
if (sizeof (struct msghdr))
  return 0;
d26202 1
a26202 1
  ac_cv_type_struct_msghdr=yes
d26206 1
a26206 1
ac_cv_type_struct_msghdr=no
d26209 1
d26211 3
a26213 3
echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
if test $ac_cv_type_struct_msghdr = yes; then
d26215 2
a26216 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_MSGHDR 1
d26219 1
d26221 7
a26229 5
fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF
d26231 6
d26241 3
a26243 5

echo "$as_me:$LINENO: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d26245 3
a26248 6
ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$i>
a26249 7
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  ac_cv_struct_winsize=yes; break
fi
rm -f conftest*
done
d26251 6
a26258 13
if test "$ac_cv_struct_winsize" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_WINSIZE 1
_ACEOF

fi
echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>
a26259 3
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then
d26262 1
a26262 1
#define HAVE_WS_XPIXEL 1
d26265 3
a26267 2
fi
rm -f conftest*
d26269 2
a26270 8
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <termios.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then
d26273 1
a26273 1
#define HAVE_WS_YPIXEL 1
a26276 1
rm -f conftest*
d26279 3
a26281 7



echo "$as_me:$LINENO: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d26283 2
a26284 39

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct spwd foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_struct_spwd=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
a26285 1
rm -f conftest.$ac_objext conftest.$ac_ext
a26286 10
fi

echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6

if test "$ac_cv_struct_spwd" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_SPWD 1
_ACEOF
d26288 9
a26300 4
LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"


LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
a26361 13
# Check whether --enable-mmap or --disable-mmap was given.
if test "${enable_mmap+set}" = set; then
  enableval="$enable_mmap"

fi;
if test "$enable_mmap" = "no"; then

cat >>confdefs.h <<\_ACEOF
#define NO_MMAP 1
_ACEOF

fi

d26739 1
a26739 1
			LIB_readline="-L$lres -lreadline "
d26989 1
a26989 1
			LIB_hesiod="-L$lres -lhesiod "
a30270 2


a30283 1
	netgroup.h				\
a30298 1
	sys/mman.h				\
d31281 2
a31282 362
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done




for ac_header in stdlib.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_func in getpagesize
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !STDC_HEADERS && !HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    exit (1);
  if (write (fd, data, pagesize) != pagesize)
    exit (1);
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    exit (1);
  if (read (fd, data3, pagesize) != pagesize)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      exit (1);
  close (fd);
  exit (0);
d31285 1
a31285 1
rm -f conftest$ac_exeext
d31290 2
a31291 1
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
d31297 1
a31297 1
  ac_cv_func_mmap_fixed_mapped=yes
d31299 1
a31299 2
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
d31301 1
a31301 2
( exit $ac_status )
ac_cv_func_mmap_fixed_mapped=no
d31303 1
a31303 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d31305 5
a31309 7
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
d31313 1
a31313 1
rm -f conftest.mmap
d33187 428
a34234 1
z='sia afskauthlib'
d34236 1
a34236 3
for i in $z; do
case $i in
sia)
d34240 1
a34240 2
;;
pam)
d34251 1
a34251 2
;;
afskauthlib)
d34255 2
a34256 5
;;
esac
done
if test "$LIB_AUTH_SUBDIRS"; then
	echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
a34257 4
else
	echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
fi
a34427 35
if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB4\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KRB5\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"DCE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
d34484 28
d34575 7
a35182 30
s,@@INCLUDE_openldap@@,$INCLUDE_openldap,;t t
s,@@LIB_openldap@@,$LIB_openldap,;t t
s,@@INCLUDE_krb4@@,$INCLUDE_krb4,;t t
s,@@LIB_krb4@@,$LIB_krb4,;t t
s,@@EXTRA_LIB45@@,$EXTRA_LIB45,;t t
s,@@LIB_krb_enable_debug@@,$LIB_krb_enable_debug,;t t
s,@@LIB_krb_disable_debug@@,$LIB_krb_disable_debug,;t t
s,@@LIB_krb_get_our_ip_for_realm@@,$LIB_krb_get_our_ip_for_realm,;t t
s,@@LIB_krb_kdctimeofday@@,$LIB_krb_kdctimeofday,;t t
s,@@LIB_krb_get_kdc_time_diff@@,$LIB_krb_get_kdc_time_diff,;t t
s,@@KRB4_TRUE@@,$KRB4_TRUE,;t t
s,@@KRB4_FALSE@@,$KRB4_FALSE,;t t
s,@@KRB5_TRUE@@,$KRB5_TRUE,;t t
s,@@KRB5_FALSE@@,$KRB5_FALSE,;t t
s,@@do_roken_rename_TRUE@@,$do_roken_rename_TRUE,;t t
s,@@do_roken_rename_FALSE@@,$do_roken_rename_FALSE,;t t
s,@@LIB_kdb@@,$LIB_kdb,;t t
s,@@HAVE_OPENSSL_TRUE@@,$HAVE_OPENSSL_TRUE,;t t
s,@@HAVE_OPENSSL_FALSE@@,$HAVE_OPENSSL_FALSE,;t t
s,@@DIR_des@@,$DIR_des,;t t
s,@@INCLUDE_des@@,$INCLUDE_des,;t t
s,@@LIB_des@@,$LIB_des,;t t
s,@@LIB_des_a@@,$LIB_des_a,;t t
s,@@LIB_des_so@@,$LIB_des_so,;t t
s,@@LIB_des_appl@@,$LIB_des_appl,;t t
s,@@DCE_TRUE@@,$DCE_TRUE,;t t
s,@@DCE_FALSE@@,$DCE_FALSE,;t t
s,@@dpagaix_cflags@@,$dpagaix_cflags,;t t
s,@@dpagaix_ldadd@@,$dpagaix_ldadd,;t t
s,@@dpagaix_ldflags@@,$dpagaix_ldflags,;t t
a35207 1
s,@@LIB_res_nsearch@@,$LIB_res_nsearch,;t t
d35226 22
d35291 8
@


1.1.1.10
log
@Import of Heimdal 0.5.1.

Approved by:	re
@
text
@d2 1
a2 1
# From configure.in Revision: 1.325.2.2 .
d4 1
a4 1
# Generated by GNU Autoconf 2.53 for Heimdal 0.5.1.
d419 2
a420 2
PACKAGE_VERSION='0.5.1'
PACKAGE_STRING='Heimdal 0.5.1'
d926 1
a926 1
\`configure' configures Heimdal 0.5.1 to adapt to many kinds of systems.
d996 1
a996 1
     short | recursive ) echo "Configuration of Heimdal 0.5.1:";;
d1130 1
a1130 1
Heimdal configure 0.5.1
d1145 1
a1145 1
It was created by Heimdal $as_me 0.5.1, which was
d2815 1
a2815 1
 VERSION=0.5.1
d29184 1
a29184 1
*-*-solaris2.[89])
d36243 1
a36243 1
This file was extended by Heimdal $as_me 0.5.1, which was
d36305 1
a36305 1
Heimdal config.status 0.5.1
d37197 7
a37203 1
  if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
d37314 1
a37314 1
const char *heimdal_version = "Heimdal 0.5.1";
@


1.1.1.11
log
@Vendor import of Heimdal 0.6.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.331.2.2 .
d4 1
a4 1
# Generated by GNU Autoconf 2.53 for Heimdal 0.6.
d419 2
a420 2
PACKAGE_VERSION='0.6'
PACKAGE_STRING='Heimdal 0.6'
d926 1
a926 1
\`configure' configures Heimdal 0.6 to adapt to many kinds of systems.
d996 1
a996 1
     short | recursive ) echo "Configuration of Heimdal 0.6:";;
a1004 2
  --enable-maintainer-mode enable make rules and dependencies not useful
                          (and sometimes confusing) to the casual installer
d1130 1
a1130 1
Heimdal configure 0.6
d1145 1
a1145 1
It was created by Heimdal $as_me 0.6, which was
d2815 1
a2815 1
 VERSION=0.6
a3009 24
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
  enableval="$enable_maintainer_mode"
  USE_MAINTAINER_MODE=$enableval
else
  USE_MAINTAINER_MODE=no
fi;
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6


if test $USE_MAINTAINER_MODE = yes; then
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
fi

  MAINT=$MAINTAINER_MODE_TRUE


a3385 3
if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
fi
d5239 1
a5239 1
  echo '#line 5268 "configure"' > conftest.$ac_ext
d5775 1
a5775 1
if { (eval echo configure:5804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
d7568 1
a7568 1
#line 7597 "configure"
d7666 1
a7666 1
#line 7695 "configure"
d10256 1
a10256 4
		for j in $cdirs; do
			for k in $clibs; do
				LIBS="$j $k $save_LIBS"
				cat >conftest.$ac_ext <<_ACEOF
a10264 1
		#define OPENSSL_DES_LIBDES_COMPATIBILITY
a10266 1
		#include <openssl/rand.h>
a10306 3
		#ifdef HAVE_OPENSSL
		RAND_status();
		#endif
d10314 3
a10316 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10320 1
a10320 1
         { ac_try='test -s conftest$ac_exeext'
d10326 1
a10326 1
  openssl=yes ires="$i" lres="$j $k"; break 3
d10331 1
a10331 3
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
			done
		done
d10333 1
a10333 4
		for j in $cdirs; do
			for k in $clibs; do
				LIBS="$j $k $save_LIBS"
				cat >conftest.$ac_ext <<_ACEOF
a10341 1
		#define OPENSSL_DES_LIBDES_COMPATIBILITY
a10343 1
		#include <openssl/rand.h>
d10384 31
d10416 25
a10440 1
		RAND_status();
d10443 19
d10468 3
a10470 3
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
d10474 1
a10474 1
         { ac_try='test -s conftest$ac_exeext'
d10480 1
a10480 1
  openssl=no ires="$i" lres="$j $k"; break 3
d10485 7
a10491 8
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
			done
		done
		CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
		for j in $cdirs; do
			for k in $clibs; do
				LIBS="$j $k $save_LIBS"
				cat >conftest.$ac_ext <<_ACEOF
a10499 1
		#define OPENSSL_DES_LIBDES_COMPATIBILITY
a10501 1
		#include <openssl/rand.h>
a10541 3
		#ifdef HAVE_OPENSSL
		RAND_status();
		#endif
d10561 1
a10561 1
  openssl=no ires="$i" lres="$j $k"; break 3
a10566 1
			done
a10568 1

d10589 1
a10589 1
		INCLUDE_des="-I${with_openssl_include}"
d10592 1
a10592 1
		LIB_des="-L${with_openssl_lib}"
d10595 6
a10600 8
	saved_LIB_des="$LIB_des"
	for lres in "" "-lnsl -lsocket"; do
		LIB_des="${saved_LIB_des} -lcrypto $lres"
		LIB_des_a="$LIB_des"
		LIB_des_so="$LIB_des"
		LIB_des_appl="$LIB_des"
		LIBS="${LIBS} ${LIB_des}"
		cat >conftest.$ac_ext <<_ACEOF
a10608 1
		#define OPENSSL_DES_LIBDES_COMPATIBILITY
a10610 1
		#include <openssl/rand.h>
a10650 3
		#ifdef HAVE_OPENSSL
		RAND_status();
		#endif
d10671 2
a10672 2
			crypto_lib=libcrypto openssl=yes
			echo "$as_me:$LINENO: result: libcrypto" >&5
a10679 4
		if test "$crypto_lib" = libcrypto ; then
			break;
		fi
	done
d15392 1
a15392 1
res_nsearch(0,0,0,0,0,0)
a15756 52

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
	void * foo() { return &_res; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var__res=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var__res=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var__res" != yes ; then
a15794 1
fi
a25442 45

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
	void * foo() { return &h_errno; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_errno=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errno=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_errno" != yes ; then
a25480 1
fi
a25569 42

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
	void * foo() { return &h_errlist; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_errlist=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errlist=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_errlist" != yes ; then
a25607 1
fi
a25693 42

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
	void * foo() { return &h_nerr; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_h_nerr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_nerr=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_h_nerr" != yes ; then
a25731 1
fi
a25817 42

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#ifdef HAVE_ERR_H
#include <err.h>
#endif
	void * foo() { return &__progname; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var___progname=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var___progname=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var___progname" != yes ; then
a25855 1
fi
a26386 40

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <time.h>
	void * foo() { return &timezone; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_timezone=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_timezone" != yes ; then
a26424 1
fi
a26507 40

	cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <time.h>
	void * foo() { return &altzone; }
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_var_altzone=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_altzone=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_var_altzone" != yes ; then
a26545 1
fi
a35488 1
krb_cv_com_err_need_r=""
a35545 27
if test "${krb_cv_compile_et}" = "yes"; then
  echo "$as_me:$LINENO: checking for if com_err needs to have a initialize_error_table_r" >&5
echo $ECHO_N "checking for if com_err needs to have a initialize_error_table_r... $ECHO_C" >&6
  save2_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS="$CPPFLAGS"
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include "conftest_et.c"
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "initialize_error_table_r" >/dev/null 2>&1; then
  krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);"
      CPPFLAGS="$save2_CPPFLAGS"
else
  CPPFLAGS="${save_CPPFLAGS}"
fi
rm -f conftest*

  if test X"$krb_cv_com_err_need_r" = X ; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  else
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  fi
fi
a35569 1
    $krb_cv_com_err_need_r
a35832 7
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
d36243 1
a36243 1
This file was extended by Heimdal $as_me 0.6, which was
d36305 1
a36305 1
Heimdal config.status 0.6
a36566 3
s,@@MAINTAINER_MODE_TRUE@@,$MAINTAINER_MODE_TRUE,;t t
s,@@MAINTAINER_MODE_FALSE@@,$MAINTAINER_MODE_FALSE,;t t
s,@@MAINT@@,$MAINT,;t t
d37308 1
a37308 1
const char *heimdal_version = "Heimdal 0.6";
@


1.1.1.12
log
@Vendor import of Heimdal 0.6.1.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.331.2.6 .
d4 1
a4 1
# Generated by GNU Autoconf 2.59 for Heimdal 0.6.1.
d8 2
a9 1
# Copyright (C) 2003 Free Software Foundation, Inc.
d12 167
a186 3
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
a189 1
DUALCASE=1; export DUALCASE # for MKS sh
d191 1
d193 1
a193 1
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
d199 24
a222 32

# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi
d226 1
a226 1
as_me=`$as_basename "$0" ||
a236 1

d247 4
a250 4
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
d255 1
a255 1
  rm -f conf$$.sh
a302 2
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
a374 7
if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

d378 1
a378 1
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d381 1
a381 1
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d391 1
a391 152
$as_unset CDPATH



# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF
$*
EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
       echo_test_string="`eval $cmd`" &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for dir in $PATH /usr/ucb; do
    IFS="$lt_save_ifs"
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$lt_save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi



a392 3
tagnames=${tagnames+${tagnames},}CXX

tagnames=${tagnames+${tagnames},}F77
a404 1
ac_config_libobj_dir=.
d419 2
a420 2
PACKAGE_VERSION='0.6.1'
PACKAGE_STRING='Heimdal 0.6.1'
a461 2
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WFLAGS WFLAGS_NOUNUSED WFLAGS_NOIMPLICITINT INCLUDE_openldap LIB_openldap INCLUDE_krb4 LIB_krb4 EXTRA_LIB45 LIB_krb_enable_debug LIB_krb_disable_debug LIB_krb_get_our_ip_for_realm LIB_krb_kdctimeofday LIB_krb_get_kdc_time_diff KRB4_TRUE KRB4_FALSE KRB5_TRUE KRB5_FALSE do_roken_rename_TRUE do_roken_rename_FALSE LIB_kdb HAVE_OPENSSL_TRUE HAVE_OPENSSL_FALSE DIR_des INCLUDE_des LIB_des LIB_des_a LIB_des_so LIB_des_appl DCE_TRUE DCE_FALSE dpagaix_cflags dpagaix_ldadd dpagaix_ldflags LIB_db_create LIB_dbopen LIB_dbm_firstkey HAVE_DB1_TRUE HAVE_DB1_FALSE HAVE_DB3_TRUE HAVE_DB3_FALSE HAVE_NDBM_TRUE HAVE_NDBM_FALSE DBLIB LIB_NDBM VOID_RETSIGTYPE have_err_h_TRUE have_err_h_FALSE have_fnmatch_h_TRUE have_fnmatch_h_FALSE have_ifaddrs_h_TRUE have_ifaddrs_h_FALSE have_vis_h_TRUE have_vis_h_FALSE LIB_socket LIB_gethostbyname LIB_syslog LIB_gethostbyname2 LIB_res_search LIB_res_nsearch LIB_dn_expand LIBOBJS have_glob_h_TRUE have_glob_h_FALSE LIB_getsockopt LIB_setsockopt LIB_hstrerror LIB_bswap16 LIB_bswap32 LIB_pidfile LIB_getaddrinfo LIB_getnameinfo LIB_freeaddrinfo LIB_gai_strerror LIB_crypt DIR_roken LIB_roken INCLUDES_roken LIB_otp OTP_TRUE OTP_FALSE LIB_security NROFF GROFF CATMAN CATMAN_TRUE CATMAN_FALSE CATMANEXT INCLUDE_readline LIB_readline INCLUDE_hesiod LIB_hesiod AIX_TRUE AIX_FALSE AIX4_TRUE AIX4_FALSE LIB_dlopen HAVE_DLOPEN_TRUE HAVE_DLOPEN_FALSE LIB_loadquery AIX_DYNAMIC_AFS_TRUE AIX_DYNAMIC_AFS_FALSE AIX_EXTRA_KAFS IRIX_TRUE IRIX_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_X_TRUE HAVE_X_FALSE LIB_XauWriteAuth LIB_XauReadAuth LIB_XauFileName NEED_WRITEAUTH_TRUE NEED_WRITEAUTH_FALSE LIB_logwtmp LIB_logout LIB_openpty LIB_tgetent LIB_getpwnam_r LIB_el_init el_compat_TRUE el_compat_FALSE COMPILE_ET DIR_com_err LIB_com_err LIB_com_err_a LIB_com_err_so LIB_AUTH_SUBDIRS LTLIBOBJS'
ac_subst_files=''
d819 1
a819 1
	      localstatedir libdir includedir oldincludedir infodir mandir
d859 4
a862 4
	 X"$0" : 'X\(//\)[^/]' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
a884 3
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
   { (exit 1); exit 1; }; }
a917 20
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP
ac_env_F77_set=${F77+set}
ac_env_F77_value=$F77
ac_cv_env_F77_set=${F77+set}
ac_cv_env_F77_value=$F77
ac_env_FFLAGS_set=${FFLAGS+set}
ac_env_FFLAGS_value=$FFLAGS
ac_cv_env_FFLAGS_set=${FFLAGS+set}
ac_cv_env_FFLAGS_value=$FFLAGS
d926 1
a926 1
\`configure' configures Heimdal 0.6.1 to adapt to many kinds of systems.
d951 1
a951 1
			  [$ac_default_prefix]
d953 1
a953 1
			  [PREFIX]
d996 1
a996 1
     short | recursive ) echo "Configuration of Heimdal 0.6.1:";;
d1003 2
d1008 3
a1010 6
  --enable-shared[=PKGS]
                          build shared libraries [default=no]
  --enable-static[=PKGS]
                          build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
d1026 2
a1027 5
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]
                          include additional configurations [automatic]
a1064 5
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags
d1103 6
a1108 39

# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
  case "$ac_dir" in
  .) ac_abs_builddir=`pwd`;;
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
  case ${ac_top_builddir}. in
  .) ac_abs_top_builddir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
  case $ac_srcdir in
  .) ac_abs_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
  case $ac_top_srcdir in
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  esac;;
esac
d1119 1
a1119 1
	   test -f $ac_srcdir/configure.in; then
d1132 2
a1133 2
Heimdal configure 0.6.1
generated by GNU Autoconf 2.59
d1135 2
a1136 1
Copyright (C) 2003 Free Software Foundation, Inc.
d1147 2
a1148 2
It was created by Heimdal $as_me 0.6.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was
a1199 1
# Strip out --silent because we don't want to record it for future runs.
a1200 1
# Make two passes to allow for proper duplicate-argument suppression.
a1201 2
ac_configure_args0=
ac_configure_args1=
d1203 1
a1203 2
ac_must_keep_next=false
for ac_pass in 1 2
d1205 15
a1219 35
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
      # Get rid of the leading space.
      ac_sep=" "
      ;;
    esac
  done
a1220 2
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
a1230 1

d1243 2
a1244 2
	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
d1248 1
a1248 1
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a1252 29

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=$`echo $ac_var`
      echo "$ac_var='"'"'$ac_val'"'"'"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=$`echo $ac_var`
	echo "$ac_var='"'"'$ac_val'"'"'"
      done | sort
      echo
    fi

d1260 1
a1260 1
      sed "/^$/d" confdefs.h | sort
d1267 1
a1267 1
  rm -f core *.core &&
d1347 1
a1347 1
	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
d1364 1
a1364 1
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
d1366 1
a1366 1
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
d1368 1
a1368 1
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
d1370 1
a1370 1
	ac_cache_corrupted=:
d1426 4
a1430 1
          ac_config_headers="$ac_config_headers include/config.h"
d1637 3
a1639 1
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
d1744 2
a1745 4
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
d1769 2
a1770 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d1772 6
d1787 1
a1787 1
ac_clean_files="$ac_clean_files a.out a.exe b.out"
d1791 2
a1792 2
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
d1806 3
a1808 4
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
do
  test -f "$ac_file" || continue
d1810 9
a1818 18
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
	;;
    conftest.$ac_ext )
	# This is the source file.
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	# FIXME: I believe we export ac_cv_exeext for Libtool,
	# but it would be cool to find out if it's true.  Does anybody
	# maintain Libtool? --akim.
	export ac_cv_exeext
	break;;
    * )
	break;;
d1823 3
a1825 6
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
d1852 1
a1852 2
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
d1854 1
a1854 2
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
d1862 1
a1862 1
rm -f a.out a.exe conftest$ac_cv_exeext b.out
d1882 1
a1882 2
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
d1884 1
a1884 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
d1886 2
a1887 2
	  export ac_cv_exeext
	  break;;
d1892 2
a1893 4
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
d1910 2
a1911 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d1913 6
d1935 1
a1935 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
d1942 3
a1944 6
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
d1960 2
a1961 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d1963 6
d1982 1
a1982 1
  (eval $ac_compile) 2>conftest.er1
a1983 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d1986 1
a1986 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d1995 1
a1995 2
sed 's/^/| /' conftest.$ac_ext >&5

d1998 1
a1998 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d2014 2
a2015 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d2017 6
d2033 1
a2033 1
  (eval $ac_compile) 2>conftest.er1
a2034 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d2037 1
a2037 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d2046 1
a2046 2
sed 's/^/| /' conftest.$ac_ext >&5

d2049 1
a2049 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a2067 115
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std1 is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std1.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

d2079 1
a2079 1
  (eval $ac_compile) 2>conftest.er1
a2080 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d2083 1
a2083 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d2090 2
a2091 1
   '' \
d2099 3
a2101 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d2103 6
a2108 1
#include <stdlib.h>
d2119 1
a2119 1
  (eval $ac_compile) 2>conftest.er1
a2120 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d2123 1
a2123 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d2132 1
a2132 2
sed 's/^/| /' conftest.$ac_ext >&5

d2135 1
a2135 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d2137 2
a2138 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d2140 6
d2156 1
a2156 1
  (eval $ac_compile) 2>conftest.er1
a2157 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d2160 1
a2160 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d2169 1
a2169 2
sed 's/^/| /' conftest.$ac_ext >&5

d2171 1
a2171 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d2182 1
a2182 2
sed 's/^/| /' conftest.$ac_ext >&5

d2184 1
a2184 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a2213 2
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
d2217 4
a2220 11
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d2225 1
a2225 1
  grep -v '^ *+' conftest.er1 >conftest.err
a2231 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d2242 1
a2242 2
sed 's/^/| /' conftest.$ac_ext >&5

d2251 2
a2252 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d2258 1
a2258 1
  grep -v '^ *+' conftest.er1 >conftest.err
a2264 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d2276 1
a2276 2
sed 's/^/| /' conftest.$ac_ext >&5

a2304 2
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
d2308 4
a2311 11
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d2316 1
a2316 1
  grep -v '^ *+' conftest.er1 >conftest.err
a2322 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d2333 1
a2333 2
sed 's/^/| /' conftest.$ac_ext >&5

d2342 2
a2343 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d2349 1
a2349 1
  grep -v '^ *+' conftest.er1 >conftest.err
a2355 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d2367 1
a2367 2
sed 's/^/| /' conftest.$ac_ext >&5

d2380 2
a2381 4
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
d2392 97
d2490 1
a2490 1
am__api_version="1.7"
a2526 1
# OS/2's system install, which has a completely different semantic
a2542 1
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
d2550 14
a2563 14
	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	    break 3
	  fi
	fi
d2705 3
a2707 3
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
d2713 1
a2713 1
	@@echo 'ac_maketemp="$(MAKE)"'
d2734 66
a2799 4
rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
d2801 2
a2802 1
  am__leading_dot=_
d2804 2
a2805 1
rmdir .tst 2>/dev/null
a2814 10
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


d2816 2
a2817 2
 PACKAGE='heimdal'
 VERSION='0.6.1'
d2942 69
a3098 1

d3117 3
a3119 6
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3129 6
d3145 1
a3145 1
  (eval $ac_compile) 2>conftest.er1
a3146 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3149 1
a3149 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3158 1
a3158 2
sed 's/^/| /' conftest.$ac_ext >&5

d3160 1
a3160 1
rm -f conftest.err conftest.$ac_objext
d3164 1
a3164 1
  (eval $ac_compile) 2>conftest.er1
a3165 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3168 1
a3168 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3177 1
a3177 2
sed 's/^/| /' conftest.$ac_ext >&5

d3179 2
a3180 2
rm -f conftest.err conftest.$ac_objext
	 break
d3200 2
a3201 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3211 6
d3227 1
a3227 1
  (eval $ac_compile) 2>conftest.er1
a3228 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3231 1
a3231 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3240 1
a3240 2
sed 's/^/| /' conftest.$ac_ext >&5

d3242 1
a3242 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3244 2
a3245 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3256 6
d3272 1
a3272 1
  (eval $ac_compile) 2>conftest.er1
a3273 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3276 1
a3276 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3285 1
a3285 2
sed 's/^/| /' conftest.$ac_ext >&5

d3287 1
a3287 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3309 2
a3310 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3320 6
d3336 1
a3336 1
  (eval $ac_compile) 2>conftest.er1
a3337 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3340 1
a3340 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3349 1
a3349 2
sed 's/^/| /' conftest.$ac_ext >&5

d3351 1
a3351 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3353 2
a3354 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3365 6
d3381 1
a3381 1
  (eval $ac_compile) 2>conftest.er1
a3382 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3385 1
a3385 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3394 1
a3394 2
sed 's/^/| /' conftest.$ac_ext >&5

d3396 1
a3396 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3517 2
a3518 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3527 6
d3543 1
a3543 1
  (eval $ac_link) 2>conftest.er1
a3544 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3547 1
a3547 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d3556 1
a3556 2
sed 's/^/| /' conftest.$ac_ext >&5

d3559 1
a3559 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d3575 2
a3576 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3585 6
d3601 1
a3601 1
  (eval $ac_link) 2>conftest.er1
a3602 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3605 1
a3605 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d3614 1
a3614 2
sed 's/^/| /' conftest.$ac_ext >&5

d3617 1
a3617 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d3679 1
a3679 1
  (eval $ac_link) 2>conftest.er1
a3680 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3683 1
a3683 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d3692 1
a3692 2
sed 's/^/| /' conftest.$ac_ext >&5

d3694 1
a3694 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d3820 2
a3821 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3823 6
d3839 1
a3839 1
  (eval $ac_compile) 2>conftest.er1
a3840 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3843 1
a3843 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3852 1
a3852 2
sed 's/^/| /' conftest.$ac_ext >&5

d3855 1
a3855 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3870 2
a3871 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3873 6
d3889 1
a3889 1
  (eval $ac_compile) 2>conftest.er1
a3890 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3893 1
a3893 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3902 1
a3902 2
sed 's/^/| /' conftest.$ac_ext >&5

d3905 1
a3905 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3957 2
a3958 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d3962 6
d3986 1
a3986 1
  (eval $ac_compile) 2>conftest.er1
a3987 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d3990 1
a3990 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d3999 1
a3999 2
sed 's/^/| /' conftest.$ac_ext >&5

d4002 1
a4002 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4020 15
a4034 16
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
a4037 1

d4042 15
a4056 16
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
a4059 1

d4064 15
a4078 16
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
d4082 9
a4090 67

echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
if test "${lt_cv_path_SED+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for lt_ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
      fi
    done
  done
done
lt_ac_max=0
lt_ac_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  test ! -f $lt_ac_sed && break
  cat /dev/null > conftest.in
  lt_ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  # Check for GNU sed and select it if it is found.
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    lt_cv_path_SED=$lt_ac_sed
    break
  fi
  while true; do
    cat conftest.in conftest.in >conftest.tmp
    mv conftest.tmp conftest.in
    cp conftest.in conftest.nl
    echo >>conftest.nl
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    cmp -s conftest.out conftest.nl || break
    # 10000 chars as input seems more than enough
    test $lt_ac_count -gt 10 && break
    lt_ac_count=`expr $lt_ac_count + 1`
    if test $lt_ac_count -gt $lt_ac_max; then
      lt_ac_max=$lt_ac_count
      lt_cv_path_SED=$lt_ac_sed
    fi
  done
done
SED=$lt_cv_path_SED

fi

echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6

echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
a4091 4
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

d4104 2
a4105 2
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
d4115 1
a4115 1
    [\\/]* | ?:[\\/]*)
d4117 2
a4118 2
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
d4120 1
a4120 1
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
d4144 1
a4144 1
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
a4145 1
    IFS="$lt_save_ifs"
d4152 1
a4152 2
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
d4154 1
a4154 2
	;;
      *)
d4156 1
a4156 2
	;;
      esac
d4159 1
a4159 1
  IFS="$lt_save_ifs"
d4182 1
a4182 2
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
d4184 1
a4184 2
  ;;
*)
d4186 1
a4186 2
  ;;
esac
d4203 1
a4203 5
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
d4214 1
a4214 1
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
a4215 1
    IFS="$lt_save_ifs"
d4217 2
a4218 2
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
d4223 1
a4223 2
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
      */dev/null* | *'Invalid file or object type'*)
d4226 7
a4232 13
        ;;
      *)
	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	*/dev/null*)
	  lt_cv_path_NM="$tmp_nm -p"
	  break
	  ;;
	*)
	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	  continue # so that we can try to find one that supports BSD flags
	  ;;
	esac
      esac
d4235 1
a4235 1
  IFS="$lt_save_ifs"
d4239 1
a4239 2
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6
d4241 2
d4255 2
a4256 2
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
d4270 1
a4270 1
# which responds to the $file_magic_cmd with a given extended regex.
d4289 1
a4289 9
cygwin*)
  # win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # win32_libid shell function, so use a weaker test based on 'objdump'.
d4295 10
a4304 1
  lt_cv_deplibs_check_method=pass_all
d4307 1
a4307 1
freebsd* | kfreebsd*-gnu)
d4327 2
a4328 1
hpux10.20* | hpux11*)
d4330 8
a4337 8
  case "$host_cpu" in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d4340 8
a4347 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
d4350 1
a4350 9
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
d4355 1
a4355 1
linux*)
d4357 1
a4357 1
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
a4360 1
    # this will be overridden with pass_all, but let us keep it just in case
a4363 1
  lt_cv_deplibs_check_method=pass_all
d4368 1
a4368 1
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d4370 1
a4370 1
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
a4379 4
nto-qnx*)
  lt_cv_deplibs_check_method=unknown
  ;;

d4391 3
d4403 5
a4427 3
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
a4429 4

sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a4436 1
test -z "$deplibs_check_method" && deplibs_check_method=unknown
a4438 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
a4439 2
# Allow CC to be a program name with arguments.
compiler=$CC
a4440 3
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"
d4442 24
a4465 2
fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d4467 7
a4473 21
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *ELF-32*)
      HPUX_IA64_MODE="32"
      ;;
    *ELF-64*)
      HPUX_IA64_MODE="64"
      ;;
    esac
  fi
  rm -rf conftest*
d4475 3
a4477 35
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 4789 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
   if test "$lt_cv_prog_gnu_ld" = yes; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -melf32bsmip"
      ;;
    *N32*)
      LD="${LD-ld} -melf32bmipn32"
      ;;
    *64-bit*)
      LD="${LD-ld} -melf64bmip"
      ;;
    esac
   else
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
   fi
  fi
  rm -rf conftest*
d4479 44
a4523 3
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
d4529 21
a4549 37
    case "`/usr/bin/file conftest.o`" in
    *32-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_i386"
          ;;
        ppc64-*linux*|powerpc64-*linux*)
          LD="${LD-ld} -m elf32ppclinux"
          ;;
        s390x-*linux*)
          LD="${LD-ld} -m elf_s390"
          ;;
        sparc64-*linux*)
          LD="${LD-ld} -m elf32_sparc"
          ;;
      esac
      ;;
    *64-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        ppc*-*linux*|powerpc*-*linux*)
          LD="${LD-ld} -m elf64ppc"
          ;;
        s390*-*linux*)
          LD="${LD-ld} -m elf64_s390"
          ;;
        sparc*-*linux*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
d4551 3
a4553 14
*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d4555 7
a4561 6
     cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d4563 6
a4568 2
int
main ()
d4570 5
d4576 1
a4576 2
  ;
  return 0;
d4578 10
a4587 4
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
a4588 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d4590 27
a4616 18
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
a4617 1
lt_cv_cc_needs_belf=no
a4618 7
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d4620 15
a4635 12
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;

esac

need_locks="$enable_libtool_lock"

d4644 2
a4645 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a4650 7
int
main ()
{

  ;
  return 0;
}
d4652 2
a4653 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d4655 1
a4655 1
  grep -v '^ *+' conftest.er1 >conftest.err
d4659 10
a4668 14
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d4672 2
a4673 3
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_header_stdc=no
d4675 1
a4675 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4680 2
a4681 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d4686 1
a4686 1
  $EGREP "memchr" >/dev/null 2>&1; then
d4698 2
a4699 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d4704 1
a4704 1
  $EGREP "free" >/dev/null 2>&1; then
d4719 2
a4720 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d4726 3
a4728 4
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
d4739 1
a4739 1
	|| toupper (i) != TOUPPER (i))
d4759 1
a4759 2
sed 's/^/| /' conftest.$ac_ext >&5

d4763 1
a4763 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d4788 1
a4788 1
		  inttypes.h stdint.h unistd.h
d4797 2
a4798 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d4805 1
a4805 1
  (eval $ac_compile) 2>conftest.er1
a4806 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d4809 1
a4809 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d4818 1
a4818 2
sed 's/^/| /' conftest.$ac_ext >&5

d4821 1
a4821 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4852 2
a4853 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d4859 1
a4859 1
  (eval $ac_compile) 2>conftest.er1
a4860 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d4863 1
a4863 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d4872 1
a4872 2
sed 's/^/| /' conftest.$ac_ext >&5

d4875 1
a4875 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d4883 2
a4884 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d4890 1
a4890 1
  grep -v '^ *+' conftest.er1 >conftest.err
a4896 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d4907 1
a4907 2
sed 's/^/| /' conftest.$ac_ext >&5

d4915 2
a4916 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d4919 3
a4921 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d4924 2
a4925 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d4927 1
a4927 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d4934 1
a4934 1
  eval "$as_ac_Header=\$ac_header_preproc"
d4949 143
a5091 5
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d5093 2
a5094 4
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d5097 1
a5097 1
if test "${ac_cv_prog_CXX+set}" = set; then
d5100 2
a5101 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d5110 1
a5110 1
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
d5119 4
a5122 4
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
a5127 2
    test -n "$CXX" && break
  done
d5129 4
a5132 6
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
d5135 1
a5135 1
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
d5138 2
a5139 2
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d5148 1
a5148 1
    ac_cv_prog_ac_ct_CXX="$ac_prog"
d5155 1
d5158 4
a5161 4
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
d5167 3
a5169 5
  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
d5172 6
a5177 24

# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
d5180 16
a5195 6
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d5197 6
a5202 34
int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
d5204 2
a5205 4
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_compiler_gnu=no
a5206 2
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d5209 7
a5215 9
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
d5218 11
a5228 431
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cxx_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
for ac_declaration in \
   '' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
#include <stdlib.h>
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$F77"; then
  ac_cv_prog_F77="$F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
d5235 1
d5238 4
a5241 4
F77=$ac_cv_prog_F77
if test -n "$F77"; then
  echo "$as_me:$LINENO: result: $F77" >&5
echo "${ECHO_T}$F77" >&6
d5247 3
a5249 2
    test -n "$F77" && break
  done
a5250 27
if test -z "$F77"; then
  ac_ct_F77=$F77
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_F77"; then
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_F77="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
a5251 10
fi
fi
ac_ct_F77=$ac_cv_prog_ac_ct_F77
if test -n "$ac_ct_F77"; then
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
echo "${ECHO_T}$ac_ct_F77" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d5253 2
a5254 2
  test -n "$ac_ct_F77" && break
done
d5256 3
a5258 2
  F77=$ac_ct_F77
fi
d5260 2
d5263 8
a5270 6
# Provide some information about the compiler.
echo "$as_me:6018:" \
     "checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
d5273 15
a5287 12
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
rm -f a.out
d5289 7
a5295 7
# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
a5297 5
  cat >conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif
a5298 28
      end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d5300 9
a5308 4
ac_compiler_gnu=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
d5310 9
a5318 15
fi
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_f77_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  FFLAGS=-g
cat >conftest.$ac_ext <<_ACEOF
      program main
d5320 3
a5322 1
      end
d5324 3
a5326 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
a5327 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d5330 1
a5330 8
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d5336 1
a5336 1
  ac_cv_prog_f77_g=yes
d5339 2
a5340 3
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_f77_g=no
d5342 2
a5343 23
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
if test "$ac_test_FFLAGS" = set; then
  FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-g -O2"
  else
    FFLAGS="-g"
  fi
else
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-O2"
  else
    FFLAGS=
  fi
fi

G77=`test $ac_compiler_gnu = yes && echo yes`
ac_ext=c
d5349 8
d5359 1
a5359 1
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
d5361 4
a5364 17
# find the maximum length of command line arguments
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    i=0
  testring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
d5366 2
a5367 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
d5369 3
a5371 10
  cygwin* | mingw*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
d5373 2
a5374 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
d5376 3
a5378 20
 *)
    # If test is not a shell built-in, we'll probably end up computing a
    # maximum length that is only half of the actual maximum length, but
    # we can't tell.
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
	       = "XX$testring") >/dev/null 2>&1 &&
	    new_result=`expr "X$testring" : ".*" 2>&1` &&
	    lt_cv_sys_max_cmd_len=$new_result &&
	    test $i != 17 # 1/2 MB should be enough
    do
      i=`expr $i + 1`
      testring=$testring$testring
    done
    testring=
    # Add a significant safety factor because C++ compilers can tack on massive
    # amounts of additional arguments before passing them to the linker.
    # It appears as though 1/2 is a usable value.
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    ;;
  esac
d5380 7
a5386 1
fi
d5388 2
a5389 7
if test -n $lt_cv_sys_max_cmd_len ; then
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
else
  echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
fi
d5391 12
a5402 522



# Check for command to grab the raw symbol name followed by C symbol from nm.
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'

# Transform an extracted symbol line into a proper C declaration
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris* | sysv5*)
  symcode='[BDRT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Write the raw and C identifiers.
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
else
  echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi

echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
if test "${lt_cv_objdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
echo "${ECHO_T}$lt_cv_objdir" >&6
objdir=$lt_cv_objdir





case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except M$VC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  AR=$ac_ct_AR
else
  AR="$ac_cv_prog_AR"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi


old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$SED" && SED=sed
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
d5406 5
a5410 9438
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    ;;
  *)
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes


# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test -z "$pic_mode" && pic_mode=default

# Use C for the default configuration in the libtool script
tagname=
lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}\n'


# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


#
# Check for any special shared library compilation flags.
#
lt_prog_cc_shlib=
if test "$GCC" = no; then
  case $host_os in
  sco3.2v5*)
    lt_prog_cc_shlib='-belf'
    ;;
  esac
fi
if test -n "$lt_prog_cc_shlib"; then
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
  else
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    lt_cv_prog_cc_can_build_shared=no
  fi
fi


#
# Check to make sure the static flag actually works.
#
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
if test "${lt_prog_compiler_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi




lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'


echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:7052: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:7056: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s conftest.err; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case "$host_cpu" in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case "$host_cpu" in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    linux*)
      case $CC in
      icc* | ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    sco3.2v5*)
      lt_prog_compiler_pic='-Kpic'
      lt_prog_compiler_static='-dn'
      ;;

    solaris*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
echo "${ECHO_T}$lt_prog_compiler_pic" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:7285: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:7289: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s conftest.err; then
       lt_prog_compiler_pic_works=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6

if test x"$lt_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi
case "$host_os" in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:7349: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s out/conftest.err; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w .
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6

  runpath_var=
  allow_undefined_flag=
  enable_shared_with_static_runtimes=no
  archive_cmds=
  archive_expsym_cmds=
  old_archive_From_new_cmds=
  old_archive_from_expsyms_cmds=
  export_dynamic_flag_spec=
  whole_archive_flag_spec=
  thread_safe_flag_spec=
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_direct=no
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  link_all_deplibs=unknown
  hardcode_automatic=no
  module_cmds=
  module_expsym_cmds=
  always_export_symbols=no
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
      else
	ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris* | sysv5*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

  linux*)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_cmds="$tmp_archive_cmds"
      supports_anon_versioning=no
      case `$LD -v 2>/dev/null` in
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
        *\ 2.11.*) ;; # other 2.11 versions
        *) supports_anon_versioning=yes ;;
      esac
      if test $supports_anon_versioning = yes; then
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
$echo "local: *; };" >> $output_objdir/$libname.ver~
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
      else
        archive_expsym_cmds="$tmp_archive_cmds"
      fi
    else
      ld_shlibs=no
    fi
    ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = yes; then
      runpath_var=LD_RUN_PATH
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
      export_dynamic_flag_spec='${wl}--export-dynamic'
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
      fi
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$link_static_flag"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.012|aix4.012.*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct=yes
	  else
  	  # We have old collect2
  	  hardcode_direct=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L=yes
  	  hardcode_libdir_flag_spec='-L$libdir'
  	  hardcode_libdir_separator=
	  fi
	esac
	shared_flag='-shared'
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
  	if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
  	fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols=yes
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec=' '
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds it's shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs=no
      ;;

    bsdi4*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
      ;;

    darwin* | rhapsody*)
    if test "$GXX" = yes ; then
      archive_cmds_need_lc=no
      case "$host_os" in
      rhapsody* | darwin1.[012])
	allow_undefined_flag='-undefined suppress'
	;;
      *) # Darwin 1.3 on
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
      	allow_undefined_flag='-flat_namespace -undefined suppress'
      else
        case ${MACOSX_DEPLOYMENT_TARGET} in
          10.[012])
            allow_undefined_flag='-flat_namespace -undefined suppress'
            ;;
          10.*)
            allow_undefined_flag='-undefined dynamic_lookup'
            ;;
        esac
      fi
	;;
      esac
    	lt_int_apple_cc_single_mod=no
    	output_verbose_link_cmd='echo'
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    	  lt_int_apple_cc_single_mod=yes
    	fi
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    	else
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      fi
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        else
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        fi
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      hardcode_direct=no
      hardcode_automatic=yes
      hardcode_shlibpath_var=unsupported
      whole_archive_flag_spec='-all_load $convenience'
      link_all_deplibs=yes
    else
      ld_shlibs=no
    fi
      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu)
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10* | hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case "$host_cpu" in
	hppa*64*|ia64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case "$host_cpu" in
	hppa*64*|ia64*)
	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	*)
	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	case "$host_cpu" in
	hppa*64*)
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	  hardcode_libdir_flag_spec_ld='+b $libdir'
	  hardcode_libdir_separator=:
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	ia64*)
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_direct=no
	  hardcode_shlibpath_var=no

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	*)
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator=:
	  hardcode_direct=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    openbsd*)
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	export_dynamic_flag_spec='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec='-R$libdir'
	   ;;
	 *)
	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      hardcode_libdir_separator=:
      ;;

    sco3.2v5*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;

    solaris*)
      no_undefined_flag=' -z text'
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4.2uw2*)
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=no
      hardcode_shlibpath_var=no
      hardcode_runpath_var=yes
      runpath_var=LD_RUN_PATH
      ;;

   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag='${wl}-z ${wl}text'
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv5*)
      no_undefined_flag=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec=
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
test "$ld_shlibs" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc=no
        else
	  archive_cmds_need_lc=yes
        fi
        allow_undefined_flag=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
echo "${ECHO_T}$archive_cmds_need_lc" >&6
      ;;
    esac
  fi
  ;;
esac

echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi4*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.01* | freebsdelf3.01*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case "$host_cpu" in
  ia64*)
    shrext='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=yes
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var " || \
   test "X$hardcode_automatic"="Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != shl_load;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlopen

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dlopen;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
int
main ()
{
dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_dld_link=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 9529 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 9627 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# Report which librarie types wil actually be built
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6

echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case "$host_os" in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
  darwin* | rhapsody*)
  if test "$GCC" = yes; then
    archive_cmds_need_lc=no
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
      	allow_undefined_flag='-flat_namespace -undefined suppress'
      else
        case ${MACOSX_DEPLOYMENT_TARGET} in
          10.[012])
            allow_undefined_flag='-flat_namespace -undefined suppress'
            ;;
          10.*)
            allow_undefined_flag='-undefined dynamic_lookup'
            ;;
        esac
      fi
      ;;
    esac
    output_verbose_link_cmd='echo'
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    hardcode_direct=no
    hardcode_automatic=yes
    hardcode_shlibpath_var=unsupported
    whole_archive_flag_spec='-all_load $convenience'
    link_all_deplibs=yes
  else
    ld_shlibs=no
  fi
    ;;
esac
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6

echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler \
    CC \
    LD \
    lt_prog_compiler_wl \
    lt_prog_compiler_pic \
    lt_prog_compiler_static \
    lt_prog_compiler_no_builtin_flag \
    export_dynamic_flag_spec \
    thread_safe_flag_spec \
    whole_archive_flag_spec \
    enable_shared_with_static_runtimes \
    old_archive_cmds \
    old_archive_from_new_cmds \
    predep_objects \
    postdep_objects \
    predeps \
    postdeps \
    compiler_lib_search_path \
    archive_cmds \
    archive_expsym_cmds \
    postinstall_cmds \
    postuninstall_cmds \
    old_archive_from_expsyms_cmds \
    allow_undefined_flag \
    no_undefined_flag \
    export_symbols_cmds \
    hardcode_libdir_flag_spec \
    hardcode_libdir_flag_spec_ld \
    hardcode_libdir_separator \
    hardcode_automatic \
    module_cmds \
    module_expsym_cmds \
    lt_cv_prog_compiler_c_o \
    exclude_expsyms \
    include_expsyms; do

    case $var in
    old_archive_cmds | \
    old_archive_from_new_cmds | \
    archive_cmds | \
    archive_expsym_cmds | \
    module_cmds | \
    module_expsym_cmds | \
    old_archive_from_expsyms_cmds | \
    export_symbols_cmds | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="${ofile}T"
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  $rm -f "$cfgfile"
  { echo "$as_me:$LINENO: creating $ofile" >&5
echo "$as_me: creating $ofile" >&6;}

  cat <<__EOF__ >> "$cfgfile"
#! $SHELL

# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="$SED -e s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi

# The names of the tagged configurations supported by this script.
available_tags=

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext='$shrext'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__


  case $host_os in
  aix3*)
    cat <<\EOF >> "$cfgfile"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" || \
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"


# Check whether --with-tags or --without-tags was given.
if test "${with_tags+set}" = set; then
  withval="$with_tags"
  tagnames="$withval"
fi;

if test -f "$ltmain" && test -n "$tagnames"; then
  if test ! -f "${ofile}"; then
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  fi

  if test -z "$LTCC"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    if test -z "$LTCC"; then
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
    else
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    fi
  fi

  # Extract list of available tagged configurations in $ofile.
  # Note that this assumes the entire list is on one line.
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`

  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  for tagname in $tagnames; do
    IFS="$lt_save_ifs"
    # Check whether tagname contains only valid characters
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
    "") ;;
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
echo "$as_me: error: invalid tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
    esac

    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    then
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Update the list of available tags.
    if test -n "$tagname"; then
      echo appending configuration tag \"$tagname\" to $ofile

      case $tagname in
      CXX)
	if test -n "$CXX" && test "X$CXX" != "Xno"; then
	  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu




archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_automatic_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

# Source file extension for C++ test sources.
ac_ext=cc

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Allow CC to be a program name with arguments.
lt_save_CC=$CC
lt_save_LD=$LD
lt_save_GCC=$GCC
GCC=$GXX
lt_save_with_gnu_ld=$with_gnu_ld
lt_save_path_LD=$lt_cv_path_LD
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
else
  unset lt_cv_prog_gnu_ld
fi
if test -n "${lt_cv_path_LDCXX+set}"; then
  lt_cv_path_LD=$lt_cv_path_LDCXX
else
  unset lt_cv_path_LD
fi
test -z "${LDCXX+set}" || LD=$LDCXX
CC=${CXX-"c++"}
compiler=$CC
compiler_CXX=$CC
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`

# We don't want -fno-exception wen compiling C++ code, so set the
# no_builtin_flag separately
if test "$GXX" = yes; then
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
else
  lt_prog_compiler_no_builtin_flag_CXX=
fi

if test "$GXX" = yes; then
  # Set up default GNU C++ configuration


# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi;
ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
else
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
fi
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some GNU ld's only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
with_gnu_ld=$lt_cv_prog_gnu_ld



  # Check if GNU C++ uses GNU ld as the underlying linker, since the
  # archiving commands below assume that GNU ld is being used.
  if test "$with_gnu_ld" = yes; then
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

    # If archive_cmds runs LD, not CC, wlarc should be empty
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    #     investigate it a little bit more. (MM)
    wlarc='${wl}'

    # ancient GNU ld didn't support --whole-archive et. al.
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
	grep 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec_CXX=
    fi
  else
    with_gnu_ld=no
    wlarc=

    # A generic and very simple default shared library creation
    # command for GNU C++ for the case where it uses the native
    # linker, instead of GNU ld.  If possible, this setting should
    # overridden to take advantage of the native linker features on
    # the platform it is being used on.
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  fi

  # Commands to make compiler produce verbose output that lists
  # what "hidden" libraries, object files and flags are used when
  # linking a shared library.
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

else
  GXX=no
  with_gnu_ld=no
  wlarc=
fi

# PORTME: fill in a description of your system's C++ link characteristics
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
ld_shlibs_CXX=yes
case $host_os in
  aix3*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  aix4* | aix5*)
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  case $ld_flag in
	  *-brtl*)
	    aix_use_runtimelinking=yes
	    break
	    ;;
	  esac
	done
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    archive_cmds_CXX=''
    hardcode_direct_CXX=yes
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes

    if test "$GXX" = yes; then
      case $host_os in aix4.012|aix4.012.*)
      # We only want to do this on AIX 4.2 and lower, the check
      # below for broken collect2 doesn't work under 4.3+
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct_CXX=yes
	else
	  # We have old collect2
	  hardcode_direct_CXX=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L_CXX=yes
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  hardcode_libdir_separator_CXX=
	fi
      esac
      shared_flag='-shared'
    else
      # not using gcc
      if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	shared_flag='-G'
      else
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
      fi
    fi

    # It seems that -bexpall does not export symbols beginning with
    # underscore (_), so it is better to generate a list of symbols to export.
    always_export_symbols_CXX=yes
    if test "$aix_use_runtimelinking" = yes; then
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag_CXX='-berok'
      # Determine the default libpath from the value encoded in an empty executable.
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     else
      if test "$host_cpu" = ia64; then
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag_CXX="-z nodefs"
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
      else
	# Determine the default libpath from the value encoded in an empty executable.
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	no_undefined_flag_CXX=' ${wl}-bernotok'
	allow_undefined_flag_CXX=' ${wl}-berok'
	# -bexpall does not export symbols beginning with underscore (_)
	always_export_symbols_CXX=yes
	# Exported symbols can be pulled into shared objects from archives
	whole_archive_flag_spec_CXX=' '
	archive_cmds_need_lc_CXX=yes
	# This is similar to how AIX traditionally builds it's shared libraries.
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
      fi
    fi
    ;;
  chorus*)
    case $cc_basename in
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;

  cygwin* | mingw* | pw32*)
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
    # as there is no search path for DLLs.
    hardcode_libdir_flag_spec_CXX='-L$libdir'
    allow_undefined_flag_CXX=unsupported
    always_export_symbols_CXX=no
    enable_shared_with_static_runtimes_CXX=yes

    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
      # If the export-symbols file already is a .def file (1st line
      # is EXPORTS), use it as is; otherwise, prepend...
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	cp $export_symbols $output_objdir/$soname.def;
      else
	echo EXPORTS > $output_objdir/$soname.def;
	cat $export_symbols >> $output_objdir/$soname.def;
      fi~
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
    else
      ld_shlibs_CXX=no
    fi
  ;;

  darwin* | rhapsody*)
  if test "$GXX" = yes; then
    archive_cmds_need_lc_CXX=no
    case "$host_os" in
    rhapsody* | darwin1.[012])
      allow_undefined_flag_CXX='-undefined suppress'
      ;;
    *) # Darwin 1.3 on
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
      else
        case ${MACOSX_DEPLOYMENT_TARGET} in
          10.[012])
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
            ;;
          10.*)
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
            ;;
        esac
      fi
      ;;
    esac
    lt_int_apple_cc_single_mod=no
    output_verbose_link_cmd='echo'
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
      lt_int_apple_cc_single_mod=yes
    fi
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    else
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    fi
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'

    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    hardcode_direct_CXX=no
    hardcode_automatic_CXX=yes
    hardcode_shlibpath_var_CXX=unsupported
    whole_archive_flag_spec_CXX='-all_load $convenience'
    link_all_deplibs_CXX=yes
  else
    ld_shlibs_CXX=no
  fi
    ;;

  dgux*)
    case $cc_basename in
      ec++)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      ghcx)
	# Green Hills C++ Compiler
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  freebsd12*)
    # C++ shared libraries reported to be fairly broken before switch to ELF
    ld_shlibs_CXX=no
    ;;
  freebsd-elf*)
    archive_cmds_need_lc_CXX=no
    ;;
  freebsd* | kfreebsd*-gnu)
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    # conventions
    ld_shlibs_CXX=yes
    ;;
  gnu*)
    ;;
  hpux9*)
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    export_dynamic_flag_spec_CXX='${wl}-E'
    hardcode_direct_CXX=yes
    hardcode_minus_L_CXX=yes # Not in the search PATH,
				# but as the default
				# location of the library.

    case $cc_basename in
    CC)
      # FIXME: insert proper C++ library support
      ld_shlibs_CXX=no
      ;;
    aCC)
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      #
      # There doesn't appear to be a way to prevent this compiler from
      # explicitly linking system object files so we need to strip them
      # from the output so that they don't get included in the library
      # dependencies.
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
      ;;
    *)
      if test "$GXX" = yes; then
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
      fi
      ;;
    esac
    ;;
  hpux10*|hpux11*)
    if test $with_gnu_ld = no; then
      case "$host_cpu" in
      hppa*64*)
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
	hardcode_libdir_separator_CXX=:
        ;;
      ia64*)
	hardcode_libdir_flag_spec_CXX='-L$libdir'
        ;;
      *)
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_CXX=:
	export_dynamic_flag_spec_CXX='${wl}-E'
        ;;
      esac
    fi
    case "$host_cpu" in
    hppa*64*)
      hardcode_direct_CXX=no
      hardcode_shlibpath_var_CXX=no
      ;;
    ia64*)
      hardcode_direct_CXX=no
      hardcode_shlibpath_var_CXX=no
      hardcode_minus_L_CXX=yes # Not in the search PATH,
					      # but as the default
					      # location of the library.
      ;;
    *)
      hardcode_direct_CXX=yes
      hardcode_minus_L_CXX=yes # Not in the search PATH,
					      # but as the default
					      # location of the library.
      ;;
    esac

    case $cc_basename in
      CC)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      aCC)
	case "$host_cpu" in
	hppa*64*|ia64*)
	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
	  ;;
	*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	esac
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes; then
	  if test $with_gnu_ld = no; then
	    case "$host_cpu" in
	    ia64*|hppa*64*)
	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
	      ;;
	    *)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    esac
	  fi
	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  irix5* | irix6*)
    case $cc_basename in
      CC)
	# SGI C++
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'

	# Archives containing C++ object files must be created using
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	;;
      *)
	if test "$GXX" = yes; then
	  if test "$with_gnu_ld" = no; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
	  else
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
	  fi
	fi
	link_all_deplibs_CXX=yes
	;;
    esac
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    ;;
  linux*)
    case $cc_basename in
      KCC)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	;;
      icpc)
	# Intel C++
	with_gnu_ld=yes
	archive_cmds_need_lc_CXX=no
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	;;
      cxx)
	# Compaq C++
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	runpath_var=LD_RUN_PATH
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
    esac
    ;;
  lynxos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  m88k*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  mvs*)
    case $cc_basename in
      cxx)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
      wlarc=
      hardcode_libdir_flag_spec_CXX='-R$libdir'
      hardcode_direct_CXX=yes
      hardcode_shlibpath_var_CXX=no
    fi
    # Workaround some broken pre-1.5 toolchains
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    ;;
  osf3*)
    case $cc_basename in
      KCC)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'

	;;
      RCC)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx)
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  osf4* | osf5*)
    case $cc_basename in
      KCC)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
	;;
      RCC)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx)
	allow_undefined_flag_CXX=' -expect_unresolved \*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	  echo "-hidden">> $lib.exp~
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
	  $rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  psos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  sco*)
    archive_cmds_need_lc_CXX=no
    case $cc_basename in
      CC)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  sunos4*)
    case $cc_basename in
      CC)
	# Sun C++ 4.x
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      lcc)
	# Lucid
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  solaris*)
    case $cc_basename in
      CC)
	# Sun C++ 4.2, 5.x and Centerline C++
	no_undefined_flag_CXX=' -zdefs'
	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-R$libdir'
	hardcode_shlibpath_var_CXX=no
	case $host_os in
	  solaris2.0-5 | solaris2.0-5.*) ;;
	  *)
	    # The C++ compiler is used as linker so we must use $wl
	    # flag to pass the commands to the underlying system
	    # linker.
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	    ;;
	esac
	link_all_deplibs_CXX=yes

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'

	# Archives containing C++ object files must be created using
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	;;
      gcx)
	# Green Hills C++ Compiler
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	# The C++ compiler must be used to create the archive.
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	;;
      *)
	# GNU C++ compiler with Solaris linker
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  else
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
	    # platform.
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  fi

	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	fi
	;;
    esac
    ;;
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
    archive_cmds_need_lc_CXX=no
    ;;
  tandem*)
    case $cc_basename in
      NCC)
	# NonStop-UX NCC 3.20
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  vxworks*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  *)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
esac
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6
test "$ld_shlibs_CXX" = no && can_build_shared=no

GCC_CXX="$GXX"
LD_CXX="$LD"


cat > conftest.$ac_ext <<EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
EOF

if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  # The `*' in the case matches for architectures that use `case' in
  # $output_verbose_cmd can trigger glob expansion during the loop
  # eval without this substitution.
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"

  for p in `eval $output_verbose_link_cmd`; do
    case $p in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" \
	  || test $p = "-R"; then
	 prev=$p
	 continue
       else
	 prev=
       fi

       if test "$pre_test_object_deps_done" = no; then
	 case $p in
	 -L* | -R*)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       ;;

    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$rm -f confest.$objext

case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac

lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=

echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | os2* | pw32*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case "$host_cpu" in
      hppa*64*|ia64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix4* | aix5*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68)
	  # Green Hills C++ Compiler
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      dgux*)
	case $cc_basename in
	  ec++)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | kfreebsd*-gnu)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
	    case "$host_cpu" in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux*)
	case $cc_basename in
	  KCC)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  icpc)
	    # Intel C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  cxx)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      sco*)
	case $cc_basename in
	  CC)
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      solaris*)
	case $cc_basename in
	  CC)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      unixware*)
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_CXX=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:11806: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:11810: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s conftest.err; then
       lt_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6

if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi
case "$host_os" in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:11866: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:11870: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s out/conftest.err; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w .
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  case $host_os in
  aix4* | aix5*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
  ;;
  cygwin* | mingw*)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  esac

echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6
test "$ld_shlibs_CXX" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_CXX
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
        allow_undefined_flag_CXX=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_CXX=no
        else
	  archive_cmds_need_lc_CXX=yes
        fi
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
      ;;
    esac
  fi
  ;;
esac

echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi4*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.01* | freebsdelf3.01*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case "$host_cpu" in
  ia64*)
    shrext='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=yes
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" || \
   test -n "$runpath_var CXX" || \
   test "X$hardcode_automatic_CXX"="Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6

if test "$hardcode_action_CXX" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != shl_load;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
int
main ()
{
shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlopen

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dlopen;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
int
main ()
{
dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_cxx_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_dld_link=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 13227 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 13325 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_CXX \
    CC_CXX \
    LD_CXX \
    lt_prog_compiler_wl_CXX \
    lt_prog_compiler_pic_CXX \
    lt_prog_compiler_static_CXX \
    lt_prog_compiler_no_builtin_flag_CXX \
    export_dynamic_flag_spec_CXX \
    thread_safe_flag_spec_CXX \
    whole_archive_flag_spec_CXX \
    enable_shared_with_static_runtimes_CXX \
    old_archive_cmds_CXX \
    old_archive_from_new_cmds_CXX \
    predep_objects_CXX \
    postdep_objects_CXX \
    predeps_CXX \
    postdeps_CXX \
    compiler_lib_search_path_CXX \
    archive_cmds_CXX \
    archive_expsym_cmds_CXX \
    postinstall_cmds_CXX \
    postuninstall_cmds_CXX \
    old_archive_from_expsyms_cmds_CXX \
    allow_undefined_flag_CXX \
    no_undefined_flag_CXX \
    export_symbols_cmds_CXX \
    hardcode_libdir_flag_spec_CXX \
    hardcode_libdir_flag_spec_ld_CXX \
    hardcode_libdir_separator_CXX \
    hardcode_automatic_CXX \
    module_cmds_CXX \
    module_expsym_cmds_CXX \
    lt_cv_prog_compiler_c_o_CXX \
    exclude_expsyms_CXX \
    include_expsyms_CXX; do

    case $var in
    old_archive_cmds_CXX | \
    old_archive_from_new_cmds_CXX | \
    archive_cmds_CXX | \
    archive_expsym_cmds_CXX | \
    module_cmds_CXX | \
    module_expsym_cmds_CXX | \
    old_archive_from_expsyms_cmds_CXX | \
    export_symbols_cmds_CXX | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU C compiler?
with_gcc=$GCC_CXX

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_CXX

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext='$shrext'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_CXX
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_CXX

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_CXX

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_CXX"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC=$lt_save_CC
LDCXX=$LD
LD=$lt_save_LD
GCC=$lt_save_GCC
with_gnu_ldcxx=$with_gnu_ld
with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld

	else
	  tagname=""
	fi
	;;

      F77)
	if test -n "$F77" && test "X$F77" != "Xno"; then

ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu


archive_cmds_need_lc_F77=no
allow_undefined_flag_F77=
always_export_symbols_F77=no
archive_expsym_cmds_F77=
export_dynamic_flag_spec_F77=
hardcode_direct_F77=no
hardcode_libdir_flag_spec_F77=
hardcode_libdir_flag_spec_ld_F77=
hardcode_libdir_separator_F77=
hardcode_minus_L_F77=no
hardcode_automatic_F77=no
module_cmds_F77=
module_expsym_cmds_F77=
link_all_deplibs_F77=unknown
old_archive_cmds_F77=$old_archive_cmds
no_undefined_flag_F77=
whole_archive_flag_spec_F77=
enable_shared_with_static_runtimes_F77=no

# Source file extension for f77 test sources.
ac_ext=f

# Object file extension for compiled f77 test sources.
objext=o
objext_F77=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"

# Code to be used in simple link tests
lt_simple_link_test_code="      program t\n      end\n"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${F77-"f77"}
compiler=$CC
compiler_F77=$CC
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`

echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6

echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case "$host_os" in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;
aix4*)
  test "$enable_shared" = yes && enable_static=no
  ;;
esac
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6

echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6

test "$ld_shlibs_F77" = no && can_build_shared=no

GCC_F77="$G77"
LD_F77="$LD"

lt_prog_compiler_wl_F77=
lt_prog_compiler_pic_F77=
lt_prog_compiler_static_F77=

echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_F77='-Wl,'
    lt_prog_compiler_static_F77='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_F77='-fno-common'
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_F77=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case "$host_cpu" in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_F77='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_F77='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      else
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case "$host_cpu" in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    linux*)
      case $CC in
      icc* | ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      ccc*)
        lt_prog_compiler_wl_F77='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_F77='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    sco3.2v5*)
      lt_prog_compiler_pic_F77='-Kpic'
      lt_prog_compiler_static_F77='-dn'
      ;;

    solaris*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sunos4*)
      lt_prog_compiler_wl_F77='-Qoption ld '
      lt_prog_compiler_pic_F77='-PIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_F77='-Kconform_pic'
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    uts4*)
      lt_prog_compiler_pic_F77='-pic'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_F77=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_F77"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_F77=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14152: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:14156: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s conftest.err; then
       lt_prog_compiler_pic_works_F77=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6

if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
    case $lt_prog_compiler_pic_F77 in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
     esac
else
    lt_prog_compiler_pic_F77=
     lt_prog_compiler_can_build_shared_F77=no
fi

fi
case "$host_os" in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_F77=
    ;;
  *)
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    ;;
esac

echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14212: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:14216: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s out/conftest.err; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w .
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6

  runpath_var=
  allow_undefined_flag_F77=
  enable_shared_with_static_runtimes_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  old_archive_From_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  export_dynamic_flag_spec_F77=
  whole_archive_flag_spec_F77=
  thread_safe_flag_spec_F77=
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_direct_F77=no
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  link_all_deplibs_F77=unknown
  hardcode_automatic_F77=no
  module_cmds_F77=
  module_expsym_cmds_F77=
  always_export_symbols_F77=no
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_F77=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_F77=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_F77=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_F77=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_F77='-L$libdir'
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=no
      enable_shared_with_static_runtimes_F77=yes
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
      else
	ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris* | sysv5*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    sunos4*)
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

  linux*)
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_cmds_F77="$tmp_archive_cmds"
      supports_anon_versioning=no
      case `$LD -v 2>/dev/null` in
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
        *\ 2.11.*) ;; # other 2.11 versions
        *) supports_anon_versioning=yes ;;
      esac
      if test $supports_anon_versioning = yes; then
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
$echo "local: *; };" >> $output_objdir/$libname.ver~
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
      else
        archive_expsym_cmds_F77="$tmp_archive_cmds"
      fi
    else
      ld_shlibs_F77=no
    fi
    ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
    esac

    if test "$ld_shlibs_F77" = yes; then
      runpath_var=LD_RUN_PATH
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
      fi
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=yes
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_F77=yes
      if test "$GCC" = yes && test -z "$link_static_flag"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_F77=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_F77=''
      hardcode_direct_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.012|aix4.012.*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_F77=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_F77=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_F77=yes
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
  	  hardcode_libdir_separator_F77=
	  fi
	esac
	shared_flag='-shared'
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
  	if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
  	fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_F77=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_F77='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_F77="-z nodefs"
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_f77_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_F77=' ${wl}-bernotok'
	  allow_undefined_flag_F77=' ${wl}-berok'
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols_F77=yes
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_F77=' '
	  archive_cmds_need_lc_F77=yes
	  # This is similar to how AIX traditionally builds it's shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_F77=no
      ;;

    bsdi4*)
      export_dynamic_flag_spec_F77=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_F77=' '
      allow_undefined_flag_F77=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_F77='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_F77=yes
      ;;

    darwin* | rhapsody*)
    if test "$GXX" = yes ; then
      archive_cmds_need_lc_F77=no
      case "$host_os" in
      rhapsody* | darwin1.[012])
	allow_undefined_flag_F77='-undefined suppress'
	;;
      *) # Darwin 1.3 on
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
      else
        case ${MACOSX_DEPLOYMENT_TARGET} in
          10.[012])
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
            ;;
          10.*)
            allow_undefined_flag_F77='-undefined dynamic_lookup'
            ;;
        esac
      fi
	;;
      esac
    	lt_int_apple_cc_single_mod=no
    	output_verbose_link_cmd='echo'
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    	  lt_int_apple_cc_single_mod=yes
    	fi
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    	else
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      fi
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        else
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        fi
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      hardcode_direct_F77=no
      hardcode_automatic_F77=yes
      hardcode_shlibpath_var_F77=unsupported
      whole_archive_flag_spec_F77='-all_load $convenience'
      link_all_deplibs_F77=yes
    else
      ld_shlibs_F77=no
    fi
      ;;

    dgux*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    freebsd1*)
      ld_shlibs_F77=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu)
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_direct_F77=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_F77=yes
      export_dynamic_flag_spec_F77='${wl}-E'
      ;;

    hpux10* | hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case "$host_cpu" in
	hppa*64*|ia64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case "$host_cpu" in
	hppa*64*|ia64*)
	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	*)
	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	case "$host_cpu" in
	hppa*64*)
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
	  hardcode_libdir_separator_F77=:
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	ia64*)
	  hardcode_libdir_flag_spec_F77='-L$libdir'
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	*)
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_F77=:
	  hardcode_direct_F77=yes
	  export_dynamic_flag_spec_F77='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      link_all_deplibs_F77=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    newsos6)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_shlibpath_var_F77=no
      ;;

    openbsd*)
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_F77='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_F77='-R$libdir'
	   ;;
	 *)
	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      allow_undefined_flag_F77=unsupported
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
      fi
      hardcode_libdir_separator_F77=:
      ;;

    sco3.2v5*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;

    solaris*)
      no_undefined_flag_F77=' -z text'
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_shlibpath_var_F77=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
      esac
      link_all_deplibs_F77=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
	  hardcode_direct_F77=no
        ;;
	motorola)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4.3*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_F77=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_F77=yes
      fi
      ;;

    sysv4.2uw2*)
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_runpath_var=yes
      runpath_var=LD_RUN_PATH
      ;;

   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag_F77='${wl}-z ${wl}text'
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;

    sysv5*)
      no_undefined_flag_F77=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec_F77=
      hardcode_shlibpath_var_F77=no
      runpath_var='LD_RUN_PATH'
      ;;

    uts4*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      ld_shlibs_F77=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
echo "${ECHO_T}$ld_shlibs_F77" >&6
test "$ld_shlibs_F77" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_F77" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_F77=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_F77 in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_F77
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
        allow_undefined_flag_F77=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_F77=no
        else
	  archive_cmds_need_lc_F77=yes
        fi
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
      ;;
    esac
  fi
  ;;
esac

echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi4*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd*)
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.01* | freebsdelf3.01*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case "$host_cpu" in
  ia64*)
    shrext='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=yes
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_F77=
if test -n "$hardcode_libdir_flag_spec_F77" || \
   test -n "$runpath_var F77" || \
   test "X$hardcode_automatic_F77"="Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_F77" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     test "$hardcode_minus_L_F77" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_F77=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_F77=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_F77=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6

if test "$hardcode_action_F77" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi



# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_F77 \
    CC_F77 \
    LD_F77 \
    lt_prog_compiler_wl_F77 \
    lt_prog_compiler_pic_F77 \
    lt_prog_compiler_static_F77 \
    lt_prog_compiler_no_builtin_flag_F77 \
    export_dynamic_flag_spec_F77 \
    thread_safe_flag_spec_F77 \
    whole_archive_flag_spec_F77 \
    enable_shared_with_static_runtimes_F77 \
    old_archive_cmds_F77 \
    old_archive_from_new_cmds_F77 \
    predep_objects_F77 \
    postdep_objects_F77 \
    predeps_F77 \
    postdeps_F77 \
    compiler_lib_search_path_F77 \
    archive_cmds_F77 \
    archive_expsym_cmds_F77 \
    postinstall_cmds_F77 \
    postuninstall_cmds_F77 \
    old_archive_from_expsyms_cmds_F77 \
    allow_undefined_flag_F77 \
    no_undefined_flag_F77 \
    export_symbols_cmds_F77 \
    hardcode_libdir_flag_spec_F77 \
    hardcode_libdir_flag_spec_ld_F77 \
    hardcode_libdir_separator_F77 \
    hardcode_automatic_F77 \
    module_cmds_F77 \
    module_expsym_cmds_F77 \
    lt_cv_prog_compiler_c_o_F77 \
    exclude_expsyms_F77 \
    include_expsyms_F77; do

    case $var in
    old_archive_cmds_F77 | \
    old_archive_from_new_cmds_F77 | \
    archive_cmds_F77 | \
    archive_expsym_cmds_F77 | \
    module_cmds_F77 | \
    module_expsym_cmds_F77 | \
    old_archive_from_expsyms_cmds_F77 | \
    export_symbols_cmds_F77 | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_F77

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler_F77

# Is the compiler the GNU C compiler?
with_gcc=$GCC_F77

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_F77

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext='$shrext'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_F77
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_F77

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_F77

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_F77

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_F77

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_F77

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_F77

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_F77"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_F77

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_F77

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_F77

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_F77

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      GCJ)
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then



# Source file extension for Java test sources.
ac_ext=java

# Object file extension for compiled Java test sources.
objext=o
objext_GCJ=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="class foo {}\n"

# Code to be used in simple link tests
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
d5412 5
a5416 1
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
d5418 11
a5428 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
d5430 4
a5433 2
# Allow CC to be a program name with arguments.
compiler=$CC
d5435 11
d5448 2
a5449 4
lt_save_CC="$CC"
CC=${GCJ-"gcj"}
compiler=$CC
compiler_GCJ=$CC
d5451 6
a5456 14
# GCJ did not exist at the time GCC didn't implicitly link libc in.
archive_cmds_need_lc_GCJ=no


lt_prog_compiler_no_builtin_flag_GCJ=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'


echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5458 2
a5459 27
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16246: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:16250: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s conftest.err; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

d5461 3
a5463 2
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
a5464 5
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
else
    :
fi
a5465 1
fi
d5467 8
a5474 3
lt_prog_compiler_wl_GCJ=
lt_prog_compiler_pic_GCJ=
lt_prog_compiler_static_GCJ=
d5476 3
d5481 9
d5492 2
a5493 2
    lt_prog_compiler_wl_GCJ='-Wl,'
    lt_prog_compiler_static_GCJ='-static'
d5496 8
a5503 6
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
a5504 1

d5509 1
a5509 1
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
d5511 1
a5511 2

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
a5513 7

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

d5517 1
a5517 1
      lt_prog_compiler_pic_GCJ='-fno-common'
d5519 4
a5522 6

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_GCJ=no
      enable_shared=no
a5523 1

d5526 1
a5526 1
	lt_prog_compiler_pic_GCJ=-Kconform_pic
a5528 14

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case "$host_cpu" in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='-fPIC'
	;;
      esac
      ;;

d5530 1
a5530 1
      lt_prog_compiler_pic_GCJ='-fPIC'
d5534 1
a5534 1
    # PORTME Check for flag to pass linker flags through the system compiler.
d5536 3
a5538 2
    aix*)
      lt_prog_compiler_wl_GCJ='-Wl,'
d5541 1
a5541 1
	lt_prog_compiler_static_GCJ='-Bstatic'
d5543 1
a5543 1
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
a5546 6
    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

d5548 4
a5551 13
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case "$host_cpu" in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
d5554 3
a5556 2
    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_GCJ='-Wl,'
a5557 1
      lt_prog_compiler_static_GCJ='-non_shared'
d5560 4
a5563 3
    newsos6)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
d5566 3
a5568 13
    linux*)
      case $CC in
      icc* | ecc*)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-KPIC'
	lt_prog_compiler_static_GCJ='-static'
        ;;
      ccc*)
        lt_prog_compiler_wl_GCJ='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_GCJ='-non_shared'
        ;;
      esac
a5571 1
      lt_prog_compiler_wl_GCJ='-Wl,'
d5573 2
a5574 1
      lt_prog_compiler_static_GCJ='-non_shared'
d5578 3
a5580 2
      lt_prog_compiler_pic_GCJ='-Kpic'
      lt_prog_compiler_static_GCJ='-dn'
d5584 3
a5586 3
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
d5590 3
a5592 3
      lt_prog_compiler_wl_GCJ='-Qoption ld '
      lt_prog_compiler_pic_GCJ='-PIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
d5596 12
a5607 3
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
d5612 2
a5613 2
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
	lt_prog_compiler_static_GCJ='-Bstatic'
a5616 5
    uts4*)
      lt_prog_compiler_pic_GCJ='-pic'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

d5618 1
a5618 1
      lt_prog_compiler_can_build_shared_GCJ=no
d5623 74
a5696 2
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
d5698 6
a5703 4
#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_GCJ"; then
d5705 3
a5707 31
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_GCJ=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:16483: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s conftest.err; then
       lt_prog_compiler_pic_works_GCJ=yes
     fi
   fi
   $rm conftest*
d5709 10
a5719 2
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
d5721 39
a5759 5
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    case $lt_prog_compiler_pic_GCJ in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
     esac
d5761 2
a5762 2
    lt_prog_compiler_pic_GCJ=
     lt_prog_compiler_can_build_shared_GCJ=no
d5764 2
a5767 9
case "$host_os" in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_GCJ=
    ;;
  *)
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    ;;
esac
d5769 15
d5786 50
a5835 1
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
d5838 51
a5888 38
  lt_cv_prog_compiler_c_o_GCJ=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:16539: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:16543: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test ! -s out/conftest.err; then
       lt_cv_prog_compiler_c_o_GCJ=yes
     fi
   fi
   chmod u+w .
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*
a5890 2
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
d5892 6
d5899 1
d5901 1
a5901 1
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
d5922 65
a5986 2
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d5988 37
a6024 36
  runpath_var=
  allow_undefined_flag_GCJ=
  enable_shared_with_static_runtimes_GCJ=no
  archive_cmds_GCJ=
  archive_expsym_cmds_GCJ=
  old_archive_From_new_cmds_GCJ=
  old_archive_from_expsyms_cmds_GCJ=
  export_dynamic_flag_spec_GCJ=
  whole_archive_flag_spec_GCJ=
  thread_safe_flag_spec_GCJ=
  hardcode_libdir_flag_spec_GCJ=
  hardcode_libdir_flag_spec_ld_GCJ=
  hardcode_libdir_separator_GCJ=
  hardcode_direct_GCJ=no
  hardcode_minus_L_GCJ=no
  hardcode_shlibpath_var_GCJ=unsupported
  link_all_deplibs_GCJ=unknown
  hardcode_automatic_GCJ=no
  module_cmds_GCJ=
  module_expsym_cmds_GCJ=
  always_export_symbols_GCJ=no
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_GCJ=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
d6026 6
a6031 10
  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  openbsd*)
d6033 6
a6038 2
    ;;
  esac
d6040 4
a6043 4
  ld_shlibs_GCJ=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'
d6045 7
a6051 7
    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2
d6060 26
a6085 2
      fi
      ;;
d6087 26
a6112 12
    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_GCJ=no
d6114 1
d6116 14
a6129 10
    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_GCJ=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;
d6131 32
a6162 24
    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=no
      enable_shared_with_static_runtimes_GCJ=yes
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
      else
	ld_shlibs=no
      fi
      ;;
d6164 9
a6172 9
    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;
d6174 4
a6177 4
    solaris* | sysv5*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2
d6187 7
a6193 7
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;
d6195 6
a6200 6
    sunos4*)
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;
d6202 1
a6202 1
  linux*)
d6204 2
a6205 18
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_cmds_GCJ="$tmp_archive_cmds"
      supports_anon_versioning=no
      case `$LD -v 2>/dev/null` in
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
        *\ 2.11.*) ;; # other 2.11 versions
        *) supports_anon_versioning=yes ;;
      esac
      if test $supports_anon_versioning = yes; then
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
$echo "local: *; };" >> $output_objdir/$libname.ver~
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
      else
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
      fi
d6207 1
a6207 1
      ld_shlibs_GCJ=no
d6210 1
d6212 9
d6222 3
a6224 3
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d6226 1
a6226 1
	ld_shlibs_GCJ=no
d6230 15
a6244 11

    if test "$ld_shlibs_GCJ" = yes; then
      runpath_var=LD_RUN_PATH
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
      # ancient GNU ld didn't support --whole-archive et. al.
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
      fi
d6246 1
a6246 16
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=yes
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_GCJ=yes
      if test "$GCC" = yes && test -z "$link_static_flag"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_GCJ=unsupported
      fi
      ;;
d6248 9
a6256 16
    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no
d6258 8
a6265 46
	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_GCJ=''
      hardcode_direct_GCJ=yes
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.012|aix4.012.*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_GCJ=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_GCJ=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_GCJ=yes
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
  	  hardcode_libdir_separator_GCJ=
d6267 2
a6268 16
	esac
	shared_flag='-shared'
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
  	if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
  	fi
	fi
      fi
d6270 3
a6272 14
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_GCJ=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_GCJ='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d6274 5
a6278 3
int
main ()
{
d6280 11
a6290 48
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_GCJ="-z nodefs"
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
d6292 10
a6301 52
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d6303 10
a6312 12
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
	  allow_undefined_flag_GCJ=' ${wl}-berok'
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols_GCJ=yes
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_GCJ=' '
	  archive_cmds_need_lc_GCJ=yes
	  # This is similar to how AIX traditionally builds it's shared libraries.
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d6315 1
a6315 1
      ;;
d6317 14
a6330 43
    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_GCJ=no
      ;;

    bsdi4*)
      export_dynamic_flag_spec_GCJ=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ=' '
      allow_undefined_flag_GCJ=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_GCJ='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_GCJ=yes
      ;;

    darwin* | rhapsody*)
    if test "$GXX" = yes ; then
      archive_cmds_need_lc_GCJ=no
      case "$host_os" in
      rhapsody* | darwin1.[012])
	allow_undefined_flag_GCJ='-undefined suppress'
	;;
      *) # Darwin 1.3 on
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
d6332 7
a6338 20
        case ${MACOSX_DEPLOYMENT_TARGET} in
          10.[012])
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
            ;;
          10.*)
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
            ;;
        esac
      fi
	;;
      esac
    	lt_int_apple_cc_single_mod=no
    	output_verbose_link_cmd='echo'
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    	  lt_int_apple_cc_single_mod=yes
    	fi
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    	else
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
a6339 15
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        else
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
        fi
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      hardcode_direct_GCJ=no
      hardcode_automatic_GCJ=yes
      hardcode_shlibpath_var_GCJ=unsupported
      whole_archive_flag_spec_GCJ='-all_load $convenience'
      link_all_deplibs_GCJ=yes
    else
      ld_shlibs_GCJ=no
d6341 27
a6367 1
      ;;
d6369 4
a6372 4
    dgux*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
d6374 2
a6375 3

    freebsd1*)
      ld_shlibs_GCJ=no
d6377 11
d6389 3
a6391 10
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;
d6393 10
a6402 7
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;
d6404 7
a6410 7
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu)
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;
d6412 7
a6418 15
    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_direct_GCJ=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-E'
      ;;
d6420 12
a6431 51
    hpux10* | hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case "$host_cpu" in
	hppa*64*|ia64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case "$host_cpu" in
	hppa*64*|ia64*)
	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	case "$host_cpu" in
	hppa*64*)
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
	  hardcode_libdir_separator_GCJ=:
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no
	  ;;
	ia64*)
	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
	  ;;
	*)
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_GCJ=:
	  hardcode_direct_GCJ=yes
	  export_dynamic_flag_spec_GCJ='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
	  ;;
	esac
      fi
      ;;
d6433 10
a6442 11
    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      link_all_deplibs_GCJ=yes
      ;;
d6444 10
a6453 10
    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;
d6455 7
a6461 7
    newsos6)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_shlibpath_var_GCJ=no
      ;;
d6463 20
a6482 20
    openbsd*)
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_GCJ='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
	   ;;
	 *)
	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;
d6484 7
a6490 7
    os2*)
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      allow_undefined_flag_GCJ=unsupported
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;
d6492 11
a6502 11
    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      ;;
d6504 10
a6513 10
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
d6515 5
a6519 5
	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_separator_GCJ=:
      ;;
d6521 7
a6527 7
    sco3.2v5*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;
d6529 14
a6542 20
    solaris*)
      no_undefined_flag_GCJ=' -z text'
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_shlibpath_var_GCJ=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
      esac
      link_all_deplibs_GCJ=yes
      ;;
d6544 9
a6552 13
    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;
d6554 2
a6555 16
    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
	  hardcode_direct_GCJ=no
        ;;
	motorola)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
d6558 41
a6598 3
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
      ;;
d6600 23
a6622 5
    sysv4.3*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='-Bexport'
      ;;
d6624 5
a6628 9
    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_GCJ=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_GCJ=yes
      fi
      ;;
d6630 5
a6634 5
    sysv4.2uw2*)
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=no
      hardcode_shlibpath_var_GCJ=no
d6636 12
a6647 2
      runpath_var=LD_RUN_PATH
      ;;
d6649 10
a6658 10
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
      ;;
d6660 8
a6667 11
    sysv5*)
      no_undefined_flag_GCJ=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec_GCJ=
      hardcode_shlibpath_var_GCJ=no
      runpath_var='LD_RUN_PATH'
      ;;
d6669 6
a6674 5
    uts4*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;
d6676 12
a6687 4
    *)
      ld_shlibs_GCJ=no
      ;;
    esac
d6689 7
d6697 12
a6708 7
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
test "$ld_shlibs_GCJ" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d6711 2
a6712 61
#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_GCJ" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_GCJ=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_GCJ in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_GCJ
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
        allow_undefined_flag_GCJ=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_GCJ=no
        else
	  archive_cmds_need_lc_GCJ=yes
        fi
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
      ;;
    esac
  fi
  ;;
esac
d6714 1
a6719 1
shrext=".so"
d6729 1
a6729 20
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown
d6734 1
a6734 1
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
d6737 2
a6738 2
  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
a6742 3
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
d6745 1
a6745 1
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
d6755 8
a6762 8
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
d6764 4
a6767 3
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
d6772 1
a6772 1
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d6777 1
a6777 1
      soname_spec='${libname}${release}${shared_ext}$major'
d6786 1
a6786 1
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d6790 1
a6790 1
  library_names_spec='${libname}${shared_ext}'
d6798 2
a6799 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d6804 1
a6811 1
  shrext=".dll"
a6813 1

d6815 1
a6815 1
  yes,cygwin* | yes,mingw* | yes,pw32*)
d6817 2
a6818 3
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
d6821 2
a6822 2
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
a6824 29
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
      ;;
    esac
d6826 7
a6832 1

d6834 1
a6834 1
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
d6847 5
a6851 2
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
a6853 17
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
a6859 12
kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

d6865 1
a6865 1
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
d6870 1
a6870 1
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
d6879 1
a6879 5
  freebsd3.01* | freebsdelf3.01*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
d6890 2
a6891 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d6899 1
d6903 4
a6906 36
  case "$host_cpu" in
  ia64*)
    shrext='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
d6911 2
a6912 10
irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
d6915 2
a6916 2
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
d6918 1
a6918 1
  irix5* | nonstopux*)
d6923 3
a6925 6
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
a6933 1
  hardcode_into_libs=yes
d6937 1
a6937 1
linux*oldld* | linux*aout* | linux*coff*)
d6942 1
a6942 1
linux*)
d6946 2
a6947 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
a6955 6
  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  fi

a6964 12
knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

d6970 1
a6970 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d6974 2
a6975 2
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
d6985 1
a6985 11
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d6993 1
a6993 4
  need_version=yes
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
d6995 8
a7002 8
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
d7006 3
a7012 1
  shrext=".dll"
d7014 1
a7014 1
  library_names_spec='$libname${shared_ext} $libname.a'
a7020 1
  need_lib_prefix=no
d7022 2
a7023 2
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7031 2
a7032 2
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040 2
a7041 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d7051 1
a7051 1
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d7063 2
a7064 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
a7068 6
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
d7079 16
d7098 2
a7099 2
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
a7103 7
uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

d7112 9
a7120 6
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var GCJ" || \
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
d7122 8
a7129 12
  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
d7131 1
a7131 7
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6
d7133 8
a7140 8
if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi
d7142 6
a7147 111
striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
       else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d7149 7
a7155 1
ac_cv_lib_dl_dlopen=no
d7157 4
a7160 3
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d7162 5
a7166 4
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7168 2
d7171 3
a7173 1
    lt_cv_dlopen="dyld"
d7176 1
d7178 3
a7180 2
fi

d7190 2
a7191 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

d7193 2
a7194 12
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load

a7197 1
{
d7202 11
d7219 1
a7219 4
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
a7221 4
int
main ()
{
return f != shl_load;
d7228 1
a7228 1
  (eval $ac_link) 2>conftest.er1
a7229 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d7232 1
a7232 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d7241 1
a7241 2
sed 's/^/| /' conftest.$ac_ext >&5

d7244 1
a7244 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d7259 2
a7260 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d7269 6
d7285 1
a7285 1
  (eval $ac_link) 2>conftest.er1
a7286 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d7289 1
a7289 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d7298 1
a7298 2
sed 's/^/| /' conftest.$ac_ext >&5

d7301 1
a7301 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d7315 2
a7316 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen

d7318 2
a7319 12
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlopen

a7322 1
{
d7327 11
d7344 1
a7344 4
char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
a7346 4
int
main ()
{
return f != dlopen;
d7353 1
a7353 1
  (eval $ac_link) 2>conftest.er1
a7354 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d7357 1
a7357 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d7366 1
a7366 2
sed 's/^/| /' conftest.$ac_ext >&5

d7369 1
a7369 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d7384 2
a7385 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d7394 6
d7410 1
a7410 1
  (eval $ac_link) 2>conftest.er1
a7411 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d7414 1
a7414 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d7423 1
a7423 2
sed 's/^/| /' conftest.$ac_ext >&5

d7426 1
a7426 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d7442 2
a7443 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d7452 6
d7468 1
a7468 1
  (eval $ac_link) 2>conftest.er1
a7469 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d7472 1
a7472 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d7481 1
a7481 2
sed 's/^/| /' conftest.$ac_ext >&5

d7484 1
a7484 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d7500 2
a7501 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d7510 6
d7526 1
a7526 1
  (eval $ac_link) 2>conftest.er1
a7527 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d7530 1
a7530 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d7539 1
a7539 2
sed 's/^/| /' conftest.$ac_ext >&5

d7542 1
a7542 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d7578 1
a7578 1
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d7594 1
a7594 1
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
d7597 1
a7597 1
#line 18723 "configure"
d7678 3
a7680 508
fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 18821 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_GCJ \
    CC_GCJ \
    LD_GCJ \
    lt_prog_compiler_wl_GCJ \
    lt_prog_compiler_pic_GCJ \
    lt_prog_compiler_static_GCJ \
    lt_prog_compiler_no_builtin_flag_GCJ \
    export_dynamic_flag_spec_GCJ \
    thread_safe_flag_spec_GCJ \
    whole_archive_flag_spec_GCJ \
    enable_shared_with_static_runtimes_GCJ \
    old_archive_cmds_GCJ \
    old_archive_from_new_cmds_GCJ \
    predep_objects_GCJ \
    postdep_objects_GCJ \
    predeps_GCJ \
    postdeps_GCJ \
    compiler_lib_search_path_GCJ \
    archive_cmds_GCJ \
    archive_expsym_cmds_GCJ \
    postinstall_cmds_GCJ \
    postuninstall_cmds_GCJ \
    old_archive_from_expsyms_cmds_GCJ \
    allow_undefined_flag_GCJ \
    no_undefined_flag_GCJ \
    export_symbols_cmds_GCJ \
    hardcode_libdir_flag_spec_GCJ \
    hardcode_libdir_flag_spec_ld_GCJ \
    hardcode_libdir_separator_GCJ \
    hardcode_automatic_GCJ \
    module_cmds_GCJ \
    module_expsym_cmds_GCJ \
    lt_cv_prog_compiler_c_o_GCJ \
    exclude_expsyms_GCJ \
    include_expsyms_GCJ; do

    case $var in
    old_archive_cmds_GCJ | \
    old_archive_from_new_cmds_GCJ | \
    archive_cmds_GCJ | \
    archive_expsym_cmds_GCJ | \
    module_cmds_GCJ | \
    module_expsym_cmds_GCJ | \
    old_archive_from_expsyms_cmds_GCJ | \
    export_symbols_cmds_GCJ | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_GCJ

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler_GCJ

# Is the compiler the GNU C compiler?
with_gcc=$GCC_GCJ

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_GCJ

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_GCJ

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext='$shrext'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_GCJ
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ

# Must we lock files when doing compilation ?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_GCJ

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_GCJ
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_GCJ
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_GCJ
module_expsym_cmds=$lt_module_expsym_cmds_GCJ

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_GCJ

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_GCJ

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_GCJ

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_GCJ

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_GCJ

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_GCJ

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_GCJ

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_GCJ

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_GCJ

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_GCJ"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_GCJ

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_GCJ

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_GCJ

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_GCJ

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__

d7682 9
d7692 9
a7700 8
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi
d7702 1
d7704 9
a7712 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7714 21
a7734 1
CC="$lt_save_CC"
d7736 3
a7738 4
	else
	  tagname=""
	fi
	;;
d7740 5
a7744 1
      RC)
d7746 6
d7753 21
a7774 2
# Source file extension for RC test sources.
ac_ext=rc
d7776 4
a7779 3
# Object file extension for compiled RC test sources.
objext=o
objext_RC=$objext
d7781 5
a7785 2
# Code to be used in simple compile tests
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
d7787 4
a7790 2
# Code to be used in simple link tests
lt_simple_link_test_code="$lt_simple_compile_test_code"
d7792 5
a7796 1
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
a7797 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
d7799 16
a7814 2
# Allow CC to be a program name with arguments.
compiler=$CC
d7816 32
d7849 6
a7854 6
# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${RC-"windres"}
compiler=$CC
compiler_RC=$CC
lt_cv_prog_compiler_c_o_RC=yes
d7856 1
a7856 1
# The else clause should only fire when bootstrapping the
d7861 14
a7874 5
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
d7878 14
a7891 7
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
d7893 1
a7893 36
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_RC \
    CC_RC \
    LD_RC \
    lt_prog_compiler_wl_RC \
    lt_prog_compiler_pic_RC \
    lt_prog_compiler_static_RC \
    lt_prog_compiler_no_builtin_flag_RC \
    export_dynamic_flag_spec_RC \
    thread_safe_flag_spec_RC \
    whole_archive_flag_spec_RC \
    enable_shared_with_static_runtimes_RC \
    old_archive_cmds_RC \
    old_archive_from_new_cmds_RC \
    predep_objects_RC \
    postdep_objects_RC \
    predeps_RC \
    postdeps_RC \
    compiler_lib_search_path_RC \
    archive_cmds_RC \
    archive_expsym_cmds_RC \
    postinstall_cmds_RC \
    postuninstall_cmds_RC \
    old_archive_from_expsyms_cmds_RC \
    allow_undefined_flag_RC \
    no_undefined_flag_RC \
    export_symbols_cmds_RC \
    hardcode_libdir_flag_spec_RC \
    hardcode_libdir_flag_spec_ld_RC \
    hardcode_libdir_separator_RC \
    hardcode_automatic_RC \
    module_cmds_RC \
    module_expsym_cmds_RC \
    lt_cv_prog_compiler_c_o_RC \
    exclude_expsyms_RC \
    include_expsyms_RC; do
d7896 4
a7899 9
    old_archive_cmds_RC | \
    old_archive_from_new_cmds_RC | \
    archive_cmds_RC | \
    archive_expsym_cmds_RC | \
    module_cmds_RC | \
    module_expsym_cmds_RC | \
    old_archive_from_expsyms_cmds_RC | \
    export_symbols_cmds_RC | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
d7901 1
a7901 2
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
d7911 31
a7941 5
  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac
d7943 3
a7945 1
cfgfile="$ofile"
d7947 1
a7947 2
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
d7961 1
a7961 4
build_libtool_need_lc=$archive_cmds_need_lc_RC

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
d7977 2
a7978 5
# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler_RC
d7981 1
a7981 4
with_gcc=$GCC_RC

# An ERE matcher.
EGREP=$lt_EGREP
d7984 1
a7984 1
LD=$lt_LD_RC
d7993 1
a7993 1
STRIP=$lt_STRIP
d8015 1
a8015 1
wl=$lt_lt_prog_compiler_wl_RC
a8022 3
# Shared library suffix (normally ".so").
shrext='$shrext'

d8027 1
a8027 1
pic_flag=$lt_lt_prog_compiler_pic_RC
d8030 2
a8031 2
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
d8033 2
a8034 2
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
d8055 1
a8055 1
link_static_flag=$lt_lt_prog_compiler_static_RC
d8058 1
a8058 1
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
d8061 1
a8061 1
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
d8064 1
a8064 1
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
d8067 1
a8067 1
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
d8084 1
a8084 1
old_archive_cmds=$lt_old_archive_cmds_RC
d8089 1
a8089 1
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
d8092 1
a8092 1
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
d8095 2
a8096 2
archive_cmds=$lt_archive_cmds_RC
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
a8099 4
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_RC
module_expsym_cmds=$lt_module_expsym_cmds_RC

a8103 20
# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_RC

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_RC

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_RC

d8111 1
a8111 1
allow_undefined_flag=$lt_allow_undefined_flag_RC
d8114 1
a8114 1
no_undefined_flag=$lt_no_undefined_flag_RC
d8123 1
a8123 1
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d8126 1
a8126 1
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d8129 1
a8129 1
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d8141 1
a8141 1
hardcode_action=$hardcode_action_RC
d8148 1
a8148 6
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
d8151 1
a8151 1
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
d8153 1
a8153 1
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
d8155 1
a8155 1
hardcode_direct=$hardcode_direct_RC
d8159 1
a8159 1
hardcode_minus_L=$hardcode_minus_L_RC
d8163 1
a8163 5
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_RC
d8170 1
a8170 1
link_all_deplibs=$link_all_deplibs_RC
d8179 1
a8179 1
fix_srcfile_path="$fix_srcfile_path_RC"
d8182 1
a8182 1
always_export_symbols=$always_export_symbols_RC
d8185 1
a8185 1
export_symbols_cmds=$lt_export_symbols_cmds_RC
d8191 1
a8191 1
exclude_expsyms=$lt_exclude_expsyms_RC
d8194 1
a8194 1
include_expsyms=$lt_include_expsyms_RC
d8196 1
a8196 1
# ### END LIBTOOL TAG CONFIG: $tagname
d8200 3
d8204 6
a8209 8
else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
d8211 3
d8215 175
d8391 3
a8393 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d8395 5
a8399 1
CC="$lt_save_CC"
d8401 4
a8404 8
	;;

      *)
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
      esac
a8405 7
      # Append the new tag name to the list of available tags.
      if test -n "$tagname" ; then
      available_tags="$available_tags $tagname"
    fi
    fi
  done
  IFS="$lt_save_ifs"
a8406 11
  # Now substitute the updated list of available tags.
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    mv "${ofile}T" "$ofile"
    chmod +x "$ofile"
  else
    rm -f "${ofile}T"
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
   { (exit 1); exit 1; }; }
  fi
fi
a8420 18


















d8533 2
a8534 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d8537 6
d8553 1
a8553 1
  (eval $ac_link) 2>conftest.er1
a8554 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d8557 1
a8557 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d8571 1
a8571 2
sed 's/^/| /' conftest.$ac_ext >&5

d8573 1
a8573 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d8580 2
a8581 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d8584 6
d8600 1
a8600 1
  (eval $ac_compile) 2>conftest.er1
a8601 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d8604 1
a8604 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d8613 1
a8613 2
sed 's/^/| /' conftest.$ac_ext >&5

d8615 1
a8615 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d8620 2
a8621 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d8624 6
d8640 1
a8640 1
  (eval $ac_link) 2>conftest.er1
a8641 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d8644 1
a8644 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d8653 1
a8653 2
sed 's/^/| /' conftest.$ac_ext >&5

d8655 1
a8655 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d8786 2
a8787 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d8789 6
d8805 1
a8805 1
  (eval $ac_link) 2>conftest.er1
a8806 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d8809 1
a8809 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d8823 1
a8823 2
sed 's/^/| /' conftest.$ac_ext >&5

d8825 1
a8825 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d8832 2
a8833 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d8835 6
d8851 1
a8851 1
  (eval $ac_compile) 2>conftest.er1
a8852 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d8855 1
a8855 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d8864 1
a8864 2
sed 's/^/| /' conftest.$ac_ext >&5

d8866 1
a8866 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d8871 2
a8872 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d8874 6
d8890 1
a8890 1
  (eval $ac_link) 2>conftest.er1
a8891 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d8894 1
a8894 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d8903 1
a8903 2
sed 's/^/| /' conftest.$ac_ext >&5

d8905 1
a8905 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d8952 2
a8953 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d8955 6
d8973 1
a8973 1
  (eval $ac_compile) 2>conftest.er1
a8974 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d8977 1
a8977 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d8986 1
a8986 2
sed 's/^/| /' conftest.$ac_ext >&5

d8989 1
a8989 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d9009 2
a9010 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d9012 6
d9029 1
a9029 1
  (eval $ac_compile) 2>conftest.er1
a9030 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9033 1
a9033 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d9042 1
a9042 2
sed 's/^/| /' conftest.$ac_ext >&5

d9045 1
a9045 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d9068 2
a9069 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d9071 6
d9088 1
a9088 1
  (eval $ac_compile) 2>conftest.er1
a9089 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9092 1
a9092 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d9101 1
a9101 2
sed 's/^/| /' conftest.$ac_ext >&5

d9104 1
a9104 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d9138 2
a9139 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d9141 6
d9157 1
a9157 1
  (eval $ac_link) 2>conftest.er1
a9158 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9161 1
a9161 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9170 1
a9170 2
sed 's/^/| /' conftest.$ac_ext >&5

d9172 1
a9172 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9194 2
a9195 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d9197 2
a9198 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a9201 1
{
d9206 11
d9223 1
a9223 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a9225 4
int
main ()
{
return f != $ac_func;
d9232 1
a9232 1
  (eval $ac_link) 2>conftest.er1
a9233 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9236 1
a9236 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9245 1
a9245 2
sed 's/^/| /' conftest.$ac_ext >&5

d9248 1
a9248 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9326 2
a9327 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d9329 6
d9345 1
a9345 1
  (eval $ac_link) 2>conftest.er1
a9346 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9349 1
a9349 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9358 1
a9358 2
sed 's/^/| /' conftest.$ac_ext >&5

d9360 1
a9360 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9382 2
a9383 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d9385 2
a9386 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a9389 1
{
d9394 11
d9411 1
a9411 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a9413 4
int
main ()
{
return f != $ac_func;
d9420 1
a9420 1
  (eval $ac_link) 2>conftest.er1
a9421 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9424 1
a9424 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9433 1
a9433 2
sed 's/^/| /' conftest.$ac_ext >&5

d9436 1
a9436 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9514 2
a9515 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d9517 6
d9533 1
a9533 1
  (eval $ac_link) 2>conftest.er1
a9534 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9537 1
a9537 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9546 1
a9546 2
sed 's/^/| /' conftest.$ac_ext >&5

d9548 1
a9548 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9570 2
a9571 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d9573 2
a9574 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a9577 1
{
d9582 11
d9599 1
a9599 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a9601 4
int
main ()
{
return f != $ac_func;
d9608 1
a9608 1
  (eval $ac_link) 2>conftest.er1
a9609 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9612 1
a9612 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9621 1
a9621 2
sed 's/^/| /' conftest.$ac_ext >&5

d9624 1
a9624 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9702 2
a9703 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d9705 6
d9721 1
a9721 1
  (eval $ac_link) 2>conftest.er1
a9722 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9725 1
a9725 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9734 1
a9734 2
sed 's/^/| /' conftest.$ac_ext >&5

d9736 1
a9736 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9758 2
a9759 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d9761 2
a9762 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a9765 1
{
d9770 11
d9787 1
a9787 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a9789 4
int
main ()
{
return f != $ac_func;
d9796 1
a9796 1
  (eval $ac_link) 2>conftest.er1
a9797 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9800 1
a9800 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9809 1
a9809 2
sed 's/^/| /' conftest.$ac_ext >&5

d9812 1
a9812 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9892 2
a9893 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d9895 6
d9911 1
a9911 1
  (eval $ac_link) 2>conftest.er1
a9912 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9915 1
a9915 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9924 1
a9924 2
sed 's/^/| /' conftest.$ac_ext >&5

d9926 1
a9926 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d9948 2
a9949 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d9951 2
a9952 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a9955 1
{
d9960 11
d9977 1
a9977 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a9979 4
int
main ()
{
return f != $ac_func;
d9986 1
a9986 1
  (eval $ac_link) 2>conftest.er1
a9987 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d9990 1
a9990 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d9999 1
a9999 2
sed 's/^/| /' conftest.$ac_ext >&5

d10002 1
a10002 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d10066 2
a10067 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10070 6
d10087 1
a10087 1
  (eval $ac_compile) 2>conftest.er1
a10088 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10091 1
a10091 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d10100 1
a10100 2
sed 's/^/| /' conftest.$ac_ext >&5

d10103 1
a10103 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d10121 2
a10122 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10127 6
d10143 1
a10143 1
  (eval $ac_compile) 2>conftest.er1
a10144 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10147 1
a10147 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d10156 1
a10156 2
sed 's/^/| /' conftest.$ac_ext >&5

d10159 1
a10159 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d10289 2
a10290 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10323 6
d10353 1
a10353 1
  (eval $ac_link) 2>conftest.er1
a10354 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10357 1
a10357 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d10366 1
a10366 2
sed 's/^/| /' conftest.$ac_ext >&5

d10368 1
a10368 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d10376 2
a10377 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10410 6
d10440 1
a10440 1
  (eval $ac_link) 2>conftest.er1
a10441 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10444 1
a10444 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d10453 1
a10453 2
sed 's/^/| /' conftest.$ac_ext >&5

d10455 1
a10455 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d10463 2
a10464 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10497 6
d10527 1
a10527 1
  (eval $ac_link) 2>conftest.er1
a10528 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10531 1
a10531 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d10540 1
a10540 2
sed 's/^/| /' conftest.$ac_ext >&5

d10542 1
a10542 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d10581 2
a10582 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10615 6
d10645 1
a10645 1
  (eval $ac_link) 2>conftest.er1
a10646 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10649 1
a10649 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d10662 1
a10662 2
sed 's/^/| /' conftest.$ac_ext >&5

d10664 1
a10664 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d10803 2
a10804 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10810 1
a10810 1
  (eval $ac_compile) 2>conftest.er1
a10811 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10814 1
a10814 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d10823 1
a10823 2
sed 's/^/| /' conftest.$ac_ext >&5

d10826 1
a10826 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d10834 2
a10835 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10841 1
a10841 1
  grep -v '^ *+' conftest.er1 >conftest.err
a10847 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d10858 1
a10858 2
sed 's/^/| /' conftest.$ac_ext >&5

d10866 2
a10867 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d10870 3
a10872 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d10875 2
a10876 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d10878 1
a10878 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d10885 1
a10885 1
  eval "$as_ac_Header=\$ac_header_preproc"
d10923 2
a10924 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d10935 6
d10951 1
a10951 1
  (eval $ac_link) 2>conftest.er1
a10952 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d10955 1
a10955 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d10964 1
a10964 2
sed 's/^/| /' conftest.$ac_ext >&5

d10966 1
a10966 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d10988 2
a10989 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d10991 2
a10992 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a10995 1
{
d11000 11
d11017 1
a11017 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a11019 4
int
main ()
{
return f != $ac_func;
d11026 1
a11026 1
  (eval $ac_link) 2>conftest.er1
a11027 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11030 1
a11030 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d11039 1
a11039 2
sed 's/^/| /' conftest.$ac_ext >&5

d11042 1
a11042 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d11131 2
a11132 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d11145 6
d11161 1
a11161 1
  (eval $ac_link) 2>conftest.er1
a11162 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11165 1
a11165 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d11174 1
a11174 2
sed 's/^/| /' conftest.$ac_ext >&5

d11176 1
a11176 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d11198 2
a11199 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d11201 2
a11202 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a11205 1
{
d11210 11
d11227 1
a11227 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a11229 4
int
main ()
{
return f != $ac_func;
d11236 1
a11236 1
  (eval $ac_link) 2>conftest.er1
a11237 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11240 1
a11240 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d11249 1
a11249 2
sed 's/^/| /' conftest.$ac_ext >&5

d11252 1
a11252 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d11342 2
a11343 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d11350 6
d11366 1
a11366 1
  (eval $ac_link) 2>conftest.er1
a11367 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11370 1
a11370 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d11379 1
a11379 2
sed 's/^/| /' conftest.$ac_ext >&5

d11381 1
a11381 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d11403 2
a11404 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d11406 2
a11407 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a11410 1
{
d11415 11
d11432 1
a11432 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a11434 4
int
main ()
{
return f != $ac_func;
d11441 1
a11441 1
  (eval $ac_link) 2>conftest.er1
a11442 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11445 1
a11445 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d11454 1
a11454 2
sed 's/^/| /' conftest.$ac_ext >&5

d11457 1
a11457 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d11557 2
a11558 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d11564 1
a11564 1
  (eval $ac_compile) 2>conftest.er1
a11565 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11568 1
a11568 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d11577 1
a11577 2
sed 's/^/| /' conftest.$ac_ext >&5

d11580 1
a11580 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d11588 2
a11589 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d11595 1
a11595 1
  grep -v '^ *+' conftest.er1 >conftest.err
a11601 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d11612 1
a11612 2
sed 's/^/| /' conftest.$ac_ext >&5

d11620 2
a11621 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d11624 3
a11626 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d11629 2
a11630 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d11632 1
a11632 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d11639 1
a11639 1
  eval "$as_ac_Header=\$ac_header_preproc"
d11676 2
a11677 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d11687 6
d11703 1
a11703 1
  (eval $ac_link) 2>conftest.er1
a11704 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11707 1
a11707 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d11716 1
a11716 2
sed 's/^/| /' conftest.$ac_ext >&5

d11718 1
a11718 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d11740 2
a11741 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d11743 2
a11744 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a11747 1
{
d11752 11
d11769 1
a11769 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a11771 4
int
main ()
{
return f != $ac_func;
d11778 1
a11778 1
  (eval $ac_link) 2>conftest.er1
a11779 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11782 1
a11782 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d11791 1
a11791 2
sed 's/^/| /' conftest.$ac_ext >&5

d11794 1
a11794 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d11886 2
a11887 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d11893 1
a11893 1
  (eval $ac_compile) 2>conftest.er1
a11894 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d11897 1
a11897 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d11906 1
a11906 2
sed 's/^/| /' conftest.$ac_ext >&5

d11909 1
a11909 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d11917 2
a11918 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d11924 1
a11924 1
  grep -v '^ *+' conftest.er1 >conftest.err
a11930 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d11941 1
a11941 2
sed 's/^/| /' conftest.$ac_ext >&5

d11949 2
a11950 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d11953 3
a11955 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d11958 2
a11959 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d11961 1
a11961 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d11968 1
a11968 1
  eval "$as_ac_Header=\$ac_header_preproc"
d12005 2
a12006 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12012 6
d12028 1
a12028 1
  (eval $ac_link) 2>conftest.er1
a12029 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12032 1
a12032 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d12041 1
a12041 2
sed 's/^/| /' conftest.$ac_ext >&5

d12043 1
a12043 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d12065 2
a12066 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d12068 2
a12069 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a12072 1
{
d12077 11
d12094 1
a12094 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a12096 4
int
main ()
{
return f != $ac_func;
d12103 1
a12103 1
  (eval $ac_link) 2>conftest.er1
a12104 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12107 1
a12107 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d12116 1
a12116 2
sed 's/^/| /' conftest.$ac_ext >&5

d12119 1
a12119 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d12196 2
a12197 4
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
d12201 2
a12202 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12251 1
a12251 2
sed 's/^/| /' conftest.$ac_ext >&5

d12256 1
a12256 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d12308 2
a12309 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12311 2
a12312 3
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
d12318 1
a12318 1
  (eval $ac_compile) 2>conftest.er1
a12319 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12322 1
a12322 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12331 1
a12331 2
sed 's/^/| /' conftest.$ac_ext >&5

d12333 1
a12333 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a12338 2


d12341 7
a12347 9
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
d12349 1
a12349 1
    ;;
d12358 2
a12359 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12361 6
d12423 1
a12423 1
  (eval $ac_compile) 2>conftest.er1
a12424 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12427 1
a12427 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12436 1
a12436 2
sed 's/^/| /' conftest.$ac_ext >&5

d12439 1
a12439 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12457 2
a12458 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12460 6
d12479 1
a12479 1
  (eval $ac_compile) 2>conftest.er1
a12480 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12483 1
a12483 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12492 1
a12492 2
sed 's/^/| /' conftest.$ac_ext >&5

d12495 1
a12495 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12515 2
a12516 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12518 6
d12537 1
a12537 1
  (eval $ac_compile) 2>conftest.er1
a12538 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12541 1
a12541 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12550 1
a12550 2
sed 's/^/| /' conftest.$ac_ext >&5

d12553 1
a12553 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12573 2
a12574 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12579 1
a12579 1
  $EGREP "uid_t" >/dev/null 2>&1; then
d12609 2
a12610 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12622 6
d12638 1
a12638 11
  (eval $ac_compile) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
d12641 2
a12642 2
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12651 1
a12651 2
sed 's/^/| /' conftest.$ac_ext >&5

d12654 1
a12654 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12681 2
a12682 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12687 6
d12704 1
a12704 1
  (eval $ac_compile) 2>conftest.er1
a12705 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12708 1
a12708 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12717 1
a12717 2
sed 's/^/| /' conftest.$ac_ext >&5

d12720 1
a12720 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12750 2
a12751 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12757 1
a12757 1
  (eval $ac_compile) 2>conftest.er1
a12758 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12761 1
a12761 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12770 1
a12770 2
sed 's/^/| /' conftest.$ac_ext >&5

d12773 1
a12773 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12781 2
a12782 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12788 1
a12788 1
  grep -v '^ *+' conftest.er1 >conftest.err
a12794 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d12805 1
a12805 2
sed 's/^/| /' conftest.$ac_ext >&5

d12813 2
a12814 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d12817 3
a12819 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d12822 2
a12823 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d12825 1
a12825 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d12832 1
a12832 1
  eval "$as_ac_Header=\$ac_header_preproc"
d12857 2
a12858 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12869 1
a12869 1
  grep -v '^ *+' conftest.er1 >conftest.err
a12875 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d12886 1
a12886 2
sed 's/^/| /' conftest.$ac_ext >&5

d12921 2
a12922 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12928 1
a12928 1
  (eval $ac_compile) 2>conftest.er1
a12929 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d12932 1
a12932 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d12941 1
a12941 2
sed 's/^/| /' conftest.$ac_ext >&5

d12944 1
a12944 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d12952 2
a12953 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d12959 1
a12959 1
  grep -v '^ *+' conftest.er1 >conftest.err
a12965 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d12976 1
a12976 2
sed 's/^/| /' conftest.$ac_ext >&5

d12984 2
a12985 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d12988 3
a12990 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d12993 2
a12994 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d12996 1
a12996 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d13003 1
a13003 1
  eval "$as_ac_Header=\$ac_header_preproc"
d13032 2
a13033 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d13035 2
a13036 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a13039 1
{
d13044 11
d13061 1
a13061 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a13063 4
int
main ()
{
return f != $ac_func;
d13070 1
a13070 1
  (eval $ac_link) 2>conftest.er1
a13071 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13074 1
a13074 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d13083 1
a13083 2
sed 's/^/| /' conftest.$ac_ext >&5

d13086 1
a13086 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d13141 2
a13142 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13148 1
a13148 1
  (eval $ac_compile) 2>conftest.er1
a13149 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13152 1
a13152 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d13161 1
a13161 2
sed 's/^/| /' conftest.$ac_ext >&5

d13164 1
a13164 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d13172 2
a13173 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13179 1
a13179 1
  grep -v '^ *+' conftest.er1 >conftest.err
a13185 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d13196 1
a13196 2
sed 's/^/| /' conftest.$ac_ext >&5

d13204 2
a13205 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d13208 3
a13210 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d13213 2
a13214 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d13216 1
a13216 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d13223 1
a13223 1
  eval "$as_ac_Header=\$ac_header_preproc"
d13248 2
a13249 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d13251 2
a13252 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a13255 1
{
d13260 11
d13277 1
a13277 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a13279 4
int
main ()
{
return f != $ac_func;
d13286 1
a13286 1
  (eval $ac_link) 2>conftest.er1
a13287 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13290 1
a13290 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d13299 1
a13299 2
sed 's/^/| /' conftest.$ac_ext >&5

d13302 1
a13302 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d13323 2
a13324 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13427 1
a13427 1
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
d13429 1
a13429 1
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
d13467 1
a13467 2
sed 's/^/| /' conftest.$ac_ext >&5

d13471 1
a13471 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d13497 2
a13498 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13524 1
a13524 2
sed 's/^/| /' conftest.$ac_ext >&5

d13528 1
a13528 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d13592 2
a13593 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13600 6
d13616 1
a13616 1
  (eval $ac_compile) 2>conftest.er1
a13617 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13620 1
a13620 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d13629 1
a13629 2
sed 's/^/| /' conftest.$ac_ext >&5

d13632 1
a13632 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d13646 2
a13647 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13649 6
d13668 1
a13668 1
  (eval $ac_compile) 2>conftest.er1
a13669 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13672 1
a13672 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d13681 1
a13681 2
sed 's/^/| /' conftest.$ac_ext >&5

d13684 1
a13684 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d13716 2
a13717 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13724 6
d13740 1
a13740 1
  (eval $ac_compile) 2>conftest.er1
a13741 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13744 1
a13744 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d13753 1
a13753 2
sed 's/^/| /' conftest.$ac_ext >&5

d13756 1
a13756 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d13770 2
a13771 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13773 6
d13792 1
a13792 1
  (eval $ac_compile) 2>conftest.er1
a13793 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13796 1
a13796 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d13805 1
a13805 2
sed 's/^/| /' conftest.$ac_ext >&5

d13808 1
a13808 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d13942 2
a13943 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13949 1
a13949 1
  (eval $ac_compile) 2>conftest.er1
a13950 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d13953 1
a13953 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d13962 1
a13962 2
sed 's/^/| /' conftest.$ac_ext >&5

d13965 1
a13965 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d13973 2
a13974 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d13980 1
a13980 1
  grep -v '^ *+' conftest.er1 >conftest.err
a13986 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d13997 1
a13997 2
sed 's/^/| /' conftest.$ac_ext >&5

d14005 2
a14006 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d14009 3
a14011 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d14014 2
a14015 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d14017 1
a14017 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d14024 1
a14024 1
  eval "$as_ac_Header=\$ac_header_preproc"
d14106 2
a14107 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14109 6
d14125 1
a14125 1
  (eval $ac_link) 2>conftest.er1
a14126 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14129 1
a14129 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14138 1
a14138 2
sed 's/^/| /' conftest.$ac_ext >&5

d14140 1
a14140 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14162 2
a14163 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d14165 2
a14166 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a14169 1
{
d14174 11
d14191 1
a14191 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a14193 4
int
main ()
{
return f != $ac_func;
d14200 1
a14200 1
  (eval $ac_link) 2>conftest.er1
a14201 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14204 1
a14204 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14213 1
a14213 2
sed 's/^/| /' conftest.$ac_ext >&5

d14216 1
a14216 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14294 2
a14295 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14297 6
d14313 1
a14313 1
  (eval $ac_link) 2>conftest.er1
a14314 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14317 1
a14317 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14326 1
a14326 2
sed 's/^/| /' conftest.$ac_ext >&5

d14328 1
a14328 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14350 2
a14351 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d14353 2
a14354 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a14357 1
{
d14362 11
d14379 1
a14379 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a14381 4
int
main ()
{
return f != $ac_func;
d14388 1
a14388 1
  (eval $ac_link) 2>conftest.er1
a14389 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14392 1
a14392 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14401 1
a14401 2
sed 's/^/| /' conftest.$ac_ext >&5

d14404 1
a14404 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14482 2
a14483 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14485 6
d14501 1
a14501 1
  (eval $ac_link) 2>conftest.er1
a14502 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14505 1
a14505 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14514 1
a14514 2
sed 's/^/| /' conftest.$ac_ext >&5

d14516 1
a14516 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14538 2
a14539 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d14541 2
a14542 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a14545 1
{
d14550 11
d14567 1
a14567 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a14569 4
int
main ()
{
return f != $ac_func;
d14576 1
a14576 1
  (eval $ac_link) 2>conftest.er1
a14577 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14580 1
a14580 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14589 1
a14589 2
sed 's/^/| /' conftest.$ac_ext >&5

d14592 1
a14592 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14672 2
a14673 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14681 1
a14681 1
  $EGREP "yes" >/dev/null 2>&1; then
d14691 2
a14692 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14700 1
a14700 1
  $EGREP "yes" >/dev/null 2>&1; then
d14710 2
a14711 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14719 1
a14719 1
  $EGREP "yes" >/dev/null 2>&1; then
d14729 2
a14730 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14738 1
a14738 1
  $EGREP "yes" >/dev/null 2>&1; then
d14746 2
a14747 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14755 1
a14755 1
  $EGREP "yes" >/dev/null 2>&1; then
d14797 2
a14798 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14813 6
d14839 1
a14839 1
  (eval $ac_link) 2>conftest.er1
a14840 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14843 1
a14843 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14852 1
a14852 2
sed 's/^/| /' conftest.$ac_ext >&5

d14855 1
a14855 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14877 2
a14878 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14892 6
d14911 1
a14911 1
  (eval $ac_link) 2>conftest.er1
a14912 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14915 1
a14915 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14924 1
a14924 2
sed 's/^/| /' conftest.$ac_ext >&5

d14927 1
a14927 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d14963 2
a14964 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d14966 6
d14982 1
a14982 1
  (eval $ac_link) 2>conftest.er1
a14983 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d14986 1
a14986 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d14995 1
a14995 2
sed 's/^/| /' conftest.$ac_ext >&5

d14997 1
a14997 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15019 2
a15020 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d15022 2
a15023 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a15026 1
{
d15031 11
d15048 1
a15048 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a15050 4
int
main ()
{
return f != $ac_func;
d15057 1
a15057 1
  (eval $ac_link) 2>conftest.er1
a15058 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15061 1
a15061 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15070 1
a15070 2
sed 's/^/| /' conftest.$ac_ext >&5

d15073 1
a15073 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15152 2
a15153 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15169 6
d15185 1
a15185 1
  (eval $ac_link) 2>conftest.er1
a15186 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15189 1
a15189 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15198 1
a15198 2
sed 's/^/| /' conftest.$ac_ext >&5

d15200 1
a15200 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15222 2
a15223 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d15225 2
a15226 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a15229 1
{
d15234 11
d15251 1
a15251 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a15253 4
int
main ()
{
return f != $ac_func;
d15260 1
a15260 1
  (eval $ac_link) 2>conftest.er1
a15261 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15264 1
a15264 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15273 1
a15273 2
sed 's/^/| /' conftest.$ac_ext >&5

d15276 1
a15276 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15355 2
a15356 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15372 6
d15388 1
a15388 1
  (eval $ac_link) 2>conftest.er1
a15389 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15392 1
a15392 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15401 1
a15401 2
sed 's/^/| /' conftest.$ac_ext >&5

d15403 1
a15403 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15425 2
a15426 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d15428 2
a15429 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a15432 1
{
d15437 11
d15454 1
a15454 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a15456 4
int
main ()
{
return f != $ac_func;
d15463 1
a15463 1
  (eval $ac_link) 2>conftest.er1
a15464 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15467 1
a15467 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15476 1
a15476 2
sed 's/^/| /' conftest.$ac_ext >&5

d15479 1
a15479 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15558 2
a15559 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15575 6
d15591 1
a15591 1
  (eval $ac_link) 2>conftest.er1
a15592 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15595 1
a15595 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15604 1
a15604 2
sed 's/^/| /' conftest.$ac_ext >&5

d15606 1
a15606 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15628 2
a15629 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d15631 2
a15632 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a15635 1
{
d15640 11
d15657 1
a15657 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a15659 4
int
main ()
{
return f != $ac_func;
d15666 1
a15666 1
  (eval $ac_link) 2>conftest.er1
a15667 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15670 1
a15670 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15679 1
a15679 2
sed 's/^/| /' conftest.$ac_ext >&5

d15682 1
a15682 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15748 2
a15749 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15764 6
d15780 1
a15780 1
  (eval $ac_link) 2>conftest.er1
a15781 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15784 1
a15784 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15793 1
a15793 2
sed 's/^/| /' conftest.$ac_ext >&5

d15796 1
a15796 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15799 2
a15800 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15803 6
d15819 1
a15819 1
  (eval $ac_link) 2>conftest.er1
a15820 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15823 1
a15823 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d15832 1
a15832 2
sed 's/^/| /' conftest.$ac_ext >&5

d15835 1
a15835 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d15857 2
a15858 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15873 6
d15889 1
a15889 1
  (eval $ac_compile) 2>conftest.er1
a15890 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d15893 1
a15893 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d15902 1
a15902 2
sed 's/^/| /' conftest.$ac_ext >&5

d15905 1
a15905 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d15938 2
a15939 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15965 1
a15965 2
sed 's/^/| /' conftest.$ac_ext >&5

d15969 1
a15969 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d15991 2
a15992 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d15994 6
d16013 1
a16013 1
  (eval $ac_compile) 2>conftest.er1
a16014 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16017 1
a16017 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d16026 1
a16026 2
sed 's/^/| /' conftest.$ac_ext >&5

d16029 1
a16029 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d16055 2
a16056 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d16093 1
a16093 2
sed 's/^/| /' conftest.$ac_ext >&5

d16097 1
a16097 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d16119 2
a16120 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d16122 6
d16141 1
a16141 1
  (eval $ac_compile) 2>conftest.er1
a16142 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16145 1
a16145 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d16154 1
a16154 2
sed 's/^/| /' conftest.$ac_ext >&5

d16157 1
a16157 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d16181 2
a16182 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d16186 6
d16211 1
a16211 1
  (eval $ac_link) 2>conftest.er1
a16212 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16215 1
a16215 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16224 1
a16224 2
sed 's/^/| /' conftest.$ac_ext >&5

d16227 1
a16227 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d16248 2
a16249 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d16252 6
d16271 1
a16271 1
  (eval $ac_compile) 2>conftest.er1
a16272 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16275 1
a16275 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d16284 1
a16284 2
sed 's/^/| /' conftest.$ac_ext >&5

d16287 1
a16287 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d16303 1
a16303 8
	case $LIBOBJS in
    "glob.$ac_objext"   | \
  *" glob.$ac_objext"   | \
    "glob.$ac_objext "* | \
  *" glob.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
esac

d16379 2
a16380 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d16382 2
a16383 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a16386 1
{
d16391 11
d16408 1
a16408 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a16410 4
int
main ()
{
return f != $ac_func;
d16417 1
a16417 1
  (eval $ac_link) 2>conftest.er1
a16418 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16421 1
a16421 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16430 1
a16430 2
sed 's/^/| /' conftest.$ac_ext >&5

d16433 1
a16433 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d16447 1
a16447 8
	case $LIBOBJS in
    "getcap.$ac_objext"   | \
  *" getcap.$ac_objext"   | \
    "getcap.$ac_objext "* | \
  *" getcap.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getcap.$ac_objext" ;;
esac

d16475 2
a16476 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d16483 6
d16499 1
a16499 1
  (eval $ac_link) 2>conftest.er1
a16500 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16503 1
a16503 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16512 1
a16512 2
sed 's/^/| /' conftest.$ac_ext >&5

d16514 1
a16514 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d16536 2
a16537 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d16539 2
a16540 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a16543 1
{
d16548 11
d16565 1
a16565 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a16567 4
int
main ()
{
return f != $ac_func;
d16574 1
a16574 1
  (eval $ac_link) 2>conftest.er1
a16575 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16578 1
a16578 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16587 1
a16587 2
sed 's/^/| /' conftest.$ac_ext >&5

d16590 1
a16590 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d16663 2
a16664 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d16671 6
d16687 1
a16687 1
  (eval $ac_link) 2>conftest.er1
a16688 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16691 1
a16691 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16700 1
a16700 2
sed 's/^/| /' conftest.$ac_ext >&5

d16702 1
a16702 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d16724 2
a16725 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d16727 2
a16728 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a16731 1
{
d16736 11
d16753 1
a16753 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a16755 4
int
main ()
{
return f != $ac_func;
d16762 1
a16762 1
  (eval $ac_link) 2>conftest.er1
a16763 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16766 1
a16766 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16775 1
a16775 2
sed 's/^/| /' conftest.$ac_ext >&5

d16778 1
a16778 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d16853 2
a16854 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d16858 6
d16874 1
a16874 1
  (eval $ac_link) 2>conftest.er1
a16875 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16878 1
a16878 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16887 1
a16887 2
sed 's/^/| /' conftest.$ac_ext >&5

d16889 1
a16889 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d16911 2
a16912 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d16914 2
a16915 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a16918 1
{
d16923 11
d16940 1
a16940 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a16942 4
int
main ()
{
return f != $ac_func;
d16949 1
a16949 1
  (eval $ac_link) 2>conftest.er1
a16950 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d16953 1
a16953 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d16962 1
a16962 2
sed 's/^/| /' conftest.$ac_ext >&5

d16965 1
a16965 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17022 1
a17022 8
	case $LIBOBJS in
    "hstrerror.$ac_objext"   | \
  *" hstrerror.$ac_objext"   | \
    "hstrerror.$ac_objext "* | \
  *" hstrerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" ;;
esac

d17033 2
a17034 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17039 6
d17058 1
a17058 1
  (eval $ac_compile) 2>conftest.er1
a17059 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17062 1
a17062 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d17071 1
a17071 2
sed 's/^/| /' conftest.$ac_ext >&5

d17074 1
a17074 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d17096 2
a17097 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17101 6
d17120 1
a17120 1
  (eval $ac_compile) 2>conftest.er1
a17121 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17124 1
a17124 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d17133 1
a17133 2
sed 's/^/| /' conftest.$ac_ext >&5

d17136 1
a17136 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d17156 2
a17157 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17161 6
d17180 1
a17180 1
  (eval $ac_compile) 2>conftest.er1
a17181 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17184 1
a17184 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d17193 1
a17193 2
sed 's/^/| /' conftest.$ac_ext >&5

d17196 1
a17196 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d17216 2
a17217 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17221 6
d17240 1
a17240 1
  (eval $ac_compile) 2>conftest.er1
a17241 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17244 1
a17244 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d17253 1
a17253 2
sed 's/^/| /' conftest.$ac_ext >&5

d17256 1
a17256 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d17276 2
a17277 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17281 6
d17300 1
a17300 1
  (eval $ac_compile) 2>conftest.er1
a17301 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17304 1
a17304 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d17313 1
a17313 2
sed 's/^/| /' conftest.$ac_ext >&5

d17316 1
a17316 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d17351 2
a17352 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17356 6
d17372 1
a17372 1
  (eval $ac_link) 2>conftest.er1
a17373 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17376 1
a17376 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d17385 1
a17385 2
sed 's/^/| /' conftest.$ac_ext >&5

d17387 1
a17387 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17409 2
a17410 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d17412 2
a17413 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a17416 1
{
d17421 11
d17438 1
a17438 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a17440 4
int
main ()
{
return f != $ac_func;
d17447 1
a17447 1
  (eval $ac_link) 2>conftest.er1
a17448 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17451 1
a17451 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d17460 1
a17460 2
sed 's/^/| /' conftest.$ac_ext >&5

d17463 1
a17463 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17537 2
a17538 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17542 6
d17558 1
a17558 1
  (eval $ac_link) 2>conftest.er1
a17559 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17562 1
a17562 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d17571 1
a17571 2
sed 's/^/| /' conftest.$ac_ext >&5

d17573 1
a17573 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17595 2
a17596 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d17598 2
a17599 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a17602 1
{
d17607 11
d17624 1
a17624 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a17626 4
int
main ()
{
return f != $ac_func;
d17633 1
a17633 1
  (eval $ac_link) 2>conftest.er1
a17634 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17637 1
a17637 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d17646 1
a17646 2
sed 's/^/| /' conftest.$ac_ext >&5

d17649 1
a17649 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17723 2
a17724 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17728 6
d17744 1
a17744 1
  (eval $ac_link) 2>conftest.er1
a17745 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17748 1
a17748 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d17757 1
a17757 2
sed 's/^/| /' conftest.$ac_ext >&5

d17759 1
a17759 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17781 2
a17782 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d17784 2
a17785 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a17788 1
{
d17793 11
d17810 1
a17810 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a17812 4
int
main ()
{
return f != $ac_func;
d17819 1
a17819 1
  (eval $ac_link) 2>conftest.er1
a17820 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17823 1
a17823 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d17832 1
a17832 2
sed 's/^/| /' conftest.$ac_ext >&5

d17835 1
a17835 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17910 2
a17911 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d17915 6
d17931 1
a17931 1
  (eval $ac_link) 2>conftest.er1
a17932 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d17935 1
a17935 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d17944 1
a17944 2
sed 's/^/| /' conftest.$ac_ext >&5

d17946 1
a17946 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d17968 2
a17969 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d17971 2
a17972 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a17975 1
{
d17980 11
d17997 1
a17997 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a17999 4
int
main ()
{
return f != $ac_func;
d18006 1
a18006 1
  (eval $ac_link) 2>conftest.er1
a18007 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18010 1
a18010 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18019 1
a18019 2
sed 's/^/| /' conftest.$ac_ext >&5

d18022 1
a18022 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18079 1
a18079 8
	case $LIBOBJS in
    "getaddrinfo.$ac_objext"   | \
  *" getaddrinfo.$ac_objext"   | \
    "getaddrinfo.$ac_objext "* | \
  *" getaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
esac

d18105 2
a18106 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d18110 6
d18126 1
a18126 1
  (eval $ac_link) 2>conftest.er1
a18127 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18130 1
a18130 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18139 1
a18139 2
sed 's/^/| /' conftest.$ac_ext >&5

d18141 1
a18141 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18163 2
a18164 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d18166 2
a18167 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a18170 1
{
d18174 12
a18185 1
char $ac_func ();
d18192 1
a18192 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a18194 4
int
main ()
{
return f != $ac_func;
d18201 1
a18201 1
  (eval $ac_link) 2>conftest.er1
a18202 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18205 1
a18205 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18214 1
a18214 2
sed 's/^/| /' conftest.$ac_ext >&5

d18217 1
a18217 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18274 1
a18274 8
	case $LIBOBJS in
    "getnameinfo.$ac_objext"   | \
  *" getnameinfo.$ac_objext"   | \
    "getnameinfo.$ac_objext "* | \
  *" getnameinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
esac

d18300 2
a18301 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d18305 6
d18321 1
a18321 1
  (eval $ac_link) 2>conftest.er1
a18322 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18325 1
a18325 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18334 1
a18334 2
sed 's/^/| /' conftest.$ac_ext >&5

d18336 1
a18336 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18358 2
a18359 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d18361 2
a18362 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a18365 1
{
d18370 11
d18387 1
a18387 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a18389 4
int
main ()
{
return f != $ac_func;
d18396 1
a18396 1
  (eval $ac_link) 2>conftest.er1
a18397 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18400 1
a18400 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18409 1
a18409 2
sed 's/^/| /' conftest.$ac_ext >&5

d18412 1
a18412 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18469 1
a18469 8
	case $LIBOBJS in
    "freeaddrinfo.$ac_objext"   | \
  *" freeaddrinfo.$ac_objext"   | \
    "freeaddrinfo.$ac_objext "* | \
  *" freeaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
esac

d18495 2
a18496 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d18500 6
d18516 1
a18516 1
  (eval $ac_link) 2>conftest.er1
a18517 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18520 1
a18520 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18529 1
a18529 2
sed 's/^/| /' conftest.$ac_ext >&5

d18531 1
a18531 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18553 2
a18554 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d18556 2
a18557 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a18560 1
{
d18565 11
d18582 1
a18582 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a18584 4
int
main ()
{
return f != $ac_func;
d18591 1
a18591 1
  (eval $ac_link) 2>conftest.er1
a18592 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18595 1
a18595 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18604 1
a18604 2
sed 's/^/| /' conftest.$ac_ext >&5

d18607 1
a18607 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18664 1
a18664 8
	case $LIBOBJS in
    "gai_strerror.$ac_objext"   | \
  *" gai_strerror.$ac_objext"   | \
    "gai_strerror.$ac_objext "* | \
  *" gai_strerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" ;;
esac

d18674 2
a18675 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define chown to an innocuous variant, in case <limits.h> declares chown.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define chown innocuous_chown

d18677 2
a18678 12
    which can conflict with char chown (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef chown

a18681 1
{
d18686 11
d18703 1
a18703 4
char (*f) () = chown;
#endif
#ifdef __cplusplus
}
a18705 4
int
main ()
{
return f != chown;
d18712 1
a18712 1
  (eval $ac_link) 2>conftest.er1
a18713 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18716 1
a18716 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18725 1
a18725 2
sed 's/^/| /' conftest.$ac_ext >&5

d18728 1
a18728 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18739 1
a18739 8
  case $LIBOBJS in
    "chown.$ac_objext"   | \
  *" chown.$ac_objext"   | \
    "chown.$ac_objext "* | \
  *" chown.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
esac

d18747 2
a18748 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define copyhostent innocuous_copyhostent

d18750 2
a18751 12
    which can conflict with char copyhostent (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef copyhostent

a18754 1
{
d18759 11
d18776 1
a18776 4
char (*f) () = copyhostent;
#endif
#ifdef __cplusplus
}
a18778 4
int
main ()
{
return f != copyhostent;
d18785 1
a18785 1
  (eval $ac_link) 2>conftest.er1
a18786 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18789 1
a18789 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18798 1
a18798 2
sed 's/^/| /' conftest.$ac_ext >&5

d18801 1
a18801 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18812 1
a18812 8
  case $LIBOBJS in
    "copyhostent.$ac_objext"   | \
  *" copyhostent.$ac_objext"   | \
    "copyhostent.$ac_objext "* | \
  *" copyhostent.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" ;;
esac

d18820 2
a18821 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define daemon innocuous_daemon

d18823 2
a18824 12
    which can conflict with char daemon (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef daemon

a18827 1
{
d18832 11
d18849 1
a18849 4
char (*f) () = daemon;
#endif
#ifdef __cplusplus
}
a18851 4
int
main ()
{
return f != daemon;
d18858 1
a18858 1
  (eval $ac_link) 2>conftest.er1
a18859 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18862 1
a18862 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18871 1
a18871 2
sed 's/^/| /' conftest.$ac_ext >&5

d18874 1
a18874 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18885 1
a18885 8
  case $LIBOBJS in
    "daemon.$ac_objext"   | \
  *" daemon.$ac_objext"   | \
    "daemon.$ac_objext "* | \
  *" daemon.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS daemon.$ac_objext" ;;
esac

d18893 2
a18894 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ecalloc innocuous_ecalloc

d18896 2
a18897 12
    which can conflict with char ecalloc (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ecalloc

a18900 1
{
d18905 11
d18922 1
a18922 4
char (*f) () = ecalloc;
#endif
#ifdef __cplusplus
}
a18924 4
int
main ()
{
return f != ecalloc;
d18931 1
a18931 1
  (eval $ac_link) 2>conftest.er1
a18932 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d18935 1
a18935 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d18944 1
a18944 2
sed 's/^/| /' conftest.$ac_ext >&5

d18947 1
a18947 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d18958 1
a18958 8
  case $LIBOBJS in
    "ecalloc.$ac_objext"   | \
  *" ecalloc.$ac_objext"   | \
    "ecalloc.$ac_objext "* | \
  *" ecalloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" ;;
esac

d18966 2
a18967 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define emalloc innocuous_emalloc

d18969 2
a18970 12
    which can conflict with char emalloc (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef emalloc

a18973 1
{
d18978 11
d18995 1
a18995 4
char (*f) () = emalloc;
#endif
#ifdef __cplusplus
}
a18997 4
int
main ()
{
return f != emalloc;
d19004 1
a19004 1
  (eval $ac_link) 2>conftest.er1
a19005 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19008 1
a19008 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19017 1
a19017 2
sed 's/^/| /' conftest.$ac_ext >&5

d19020 1
a19020 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19031 1
a19031 8
  case $LIBOBJS in
    "emalloc.$ac_objext"   | \
  *" emalloc.$ac_objext"   | \
    "emalloc.$ac_objext "* | \
  *" emalloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" ;;
esac

d19039 2
a19040 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define erealloc innocuous_erealloc

d19042 2
a19043 12
    which can conflict with char erealloc (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef erealloc

a19046 1
{
d19051 11
d19068 1
a19068 4
char (*f) () = erealloc;
#endif
#ifdef __cplusplus
}
a19070 4
int
main ()
{
return f != erealloc;
d19077 1
a19077 1
  (eval $ac_link) 2>conftest.er1
a19078 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19081 1
a19081 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19090 1
a19090 2
sed 's/^/| /' conftest.$ac_ext >&5

d19093 1
a19093 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19104 1
a19104 8
  case $LIBOBJS in
    "erealloc.$ac_objext"   | \
  *" erealloc.$ac_objext"   | \
    "erealloc.$ac_objext "* | \
  *" erealloc.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" ;;
esac

d19112 2
a19113 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define estrdup innocuous_estrdup

d19115 2
a19116 12
    which can conflict with char estrdup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef estrdup

a19119 1
{
d19124 11
d19141 1
a19141 4
char (*f) () = estrdup;
#endif
#ifdef __cplusplus
}
a19143 4
int
main ()
{
return f != estrdup;
d19150 1
a19150 1
  (eval $ac_link) 2>conftest.er1
a19151 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19154 1
a19154 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19163 1
a19163 2
sed 's/^/| /' conftest.$ac_ext >&5

d19166 1
a19166 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19177 1
a19177 8
  case $LIBOBJS in
    "estrdup.$ac_objext"   | \
  *" estrdup.$ac_objext"   | \
    "estrdup.$ac_objext "* | \
  *" estrdup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" ;;
esac

d19185 2
a19186 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define err to an innocuous variant, in case <limits.h> declares err.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define err innocuous_err

d19188 2
a19189 12
    which can conflict with char err (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef err

a19192 1
{
d19197 11
d19214 1
a19214 4
char (*f) () = err;
#endif
#ifdef __cplusplus
}
a19216 4
int
main ()
{
return f != err;
d19223 1
a19223 1
  (eval $ac_link) 2>conftest.er1
a19224 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19227 1
a19227 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19236 1
a19236 2
sed 's/^/| /' conftest.$ac_ext >&5

d19239 1
a19239 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19250 1
a19250 8
  case $LIBOBJS in
    "err.$ac_objext"   | \
  *" err.$ac_objext"   | \
    "err.$ac_objext "* | \
  *" err.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS err.$ac_objext" ;;
esac

d19258 2
a19259 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define errx to an innocuous variant, in case <limits.h> declares errx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define errx innocuous_errx

d19261 2
a19262 12
    which can conflict with char errx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef errx

a19265 1
{
d19270 11
d19287 1
a19287 4
char (*f) () = errx;
#endif
#ifdef __cplusplus
}
a19289 4
int
main ()
{
return f != errx;
d19296 1
a19296 1
  (eval $ac_link) 2>conftest.er1
a19297 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19300 1
a19300 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19309 1
a19309 2
sed 's/^/| /' conftest.$ac_ext >&5

d19312 1
a19312 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19323 1
a19323 8
  case $LIBOBJS in
    "errx.$ac_objext"   | \
  *" errx.$ac_objext"   | \
    "errx.$ac_objext "* | \
  *" errx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS errx.$ac_objext" ;;
esac

d19331 2
a19332 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fchown innocuous_fchown

d19334 2
a19335 12
    which can conflict with char fchown (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fchown

a19338 1
{
d19343 11
d19360 1
a19360 4
char (*f) () = fchown;
#endif
#ifdef __cplusplus
}
a19362 4
int
main ()
{
return f != fchown;
d19369 1
a19369 1
  (eval $ac_link) 2>conftest.er1
a19370 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19373 1
a19373 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19382 1
a19382 2
sed 's/^/| /' conftest.$ac_ext >&5

d19385 1
a19385 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19396 1
a19396 8
  case $LIBOBJS in
    "fchown.$ac_objext"   | \
  *" fchown.$ac_objext"   | \
    "fchown.$ac_objext "* | \
  *" fchown.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS fchown.$ac_objext" ;;
esac

d19404 2
a19405 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define flock to an innocuous variant, in case <limits.h> declares flock.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define flock innocuous_flock

d19407 2
a19408 12
    which can conflict with char flock (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef flock

a19411 1
{
d19416 11
d19433 1
a19433 4
char (*f) () = flock;
#endif
#ifdef __cplusplus
}
a19435 4
int
main ()
{
return f != flock;
d19442 1
a19442 1
  (eval $ac_link) 2>conftest.er1
a19443 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19446 1
a19446 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19455 1
a19455 2
sed 's/^/| /' conftest.$ac_ext >&5

d19458 1
a19458 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19469 1
a19469 8
  case $LIBOBJS in
    "flock.$ac_objext"   | \
  *" flock.$ac_objext"   | \
    "flock.$ac_objext "* | \
  *" flock.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS flock.$ac_objext" ;;
esac

d19477 2
a19478 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fnmatch innocuous_fnmatch

d19480 2
a19481 12
    which can conflict with char fnmatch (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fnmatch

a19484 1
{
d19489 11
d19506 1
a19506 4
char (*f) () = fnmatch;
#endif
#ifdef __cplusplus
}
a19508 4
int
main ()
{
return f != fnmatch;
d19515 1
a19515 1
  (eval $ac_link) 2>conftest.er1
a19516 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19519 1
a19519 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19528 1
a19528 2
sed 's/^/| /' conftest.$ac_ext >&5

d19531 1
a19531 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19542 1
a19542 8
  case $LIBOBJS in
    "fnmatch.$ac_objext"   | \
  *" fnmatch.$ac_objext"   | \
    "fnmatch.$ac_objext "* | \
  *" fnmatch.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
esac

d19550 2
a19551 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define freehostent innocuous_freehostent

d19553 2
a19554 12
    which can conflict with char freehostent (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef freehostent

a19557 1
{
d19562 11
d19579 1
a19579 4
char (*f) () = freehostent;
#endif
#ifdef __cplusplus
}
a19581 4
int
main ()
{
return f != freehostent;
d19588 1
a19588 1
  (eval $ac_link) 2>conftest.er1
a19589 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19592 1
a19592 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19601 1
a19601 2
sed 's/^/| /' conftest.$ac_ext >&5

d19604 1
a19604 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19615 1
a19615 8
  case $LIBOBJS in
    "freehostent.$ac_objext"   | \
  *" freehostent.$ac_objext"   | \
    "freehostent.$ac_objext "* | \
  *" freehostent.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" ;;
esac

d19623 2
a19624 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getcwd innocuous_getcwd

d19626 2
a19627 12
    which can conflict with char getcwd (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getcwd

a19630 1
{
d19635 11
d19652 1
a19652 4
char (*f) () = getcwd;
#endif
#ifdef __cplusplus
}
a19654 4
int
main ()
{
return f != getcwd;
d19661 1
a19661 1
  (eval $ac_link) 2>conftest.er1
a19662 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19665 1
a19665 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19674 1
a19674 2
sed 's/^/| /' conftest.$ac_ext >&5

d19677 1
a19677 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19688 1
a19688 8
  case $LIBOBJS in
    "getcwd.$ac_objext"   | \
  *" getcwd.$ac_objext"   | \
    "getcwd.$ac_objext "* | \
  *" getcwd.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
esac

d19696 2
a19697 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getdtablesize innocuous_getdtablesize

d19699 2
a19700 12
    which can conflict with char getdtablesize (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getdtablesize

a19703 1
{
d19708 11
d19725 1
a19725 4
char (*f) () = getdtablesize;
#endif
#ifdef __cplusplus
}
a19727 4
int
main ()
{
return f != getdtablesize;
d19734 1
a19734 1
  (eval $ac_link) 2>conftest.er1
a19735 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19738 1
a19738 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19747 1
a19747 2
sed 's/^/| /' conftest.$ac_ext >&5

d19750 1
a19750 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19761 1
a19761 8
  case $LIBOBJS in
    "getdtablesize.$ac_objext"   | \
  *" getdtablesize.$ac_objext"   | \
    "getdtablesize.$ac_objext "* | \
  *" getdtablesize.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" ;;
esac

d19769 2
a19770 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getegid innocuous_getegid

d19772 2
a19773 12
    which can conflict with char getegid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getegid

a19776 1
{
d19781 11
d19798 1
a19798 4
char (*f) () = getegid;
#endif
#ifdef __cplusplus
}
a19800 4
int
main ()
{
return f != getegid;
d19807 1
a19807 1
  (eval $ac_link) 2>conftest.er1
a19808 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19811 1
a19811 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19820 1
a19820 2
sed 's/^/| /' conftest.$ac_ext >&5

d19823 1
a19823 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19834 1
a19834 8
  case $LIBOBJS in
    "getegid.$ac_objext"   | \
  *" getegid.$ac_objext"   | \
    "getegid.$ac_objext "* | \
  *" getegid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getegid.$ac_objext" ;;
esac

d19842 2
a19843 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define geteuid innocuous_geteuid

d19845 2
a19846 12
    which can conflict with char geteuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef geteuid

a19849 1
{
d19854 11
d19871 1
a19871 4
char (*f) () = geteuid;
#endif
#ifdef __cplusplus
}
a19873 4
int
main ()
{
return f != geteuid;
d19880 1
a19880 1
  (eval $ac_link) 2>conftest.er1
a19881 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19884 1
a19884 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19893 1
a19893 2
sed 's/^/| /' conftest.$ac_ext >&5

d19896 1
a19896 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19907 1
a19907 8
  case $LIBOBJS in
    "geteuid.$ac_objext"   | \
  *" geteuid.$ac_objext"   | \
    "geteuid.$ac_objext "* | \
  *" geteuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" ;;
esac

d19915 2
a19916 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getgid innocuous_getgid

d19918 2
a19919 12
    which can conflict with char getgid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getgid

a19922 1
{
d19927 11
d19944 1
a19944 4
char (*f) () = getgid;
#endif
#ifdef __cplusplus
}
a19946 4
int
main ()
{
return f != getgid;
d19953 1
a19953 1
  (eval $ac_link) 2>conftest.er1
a19954 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d19957 1
a19957 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d19966 1
a19966 2
sed 's/^/| /' conftest.$ac_ext >&5

d19969 1
a19969 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d19980 1
a19980 8
  case $LIBOBJS in
    "getgid.$ac_objext"   | \
  *" getgid.$ac_objext"   | \
    "getgid.$ac_objext "* | \
  *" getgid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getgid.$ac_objext" ;;
esac

d19988 2
a19989 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethostname innocuous_gethostname

d19991 2
a19992 12
    which can conflict with char gethostname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethostname

a19995 1
{
d20000 11
d20017 1
a20017 4
char (*f) () = gethostname;
#endif
#ifdef __cplusplus
}
a20019 4
int
main ()
{
return f != gethostname;
d20026 1
a20026 1
  (eval $ac_link) 2>conftest.er1
a20027 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20030 1
a20030 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20039 1
a20039 2
sed 's/^/| /' conftest.$ac_ext >&5

d20042 1
a20042 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20053 1
a20053 8
  case $LIBOBJS in
    "gethostname.$ac_objext"   | \
  *" gethostname.$ac_objext"   | \
    "gethostname.$ac_objext "* | \
  *" gethostname.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" ;;
esac

d20061 2
a20062 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getifaddrs innocuous_getifaddrs

d20064 2
a20065 12
    which can conflict with char getifaddrs (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getifaddrs

a20068 1
{
d20073 11
d20090 1
a20090 4
char (*f) () = getifaddrs;
#endif
#ifdef __cplusplus
}
a20092 4
int
main ()
{
return f != getifaddrs;
d20099 1
a20099 1
  (eval $ac_link) 2>conftest.er1
a20100 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20103 1
a20103 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20112 1
a20112 2
sed 's/^/| /' conftest.$ac_ext >&5

d20115 1
a20115 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20126 1
a20126 8
  case $LIBOBJS in
    "getifaddrs.$ac_objext"   | \
  *" getifaddrs.$ac_objext"   | \
    "getifaddrs.$ac_objext "* | \
  *" getifaddrs.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" ;;
esac

d20134 2
a20135 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getipnodebyaddr innocuous_getipnodebyaddr

d20137 2
a20138 12
    which can conflict with char getipnodebyaddr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getipnodebyaddr

a20141 1
{
d20146 11
d20163 1
a20163 4
char (*f) () = getipnodebyaddr;
#endif
#ifdef __cplusplus
}
a20165 4
int
main ()
{
return f != getipnodebyaddr;
d20172 1
a20172 1
  (eval $ac_link) 2>conftest.er1
a20173 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20176 1
a20176 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20185 1
a20185 2
sed 's/^/| /' conftest.$ac_ext >&5

d20188 1
a20188 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20199 1
a20199 8
  case $LIBOBJS in
    "getipnodebyaddr.$ac_objext"   | \
  *" getipnodebyaddr.$ac_objext"   | \
    "getipnodebyaddr.$ac_objext "* | \
  *" getipnodebyaddr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" ;;
esac

d20207 2
a20208 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getipnodebyname innocuous_getipnodebyname

d20210 2
a20211 12
    which can conflict with char getipnodebyname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getipnodebyname

a20214 1
{
d20219 11
d20236 1
a20236 4
char (*f) () = getipnodebyname;
#endif
#ifdef __cplusplus
}
a20238 4
int
main ()
{
return f != getipnodebyname;
d20245 1
a20245 1
  (eval $ac_link) 2>conftest.er1
a20246 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20249 1
a20249 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20258 1
a20258 2
sed 's/^/| /' conftest.$ac_ext >&5

d20261 1
a20261 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20272 1
a20272 8
  case $LIBOBJS in
    "getipnodebyname.$ac_objext"   | \
  *" getipnodebyname.$ac_objext"   | \
    "getipnodebyname.$ac_objext "* | \
  *" getipnodebyname.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" ;;
esac

d20280 2
a20281 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getopt innocuous_getopt

d20283 2
a20284 12
    which can conflict with char getopt (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getopt

a20287 1
{
d20292 11
d20309 1
a20309 4
char (*f) () = getopt;
#endif
#ifdef __cplusplus
}
a20311 4
int
main ()
{
return f != getopt;
d20318 1
a20318 1
  (eval $ac_link) 2>conftest.er1
a20319 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20322 1
a20322 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20331 1
a20331 2
sed 's/^/| /' conftest.$ac_ext >&5

d20334 1
a20334 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20345 1
a20345 8
  case $LIBOBJS in
    "getopt.$ac_objext"   | \
  *" getopt.$ac_objext"   | \
    "getopt.$ac_objext "* | \
  *" getopt.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
esac

d20353 2
a20354 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gettimeofday innocuous_gettimeofday

d20356 2
a20357 12
    which can conflict with char gettimeofday (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gettimeofday

a20360 1
{
d20365 11
d20382 1
a20382 4
char (*f) () = gettimeofday;
#endif
#ifdef __cplusplus
}
a20384 4
int
main ()
{
return f != gettimeofday;
d20391 1
a20391 1
  (eval $ac_link) 2>conftest.er1
a20392 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20395 1
a20395 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20404 1
a20404 2
sed 's/^/| /' conftest.$ac_ext >&5

d20407 1
a20407 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20418 1
a20418 8
  case $LIBOBJS in
    "gettimeofday.$ac_objext"   | \
  *" gettimeofday.$ac_objext"   | \
    "gettimeofday.$ac_objext "* | \
  *" gettimeofday.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
esac

d20426 2
a20427 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getuid innocuous_getuid

d20429 2
a20430 12
    which can conflict with char getuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getuid

a20433 1
{
d20438 11
d20455 1
a20455 4
char (*f) () = getuid;
#endif
#ifdef __cplusplus
}
a20457 4
int
main ()
{
return f != getuid;
d20464 1
a20464 1
  (eval $ac_link) 2>conftest.er1
a20465 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20468 1
a20468 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20477 1
a20477 2
sed 's/^/| /' conftest.$ac_ext >&5

d20480 1
a20480 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20491 1
a20491 8
  case $LIBOBJS in
    "getuid.$ac_objext"   | \
  *" getuid.$ac_objext"   | \
    "getuid.$ac_objext "* | \
  *" getuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getuid.$ac_objext" ;;
esac

d20499 2
a20500 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getusershell innocuous_getusershell

d20502 2
a20503 12
    which can conflict with char getusershell (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getusershell

a20506 1
{
d20511 11
d20528 1
a20528 4
char (*f) () = getusershell;
#endif
#ifdef __cplusplus
}
a20530 4
int
main ()
{
return f != getusershell;
d20537 1
a20537 1
  (eval $ac_link) 2>conftest.er1
a20538 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20541 1
a20541 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20550 1
a20550 2
sed 's/^/| /' conftest.$ac_ext >&5

d20553 1
a20553 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20564 1
a20564 8
  case $LIBOBJS in
    "getusershell.$ac_objext"   | \
  *" getusershell.$ac_objext"   | \
    "getusershell.$ac_objext "* | \
  *" getusershell.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" ;;
esac

d20572 2
a20573 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define initgroups innocuous_initgroups

d20575 2
a20576 12
    which can conflict with char initgroups (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef initgroups

a20579 1
{
d20584 11
d20601 1
a20601 4
char (*f) () = initgroups;
#endif
#ifdef __cplusplus
}
a20603 4
int
main ()
{
return f != initgroups;
d20610 1
a20610 1
  (eval $ac_link) 2>conftest.er1
a20611 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20614 1
a20614 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20623 1
a20623 2
sed 's/^/| /' conftest.$ac_ext >&5

d20626 1
a20626 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20637 1
a20637 8
  case $LIBOBJS in
    "initgroups.$ac_objext"   | \
  *" initgroups.$ac_objext"   | \
    "initgroups.$ac_objext "* | \
  *" initgroups.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" ;;
esac

d20645 2
a20646 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define innetgr innocuous_innetgr

d20648 2
a20649 12
    which can conflict with char innetgr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef innetgr

a20652 1
{
d20657 11
d20674 1
a20674 4
char (*f) () = innetgr;
#endif
#ifdef __cplusplus
}
a20676 4
int
main ()
{
return f != innetgr;
d20683 1
a20683 1
  (eval $ac_link) 2>conftest.er1
a20684 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20687 1
a20687 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20696 1
a20696 2
sed 's/^/| /' conftest.$ac_ext >&5

d20699 1
a20699 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20710 1
a20710 8
  case $LIBOBJS in
    "innetgr.$ac_objext"   | \
  *" innetgr.$ac_objext"   | \
    "innetgr.$ac_objext "* | \
  *" innetgr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" ;;
esac

d20718 2
a20719 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define iruserok innocuous_iruserok

d20721 2
a20722 12
    which can conflict with char iruserok (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef iruserok

a20725 1
{
d20730 11
d20747 1
a20747 4
char (*f) () = iruserok;
#endif
#ifdef __cplusplus
}
a20749 4
int
main ()
{
return f != iruserok;
d20756 1
a20756 1
  (eval $ac_link) 2>conftest.er1
a20757 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20760 1
a20760 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20769 1
a20769 2
sed 's/^/| /' conftest.$ac_ext >&5

d20772 1
a20772 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20783 1
a20783 8
  case $LIBOBJS in
    "iruserok.$ac_objext"   | \
  *" iruserok.$ac_objext"   | \
    "iruserok.$ac_objext "* | \
  *" iruserok.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" ;;
esac

d20791 2
a20792 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define localtime_r innocuous_localtime_r

d20794 2
a20795 12
    which can conflict with char localtime_r (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef localtime_r

a20798 1
{
d20803 11
d20820 1
a20820 4
char (*f) () = localtime_r;
#endif
#ifdef __cplusplus
}
a20822 4
int
main ()
{
return f != localtime_r;
d20829 1
a20829 1
  (eval $ac_link) 2>conftest.er1
a20830 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20833 1
a20833 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20842 1
a20842 2
sed 's/^/| /' conftest.$ac_ext >&5

d20845 1
a20845 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20856 1
a20856 8
  case $LIBOBJS in
    "localtime_r.$ac_objext"   | \
  *" localtime_r.$ac_objext"   | \
    "localtime_r.$ac_objext "* | \
  *" localtime_r.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" ;;
esac

d20864 2
a20865 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define lstat innocuous_lstat

d20867 2
a20868 12
    which can conflict with char lstat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef lstat

a20871 1
{
d20876 11
d20893 1
a20893 4
char (*f) () = lstat;
#endif
#ifdef __cplusplus
}
a20895 4
int
main ()
{
return f != lstat;
d20902 1
a20902 1
  (eval $ac_link) 2>conftest.er1
a20903 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20906 1
a20906 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20915 1
a20915 2
sed 's/^/| /' conftest.$ac_ext >&5

d20918 1
a20918 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d20929 1
a20929 8
  case $LIBOBJS in
    "lstat.$ac_objext"   | \
  *" lstat.$ac_objext"   | \
    "lstat.$ac_objext "* | \
  *" lstat.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
esac

d20937 2
a20938 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define memmove innocuous_memmove

d20940 2
a20941 12
    which can conflict with char memmove (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef memmove

a20944 1
{
d20949 11
d20966 1
a20966 4
char (*f) () = memmove;
#endif
#ifdef __cplusplus
}
a20968 4
int
main ()
{
return f != memmove;
d20975 1
a20975 1
  (eval $ac_link) 2>conftest.er1
a20976 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d20979 1
a20979 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d20988 1
a20988 2
sed 's/^/| /' conftest.$ac_ext >&5

d20991 1
a20991 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21002 1
a21002 8
  case $LIBOBJS in
    "memmove.$ac_objext"   | \
  *" memmove.$ac_objext"   | \
    "memmove.$ac_objext "* | \
  *" memmove.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS memmove.$ac_objext" ;;
esac

d21010 2
a21011 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define mkstemp innocuous_mkstemp

d21013 2
a21014 12
    which can conflict with char mkstemp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef mkstemp

a21017 1
{
d21022 11
d21039 1
a21039 4
char (*f) () = mkstemp;
#endif
#ifdef __cplusplus
}
a21041 4
int
main ()
{
return f != mkstemp;
d21048 1
a21048 1
  (eval $ac_link) 2>conftest.er1
a21049 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21052 1
a21052 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21061 1
a21061 2
sed 's/^/| /' conftest.$ac_ext >&5

d21064 1
a21064 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21075 1
a21075 8
  case $LIBOBJS in
    "mkstemp.$ac_objext"   | \
  *" mkstemp.$ac_objext"   | \
    "mkstemp.$ac_objext "* | \
  *" mkstemp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
esac

d21083 2
a21084 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define putenv innocuous_putenv

d21086 2
a21087 12
    which can conflict with char putenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef putenv

a21090 1
{
d21095 11
d21112 1
a21112 4
char (*f) () = putenv;
#endif
#ifdef __cplusplus
}
a21114 4
int
main ()
{
return f != putenv;
d21121 1
a21121 1
  (eval $ac_link) 2>conftest.er1
a21122 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21125 1
a21125 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21134 1
a21134 2
sed 's/^/| /' conftest.$ac_ext >&5

d21137 1
a21137 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21148 1
a21148 8
  case $LIBOBJS in
    "putenv.$ac_objext"   | \
  *" putenv.$ac_objext"   | \
    "putenv.$ac_objext "* | \
  *" putenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
esac

d21156 2
a21157 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define rcmd innocuous_rcmd

d21159 2
a21160 12
    which can conflict with char rcmd (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef rcmd

a21163 1
{
d21168 11
d21185 1
a21185 4
char (*f) () = rcmd;
#endif
#ifdef __cplusplus
}
a21187 4
int
main ()
{
return f != rcmd;
d21194 1
a21194 1
  (eval $ac_link) 2>conftest.er1
a21195 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21198 1
a21198 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21207 1
a21207 2
sed 's/^/| /' conftest.$ac_ext >&5

d21210 1
a21210 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21221 1
a21221 8
  case $LIBOBJS in
    "rcmd.$ac_objext"   | \
  *" rcmd.$ac_objext"   | \
    "rcmd.$ac_objext "* | \
  *" rcmd.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" ;;
esac

d21229 2
a21230 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define readv to an innocuous variant, in case <limits.h> declares readv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define readv innocuous_readv

d21232 2
a21233 12
    which can conflict with char readv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef readv

a21236 1
{
d21241 11
d21258 1
a21258 4
char (*f) () = readv;
#endif
#ifdef __cplusplus
}
a21260 4
int
main ()
{
return f != readv;
d21267 1
a21267 1
  (eval $ac_link) 2>conftest.er1
a21268 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21271 1
a21271 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21280 1
a21280 2
sed 's/^/| /' conftest.$ac_ext >&5

d21283 1
a21283 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21294 1
a21294 8
  case $LIBOBJS in
    "readv.$ac_objext"   | \
  *" readv.$ac_objext"   | \
    "readv.$ac_objext "* | \
  *" readv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS readv.$ac_objext" ;;
esac

d21302 2
a21303 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define recvmsg innocuous_recvmsg

d21305 2
a21306 12
    which can conflict with char recvmsg (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef recvmsg

a21309 1
{
d21314 11
d21331 1
a21331 4
char (*f) () = recvmsg;
#endif
#ifdef __cplusplus
}
a21333 4
int
main ()
{
return f != recvmsg;
d21340 1
a21340 1
  (eval $ac_link) 2>conftest.er1
a21341 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21344 1
a21344 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21353 1
a21353 2
sed 's/^/| /' conftest.$ac_ext >&5

d21356 1
a21356 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21367 1
a21367 8
  case $LIBOBJS in
    "recvmsg.$ac_objext"   | \
  *" recvmsg.$ac_objext"   | \
    "recvmsg.$ac_objext "* | \
  *" recvmsg.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" ;;
esac

d21375 2
a21376 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sendmsg innocuous_sendmsg

d21378 2
a21379 12
    which can conflict with char sendmsg (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sendmsg

a21382 1
{
d21387 11
d21404 1
a21404 4
char (*f) () = sendmsg;
#endif
#ifdef __cplusplus
}
a21406 4
int
main ()
{
return f != sendmsg;
d21413 1
a21413 1
  (eval $ac_link) 2>conftest.er1
a21414 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21417 1
a21417 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21426 1
a21426 2
sed 's/^/| /' conftest.$ac_ext >&5

d21429 1
a21429 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21440 1
a21440 8
  case $LIBOBJS in
    "sendmsg.$ac_objext"   | \
  *" sendmsg.$ac_objext"   | \
    "sendmsg.$ac_objext "* | \
  *" sendmsg.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" ;;
esac

d21448 2
a21449 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setegid innocuous_setegid

d21451 2
a21452 12
    which can conflict with char setegid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setegid

a21455 1
{
d21460 11
d21477 1
a21477 4
char (*f) () = setegid;
#endif
#ifdef __cplusplus
}
a21479 4
int
main ()
{
return f != setegid;
d21486 1
a21486 1
  (eval $ac_link) 2>conftest.er1
a21487 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21490 1
a21490 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21499 1
a21499 2
sed 's/^/| /' conftest.$ac_ext >&5

d21502 1
a21502 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21513 1
a21513 8
  case $LIBOBJS in
    "setegid.$ac_objext"   | \
  *" setegid.$ac_objext"   | \
    "setegid.$ac_objext "* | \
  *" setegid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS setegid.$ac_objext" ;;
esac

d21521 2
a21522 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setenv innocuous_setenv

d21524 2
a21525 12
    which can conflict with char setenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setenv

a21528 1
{
d21533 11
d21550 1
a21550 4
char (*f) () = setenv;
#endif
#ifdef __cplusplus
}
a21552 4
int
main ()
{
return f != setenv;
d21559 1
a21559 1
  (eval $ac_link) 2>conftest.er1
a21560 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21563 1
a21563 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21572 1
a21572 2
sed 's/^/| /' conftest.$ac_ext >&5

d21575 1
a21575 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21586 1
a21586 8
  case $LIBOBJS in
    "setenv.$ac_objext"   | \
  *" setenv.$ac_objext"   | \
    "setenv.$ac_objext "* | \
  *" setenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS setenv.$ac_objext" ;;
esac

d21594 2
a21595 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define seteuid innocuous_seteuid

d21597 2
a21598 12
    which can conflict with char seteuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef seteuid

a21601 1
{
d21606 11
d21623 1
a21623 4
char (*f) () = seteuid;
#endif
#ifdef __cplusplus
}
a21625 4
int
main ()
{
return f != seteuid;
d21632 1
a21632 1
  (eval $ac_link) 2>conftest.er1
a21633 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21636 1
a21636 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21645 1
a21645 2
sed 's/^/| /' conftest.$ac_ext >&5

d21648 1
a21648 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21659 1
a21659 8
  case $LIBOBJS in
    "seteuid.$ac_objext"   | \
  *" seteuid.$ac_objext"   | \
    "seteuid.$ac_objext "* | \
  *" seteuid.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" ;;
esac

d21667 2
a21668 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strcasecmp innocuous_strcasecmp

d21670 2
a21671 12
    which can conflict with char strcasecmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strcasecmp

a21674 1
{
d21679 11
d21696 1
a21696 4
char (*f) () = strcasecmp;
#endif
#ifdef __cplusplus
}
a21698 4
int
main ()
{
return f != strcasecmp;
d21705 1
a21705 1
  (eval $ac_link) 2>conftest.er1
a21706 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21709 1
a21709 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21718 1
a21718 2
sed 's/^/| /' conftest.$ac_ext >&5

d21721 1
a21721 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21732 1
a21732 8
  case $LIBOBJS in
    "strcasecmp.$ac_objext"   | \
  *" strcasecmp.$ac_objext"   | \
    "strcasecmp.$ac_objext "* | \
  *" strcasecmp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
esac

d21740 2
a21741 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strdup innocuous_strdup

d21743 2
a21744 12
    which can conflict with char strdup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strdup

a21747 1
{
d21752 11
d21769 1
a21769 4
char (*f) () = strdup;
#endif
#ifdef __cplusplus
}
a21771 4
int
main ()
{
return f != strdup;
d21778 1
a21778 1
  (eval $ac_link) 2>conftest.er1
a21779 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21782 1
a21782 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21791 1
a21791 2
sed 's/^/| /' conftest.$ac_ext >&5

d21794 1
a21794 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21805 1
a21805 8
  case $LIBOBJS in
    "strdup.$ac_objext"   | \
  *" strdup.$ac_objext"   | \
    "strdup.$ac_objext "* | \
  *" strdup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
esac

d21813 2
a21814 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strerror innocuous_strerror

d21816 2
a21817 12
    which can conflict with char strerror (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strerror

a21820 1
{
d21825 11
d21842 1
a21842 4
char (*f) () = strerror;
#endif
#ifdef __cplusplus
}
a21844 4
int
main ()
{
return f != strerror;
d21851 1
a21851 1
  (eval $ac_link) 2>conftest.er1
a21852 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21855 1
a21855 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21864 1
a21864 2
sed 's/^/| /' conftest.$ac_ext >&5

d21867 1
a21867 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21878 1
a21878 8
  case $LIBOBJS in
    "strerror.$ac_objext"   | \
  *" strerror.$ac_objext"   | \
    "strerror.$ac_objext "* | \
  *" strerror.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strerror.$ac_objext" ;;
esac

d21886 2
a21887 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strftime innocuous_strftime

d21889 2
a21890 12
    which can conflict with char strftime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strftime

a21893 1
{
d21898 11
d21915 1
a21915 4
char (*f) () = strftime;
#endif
#ifdef __cplusplus
}
a21917 4
int
main ()
{
return f != strftime;
d21924 1
a21924 1
  (eval $ac_link) 2>conftest.er1
a21925 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d21928 1
a21928 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d21937 1
a21937 2
sed 's/^/| /' conftest.$ac_ext >&5

d21940 1
a21940 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d21951 1
a21951 8
  case $LIBOBJS in
    "strftime.$ac_objext"   | \
  *" strftime.$ac_objext"   | \
    "strftime.$ac_objext "* | \
  *" strftime.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strftime.$ac_objext" ;;
esac

d21959 2
a21960 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlcat innocuous_strlcat

d21962 2
a21963 12
    which can conflict with char strlcat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlcat

a21966 1
{
d21971 11
d21988 1
a21988 4
char (*f) () = strlcat;
#endif
#ifdef __cplusplus
}
a21990 4
int
main ()
{
return f != strlcat;
d21997 1
a21997 1
  (eval $ac_link) 2>conftest.er1
a21998 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22001 1
a22001 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22010 1
a22010 2
sed 's/^/| /' conftest.$ac_ext >&5

d22013 1
a22013 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22024 1
a22024 8
  case $LIBOBJS in
    "strlcat.$ac_objext"   | \
  *" strlcat.$ac_objext"   | \
    "strlcat.$ac_objext "* | \
  *" strlcat.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;;
esac

d22032 2
a22033 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlcpy innocuous_strlcpy

d22035 2
a22036 12
    which can conflict with char strlcpy (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlcpy

a22039 1
{
d22044 11
d22061 1
a22061 4
char (*f) () = strlcpy;
#endif
#ifdef __cplusplus
}
a22063 4
int
main ()
{
return f != strlcpy;
d22070 1
a22070 1
  (eval $ac_link) 2>conftest.er1
a22071 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22074 1
a22074 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22083 1
a22083 2
sed 's/^/| /' conftest.$ac_ext >&5

d22086 1
a22086 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22097 1
a22097 8
  case $LIBOBJS in
    "strlcpy.$ac_objext"   | \
  *" strlcpy.$ac_objext"   | \
    "strlcpy.$ac_objext "* | \
  *" strlcpy.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;;
esac

d22105 2
a22106 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlwr innocuous_strlwr

d22108 2
a22109 12
    which can conflict with char strlwr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlwr

a22112 1
{
d22117 11
d22134 1
a22134 4
char (*f) () = strlwr;
#endif
#ifdef __cplusplus
}
a22136 4
int
main ()
{
return f != strlwr;
d22143 1
a22143 1
  (eval $ac_link) 2>conftest.er1
a22144 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22147 1
a22147 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22156 1
a22156 2
sed 's/^/| /' conftest.$ac_ext >&5

d22159 1
a22159 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22170 1
a22170 8
  case $LIBOBJS in
    "strlwr.$ac_objext"   | \
  *" strlwr.$ac_objext"   | \
    "strlwr.$ac_objext "* | \
  *" strlwr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" ;;
esac

d22178 2
a22179 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strncasecmp innocuous_strncasecmp

d22181 2
a22182 12
    which can conflict with char strncasecmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strncasecmp

a22185 1
{
d22190 11
d22207 1
a22207 4
char (*f) () = strncasecmp;
#endif
#ifdef __cplusplus
}
a22209 4
int
main ()
{
return f != strncasecmp;
d22216 1
a22216 1
  (eval $ac_link) 2>conftest.er1
a22217 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22220 1
a22220 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22229 1
a22229 2
sed 's/^/| /' conftest.$ac_ext >&5

d22232 1
a22232 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22243 1
a22243 8
  case $LIBOBJS in
    "strncasecmp.$ac_objext"   | \
  *" strncasecmp.$ac_objext"   | \
    "strncasecmp.$ac_objext "* | \
  *" strncasecmp.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
esac

d22251 2
a22252 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strndup innocuous_strndup

d22254 2
a22255 12
    which can conflict with char strndup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strndup

a22258 1
{
d22263 11
d22280 1
a22280 4
char (*f) () = strndup;
#endif
#ifdef __cplusplus
}
a22282 4
int
main ()
{
return f != strndup;
d22289 1
a22289 1
  (eval $ac_link) 2>conftest.er1
a22290 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22293 1
a22293 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22302 1
a22302 2
sed 's/^/| /' conftest.$ac_ext >&5

d22305 1
a22305 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22316 1
a22316 8
  case $LIBOBJS in
    "strndup.$ac_objext"   | \
  *" strndup.$ac_objext"   | \
    "strndup.$ac_objext "* | \
  *" strndup.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
esac

d22324 2
a22325 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strnlen innocuous_strnlen

d22327 2
a22328 12
    which can conflict with char strnlen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strnlen

a22331 1
{
d22336 11
d22353 1
a22353 4
char (*f) () = strnlen;
#endif
#ifdef __cplusplus
}
a22355 4
int
main ()
{
return f != strnlen;
d22362 1
a22362 1
  (eval $ac_link) 2>conftest.er1
a22363 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22366 1
a22366 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22375 1
a22375 2
sed 's/^/| /' conftest.$ac_ext >&5

d22378 1
a22378 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22389 1
a22389 8
  case $LIBOBJS in
    "strnlen.$ac_objext"   | \
  *" strnlen.$ac_objext"   | \
    "strnlen.$ac_objext "* | \
  *" strnlen.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
esac

d22397 2
a22398 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strptime innocuous_strptime

d22400 2
a22401 12
    which can conflict with char strptime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strptime

a22404 1
{
d22409 11
d22426 1
a22426 4
char (*f) () = strptime;
#endif
#ifdef __cplusplus
}
a22428 4
int
main ()
{
return f != strptime;
d22435 1
a22435 1
  (eval $ac_link) 2>conftest.er1
a22436 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22439 1
a22439 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22448 1
a22448 2
sed 's/^/| /' conftest.$ac_ext >&5

d22451 1
a22451 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22462 1
a22462 8
  case $LIBOBJS in
    "strptime.$ac_objext"   | \
  *" strptime.$ac_objext"   | \
    "strptime.$ac_objext "* | \
  *" strptime.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strptime.$ac_objext" ;;
esac

d22470 2
a22471 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strsep innocuous_strsep

d22473 2
a22474 12
    which can conflict with char strsep (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strsep

a22477 1
{
d22482 11
d22499 1
a22499 4
char (*f) () = strsep;
#endif
#ifdef __cplusplus
}
a22501 4
int
main ()
{
return f != strsep;
d22508 1
a22508 1
  (eval $ac_link) 2>conftest.er1
a22509 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22512 1
a22512 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22521 1
a22521 2
sed 's/^/| /' conftest.$ac_ext >&5

d22524 1
a22524 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22535 1
a22535 8
  case $LIBOBJS in
    "strsep.$ac_objext"   | \
  *" strsep.$ac_objext"   | \
    "strsep.$ac_objext "* | \
  *" strsep.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strsep.$ac_objext" ;;
esac

d22543 2
a22544 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strsep_copy innocuous_strsep_copy

d22546 2
a22547 12
    which can conflict with char strsep_copy (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strsep_copy

a22550 1
{
d22555 11
d22572 1
a22572 4
char (*f) () = strsep_copy;
#endif
#ifdef __cplusplus
}
a22574 4
int
main ()
{
return f != strsep_copy;
d22581 1
a22581 1
  (eval $ac_link) 2>conftest.er1
a22582 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22585 1
a22585 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22594 1
a22594 2
sed 's/^/| /' conftest.$ac_ext >&5

d22597 1
a22597 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22608 1
a22608 8
  case $LIBOBJS in
    "strsep_copy.$ac_objext"   | \
  *" strsep_copy.$ac_objext"   | \
    "strsep_copy.$ac_objext "* | \
  *" strsep_copy.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" ;;
esac

d22616 2
a22617 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strtok_r innocuous_strtok_r

d22619 2
a22620 12
    which can conflict with char strtok_r (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strtok_r

a22623 1
{
d22628 11
d22645 1
a22645 4
char (*f) () = strtok_r;
#endif
#ifdef __cplusplus
}
a22647 4
int
main ()
{
return f != strtok_r;
d22654 1
a22654 1
  (eval $ac_link) 2>conftest.er1
a22655 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22658 1
a22658 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22667 1
a22667 2
sed 's/^/| /' conftest.$ac_ext >&5

d22670 1
a22670 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22681 1
a22681 8
  case $LIBOBJS in
    "strtok_r.$ac_objext"   | \
  *" strtok_r.$ac_objext"   | \
    "strtok_r.$ac_objext "* | \
  *" strtok_r.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" ;;
esac

d22689 2
a22690 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strupr innocuous_strupr

d22692 2
a22693 12
    which can conflict with char strupr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strupr

a22696 1
{
d22701 11
d22718 1
a22718 4
char (*f) () = strupr;
#endif
#ifdef __cplusplus
}
a22720 4
int
main ()
{
return f != strupr;
d22727 1
a22727 1
  (eval $ac_link) 2>conftest.er1
a22728 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22731 1
a22731 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22740 1
a22740 2
sed 's/^/| /' conftest.$ac_ext >&5

d22743 1
a22743 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22754 1
a22754 8
  case $LIBOBJS in
    "strupr.$ac_objext"   | \
  *" strupr.$ac_objext"   | \
    "strupr.$ac_objext "* | \
  *" strupr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strupr.$ac_objext" ;;
esac

d22762 2
a22763 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define swab to an innocuous variant, in case <limits.h> declares swab.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define swab innocuous_swab

d22765 2
a22766 12
    which can conflict with char swab (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef swab

a22769 1
{
d22774 11
d22791 1
a22791 4
char (*f) () = swab;
#endif
#ifdef __cplusplus
}
a22793 4
int
main ()
{
return f != swab;
d22800 1
a22800 1
  (eval $ac_link) 2>conftest.er1
a22801 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22804 1
a22804 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22813 1
a22813 2
sed 's/^/| /' conftest.$ac_ext >&5

d22816 1
a22816 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22827 1
a22827 8
  case $LIBOBJS in
    "swab.$ac_objext"   | \
  *" swab.$ac_objext"   | \
    "swab.$ac_objext "* | \
  *" swab.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS swab.$ac_objext" ;;
esac

d22835 2
a22836 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define unsetenv innocuous_unsetenv

d22838 2
a22839 12
    which can conflict with char unsetenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef unsetenv

a22842 1
{
d22847 11
d22864 1
a22864 4
char (*f) () = unsetenv;
#endif
#ifdef __cplusplus
}
a22866 4
int
main ()
{
return f != unsetenv;
d22873 1
a22873 1
  (eval $ac_link) 2>conftest.er1
a22874 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22877 1
a22877 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22886 1
a22886 2
sed 's/^/| /' conftest.$ac_ext >&5

d22889 1
a22889 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22900 1
a22900 8
  case $LIBOBJS in
    "unsetenv.$ac_objext"   | \
  *" unsetenv.$ac_objext"   | \
    "unsetenv.$ac_objext "* | \
  *" unsetenv.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" ;;
esac

d22908 2
a22909 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define verr to an innocuous variant, in case <limits.h> declares verr.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define verr innocuous_verr

d22911 2
a22912 12
    which can conflict with char verr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef verr

a22915 1
{
d22920 11
d22937 1
a22937 4
char (*f) () = verr;
#endif
#ifdef __cplusplus
}
a22939 4
int
main ()
{
return f != verr;
d22946 1
a22946 1
  (eval $ac_link) 2>conftest.er1
a22947 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22950 1
a22950 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d22959 1
a22959 2
sed 's/^/| /' conftest.$ac_ext >&5

d22962 1
a22962 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d22973 1
a22973 8
  case $LIBOBJS in
    "verr.$ac_objext"   | \
  *" verr.$ac_objext"   | \
    "verr.$ac_objext "* | \
  *" verr.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS verr.$ac_objext" ;;
esac

d22981 2
a22982 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define verrx innocuous_verrx

d22984 2
a22985 12
    which can conflict with char verrx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef verrx

a22988 1
{
d22993 11
d23010 1
a23010 4
char (*f) () = verrx;
#endif
#ifdef __cplusplus
}
a23012 4
int
main ()
{
return f != verrx;
d23019 1
a23019 1
  (eval $ac_link) 2>conftest.er1
a23020 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23023 1
a23023 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d23032 1
a23032 2
sed 's/^/| /' conftest.$ac_ext >&5

d23035 1
a23035 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d23046 1
a23046 8
  case $LIBOBJS in
    "verrx.$ac_objext"   | \
  *" verrx.$ac_objext"   | \
    "verrx.$ac_objext "* | \
  *" verrx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS verrx.$ac_objext" ;;
esac

d23054 2
a23055 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define vsyslog innocuous_vsyslog

d23057 2
a23058 12
    which can conflict with char vsyslog (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef vsyslog

a23061 1
{
d23066 11
d23083 1
a23083 4
char (*f) () = vsyslog;
#endif
#ifdef __cplusplus
}
a23085 4
int
main ()
{
return f != vsyslog;
d23092 1
a23092 1
  (eval $ac_link) 2>conftest.er1
a23093 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23096 1
a23096 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d23105 1
a23105 2
sed 's/^/| /' conftest.$ac_ext >&5

d23108 1
a23108 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d23119 1
a23119 8
  case $LIBOBJS in
    "vsyslog.$ac_objext"   | \
  *" vsyslog.$ac_objext"   | \
    "vsyslog.$ac_objext "* | \
  *" vsyslog.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" ;;
esac

d23127 2
a23128 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define vwarn innocuous_vwarn

d23130 2
a23131 12
    which can conflict with char vwarn (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef vwarn

a23134 1
{
d23139 11
d23156 1
a23156 4
char (*f) () = vwarn;
#endif
#ifdef __cplusplus
}
a23158 4
int
main ()
{
return f != vwarn;
d23165 1
a23165 1
  (eval $ac_link) 2>conftest.er1
a23166 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23169 1
a23169 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d23178 1
a23178 2
sed 's/^/| /' conftest.$ac_ext >&5

d23181 1
a23181 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d23192 1
a23192 8
  case $LIBOBJS in
    "vwarn.$ac_objext"   | \
  *" vwarn.$ac_objext"   | \
    "vwarn.$ac_objext "* | \
  *" vwarn.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" ;;
esac

d23200 2
a23201 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define vwarnx innocuous_vwarnx

d23203 2
a23204 12
    which can conflict with char vwarnx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef vwarnx

a23207 1
{
d23212 11
d23229 1
a23229 4
char (*f) () = vwarnx;
#endif
#ifdef __cplusplus
}
a23231 4
int
main ()
{
return f != vwarnx;
d23238 1
a23238 1
  (eval $ac_link) 2>conftest.er1
a23239 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23242 1
a23242 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d23251 1
a23251 2
sed 's/^/| /' conftest.$ac_ext >&5

d23254 1
a23254 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d23265 1
a23265 8
  case $LIBOBJS in
    "vwarnx.$ac_objext"   | \
  *" vwarnx.$ac_objext"   | \
    "vwarnx.$ac_objext "* | \
  *" vwarnx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" ;;
esac

d23273 2
a23274 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define warn to an innocuous variant, in case <limits.h> declares warn.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define warn innocuous_warn

d23276 2
a23277 12
    which can conflict with char warn (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef warn

a23280 1
{
d23285 11
d23302 1
a23302 4
char (*f) () = warn;
#endif
#ifdef __cplusplus
}
a23304 4
int
main ()
{
return f != warn;
d23311 1
a23311 1
  (eval $ac_link) 2>conftest.er1
a23312 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23315 1
a23315 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d23324 1
a23324 2
sed 's/^/| /' conftest.$ac_ext >&5

d23327 1
a23327 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d23338 1
a23338 8
  case $LIBOBJS in
    "warn.$ac_objext"   | \
  *" warn.$ac_objext"   | \
    "warn.$ac_objext "* | \
  *" warn.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS warn.$ac_objext" ;;
esac

d23346 2
a23347 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define warnx innocuous_warnx

d23349 2
a23350 12
    which can conflict with char warnx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef warnx

a23353 1
{
d23358 11
d23375 1
a23375 4
char (*f) () = warnx;
#endif
#ifdef __cplusplus
}
a23377 4
int
main ()
{
return f != warnx;
d23384 1
a23384 1
  (eval $ac_link) 2>conftest.er1
a23385 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23388 1
a23388 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d23397 1
a23397 2
sed 's/^/| /' conftest.$ac_ext >&5

d23400 1
a23400 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d23411 1
a23411 8
  case $LIBOBJS in
    "warnx.$ac_objext"   | \
  *" warnx.$ac_objext"   | \
    "warnx.$ac_objext "* | \
  *" warnx.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS warnx.$ac_objext" ;;
esac

d23419 2
a23420 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define writev to an innocuous variant, in case <limits.h> declares writev.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define writev innocuous_writev

d23422 2
a23423 12
    which can conflict with char writev (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef writev

a23426 1
{
d23431 11
d23448 1
a23448 4
char (*f) () = writev;
#endif
#ifdef __cplusplus
}
a23450 4
int
main ()
{
return f != writev;
d23457 1
a23457 1
  (eval $ac_link) 2>conftest.er1
a23458 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23461 1
a23461 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d23470 1
a23470 2
sed 's/^/| /' conftest.$ac_ext >&5

d23473 1
a23473 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d23484 1
a23484 8
  case $LIBOBJS in
    "writev.$ac_objext"   | \
  *" writev.$ac_objext"   | \
    "writev.$ac_objext "* | \
  *" writev.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS writev.$ac_objext" ;;
esac

d23496 2
a23497 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23499 6
d23518 1
a23518 1
  (eval $ac_compile) 2>conftest.er1
a23519 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23522 1
a23522 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23531 1
a23531 2
sed 's/^/| /' conftest.$ac_ext >&5

d23534 1
a23534 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23554 2
a23555 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23557 6
d23576 1
a23576 1
  (eval $ac_compile) 2>conftest.er1
a23577 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23580 1
a23580 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23589 1
a23589 2
sed 's/^/| /' conftest.$ac_ext >&5

d23592 1
a23592 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23612 2
a23613 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23615 6
d23634 1
a23634 1
  (eval $ac_compile) 2>conftest.er1
a23635 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23638 1
a23638 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23647 1
a23647 2
sed 's/^/| /' conftest.$ac_ext >&5

d23650 1
a23650 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23672 2
a23673 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23677 6
d23696 1
a23696 1
  (eval $ac_compile) 2>conftest.er1
a23697 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23700 1
a23700 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23709 1
a23709 2
sed 's/^/| /' conftest.$ac_ext >&5

d23712 1
a23712 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23732 2
a23733 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23737 6
d23756 1
a23756 1
  (eval $ac_compile) 2>conftest.er1
a23757 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23760 1
a23760 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23769 1
a23769 2
sed 's/^/| /' conftest.$ac_ext >&5

d23772 1
a23772 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23792 2
a23793 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23797 6
d23816 1
a23816 1
  (eval $ac_compile) 2>conftest.er1
a23817 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23820 1
a23820 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23829 1
a23829 2
sed 's/^/| /' conftest.$ac_ext >&5

d23832 1
a23832 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23852 2
a23853 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23857 6
d23876 1
a23876 1
  (eval $ac_compile) 2>conftest.er1
a23877 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23880 1
a23880 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23889 1
a23889 2
sed 's/^/| /' conftest.$ac_ext >&5

d23892 1
a23892 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23912 2
a23913 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23917 6
d23936 1
a23936 1
  (eval $ac_compile) 2>conftest.er1
a23937 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d23940 1
a23940 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d23949 1
a23949 2
sed 's/^/| /' conftest.$ac_ext >&5

d23952 1
a23952 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d23972 2
a23973 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d23977 6
d23996 1
a23996 1
  (eval $ac_compile) 2>conftest.er1
a23997 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24000 1
a24000 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24009 1
a24009 2
sed 's/^/| /' conftest.$ac_ext >&5

d24012 1
a24012 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24032 2
a24033 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24037 6
d24056 1
a24056 1
  (eval $ac_compile) 2>conftest.er1
a24057 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24060 1
a24060 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24069 1
a24069 2
sed 's/^/| /' conftest.$ac_ext >&5

d24072 1
a24072 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24092 2
a24093 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24106 6
d24131 1
a24131 1
  (eval $ac_link) 2>conftest.er1
a24132 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24135 1
a24135 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d24144 1
a24144 2
sed 's/^/| /' conftest.$ac_ext >&5

d24147 1
a24147 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d24161 1
a24161 8
  case $LIBOBJS in
    "inet_aton.$ac_objext"   | \
  *" inet_aton.$ac_objext"   | \
    "inet_aton.$ac_objext "* | \
  *" inet_aton.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
esac

d24170 2
a24171 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24184 6
d24209 1
a24209 1
  (eval $ac_link) 2>conftest.er1
a24210 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24213 1
a24213 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d24222 1
a24222 2
sed 's/^/| /' conftest.$ac_ext >&5

d24225 1
a24225 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d24239 1
a24239 8
  case $LIBOBJS in
    "inet_ntop.$ac_objext"   | \
  *" inet_ntop.$ac_objext"   | \
    "inet_ntop.$ac_objext "* | \
  *" inet_ntop.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
esac

d24248 2
a24249 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24262 6
d24287 1
a24287 1
  (eval $ac_link) 2>conftest.er1
a24288 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24291 1
a24291 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d24300 1
a24300 2
sed 's/^/| /' conftest.$ac_ext >&5

d24303 1
a24303 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d24317 1
a24317 8
  case $LIBOBJS in
    "inet_pton.$ac_objext"   | \
  *" inet_pton.$ac_objext"   | \
    "inet_pton.$ac_objext "* | \
  *" inet_pton.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
esac

d24329 2
a24330 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24333 6
d24349 1
a24349 1
  (eval $ac_compile) 2>conftest.er1
a24350 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24353 1
a24353 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24362 1
a24362 2
sed 's/^/| /' conftest.$ac_ext >&5

d24365 1
a24365 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24389 2
a24390 4
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
d24394 2
a24395 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24434 1
a24434 2
sed 's/^/| /' conftest.$ac_ext >&5

d24438 1
a24438 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d24444 1
a24444 8
	case $LIBOBJS in
    "getnameinfo.$ac_objext"   | \
  *" getnameinfo.$ac_objext"   | \
    "getnameinfo.$ac_objext "* | \
  *" getnameinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
esac

d24456 2
a24457 4
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
d24461 2
a24462 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24497 1
a24497 2
sed 's/^/| /' conftest.$ac_ext >&5

d24501 1
a24501 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d24507 2
a24508 16
	case $LIBOBJS in
    "getaddrinfo.$ac_objext"   | \
  *" getaddrinfo.$ac_objext"   | \
    "getaddrinfo.$ac_objext "* | \
  *" getaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
esac

	case $LIBOBJS in
    "freeaddrinfo.$ac_objext"   | \
  *" freeaddrinfo.$ac_objext"   | \
    "freeaddrinfo.$ac_objext "* | \
  *" freeaddrinfo.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
esac

d24520 2
a24521 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24523 6
d24542 1
a24542 1
  (eval $ac_compile) 2>conftest.er1
a24543 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24546 1
a24546 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24555 1
a24555 2
sed 's/^/| /' conftest.$ac_ext >&5

d24558 1
a24558 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24579 2
a24580 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24582 6
d24601 1
a24601 1
  (eval $ac_compile) 2>conftest.er1
a24602 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24605 1
a24605 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24614 1
a24614 2
sed 's/^/| /' conftest.$ac_ext >&5

d24617 1
a24617 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24638 2
a24639 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24641 6
d24660 1
a24660 1
  (eval $ac_compile) 2>conftest.er1
a24661 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24664 1
a24664 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24673 1
a24673 2
sed 's/^/| /' conftest.$ac_ext >&5

d24676 1
a24676 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24697 2
a24698 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24700 6
d24719 1
a24719 1
  (eval $ac_compile) 2>conftest.er1
a24720 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24723 1
a24723 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24732 1
a24732 2
sed 's/^/| /' conftest.$ac_ext >&5

d24735 1
a24735 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24756 2
a24757 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24759 6
d24778 1
a24778 1
  (eval $ac_compile) 2>conftest.er1
a24779 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24782 1
a24782 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24791 1
a24791 2
sed 's/^/| /' conftest.$ac_ext >&5

d24794 1
a24794 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24816 2
a24817 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24831 6
d24850 1
a24850 1
  (eval $ac_compile) 2>conftest.er1
a24851 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24854 1
a24854 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d24863 1
a24863 2
sed 's/^/| /' conftest.$ac_ext >&5

d24866 1
a24866 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d24901 2
a24902 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d24904 6
d24920 1
a24920 1
  (eval $ac_link) 2>conftest.er1
a24921 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24924 1
a24924 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d24933 1
a24933 2
sed 's/^/| /' conftest.$ac_ext >&5

d24935 1
a24935 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d24957 2
a24958 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d24960 2
a24961 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a24964 1
{
d24969 11
d24986 1
a24986 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a24988 4
int
main ()
{
return f != $ac_func;
d24995 1
a24995 1
  (eval $ac_link) 2>conftest.er1
a24996 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d24999 1
a24999 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d25008 1
a25008 2
sed 's/^/| /' conftest.$ac_ext >&5

d25011 1
a25011 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d25073 2
a25074 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25092 6
d25108 1
a25108 1
  (eval $ac_compile) 2>conftest.er1
a25109 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25112 1
a25112 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25121 1
a25121 2
sed 's/^/| /' conftest.$ac_ext >&5

d25124 1
a25124 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25146 2
a25147 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25165 6
d25181 1
a25181 1
  (eval $ac_compile) 2>conftest.er1
a25182 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25185 1
a25185 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25194 1
a25194 2
sed 's/^/| /' conftest.$ac_ext >&5

d25197 1
a25197 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25219 2
a25220 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25238 6
d25254 1
a25254 1
  (eval $ac_compile) 2>conftest.er1
a25255 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25258 1
a25258 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25267 1
a25267 2
sed 's/^/| /' conftest.$ac_ext >&5

d25270 1
a25270 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25292 2
a25293 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25302 6
d25318 1
a25318 1
  (eval $ac_compile) 2>conftest.er1
a25319 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25322 1
a25322 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25331 1
a25331 2
sed 's/^/| /' conftest.$ac_ext >&5

d25334 1
a25334 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25356 2
a25357 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25363 6
d25379 1
a25379 1
  (eval $ac_compile) 2>conftest.er1
a25380 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25383 1
a25383 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25392 1
a25392 2
sed 's/^/| /' conftest.$ac_ext >&5

d25395 1
a25395 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25418 2
a25419 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25428 6
d25447 1
a25447 1
  (eval $ac_compile) 2>conftest.er1
a25448 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25451 1
a25451 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25460 1
a25460 2
sed 's/^/| /' conftest.$ac_ext >&5

d25463 1
a25463 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25487 2
a25488 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25496 6
d25512 1
a25512 1
  (eval $ac_link) 2>conftest.er1
a25513 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25516 1
a25516 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d25525 1
a25525 2
sed 's/^/| /' conftest.$ac_ext >&5

d25528 1
a25528 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d25531 2
a25532 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25535 6
d25551 1
a25551 1
  (eval $ac_link) 2>conftest.er1
a25552 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25555 1
a25555 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d25564 1
a25564 2
sed 's/^/| /' conftest.$ac_ext >&5

d25567 1
a25567 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d25589 2
a25590 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25598 6
d25614 1
a25614 1
  (eval $ac_compile) 2>conftest.er1
a25615 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25618 1
a25618 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25627 1
a25627 2
sed 's/^/| /' conftest.$ac_ext >&5

d25630 1
a25630 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25660 2
a25661 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25666 6
d25682 1
a25682 1
  (eval $ac_link) 2>conftest.er1
a25683 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25686 1
a25686 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d25695 1
a25695 2
sed 's/^/| /' conftest.$ac_ext >&5

d25698 1
a25698 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d25701 2
a25702 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25705 6
d25721 1
a25721 1
  (eval $ac_link) 2>conftest.er1
a25722 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25725 1
a25725 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d25734 1
a25734 2
sed 's/^/| /' conftest.$ac_ext >&5

d25737 1
a25737 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d25759 2
a25760 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25765 6
d25781 1
a25781 1
  (eval $ac_compile) 2>conftest.er1
a25782 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25785 1
a25785 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25794 1
a25794 2
sed 's/^/| /' conftest.$ac_ext >&5

d25797 1
a25797 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25827 2
a25828 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25833 6
d25849 1
a25849 1
  (eval $ac_link) 2>conftest.er1
a25850 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25853 1
a25853 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d25862 1
a25862 2
sed 's/^/| /' conftest.$ac_ext >&5

d25865 1
a25865 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d25868 2
a25869 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25872 6
d25888 1
a25888 1
  (eval $ac_link) 2>conftest.er1
a25889 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25892 1
a25892 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d25901 1
a25901 2
sed 's/^/| /' conftest.$ac_ext >&5

d25904 1
a25904 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d25926 2
a25927 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d25932 6
d25948 1
a25948 1
  (eval $ac_compile) 2>conftest.er1
a25949 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d25952 1
a25952 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d25961 1
a25961 2
sed 's/^/| /' conftest.$ac_ext >&5

d25964 1
a25964 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d25994 2
a25995 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26000 6
d26016 1
a26016 1
  (eval $ac_link) 2>conftest.er1
a26017 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26020 1
a26020 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d26029 1
a26029 2
sed 's/^/| /' conftest.$ac_ext >&5

d26032 1
a26032 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d26035 2
a26036 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26039 6
d26055 1
a26055 1
  (eval $ac_link) 2>conftest.er1
a26056 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26059 1
a26059 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d26068 1
a26068 2
sed 's/^/| /' conftest.$ac_ext >&5

d26071 1
a26071 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d26093 2
a26094 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26099 6
d26115 1
a26115 1
  (eval $ac_compile) 2>conftest.er1
a26116 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26119 1
a26119 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26128 1
a26128 2
sed 's/^/| /' conftest.$ac_ext >&5

d26131 1
a26131 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26160 2
a26161 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26167 6
d26183 1
a26183 1
  (eval $ac_compile) 2>conftest.er1
a26184 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26187 1
a26187 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26196 1
a26196 2
sed 's/^/| /' conftest.$ac_ext >&5

d26199 1
a26199 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26225 2
a26226 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26232 6
d26248 1
a26248 1
  (eval $ac_compile) 2>conftest.er1
a26249 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26252 1
a26252 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26261 1
a26261 2
sed 's/^/| /' conftest.$ac_ext >&5

d26264 1
a26264 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26290 2
a26291 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26297 6
d26313 1
a26313 1
  (eval $ac_compile) 2>conftest.er1
a26314 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26317 1
a26317 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26326 1
a26326 2
sed 's/^/| /' conftest.$ac_ext >&5

d26329 1
a26329 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26355 2
a26356 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26362 6
d26378 1
a26378 1
  (eval $ac_compile) 2>conftest.er1
a26379 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26382 1
a26382 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26391 1
a26391 2
sed 's/^/| /' conftest.$ac_ext >&5

d26394 1
a26394 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26421 2
a26422 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26425 6
d26441 1
a26441 1
  (eval $ac_compile) 2>conftest.er1
a26442 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26445 1
a26445 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26454 1
a26454 2
sed 's/^/| /' conftest.$ac_ext >&5

d26457 1
a26457 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26486 2
a26487 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26489 6
d26505 1
a26505 1
  (eval $ac_compile) 2>conftest.er1
a26506 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26509 1
a26509 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26518 1
a26518 2
sed 's/^/| /' conftest.$ac_ext >&5

d26521 1
a26521 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26545 2
a26546 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26548 6
d26564 1
a26564 1
  (eval $ac_compile) 2>conftest.er1
a26565 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26568 1
a26568 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26577 1
a26577 2
sed 's/^/| /' conftest.$ac_ext >&5

d26580 1
a26580 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26606 2
a26607 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26610 6
d26626 1
a26626 1
  (eval $ac_link) 2>conftest.er1
a26627 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26630 1
a26630 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d26639 1
a26639 2
sed 's/^/| /' conftest.$ac_ext >&5

d26642 1
a26642 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d26645 2
a26646 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26649 6
d26665 1
a26665 1
  (eval $ac_link) 2>conftest.er1
a26666 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26669 1
a26669 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d26678 1
a26678 2
sed 's/^/| /' conftest.$ac_ext >&5

d26681 1
a26681 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d26703 2
a26704 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26707 6
d26723 1
a26723 1
  (eval $ac_compile) 2>conftest.er1
a26724 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26727 1
a26727 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26736 1
a26736 2
sed 's/^/| /' conftest.$ac_ext >&5

d26739 1
a26739 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26768 2
a26769 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26772 6
d26788 1
a26788 1
  (eval $ac_link) 2>conftest.er1
a26789 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26792 1
a26792 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d26801 1
a26801 2
sed 's/^/| /' conftest.$ac_ext >&5

d26804 1
a26804 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d26807 2
a26808 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26811 6
d26827 1
a26827 1
  (eval $ac_link) 2>conftest.er1
a26828 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26831 1
a26831 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d26840 1
a26840 2
sed 's/^/| /' conftest.$ac_ext >&5

d26843 1
a26843 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d26865 2
a26866 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26869 6
d26885 1
a26885 1
  (eval $ac_compile) 2>conftest.er1
a26886 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26889 1
a26889 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26898 1
a26898 2
sed 's/^/| /' conftest.$ac_ext >&5

d26901 1
a26901 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26931 2
a26932 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26939 6
d26955 1
a26955 1
  (eval $ac_compile) 2>conftest.er1
a26956 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d26959 1
a26959 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d26968 1
a26968 2
sed 's/^/| /' conftest.$ac_ext >&5

d26971 1
a26971 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d26985 2
a26986 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d26988 6
d27007 1
a27007 1
  (eval $ac_compile) 2>conftest.er1
a27008 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27011 1
a27011 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27020 1
a27020 2
sed 's/^/| /' conftest.$ac_ext >&5

d27023 1
a27023 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27053 2
a27054 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27061 6
d27077 1
a27077 1
  (eval $ac_compile) 2>conftest.er1
a27078 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27081 1
a27081 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27090 1
a27090 2
sed 's/^/| /' conftest.$ac_ext >&5

d27093 1
a27093 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27107 2
a27108 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27110 6
d27129 1
a27129 1
  (eval $ac_compile) 2>conftest.er1
a27130 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27133 1
a27133 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27142 1
a27142 2
sed 's/^/| /' conftest.$ac_ext >&5

d27145 1
a27145 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27175 2
a27176 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27183 6
d27199 1
a27199 1
  (eval $ac_compile) 2>conftest.er1
a27200 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27203 1
a27203 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27212 1
a27212 2
sed 's/^/| /' conftest.$ac_ext >&5

d27215 1
a27215 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27229 2
a27230 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27232 6
d27251 1
a27251 1
  (eval $ac_compile) 2>conftest.er1
a27252 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27255 1
a27255 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27264 1
a27264 2
sed 's/^/| /' conftest.$ac_ext >&5

d27267 1
a27267 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27297 2
a27298 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27305 6
d27321 1
a27321 1
  (eval $ac_compile) 2>conftest.er1
a27322 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27325 1
a27325 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27334 1
a27334 2
sed 's/^/| /' conftest.$ac_ext >&5

d27337 1
a27337 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27351 2
a27352 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27354 6
d27373 1
a27373 1
  (eval $ac_compile) 2>conftest.er1
a27374 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27377 1
a27377 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27386 1
a27386 2
sed 's/^/| /' conftest.$ac_ext >&5

d27389 1
a27389 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27419 2
a27420 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27427 6
d27443 1
a27443 1
  (eval $ac_compile) 2>conftest.er1
a27444 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27447 1
a27447 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27456 1
a27456 2
sed 's/^/| /' conftest.$ac_ext >&5

d27459 1
a27459 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27473 2
a27474 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27476 6
d27495 1
a27495 1
  (eval $ac_compile) 2>conftest.er1
a27496 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27499 1
a27499 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27508 1
a27508 2
sed 's/^/| /' conftest.$ac_ext >&5

d27511 1
a27511 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27541 2
a27542 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27549 6
d27565 1
a27565 1
  (eval $ac_compile) 2>conftest.er1
a27566 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27569 1
a27569 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27578 1
a27578 2
sed 's/^/| /' conftest.$ac_ext >&5

d27581 1
a27581 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27595 2
a27596 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27598 6
d27617 1
a27617 1
  (eval $ac_compile) 2>conftest.er1
a27618 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27621 1
a27621 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27630 1
a27630 2
sed 's/^/| /' conftest.$ac_ext >&5

d27633 1
a27633 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27663 2
a27664 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27674 6
d27690 1
a27690 1
  (eval $ac_compile) 2>conftest.er1
a27691 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27694 1
a27694 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27703 1
a27703 2
sed 's/^/| /' conftest.$ac_ext >&5

d27706 1
a27706 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27720 2
a27721 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27723 6
d27742 1
a27742 1
  (eval $ac_compile) 2>conftest.er1
a27743 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27746 1
a27746 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27755 1
a27755 2
sed 's/^/| /' conftest.$ac_ext >&5

d27758 1
a27758 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27788 2
a27789 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27799 6
d27815 1
a27815 1
  (eval $ac_compile) 2>conftest.er1
a27816 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27819 1
a27819 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27828 1
a27828 2
sed 's/^/| /' conftest.$ac_ext >&5

d27831 1
a27831 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27845 2
a27846 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27848 6
d27867 1
a27867 1
  (eval $ac_compile) 2>conftest.er1
a27868 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d27871 1
a27871 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d27880 1
a27880 2
sed 's/^/| /' conftest.$ac_ext >&5

d27883 1
a27883 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d27916 2
a27917 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27922 1
a27922 1
  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then
d27940 2
a27941 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27946 1
a27946 1
  $EGREP "ws_xpixel" >/dev/null 2>&1; then
d27956 2
a27957 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27962 1
a27962 1
  $EGREP "ws_ypixel" >/dev/null 2>&1; then
d27982 2
a27983 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d27988 6
d28004 1
a28004 1
  (eval $ac_compile) 2>conftest.er1
a28005 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28008 1
a28008 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d28017 1
a28017 2
sed 's/^/| /' conftest.$ac_ext >&5

d28020 1
a28020 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28366 2
a28367 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28370 6
d28386 1
a28386 1
  (eval $ac_link) 2>conftest.er1
a28387 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28390 1
a28390 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d28404 1
a28404 2
sed 's/^/| /' conftest.$ac_ext >&5

d28406 1
a28406 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d28413 2
a28414 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28417 6
d28433 1
a28433 1
  (eval $ac_compile) 2>conftest.er1
a28434 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28437 1
a28437 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d28446 1
a28446 2
sed 's/^/| /' conftest.$ac_ext >&5

d28448 1
a28448 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28453 2
a28454 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28457 6
d28473 1
a28473 1
  (eval $ac_link) 2>conftest.er1
a28474 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28477 1
a28477 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d28486 1
a28486 2
sed 's/^/| /' conftest.$ac_ext >&5

d28488 1
a28488 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d28619 2
a28620 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28622 6
d28638 1
a28638 1
  (eval $ac_link) 2>conftest.er1
a28639 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28642 1
a28642 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d28656 1
a28656 2
sed 's/^/| /' conftest.$ac_ext >&5

d28658 1
a28658 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d28665 2
a28666 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28668 6
d28684 1
a28684 1
  (eval $ac_compile) 2>conftest.er1
a28685 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28688 1
a28688 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d28697 1
a28697 2
sed 's/^/| /' conftest.$ac_ext >&5

d28699 1
a28699 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28704 2
a28705 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28707 6
d28723 1
a28723 1
  (eval $ac_link) 2>conftest.er1
a28724 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28727 1
a28727 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d28736 1
a28736 2
sed 's/^/| /' conftest.$ac_ext >&5

d28738 1
a28738 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d28788 2
a28789 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28793 6
d28812 1
a28812 1
  (eval $ac_compile) 2>conftest.er1
a28813 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28816 1
a28816 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d28825 1
a28825 2
sed 's/^/| /' conftest.$ac_ext >&5

d28828 1
a28828 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28840 2
a28841 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28845 6
d28864 1
a28864 1
  (eval $ac_compile) 2>conftest.er1
a28865 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28868 1
a28868 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d28877 1
a28877 2
sed 's/^/| /' conftest.$ac_ext >&5

d28880 1
a28880 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d28888 2
a28889 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28916 1
a28916 2
sed 's/^/| /' conftest.$ac_ext >&5

d28920 1
a28920 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d28950 2
a28951 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d28953 2
a28954 3
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
d28960 1
a28960 1
  (eval $ac_compile) 2>conftest.er1
a28961 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d28964 1
a28964 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d28973 1
a28973 2
sed 's/^/| /' conftest.$ac_ext >&5

d28975 1
a28975 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a28980 2


d28983 7
a28989 9
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
d28991 1
a28991 1
    ;;
d29017 2
a29018 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29020 6
d29036 1
a29036 1
  (eval $ac_link) 2>conftest.er1
a29037 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29040 1
a29040 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29049 1
a29049 2
sed 's/^/| /' conftest.$ac_ext >&5

d29051 1
a29051 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29073 2
a29074 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d29076 2
a29077 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a29080 1
{
d29085 11
d29102 1
a29102 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a29104 4
int
main ()
{
return f != $ac_func;
d29111 1
a29111 1
  (eval $ac_link) 2>conftest.er1
a29112 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29115 1
a29115 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29124 1
a29124 2
sed 's/^/| /' conftest.$ac_ext >&5

d29127 1
a29127 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29254 2
a29255 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29257 6
d29273 1
a29273 1
  (eval $ac_link) 2>conftest.er1
a29274 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29277 1
a29277 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29286 1
a29286 2
sed 's/^/| /' conftest.$ac_ext >&5

d29288 1
a29288 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29310 2
a29311 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d29313 2
a29314 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a29317 1
{
d29322 11
d29339 1
a29339 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a29341 4
int
main ()
{
return f != $ac_func;
d29348 1
a29348 1
  (eval $ac_link) 2>conftest.er1
a29349 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29352 1
a29352 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29361 1
a29361 2
sed 's/^/| /' conftest.$ac_ext >&5

d29364 1
a29364 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29536 2
a29537 2
	 test -f $ac_im_libdir/libX11.$ac_extension; then
	ac_im_usrlibdir=$ac_im_libdir; break
d29597 2
a29598 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29604 1
a29604 1
  grep -v '^ *+' conftest.er1 >conftest.err
a29610 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d29622 1
a29622 2
sed 's/^/| /' conftest.$ac_ext >&5

d29640 2
a29641 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29643 6
d29659 1
a29659 1
  (eval $ac_link) 2>conftest.er1
a29660 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29663 1
a29663 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29674 1
a29674 2
sed 's/^/| /' conftest.$ac_ext >&5

d29687 1
a29687 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29696 1
a29696 1
		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
d29744 2
a29745 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29747 6
d29763 1
a29763 1
  (eval $ac_link) 2>conftest.er1
a29764 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29767 1
a29767 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29776 1
a29776 2
sed 's/^/| /' conftest.$ac_ext >&5

d29779 1
a29779 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29787 2
a29788 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29790 6
d29806 1
a29806 1
  (eval $ac_link) 2>conftest.er1
a29807 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29810 1
a29810 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29819 1
a29819 2
sed 's/^/| /' conftest.$ac_ext >&5

d29822 1
a29822 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29848 2
a29849 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29858 6
d29874 1
a29874 1
  (eval $ac_link) 2>conftest.er1
a29875 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29878 1
a29878 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29887 1
a29887 2
sed 's/^/| /' conftest.$ac_ext >&5

d29896 2
a29897 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29906 6
d29922 1
a29922 1
  (eval $ac_link) 2>conftest.er1
a29923 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29926 1
a29926 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29935 1
a29935 2
sed 's/^/| /' conftest.$ac_ext >&5

d29938 1
a29938 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d29956 2
a29957 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d29966 6
d29982 1
a29982 1
  (eval $ac_link) 2>conftest.er1
a29983 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d29986 1
a29986 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d29995 1
a29995 2
sed 's/^/| /' conftest.$ac_ext >&5

d29998 1
a29998 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30009 1
a30009 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30026 2
a30027 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethostbyname innocuous_gethostbyname

d30029 2
a30030 12
    which can conflict with char gethostbyname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethostbyname

a30033 1
{
d30038 11
d30055 1
a30055 4
char (*f) () = gethostbyname;
#endif
#ifdef __cplusplus
}
a30057 4
int
main ()
{
return f != gethostbyname;
d30064 1
a30064 1
  (eval $ac_link) 2>conftest.er1
a30065 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30068 1
a30068 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30077 1
a30077 2
sed 's/^/| /' conftest.$ac_ext >&5

d30080 1
a30080 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30094 2
a30095 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30104 6
d30120 1
a30120 1
  (eval $ac_link) 2>conftest.er1
a30121 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30124 1
a30124 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30133 1
a30133 2
sed 's/^/| /' conftest.$ac_ext >&5

d30136 1
a30136 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30146 1
a30146 1
	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
d30154 2
a30155 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30164 6
d30180 1
a30180 1
  (eval $ac_link) 2>conftest.er1
a30181 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30184 1
a30184 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30193 1
a30193 2
sed 's/^/| /' conftest.$ac_ext >&5

d30196 1
a30196 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30212 1
a30212 1
    # variants that don't use the name server (or something).  -lsocket
d30221 2
a30222 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define connect innocuous_connect

d30224 2
a30225 12
    which can conflict with char connect (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef connect

a30228 1
{
d30233 11
d30250 1
a30250 4
char (*f) () = connect;
#endif
#ifdef __cplusplus
}
a30252 4
int
main ()
{
return f != connect;
d30259 1
a30259 1
  (eval $ac_link) 2>conftest.er1
a30260 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30263 1
a30263 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30272 1
a30272 2
sed 's/^/| /' conftest.$ac_ext >&5

d30275 1
a30275 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30289 2
a30290 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30299 6
d30315 1
a30315 1
  (eval $ac_link) 2>conftest.er1
a30316 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30319 1
a30319 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30328 1
a30328 2
sed 's/^/| /' conftest.$ac_ext >&5

d30331 1
a30331 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30349 2
a30350 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define remove innocuous_remove

d30352 2
a30353 12
    which can conflict with char remove (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef remove

a30356 1
{
d30361 11
d30378 1
a30378 4
char (*f) () = remove;
#endif
#ifdef __cplusplus
}
a30380 4
int
main ()
{
return f != remove;
d30387 1
a30387 1
  (eval $ac_link) 2>conftest.er1
a30388 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30391 1
a30391 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30400 1
a30400 2
sed 's/^/| /' conftest.$ac_ext >&5

d30403 1
a30403 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30417 2
a30418 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30427 6
d30443 1
a30443 1
  (eval $ac_link) 2>conftest.er1
a30444 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30447 1
a30447 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30456 1
a30456 2
sed 's/^/| /' conftest.$ac_ext >&5

d30459 1
a30459 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30477 2
a30478 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shmat innocuous_shmat

d30480 2
a30481 12
    which can conflict with char shmat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shmat

a30484 1
{
d30489 11
d30506 1
a30506 4
char (*f) () = shmat;
#endif
#ifdef __cplusplus
}
a30508 4
int
main ()
{
return f != shmat;
d30515 1
a30515 1
  (eval $ac_link) 2>conftest.er1
a30516 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30519 1
a30519 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30528 1
a30528 2
sed 's/^/| /' conftest.$ac_ext >&5

d30531 1
a30531 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30545 2
a30546 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30555 6
d30571 1
a30571 1
  (eval $ac_link) 2>conftest.er1
a30572 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30575 1
a30575 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30584 1
a30584 2
sed 's/^/| /' conftest.$ac_ext >&5

d30587 1
a30587 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30616 2
a30617 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30626 6
d30642 1
a30642 1
  (eval $ac_link) 2>conftest.er1
a30643 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30646 1
a30646 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30655 1
a30655 2
sed 's/^/| /' conftest.$ac_ext >&5

d30658 1
a30658 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30704 2
a30705 4
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
d30709 2
a30710 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30738 1
a30738 2
sed 's/^/| /' conftest.$ac_ext >&5

d30742 1
a30742 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30796 2
a30797 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30799 6
d30815 1
a30815 1
  (eval $ac_link) 2>conftest.er1
a30816 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30819 1
a30819 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30828 1
a30828 2
sed 's/^/| /' conftest.$ac_ext >&5

d30830 1
a30830 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30852 2
a30853 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d30855 2
a30856 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a30859 1
{
d30864 11
d30881 1
a30881 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a30883 4
int
main ()
{
return f != $ac_func;
d30890 1
a30890 1
  (eval $ac_link) 2>conftest.er1
a30891 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30894 1
a30894 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d30903 1
a30903 2
sed 's/^/| /' conftest.$ac_ext >&5

d30906 1
a30906 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d30981 2
a30982 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d30984 6
d31000 1
a31000 1
  (eval $ac_link) 2>conftest.er1
a31001 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31004 1
a31004 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d31013 1
a31013 2
sed 's/^/| /' conftest.$ac_ext >&5

d31015 1
a31015 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d31037 2
a31038 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d31040 2
a31041 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a31044 1
{
d31049 11
d31066 1
a31066 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a31068 4
int
main ()
{
return f != $ac_func;
d31075 1
a31075 1
  (eval $ac_link) 2>conftest.er1
a31076 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31079 1
a31079 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d31088 1
a31088 2
sed 's/^/| /' conftest.$ac_ext >&5

d31091 1
a31091 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d31165 2
a31166 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31168 6
d31184 1
a31184 1
  (eval $ac_link) 2>conftest.er1
a31185 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31188 1
a31188 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d31197 1
a31197 2
sed 's/^/| /' conftest.$ac_ext >&5

d31199 1
a31199 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d31221 2
a31222 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d31224 2
a31225 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a31228 1
{
d31233 11
d31250 1
a31250 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a31252 4
int
main ()
{
return f != $ac_func;
d31259 1
a31259 1
  (eval $ac_link) 2>conftest.er1
a31260 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31263 1
a31263 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d31272 1
a31272 2
sed 's/^/| /' conftest.$ac_ext >&5

d31275 1
a31275 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d31382 2
a31383 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31385 6
d31447 1
a31447 1
  (eval $ac_compile) 2>conftest.er1
a31448 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31451 1
a31451 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d31460 1
a31460 2
sed 's/^/| /' conftest.$ac_ext >&5

d31463 1
a31463 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31481 2
a31482 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31484 6
d31503 1
a31503 1
  (eval $ac_compile) 2>conftest.er1
a31504 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31507 1
a31507 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d31516 1
a31516 2
sed 's/^/| /' conftest.$ac_ext >&5

d31519 1
a31519 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31539 2
a31540 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31549 1
a31549 1
  $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d31573 2
a31574 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31583 1
a31583 1
  $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d31610 2
a31611 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31618 6
d31634 1
a31634 1
  (eval $ac_compile) 2>conftest.er1
a31635 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31638 1
a31638 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d31647 1
a31647 2
sed 's/^/| /' conftest.$ac_ext >&5

d31650 1
a31650 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31664 2
a31665 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31667 6
d31686 1
a31686 1
  (eval $ac_compile) 2>conftest.er1
a31687 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31690 1
a31690 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d31699 1
a31699 2
sed 's/^/| /' conftest.$ac_ext >&5

d31702 1
a31702 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31729 2
a31730 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31735 6
d31752 1
a31752 1
  (eval $ac_compile) 2>conftest.er1
a31753 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31756 1
a31756 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d31765 1
a31765 2
sed 's/^/| /' conftest.$ac_ext >&5

d31768 1
a31768 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31786 2
a31787 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31791 6
d31807 1
a31807 1
  (eval $ac_compile) 2>conftest.er1
a31808 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d31811 1
a31811 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d31820 1
a31820 2
sed 's/^/| /' conftest.$ac_ext >&5

d31823 1
a31823 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31842 2
a31843 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
a31848 7
int
main ()
{

  ;
  return 0;
}
d31850 2
a31851 3
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1
d31853 1
a31853 1
  grep -v '^ *+' conftest.er1 >conftest.err
d31857 10
a31866 14
  (exit $ac_status); } &&
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d31870 2
a31871 3
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_header_stdc=no
d31873 1
a31873 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d31878 2
a31879 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31884 1
a31884 1
  $EGREP "memchr" >/dev/null 2>&1; then
d31896 2
a31897 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31902 1
a31902 1
  $EGREP "free" >/dev/null 2>&1; then
d31917 2
a31918 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d31924 3
a31926 4
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
d31937 1
a31937 1
	|| toupper (i) != TOUPPER (i))
d31957 1
a31957 2
sed 's/^/| /' conftest.$ac_ext >&5

d31961 1
a31961 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d32093 2
a32094 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32100 1
a32100 1
  (eval $ac_compile) 2>conftest.er1
a32101 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32104 1
a32104 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d32113 1
a32113 2
sed 's/^/| /' conftest.$ac_ext >&5

d32116 1
a32116 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d32124 2
a32125 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32131 1
a32131 1
  grep -v '^ *+' conftest.er1 >conftest.err
a32137 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d32148 1
a32148 2
sed 's/^/| /' conftest.$ac_ext >&5

d32156 2
a32157 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d32160 3
a32162 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d32165 2
a32166 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d32168 1
a32168 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d32175 1
a32175 1
  eval "$as_ac_Header=\$ac_header_preproc"
d32227 2
a32228 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32230 6
d32246 1
a32246 1
  (eval $ac_link) 2>conftest.er1
a32247 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32250 1
a32250 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32259 1
a32259 2
sed 's/^/| /' conftest.$ac_ext >&5

d32261 1
a32261 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d32283 2
a32284 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d32286 2
a32287 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a32290 1
{
d32295 11
d32312 1
a32312 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a32314 4
int
main ()
{
return f != $ac_func;
d32321 1
a32321 1
  (eval $ac_link) 2>conftest.er1
a32322 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32325 1
a32325 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32334 1
a32334 2
sed 's/^/| /' conftest.$ac_ext >&5

d32337 1
a32337 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d32410 2
a32411 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32413 6
d32429 1
a32429 1
  (eval $ac_link) 2>conftest.er1
a32430 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32433 1
a32433 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32442 1
a32442 2
sed 's/^/| /' conftest.$ac_ext >&5

d32444 1
a32444 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d32466 2
a32467 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d32469 2
a32470 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a32473 1
{
d32478 11
d32495 1
a32495 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a32497 4
int
main ()
{
return f != $ac_func;
d32504 1
a32504 1
  (eval $ac_link) 2>conftest.er1
a32505 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32508 1
a32508 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32517 1
a32517 2
sed 's/^/| /' conftest.$ac_ext >&5

d32520 1
a32520 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d32593 2
a32594 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32596 6
d32612 1
a32612 1
  (eval $ac_link) 2>conftest.er1
a32613 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32616 1
a32616 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32625 1
a32625 2
sed 's/^/| /' conftest.$ac_ext >&5

d32627 1
a32627 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d32649 2
a32650 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d32652 2
a32653 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a32656 1
{
d32661 11
d32678 1
a32678 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a32680 4
int
main ()
{
return f != $ac_func;
d32687 1
a32687 1
  (eval $ac_link) 2>conftest.er1
a32688 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32691 1
a32691 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32700 1
a32700 2
sed 's/^/| /' conftest.$ac_ext >&5

d32703 1
a32703 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d32776 2
a32777 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d32779 6
d32795 1
a32795 1
  (eval $ac_link) 2>conftest.er1
a32796 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32799 1
a32799 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32808 1
a32808 2
sed 's/^/| /' conftest.$ac_ext >&5

d32810 1
a32810 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d32832 2
a32833 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d32835 2
a32836 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a32839 1
{
d32844 11
d32861 1
a32861 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a32863 4
int
main ()
{
return f != $ac_func;
d32870 1
a32870 1
  (eval $ac_link) 2>conftest.er1
a32871 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d32874 1
a32874 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d32883 1
a32883 2
sed 's/^/| /' conftest.$ac_ext >&5

d32886 1
a32886 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33006 2
a33007 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d33009 2
a33010 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a33013 1
{
d33018 11
d33035 1
a33035 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a33037 4
int
main ()
{
return f != $ac_func;
d33044 1
a33044 1
  (eval $ac_link) 2>conftest.er1
a33045 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33048 1
a33048 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d33057 1
a33057 2
sed 's/^/| /' conftest.$ac_ext >&5

d33060 1
a33060 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33091 2
a33092 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33098 1
a33098 1
  (eval $ac_compile) 2>conftest.er1
a33099 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33102 1
a33102 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d33111 1
a33111 2
sed 's/^/| /' conftest.$ac_ext >&5

d33114 1
a33114 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d33122 2
a33123 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33129 1
a33129 1
  grep -v '^ *+' conftest.er1 >conftest.err
a33135 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d33146 1
a33146 2
sed 's/^/| /' conftest.$ac_ext >&5

d33154 2
a33155 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d33158 3
a33160 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d33163 2
a33164 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d33166 1
a33166 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d33173 1
a33173 1
  eval "$as_ac_Header=\$ac_header_preproc"
d33198 2
a33199 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d33201 2
a33202 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a33205 1
{
d33210 11
d33227 1
a33227 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a33229 4
int
main ()
{
return f != $ac_func;
d33236 1
a33236 1
  (eval $ac_link) 2>conftest.er1
a33237 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33240 1
a33240 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d33249 1
a33249 2
sed 's/^/| /' conftest.$ac_ext >&5

d33252 1
a33252 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33273 2
a33274 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33377 1
a33377 1
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
d33379 1
a33379 1
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
d33417 1
a33417 2
sed 's/^/| /' conftest.$ac_ext >&5

d33421 1
a33421 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d33456 2
a33457 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33463 1
a33463 1
  (eval $ac_compile) 2>conftest.er1
a33464 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33467 1
a33467 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d33476 1
a33476 2
sed 's/^/| /' conftest.$ac_ext >&5

d33479 1
a33479 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d33487 2
a33488 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33494 1
a33494 1
  grep -v '^ *+' conftest.er1 >conftest.err
a33500 1
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d33511 1
a33511 2
sed 's/^/| /' conftest.$ac_ext >&5

d33519 2
a33520 2
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
d33523 3
a33525 5
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
d33528 2
a33529 6
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
d33531 1
a33531 12
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## -------------------------------------- ##
## Report this to heimdal-bugs@@pdc.kth.se ##
## -------------------------------------- ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
d33538 1
a33538 1
  eval "$as_ac_Header=\$ac_header_preproc"
d33565 2
a33566 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d33568 2
a33569 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a33572 1
{
d33577 11
d33594 1
a33594 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a33596 4
int
main ()
{
return f != $ac_func;
d33603 1
a33603 1
  (eval $ac_link) 2>conftest.er1
a33604 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33607 1
a33607 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d33616 1
a33616 2
sed 's/^/| /' conftest.$ac_ext >&5

d33619 1
a33619 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33655 2
a33656 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33658 6
d33674 1
a33674 1
  (eval $ac_link) 2>conftest.er1
a33675 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33678 1
a33678 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d33687 1
a33687 2
sed 's/^/| /' conftest.$ac_ext >&5

d33689 1
a33689 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33711 2
a33712 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d33714 2
a33715 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a33718 1
{
d33723 11
d33740 1
a33740 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a33742 4
int
main ()
{
return f != $ac_func;
d33749 1
a33749 1
  (eval $ac_link) 2>conftest.er1
a33750 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33753 1
a33753 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d33762 1
a33762 2
sed 's/^/| /' conftest.$ac_ext >&5

d33765 1
a33765 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33829 2
a33830 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33855 1
a33855 2
sed 's/^/| /' conftest.$ac_ext >&5

d33859 1
a33859 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d33886 2
a33887 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d33889 2
a33890 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a33893 1
{
d33898 11
d33915 1
a33915 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a33917 4
int
main ()
{
return f != $ac_func;
d33924 1
a33924 1
  (eval $ac_link) 2>conftest.er1
a33925 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33928 1
a33928 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d33937 1
a33937 2
sed 's/^/| /' conftest.$ac_ext >&5

d33940 1
a33940 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d33964 2
a33965 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d33967 6
d33983 1
a33983 1
  (eval $ac_compile) 2>conftest.er1
a33984 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33987 1
a33987 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d33996 1
a33996 2
sed 's/^/| /' conftest.$ac_ext >&5

d33999 1
a33999 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34023 2
a34024 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34026 6
d34042 1
a34042 1
  (eval $ac_compile) 2>conftest.er1
a34043 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34046 1
a34046 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34055 1
a34055 2
sed 's/^/| /' conftest.$ac_ext >&5

d34058 1
a34058 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34082 2
a34083 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34085 6
d34101 1
a34101 1
  (eval $ac_compile) 2>conftest.er1
a34102 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34105 1
a34105 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34114 1
a34114 2
sed 's/^/| /' conftest.$ac_ext >&5

d34117 1
a34117 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34141 2
a34142 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34144 6
d34160 1
a34160 1
  (eval $ac_compile) 2>conftest.er1
a34161 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34164 1
a34164 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34173 1
a34173 2
sed 's/^/| /' conftest.$ac_ext >&5

d34176 1
a34176 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34200 2
a34201 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34203 6
d34219 1
a34219 1
  (eval $ac_compile) 2>conftest.er1
a34220 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34223 1
a34223 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34232 1
a34232 2
sed 's/^/| /' conftest.$ac_ext >&5

d34235 1
a34235 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34259 2
a34260 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34262 6
d34278 1
a34278 1
  (eval $ac_compile) 2>conftest.er1
a34279 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34282 1
a34282 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34291 1
a34291 2
sed 's/^/| /' conftest.$ac_ext >&5

d34294 1
a34294 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34318 2
a34319 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34321 6
d34337 1
a34337 1
  (eval $ac_compile) 2>conftest.er1
a34338 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34341 1
a34341 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34350 1
a34350 2
sed 's/^/| /' conftest.$ac_ext >&5

d34353 1
a34353 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34377 2
a34378 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34380 6
d34396 1
a34396 1
  (eval $ac_compile) 2>conftest.er1
a34397 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34400 1
a34400 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34409 1
a34409 2
sed 's/^/| /' conftest.$ac_ext >&5

d34412 1
a34412 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34434 2
a34435 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34454 6
d34473 1
a34473 1
  (eval $ac_compile) 2>conftest.er1
a34474 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34477 1
a34477 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34486 1
a34486 2
sed 's/^/| /' conftest.$ac_ext >&5

d34489 1
a34489 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34507 2
a34508 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34527 6
d34546 1
a34546 1
  (eval $ac_compile) 2>conftest.er1
a34547 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34550 1
a34550 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34559 1
a34559 2
sed 's/^/| /' conftest.$ac_ext >&5

d34562 1
a34562 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34580 2
a34581 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34600 6
d34619 1
a34619 1
  (eval $ac_compile) 2>conftest.er1
a34620 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34623 1
a34623 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34632 1
a34632 2
sed 's/^/| /' conftest.$ac_ext >&5

d34635 1
a34635 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34653 2
a34654 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34673 6
d34692 1
a34692 1
  (eval $ac_compile) 2>conftest.er1
a34693 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34696 1
a34696 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34705 1
a34705 2
sed 's/^/| /' conftest.$ac_ext >&5

d34708 1
a34708 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34726 2
a34727 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34746 6
d34765 1
a34765 1
  (eval $ac_compile) 2>conftest.er1
a34766 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34769 1
a34769 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34778 1
a34778 2
sed 's/^/| /' conftest.$ac_ext >&5

d34781 1
a34781 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34799 2
a34800 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34819 6
d34838 1
a34838 1
  (eval $ac_compile) 2>conftest.er1
a34839 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34842 1
a34842 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34851 1
a34851 2
sed 's/^/| /' conftest.$ac_ext >&5

d34854 1
a34854 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34872 2
a34873 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34892 6
d34911 1
a34911 1
  (eval $ac_compile) 2>conftest.er1
a34912 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34915 1
a34915 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34924 1
a34924 2
sed 's/^/| /' conftest.$ac_ext >&5

d34927 1
a34927 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d34945 2
a34946 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d34965 6
d34984 1
a34984 1
  (eval $ac_compile) 2>conftest.er1
a34985 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d34988 1
a34988 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d34997 1
a34997 2
sed 's/^/| /' conftest.$ac_ext >&5

d35000 1
a35000 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35018 2
a35019 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35038 6
d35057 1
a35057 1
  (eval $ac_compile) 2>conftest.er1
a35058 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35061 1
a35061 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d35070 1
a35070 2
sed 's/^/| /' conftest.$ac_ext >&5

d35073 1
a35073 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35091 2
a35092 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35111 6
d35130 1
a35130 1
  (eval $ac_compile) 2>conftest.er1
a35131 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35134 1
a35134 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d35143 1
a35143 2
sed 's/^/| /' conftest.$ac_ext >&5

d35146 1
a35146 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35164 2
a35165 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35184 6
d35203 1
a35203 1
  (eval $ac_compile) 2>conftest.er1
a35204 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35207 1
a35207 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d35216 1
a35216 2
sed 's/^/| /' conftest.$ac_ext >&5

d35219 1
a35219 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35237 2
a35238 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35257 6
d35276 1
a35276 1
  (eval $ac_compile) 2>conftest.er1
a35277 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35280 1
a35280 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d35289 1
a35289 2
sed 's/^/| /' conftest.$ac_ext >&5

d35292 1
a35292 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35328 2
a35329 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35331 6
d35347 1
a35347 1
  (eval $ac_link) 2>conftest.er1
a35348 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35351 1
a35351 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d35360 1
a35360 2
sed 's/^/| /' conftest.$ac_ext >&5

d35362 1
a35362 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d35384 2
a35385 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

d35387 2
a35388 12
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

a35391 1
{
d35396 11
d35413 1
a35413 4
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
a35415 4
int
main ()
{
return f != $ac_func;
d35422 1
a35422 1
  (eval $ac_link) 2>conftest.er1
a35423 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35426 1
a35426 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d35435 1
a35435 2
sed 's/^/| /' conftest.$ac_ext >&5

d35438 1
a35438 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d35498 2
a35499 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35502 6
d35518 1
a35518 1
  (eval $ac_compile) 2>conftest.er1
a35519 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35522 1
a35522 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest.$ac_objext'
d35531 1
a35531 2
sed 's/^/| /' conftest.$ac_ext >&5

d35534 1
a35534 1
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d35620 2
a35621 9
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getmsg innocuous_getmsg

d35623 2
a35624 12
    which can conflict with char getmsg (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getmsg

a35627 1
{
d35632 11
d35649 1
a35649 4
char (*f) () = getmsg;
#endif
#ifdef __cplusplus
}
a35651 4
int
main ()
{
return f != getmsg;
d35658 1
a35658 1
  (eval $ac_link) 2>conftest.er1
a35659 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35662 1
a35662 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d35671 1
a35671 2
sed 's/^/| /' conftest.$ac_ext >&5

d35674 1
a35674 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d35689 2
a35690 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35720 1
a35720 2
sed 's/^/| /' conftest.$ac_ext >&5

d35724 1
a35724 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d35794 1
a35794 1
error_table test conf
d35803 1
a35803 1
    save_CPPFLAGS="${CPPFLAGS}"
d35808 2
a35809 4
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
d35813 2
a35814 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35819 1
a35819 5
int main(){
#ifndef ERROR_TABLE_BASE_conf
#error compile_et does not handle error_table N M
#endif
return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
d35837 1
a35837 2
sed 's/^/| /' conftest.$ac_ext >&5

d35841 1
a35841 1
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d35849 2
d35852 2
a35853 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35857 1
a35857 1
  $EGREP "initialize_error_table_r" >/dev/null 2>&1; then
d35859 3
d35882 2
a35883 5
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
d35885 6
d35905 1
a35905 1
  (eval $ac_link) 2>conftest.er1
a35906 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d35909 1
a35909 8
	 { ac_try='test -z "$ac_c_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; } &&
	 { ac_try='test -s conftest$ac_exeext'
d35918 1
a35918 2
sed 's/^/| /' conftest.$ac_ext >&5

d35921 1
a35921 2
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
d36075 1
a36075 1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"
d36088 1
a36088 1
# `ac_cv_env_foo' variables (set or unset) will be overridden when
d36106 2
a36107 2
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d36112 1
a36112 1
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
d36123 1
a36123 1
if diff $cache_file confcache >/dev/null 2>&1; then :; else
d36142 1
a36142 1
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
d36146 1
a36146 1
s/^\([^=]*=[	 ]*\):*/\1/;
d36148 1
a36148 1
s/^[^=]*=[	 ]*$//;
d36154 7
a36160 15
ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_i=`echo "$ac_i" |
	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  # 2. Add them.
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


a36342 2
ac_cs_recheck=false
ac_cs_silent=false
d36347 1
a36355 3
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
a36358 1
DUALCASE=1; export DUALCASE # for MKS sh
d36360 1
d36362 1
a36362 1
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
d36368 24
a36391 32

# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi
d36395 1
a36395 1
as_me=`$as_basename "$0" ||
a36405 1

d36416 4
a36419 4
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
d36424 1
a36424 1
  rm -f conf$$.sh
a36472 2
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
a36545 7
if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

d36549 1
a36549 1
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d36552 1
a36552 1
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d36562 1
a36562 1
$as_unset CDPATH
d36578 2
a36579 2
This file was extended by Heimdal $as_me 0.6.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was
a36618 1
  -q, --quiet      do not print progress messages
d36622 1
a36622 1
		   instantiate the configuration file FILE
d36624 1
a36624 1
		   instantiate the configuration header FILE
d36632 3
d36640 2
a36641 2
Heimdal config.status 0.6.1
configured by $0, generated by GNU Autoconf 2.59,
d36644 2
a36645 1
Copyright (C) 2003 Free Software Foundation, Inc.
d36662 3
a36664 6
    ac_shift=:
    ;;
  -*)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
d36666 1
a36668 1
     ac_option=$1
d36672 1
a36672 1
  case $ac_option in
d36675 5
a36680 2
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
d36695 2
a36696 2
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
d36699 2
a36700 2
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
a36701 3
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;
d36716 1
a36716 1
ac_configure_extra_args=
d36718 4
a36721 4
if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
d36723 1
a36723 6
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi
a36728 2


d36786 1
d36801 1
a36803 3
# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
d36812 1
a36812 1

d36814 1
a36814 1
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
d36818 1
a36818 1
  tmp=./confstat$$-$RANDOM
d36822 1
a36822 1
   echo "$me: cannot create a temporary directory in ." >&2
a36880 1
s,@@CYGPATH_W@@,$CYGPATH_W,;t t
d36895 7
a36901 1
s,@@am__leading_dot@@,$am__leading_dot,;t t
a36918 1
s,@@EGREP@@,$EGREP,;t t
a36919 2
s,@@AR@@,$AR,;t t
s,@@ac_ct_AR@@,$ac_ct_AR,;t t
a36921 7
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@CXXCPP@@,$CXXCPP,;t t
s,@@F77@@,$F77,;t t
s,@@FFLAGS@@,$FFLAGS,;t t
s,@@ac_ct_F77@@,$ac_ct_F77,;t t
d37082 1
a37082 1
	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
d37084 1
a37084 1
	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
d37102 3
a37104 3
	cat >$tmp/stdin
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d37106 1
a37106 1
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d37113 4
a37116 4
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
d37123 19
a37141 24
  { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }
d37168 6
a37173 39

# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
  case "$ac_dir" in
  .) ac_abs_builddir=`pwd`;;
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
  case ${ac_top_builddir}. in
  .) ac_abs_top_builddir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
  case $ac_srcdir in
  .) ac_abs_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
  case $ac_top_srcdir in
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  esac;;
esac
d37195 1
a37195 1
				     sed 's,.*/,,'` by configure."
d37204 2
a37205 2
	 # Absolute (can't be DOS-style, as IFS=:)
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d37208 1
a37208 1
	 echo "$f";;
d37210 9
a37218 9
	 if test -f "$f"; then
	   # Build tree
	   echo "$f"
	 elif test -f "$srcdir/$f"; then
	   # Source tree
	   echo "$srcdir/$f"
	 else
	   # /dev/null tree
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d37221 1
a37221 1
	 fi;;
d37263 2
a37264 2
ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
ac_dB='[	 ].*$,\1#\2'
d37268 1
a37268 1
ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
d37277 3
a37279 3
	cat >$tmp/stdin
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d37281 1
a37281 1
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
d37295 2
a37296 2
	 # Absolute (can't be DOS-style, as IFS=:)
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d37299 1
a37299 2
	 # Do quote $f, to prevent DOS paths from being IFS'd.
	 echo "$f";;
d37301 9
a37309 9
	 if test -f "$f"; then
	   # Build tree
	   echo "$f"
	 elif test -f "$srcdir/$f"; then
	   # Source tree
	   echo "$srcdir/$f"
	 else
	   # /dev/null tree
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d37312 1
a37312 1
	 fi;;
d37316 1
a37316 1
  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
d37339 1
a37339 1
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
d37341 1
a37341 1
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
d37355 1
a37355 1
s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
d37361 1
a37361 1
echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
d37370 1
a37370 1
  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
d37385 1
a37385 1
echo '  fi # grep' >>$CONFIG_STATUS
d37397 1
a37397 1
  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
d37425 1
a37425 1
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
d37431 4
a37434 4
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
d37441 19
a37459 24
      { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }
d37468 5
a37472 8
# Compute $ac_file's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $ac_file | $ac_file:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
d37475 107
a37581 7
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X$ac_file : 'X\(//\)[^/]' \| \
	 X$ac_file : 'X\(//\)$' \| \
	 X$ac_file : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X$ac_file |
d37586 27
a37612 1
  	  s/.*/./; q'`/stamp-h$_am_stamp_count
a37633 3
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
d37635 1
a37635 1
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
d37646 1
a37646 1
const char *heimdal_version = "Heimdal 0.6.1";
@


1.1.1.12.2.1
log
@MFC update Heimdal 0.6.1 -> 0.6.3.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.331.2.8 .
d4 1
a4 1
# Generated by GNU Autoconf 2.59 for Heimdal 0.6.3.
d427 2
a428 2
PACKAGE_VERSION='0.6.3'
PACKAGE_STRING='Heimdal 0.6.3'
d470 1
a470 1
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WFLAGS WFLAGS_NOUNUSED WFLAGS_NOIMPLICITINT INCLUDE_openldap LIB_openldap INCLUDE_krb4 LIB_krb4 EXTRA_LIB45 LIB_krb_enable_debug LIB_krb_disable_debug LIB_krb_get_our_ip_for_realm LIB_krb_kdctimeofday LIB_krb_get_kdc_time_diff KRB4_TRUE KRB4_FALSE KRB5_TRUE KRB5_FALSE do_roken_rename_TRUE do_roken_rename_FALSE LIB_kdb HAVE_OPENSSL_TRUE HAVE_OPENSSL_FALSE DIR_des INCLUDE_des LIB_des LIB_des_a LIB_des_so LIB_des_appl DCE_TRUE DCE_FALSE dpagaix_cflags dpagaix_ldadd dpagaix_ldflags LIB_db_create LIB_dbopen LIB_dbm_firstkey HAVE_DB1_TRUE HAVE_DB1_FALSE HAVE_DB3_TRUE HAVE_DB3_FALSE HAVE_NDBM_TRUE HAVE_NDBM_FALSE DBLIB LIB_NDBM VOID_RETSIGTYPE have_err_h_TRUE have_err_h_FALSE have_fnmatch_h_TRUE have_fnmatch_h_FALSE have_ifaddrs_h_TRUE have_ifaddrs_h_FALSE have_vis_h_TRUE have_vis_h_FALSE LIB_socket LIB_gethostbyname LIB_syslog LIB_gethostbyname2 LIB_res_search LIB_res_nsearch LIB_dn_expand LIBOBJS have_glob_h_TRUE have_glob_h_FALSE LIB_getsockopt LIB_setsockopt LIB_hstrerror LIB_bswap16 LIB_bswap32 LIB_pidfile LIB_getaddrinfo LIB_getnameinfo LIB_freeaddrinfo LIB_gai_strerror LIB_crypt DIR_roken LIB_roken INCLUDES_roken LIB_otp OTP_TRUE OTP_FALSE LIB_security NROFF GROFF CATMAN CATMAN_TRUE CATMAN_FALSE CATMANEXT INCLUDE_readline LIB_readline INCLUDE_hesiod LIB_hesiod AIX_TRUE AIX_FALSE AIX4_TRUE AIX4_FALSE LIB_dlopen HAVE_DLOPEN_TRUE HAVE_DLOPEN_FALSE LIB_loadquery AIX_DYNAMIC_AFS_TRUE AIX_DYNAMIC_AFS_FALSE AIX_EXTRA_KAFS IRIX_TRUE IRIX_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_X_TRUE HAVE_X_FALSE LIB_XauWriteAuth LIB_XauReadAuth LIB_XauFileName NEED_WRITEAUTH_TRUE NEED_WRITEAUTH_FALSE LIB_logwtmp LIB_logout LIB_openpty LIB_tgetent LIB_getpwnam_r LIB_el_init el_compat_TRUE el_compat_FALSE COMPILE_ET DIR_com_err LIB_com_err LIB_com_err_a LIB_com_err_so LIB_AUTH_SUBDIRS LTLIBOBJS'
d959 1
a959 1
\`configure' configures Heimdal 0.6.3 to adapt to many kinds of systems.
d1029 1
a1029 1
     short | recursive ) echo "Configuration of Heimdal 0.6.3:";;
d1036 2
a1037 2
  --enable-maintainer-mode  enable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
d1207 1
a1207 1
Heimdal configure 0.6.3
d1221 1
a1221 1
It was created by Heimdal $as_me 0.6.3, which was
d2727 1
a2727 1
am__api_version="1.8"
d2890 1
a2903 25
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  # Keeping the `.' argument allows $(mkdir_p) to be used without
  # argument.  Indeed, we sometimes output rules like
  #   $(mkdir_p) $(somedir)
  # where $(somedir) is conditionally defined.
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  # expensive solution, as it forces Make to start a sub-shell.)
  mkdir_p='mkdir -p -- .'
else
  # On NextStep and OpenStep, the `mkdir' command does not
  # recognize any option.  It will interpret all options as
  # directories to create, and then abort because `.' already
  # exists.
  for d in ./-p ./--version;
  do
    test -d $d && rmdir $d
  done
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  if test -f "$ac_aux_dir/mkinstalldirs"; then
    mkdir_p='$(mkinstalldirs)'
  else
    mkdir_p='$(install_sh) -d'
  fi
fi

d2982 1
a2982 1
# test to see if srcdir already configured
d3002 1
a3002 1
 VERSION='0.6.3'
d4789 1
a4789 1
  echo '#line 4813 "configure"' > conftest.$ac_ext
d6018 1
a6018 1
echo "$as_me:6042:" \
d7052 1
a7052 1
   (eval echo "\"\$as_me:7076: $lt_compile\"" >&5)
d7056 1
a7056 1
   echo "$as_me:7080: \$? = $ac_status" >&5
d7285 1
a7285 1
   (eval echo "\"\$as_me:7309: $lt_compile\"" >&5)
d7289 1
a7289 1
   echo "$as_me:7313: \$? = $ac_status" >&5
d7345 1
a7345 1
   (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
d7349 1
a7349 1
   echo "$as_me:7373: \$? = $ac_status" >&5
d9529 1
a9529 1
#line 9553 "configure"
d9627 1
a9627 1
#line 9651 "configure"
d11806 1
a11806 1
   (eval echo "\"\$as_me:11830: $lt_compile\"" >&5)
d11810 1
a11810 1
   echo "$as_me:11834: \$? = $ac_status" >&5
d11866 1
a11866 1
   (eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
d11870 1
a11870 1
   echo "$as_me:11894: \$? = $ac_status" >&5
d13227 1
a13227 1
#line 13251 "configure"
d13325 1
a13325 1
#line 13349 "configure"
d14152 1
a14152 1
   (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
d14156 1
a14156 1
   echo "$as_me:14180: \$? = $ac_status" >&5
d14212 1
a14212 1
   (eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
d14216 1
a14216 1
   echo "$as_me:14240: \$? = $ac_status" >&5
d16246 1
a16246 1
   (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
d16250 1
a16250 1
   echo "$as_me:16274: \$? = $ac_status" >&5
d16479 1
a16479 1
   (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
d16483 1
a16483 1
   echo "$as_me:16507: \$? = $ac_status" >&5
d16539 1
a16539 1
   (eval echo "\"\$as_me:16563: $lt_compile\"" >&5)
d16543 1
a16543 1
   echo "$as_me:16567: \$? = $ac_status" >&5
d18723 1
a18723 1
#line 18747 "configure"
d18821 1
a18821 1
#line 18845 "configure"
a24295 2
## it's probably not correct to include LDFLAGS here, but we might
## need it, for now just add any possible -L
a27308 1
## test for AIX missing in6addr_loopback
a47113 4
## check for XauWriteAuth first, so we detect the case where
## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
## could be done by checking for XauReadAuth in -lXau first, but this
## breaks in IRIX 6.5
a47773 2
## set LIB_XauReadAuth to union of these tests, since this is what the
## Makefiles are using
d53779 1
a53779 1
This file was extended by Heimdal $as_me 0.6.3, which was
d53839 1
a53839 1
Heimdal config.status 0.6.3
a54102 1
s,@@mkdir_p@@,$mkdir_p,;t t
d54784 1
a54784 1
const char *heimdal_version = "Heimdal 0.6.3";
@


1.1.1.13
log
@Vendor import of Heimdal 0.6.3.
@
text
@d2 1
a2 1
# From configure.in Revision: 1.331.2.8 .
d4 1
a4 1
# Generated by GNU Autoconf 2.59 for Heimdal 0.6.3.
d427 2
a428 2
PACKAGE_VERSION='0.6.3'
PACKAGE_STRING='Heimdal 0.6.3'
d470 1
a470 1
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WFLAGS WFLAGS_NOUNUSED WFLAGS_NOIMPLICITINT INCLUDE_openldap LIB_openldap INCLUDE_krb4 LIB_krb4 EXTRA_LIB45 LIB_krb_enable_debug LIB_krb_disable_debug LIB_krb_get_our_ip_for_realm LIB_krb_kdctimeofday LIB_krb_get_kdc_time_diff KRB4_TRUE KRB4_FALSE KRB5_TRUE KRB5_FALSE do_roken_rename_TRUE do_roken_rename_FALSE LIB_kdb HAVE_OPENSSL_TRUE HAVE_OPENSSL_FALSE DIR_des INCLUDE_des LIB_des LIB_des_a LIB_des_so LIB_des_appl DCE_TRUE DCE_FALSE dpagaix_cflags dpagaix_ldadd dpagaix_ldflags LIB_db_create LIB_dbopen LIB_dbm_firstkey HAVE_DB1_TRUE HAVE_DB1_FALSE HAVE_DB3_TRUE HAVE_DB3_FALSE HAVE_NDBM_TRUE HAVE_NDBM_FALSE DBLIB LIB_NDBM VOID_RETSIGTYPE have_err_h_TRUE have_err_h_FALSE have_fnmatch_h_TRUE have_fnmatch_h_FALSE have_ifaddrs_h_TRUE have_ifaddrs_h_FALSE have_vis_h_TRUE have_vis_h_FALSE LIB_socket LIB_gethostbyname LIB_syslog LIB_gethostbyname2 LIB_res_search LIB_res_nsearch LIB_dn_expand LIBOBJS have_glob_h_TRUE have_glob_h_FALSE LIB_getsockopt LIB_setsockopt LIB_hstrerror LIB_bswap16 LIB_bswap32 LIB_pidfile LIB_getaddrinfo LIB_getnameinfo LIB_freeaddrinfo LIB_gai_strerror LIB_crypt DIR_roken LIB_roken INCLUDES_roken LIB_otp OTP_TRUE OTP_FALSE LIB_security NROFF GROFF CATMAN CATMAN_TRUE CATMAN_FALSE CATMANEXT INCLUDE_readline LIB_readline INCLUDE_hesiod LIB_hesiod AIX_TRUE AIX_FALSE AIX4_TRUE AIX4_FALSE LIB_dlopen HAVE_DLOPEN_TRUE HAVE_DLOPEN_FALSE LIB_loadquery AIX_DYNAMIC_AFS_TRUE AIX_DYNAMIC_AFS_FALSE AIX_EXTRA_KAFS IRIX_TRUE IRIX_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_X_TRUE HAVE_X_FALSE LIB_XauWriteAuth LIB_XauReadAuth LIB_XauFileName NEED_WRITEAUTH_TRUE NEED_WRITEAUTH_FALSE LIB_logwtmp LIB_logout LIB_openpty LIB_tgetent LIB_getpwnam_r LIB_el_init el_compat_TRUE el_compat_FALSE COMPILE_ET DIR_com_err LIB_com_err LIB_com_err_a LIB_com_err_so LIB_AUTH_SUBDIRS LTLIBOBJS'
d959 1
a959 1
\`configure' configures Heimdal 0.6.3 to adapt to many kinds of systems.
d1029 1
a1029 1
     short | recursive ) echo "Configuration of Heimdal 0.6.3:";;
d1036 2
a1037 2
  --enable-maintainer-mode  enable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
d1207 1
a1207 1
Heimdal configure 0.6.3
d1221 1
a1221 1
It was created by Heimdal $as_me 0.6.3, which was
d2727 1
a2727 1
am__api_version="1.8"
d2890 1
a2903 25
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  # Keeping the `.' argument allows $(mkdir_p) to be used without
  # argument.  Indeed, we sometimes output rules like
  #   $(mkdir_p) $(somedir)
  # where $(somedir) is conditionally defined.
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  # expensive solution, as it forces Make to start a sub-shell.)
  mkdir_p='mkdir -p -- .'
else
  # On NextStep and OpenStep, the `mkdir' command does not
  # recognize any option.  It will interpret all options as
  # directories to create, and then abort because `.' already
  # exists.
  for d in ./-p ./--version;
  do
    test -d $d && rmdir $d
  done
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  if test -f "$ac_aux_dir/mkinstalldirs"; then
    mkdir_p='$(mkinstalldirs)'
  else
    mkdir_p='$(install_sh) -d'
  fi
fi

d2982 1
a2982 1
# test to see if srcdir already configured
d3002 1
a3002 1
 VERSION='0.6.3'
d4789 1
a4789 1
  echo '#line 4813 "configure"' > conftest.$ac_ext
d6018 1
a6018 1
echo "$as_me:6042:" \
d7052 1
a7052 1
   (eval echo "\"\$as_me:7076: $lt_compile\"" >&5)
d7056 1
a7056 1
   echo "$as_me:7080: \$? = $ac_status" >&5
d7285 1
a7285 1
   (eval echo "\"\$as_me:7309: $lt_compile\"" >&5)
d7289 1
a7289 1
   echo "$as_me:7313: \$? = $ac_status" >&5
d7345 1
a7345 1
   (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
d7349 1
a7349 1
   echo "$as_me:7373: \$? = $ac_status" >&5
d9529 1
a9529 1
#line 9553 "configure"
d9627 1
a9627 1
#line 9651 "configure"
d11806 1
a11806 1
   (eval echo "\"\$as_me:11830: $lt_compile\"" >&5)
d11810 1
a11810 1
   echo "$as_me:11834: \$? = $ac_status" >&5
d11866 1
a11866 1
   (eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
d11870 1
a11870 1
   echo "$as_me:11894: \$? = $ac_status" >&5
d13227 1
a13227 1
#line 13251 "configure"
d13325 1
a13325 1
#line 13349 "configure"
d14152 1
a14152 1
   (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
d14156 1
a14156 1
   echo "$as_me:14180: \$? = $ac_status" >&5
d14212 1
a14212 1
   (eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
d14216 1
a14216 1
   echo "$as_me:14240: \$? = $ac_status" >&5
d16246 1
a16246 1
   (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
d16250 1
a16250 1
   echo "$as_me:16274: \$? = $ac_status" >&5
d16479 1
a16479 1
   (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
d16483 1
a16483 1
   echo "$as_me:16507: \$? = $ac_status" >&5
d16539 1
a16539 1
   (eval echo "\"\$as_me:16563: $lt_compile\"" >&5)
d16543 1
a16543 1
   echo "$as_me:16567: \$? = $ac_status" >&5
d18723 1
a18723 1
#line 18747 "configure"
d18821 1
a18821 1
#line 18845 "configure"
a24295 2
## it's probably not correct to include LDFLAGS here, but we might
## need it, for now just add any possible -L
a27308 1
## test for AIX missing in6addr_loopback
a47113 4
## check for XauWriteAuth first, so we detect the case where
## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
## could be done by checking for XauReadAuth in -lXau first, but this
## breaks in IRIX 6.5
a47773 2
## set LIB_XauReadAuth to union of these tests, since this is what the
## Makefiles are using
d53779 1
a53779 1
This file was extended by Heimdal $as_me 0.6.3, which was
d53839 1
a53839 1
Heimdal config.status 0.6.3
a54102 1
s,@@mkdir_p@@,$mkdir_p,;t t
d54784 1
a54784 1
const char *heimdal_version = "Heimdal 0.6.3";
@


1.1.1.14
log
@Vendor import of Heimdal 1.1
@
text
@d2 1
a2 1
# From configure.in Revision: 22513 .
d4 1
a4 1
# Generated by GNU Autoconf 2.61 for Heimdal 1.1.
d6 1
a6 1
# Report bugs to <heimdal-bugs@@h5l.org>.
d8 1
a8 2
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d15 1
a15 2
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
d22 2
a23 30
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
d25 1
a34 33
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

d36 1
a36 3
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
d50 1
a50 1
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d55 1
a55 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
d61 1
a61 1
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d69 1
a69 1
as_me=`$as_basename -- "$0" ||
d72 2
a73 1
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d75 4
a78 13
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
a79 2
# CDPATH.
$as_unset CDPATH
d81 7
d89 11
a99 5
if test "x$CONFIG_SHELL" = x; then
  if (eval ":") 2>/dev/null; then
  as_have_required=yes
else
  as_have_required=no
a101 16
  if test $as_have_required = yes && 	 (eval ":
(as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}
d103 16
a118 7
exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi
d120 13
a132 35
if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=\$LINENO
  as_lineno_2=\$LINENO
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
  :
else
  as_candidate_shells=
d138 2
a139 1
  case $as_dir in
d141 1
a141 100
	   for as_base in sh bash ksh sh5; do
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
	   done;;
       esac
done
IFS=$as_save_IFS


      for as_shell in $as_candidate_shells $SHELL; do
	 # Try only shells that exist, to save several forks.
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
_ASEOF
}; then
  CONFIG_SHELL=$as_shell
	       as_have_required=yes
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
(as_func_return () {
  (exit $1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = "$1" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test $exitcode = 0) || { (exit 1); exit 1; }

(
d144 1
d146 12
a157 96
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }

_ASEOF
}; then
  break
fi

fi

      done

      if test "x$CONFIG_SHELL" != x; then
  for as_var in BASH_ENV ENV
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
        done
        export CONFIG_SHELL
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@@"}
fi


    if test $as_have_required = no; then
  echo This script requires a shell more modern than all the
      echo shells that I found on your system.  Please install a
      echo modern shell, or manually run the script under such a
      echo shell if you do have one.
      { (exit 1); exit 1; }
fi


fi

fi



(eval "as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0") || {
  echo No shell found that supports shell functions.
  echo Please tell autoconf@@gnu.org about your system,
  echo including any error possibly output before this
  echo message
}



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d161 4
a164 5
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
d166 2
a167 6
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
a168 4
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
d170 3
a172 2
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d174 2
a175 1
      s/-\n.*//
d177 1
a177 1
  chmod +x "$as_me.lineno" ||
d183 2
a184 2
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
d190 5
a194 15
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
d197 1
a197 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
a203 6
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
d206 4
a209 6
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d211 3
d219 1
a219 2
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
d228 1
a228 22
if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
        test -d "$1/.";
      else
	case $1 in
        -*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x
d237 9
d284 1
a284 1
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d291 2
a292 2
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
       echo_test_string=`eval $cmd` &&
a400 2
exec 7<&0 </dev/null 6>&1

d406 2
a411 1
ac_clean_files=
a412 1
LIBOBJS=
d419 5
d427 3
a429 3
PACKAGE_VERSION='1.1'
PACKAGE_STRING='Heimdal 1.1'
PACKAGE_BUGREPORT='heimdal-bugs@@h5l.org'
d436 1
a436 1
#ifdef HAVE_SYS_TYPES_H
d439 1
a439 1
#ifdef HAVE_SYS_STAT_H
d442 1
a442 1
#ifdef STDC_HEADERS
d446 1
a446 1
# ifdef HAVE_STDLIB_H
d450 2
a451 2
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d456 1
a456 1
#ifdef HAVE_STRINGS_H
d459 1
a459 1
#ifdef HAVE_INTTYPES_H
d461 4
d466 1
a466 4
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
d470 1
a470 249
ac_subst_vars='SHELL
PATH_SEPARATOR
PACKAGE_NAME
PACKAGE_TARNAME
PACKAGE_VERSION
PACKAGE_STRING
PACKAGE_BUGREPORT
exec_prefix
prefix
program_transform_name
bindir
sbindir
libexecdir
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
am__isrc
CYGPATH_W
PACKAGE
VERSION
ACLOCAL
AUTOCONF
AUTOMAKE
AUTOHEADER
MAKEINFO
install_sh
STRIP
INSTALL_STRIP_PROGRAM
mkdir_p
AWK
SET_MAKE
am__leading_dot
AMTAR
am__tar
am__untar
MAINTAINER_MODE_TRUE
MAINTAINER_MODE_FALSE
MAINT
CC
CFLAGS
LDFLAGS
CPPFLAGS
ac_ct_CC
EXEEXT
OBJEXT
CPP
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
CANONICAL_HOST
YACC
YFLAGS
LEX
LEX_OUTPUT_ROOT
LEXLIB
LN_S
GREP
EGREP
ECHO
AR
RANLIB
CXX
CXXFLAGS
ac_ct_CXX
CXXCPP
F77
FFLAGS
ac_ct_F77
LIBTOOL
ENABLE_SHARED_TRUE
ENABLE_SHARED_FALSE
VERSIONING
versionscript_TRUE
versionscript_FALSE
LDFLAGS_VERSION_SCRIPT
INCLUDE_openldap
LIB_openldap
OPENLDAP_MODULE_TRUE
OPENLDAP_MODULE_FALSE
PKINIT_TRUE
PKINIT_FALSE
DIR_hdbdir
INCLUDE_krb4
LIB_krb4
KRB4_TRUE
KRB4_FALSE
KRB5_TRUE
KRB5_FALSE
do_roken_rename_TRUE
do_roken_rename_FALSE
LIB_kdb
HAVE_OPENSSL_TRUE
HAVE_OPENSSL_FALSE
DIR_hcrypto
INCLUDE_hcrypto
LIB_hcrypto
LIB_hcrypto_a
LIB_hcrypto_so
LIB_hcrypto_appl
PTHREADS_CFLAGS
PTHREADS_LIBS
DCE_TRUE
DCE_FALSE
dpagaix_cflags
dpagaix_ldadd
dpagaix_ldflags
LIB_db_create
LIB_dbopen
LIB_dbm_firstkey
HAVE_DB1_TRUE
HAVE_DB1_FALSE
HAVE_DB3_TRUE
HAVE_DB3_FALSE
HAVE_NDBM_TRUE
HAVE_NDBM_FALSE
DBLIB
LIB_NDBM
WFLAGS
WFLAGS_NOUNUSED
WFLAGS_NOIMPLICITINT
VOID_RETSIGTYPE
have_err_h_TRUE
have_err_h_FALSE
have_ifaddrs_h_TRUE
have_ifaddrs_h_FALSE
have_vis_h_TRUE
have_vis_h_FALSE
LIB_socket
LIB_gethostbyname
LIB_syslog
LIB_gethostbyname2
LIB_res_search
LIB_res_nsearch
LIB_res_ndestroy
LIB_dn_expand
LIBOBJS
have_glob_h_TRUE
have_glob_h_FALSE
have_cgetent_TRUE
have_cgetent_FALSE
LIB_getsockopt
LIB_setsockopt
LIB_hstrerror
LIB_bswap16
LIB_bswap32
LIB_pidfile
LIB_getaddrinfo
LIB_getnameinfo
LIB_freeaddrinfo
LIB_gai_strerror
have_fnmatch_h_TRUE
have_fnmatch_h_FALSE
LIB_crypt
have_socket_wrapper_TRUE
have_socket_wrapper_FALSE
DIR_roken
LIB_roken
INCLUDES_roken
LIBADD_roken
LIB_otp
OTP_TRUE
OTP_FALSE
LIB_security
NROFF
GROFF
CATMAN
CATMAN_TRUE
CATMAN_FALSE
CATMANEXT
INCLUDE_readline
LIB_readline
INCLUDE_hesiod
LIB_hesiod
AIX_TRUE
AIX_FALSE
AIX4_TRUE
AIX4_FALSE
LIB_dlopen
HAVE_DLOPEN_TRUE
HAVE_DLOPEN_FALSE
LIB_loadquery
AIX_DYNAMIC_AFS_TRUE
AIX_DYNAMIC_AFS_FALSE
AIX_EXTRA_KAFS
IRIX_TRUE
IRIX_FALSE
XMKMF
X_CFLAGS
X_PRE_LIBS
X_LIBS
X_EXTRA_LIBS
HAVE_X_TRUE
HAVE_X_FALSE
LIB_XauWriteAuth
LIB_XauReadAuth
LIB_XauFileName
NEED_WRITEAUTH_TRUE
NEED_WRITEAUTH_FALSE
LIB_logwtmp
LIB_logout
LIB_openpty
LIB_tgetent
LIB_getpwnam_r
LIB_door_create
KCM_TRUE
KCM_FALSE
FRAMEWORK_SECURITY_TRUE
FRAMEWORK_SECURITY_FALSE
LIB_el_init
el_compat_TRUE
el_compat_FALSE
COMPILE_ET
COM_ERR_TRUE
COM_ERR_FALSE
DIR_com_err
LIB_com_err
LIB_com_err_a
LIB_com_err_so
LIB_AUTH_SUBDIRS
LTLIBOBJS'
a471 19
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
YACC
YFLAGS
CXX
CXXFLAGS
CCC
CXXCPP
F77
FFLAGS
XMKMF'

a497 1
# (The list follows the same order as the GNU Coding Standards.)
d501 1
a501 2
datarootdir='${prefix}/share'
datadir='${datarootdir}'
d505 1
d508 2
a509 9
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
a511 1
ac_dashdash=
d516 1
a516 1
    eval $ac_prev=\$ac_option
d521 1
a521 4
  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac
d525 1
a525 3
  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;
d547 1
a547 1
  -datadir | --datadir | --datadi | --datad)
d549 2
a550 1
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
a552 7
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

d556 1
a556 1
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d559 2
a560 12
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    eval enable_$ac_feature=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;
d565 1
a565 1
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d568 6
a573 2
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    eval enable_$ac_feature=\$ac_optarg ;;
a599 6
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

a623 5
  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

d625 2
a626 1
  | --localstate | --localstat | --localsta | --localst | --locals)
d629 2
a630 1
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
a694 10
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

d747 1
a747 1
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d750 6
a755 2
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    eval with_$ac_package=\$ac_optarg ;;
d760 1
a760 1
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d763 2
a764 2
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    eval with_$ac_package=no ;;
d795 2
a796 1
    eval $ac_envvar=\$ac_optarg
d816 14
a829 5
# Be sure to have absolute directory names.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
d831 1
a831 1
  eval ac_val=\$$ac_var
d833 3
a835 2
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a836 2
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; }
a862 10
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  { echo "$as_me: error: Working directory cannot be determined" >&2
   { (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  { echo "$as_me: error: pwd does not report name of working directory" >&2
   { (exit 1); exit 1; }; }


d866 2
a867 2
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$0" ||
d871 2
a872 1
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d874 5
a878 17
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
d880 1
a880 1
  if test ! -r "$srcdir/$ac_unique_file"; then
d886 65
a950 26
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   { (exit 1); exit 1; }; }
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done
d959 1
a959 1
\`configure' configures Heimdal 1.1 to adapt to many kinds of systems.
d979 3
d999 1
d1006 2
a1007 10
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/heimdal]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]
d1029 1
a1029 1
     short | recursive ) echo "Configuration of Heimdal 1.1:";;
d1039 4
a1042 2
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
a1045 6
  --enable-hdb-openldap-module
                          if you want support to build openldap hdb as shared
                          object
  --disable-pk-init       if you want disable to PK-INIT support
  --enable-pthread-support
                          if you want thread safe libraries
a1046 1
  --disable-afs-support   if you don't want support for AFS
a1047 3
  --disable-ndbm-db       if you don't want ndbm db
  --enable-developer      enable developer warnings
  --enable-socket-wrapper use sambas socket-wrapper for testing
a1050 2
  --disable-afs-string-to-key
                          disable use of weak AFS string-to-key functions
a1054 1
  --enable-kcm            enable Kerberos Credentials Manager
d1063 2
a1064 1
  --with-tags[=TAGS]      include additional configurations [automatic]
d1071 4
a1074 2
  --with-hdbdir           Default location for KDC database
                          [default=/var/heimdal]
d1099 2
a1100 3
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
a1101 5
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
              the first program found out of: `bison -y', `byacc', `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.
a1106 1
  XMKMF       Path to xmkmf, Makefile generator for X Window System
d1111 1
a1111 1
Report bugs to <heimdal-bugs@@h5l.org>.
a1112 1
ac_status=$?
d1117 1
d1119 1
a1119 1
    test -d "$ac_dir" || continue
d1122 1
a1122 3
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
d1124 5
a1128 11
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
d1131 1
a1131 1
  .)  # We are building in place.
d1133 6
a1138 3
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
d1140 57
a1196 17
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
d1199 2
a1200 2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
d1204 1
a1204 1
test -n "$ac_init_help" && exit $ac_status
d1207 2
a1208 2
Heimdal configure 1.1
generated by GNU Autoconf 2.61
d1210 1
a1210 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d1214 1
a1214 1
  exit
d1216 2
a1217 1
cat >config.log <<_ACEOF
d1221 2
a1222 2
It was created by Heimdal $as_me 1.1, which was
generated by GNU Autoconf 2.61.  Invocation command line was
a1226 1
exec 5>>config.log
d1245 1
a1245 1
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
a1258 1
IFS=$as_save_IFS
d1280 1
d1291 1
a1291 1
    *\'*)
d1313 3
a1315 1
      ac_configure_args="$ac_configure_args '$ac_arg'"
d1326 2
a1327 2
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d1340 1
a1340 15
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
d1342 2
a1343 2
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
d1345 3
a1347 3
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
d1349 2
a1350 1
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d1352 2
a1353 3
    esac |
    sort
)
d1364 2
a1365 5
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      echo "$ac_var='\''$ac_val'\''"
d1371 3
a1373 3
## ------------------- ##
## File substitutions. ##
## ------------------- ##
d1378 2
a1379 5
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	echo "$ac_var='\''$ac_val'\''"
d1391 1
a1391 1
      cat confdefs.h
d1398 2
a1399 2
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d1401 1
a1401 1
' 0
d1408 3
a1410 1
rm -f -r conftest* confdefs.h
d1441 6
a1446 7
if test -n "$CONFIG_SITE"; then
  set x "$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
else
  set x "$ac_default_prefix/share/config.site" \
	"$ac_default_prefix/etc/config.site"
d1448 1
a1448 3
shift
for ac_site_file
do
d1464 2
a1465 2
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
d1477 2
a1478 1
for ac_var in $ac_precious_vars; do
d1481 2
a1482 2
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
d1507 2
a1508 1
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d1525 5
a1553 9
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_config_headers="$ac_config_headers include/config.h"
a1555 1
am__api_version='1.10'
a1556 21
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   { (exit 1); exit 1; }; }
fi
d1558 1
a1558 7
# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
d1561 11
a1571 17
# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
d1574 4
a1577 1
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d1582 7
a1588 30
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	    break 3
	  fi
	fi
      done
    done
    ;;
esac
a1589 2
IFS=$as_save_IFS

a1591 9
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
d1593 4
a1596 47
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
d1598 2
a1599 5
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
a1600 17
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm -f conftest.sed

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`
a1601 8
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
d1603 7
a1609 5

{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then
d1612 5
a1616 2
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
d1620 7
a1626 12
  for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
a1627 1
IFS=$as_save_IFS
d1630 9
d1640 3
a1642 10
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    test -d ./--version && rmdir ./--version
    MKDIR_P="$ac_install_sh -d"
  fi
a1643 8
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
echo "${ECHO_T}$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac
d1645 1
a1645 140
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  test -n "$AWK" && break
done

{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
  SET_MAKE=
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='heimdal'
 VERSION='1.1'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
d1647 4
a1650 143
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'





{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
    # Check whether --enable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
else
  USE_MAINTAINER_MODE=no
fi

  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
   if test $USE_MAINTAINER_MODE = yes; then
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
fi

  MAINT=$MAINTAINER_MODE_TRUE



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d1663 2
a1664 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
a1669 1
IFS=$as_save_IFS
d1675 2
a1676 2
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
d1678 2
a1679 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a1681 1

d1685 4
a1688 4
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d1701 2
a1702 2
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
a1707 1
IFS=$as_save_IFS
d1713 2
a1714 2
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
d1716 2
a1717 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d1720 1
a1720 15
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
a1724 40
if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi


  fi
d1729 2
a1730 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d1744 1
a1744 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a1754 1
IFS=$as_save_IFS
d1772 2
a1773 2
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
d1775 2
a1776 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a1778 1

d1782 1
a1782 1
  for ac_prog in cl.exe
d1786 2
a1787 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d1800 1
a1800 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a1806 1
IFS=$as_save_IFS
d1812 2
a1813 2
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
d1815 2
a1816 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a1818 1

d1824 1
a1824 1
  for ac_prog in cl.exe
d1828 2
a1829 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d1842 1
a1842 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a1848 1
IFS=$as_save_IFS
d1854 2
a1855 2
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
d1857 2
a1858 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a1860 1

d1864 1
a1864 15
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
d1877 2
a1878 1
echo "$as_me:$LINENO: checking for C compiler version" >&5
d1880 2
a1881 7
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
d1885 2
a1886 7
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
d1890 2
a1891 7
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
d1916 2
a1917 2
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d1919 2
a1920 26
#
# List of possible output files, starting from the most likely.
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
# only as a last resort.  b.out is created by i960 compilers.
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
#
# The IRIX 6 linker writes into existing files which may not be
# executable, retaining their permissions.  Remove them first so a
# subsequent execution test works.
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link_default") 2>&5
d1924 9
a1932 6
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
d1936 4
a1939 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d1946 5
a1950 9
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
a1955 2
test "$ac_cv_exeext" = no && ac_cv_exeext=

a1956 6
  ac_file=''
fi

{ echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6; }
if test -z "$ac_file"; then
d1968 2
d1971 1
a1971 1
# Check that the compiler produces executables we can run.  If not, either
d1973 2
a1974 2
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d1979 2
a1980 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d1999 2
a2000 2
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d2004 1
a2004 1
# Check that the compiler produces executables we can run.  If not, either
d2006 9
a2014 14
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6; }

{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d2025 1
a2025 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d2027 1
d2041 2
a2042 2
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6; }
d2047 2
a2048 2
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d2068 2
a2069 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>&5
d2073 1
a2073 2
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
d2075 1
a2075 1
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d2093 2
a2094 2
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6; }
d2097 2
a2098 2
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d2121 2
a2122 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d2128 14
a2141 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d2147 1
a2147 1
	ac_compiler_gnu=no
d2149 1
a2149 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2153 2
a2154 2
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d2158 3
a2160 2
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d2164 1
a2164 5
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
d2180 2
a2181 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d2187 5
a2191 33
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
a2192 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d2194 4
a2197 34
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
a2198 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d2200 1
a2200 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d2206 1
a2206 4

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2208 1
a2208 6

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
d2210 2
a2211 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d2227 3
a2229 3
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
d2232 1
a2232 1
  ac_cv_prog_cc_c89=no
d2266 1
a2266 1
   as 'x'.  The following induces an error, until -std is added to get
d2269 1
a2269 1
   that's true only with -std.  */
a2271 5
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

d2286 8
a2293 2
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d2297 2
a2298 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d2304 16
a2319 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_c89=$ac_arg
a2323 1

d2325 1
a2325 3

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d2327 1
a2327 1
rm -f conftest.$ac_ext
d2331 5
a2335 8
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; } ;;
  xno)
    { echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6; } ;;
d2337 3
a2339 3
    CC="$CC $ac_cv_prog_cc_c89"
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d2342 39
a2380 19

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test "x$CC" != xcc; then
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
else
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
fi
set dummy $CC; ac_cc=`echo $2 |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d2387 2
a2388 1

d2392 1
a2392 1

d2397 3
a2399 11
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d2401 3
d2406 4
a2409 6
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d2412 4
a2415 12
  (exit $ac_status); };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d2419 26
a2444 8
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d2446 3
d2451 10
a2460 6
	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d2463 2
a2464 10
  (exit $ac_status); };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
d2466 11
a2476 1
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
a2477 1
rm -f core conftest*
a2478 4
fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d2480 2
a2481 6
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }

cat >>confdefs.h <<\_ACEOF
#define NO_MINUS_C_MINUS_O 1
_ACEOF
d2484 6
a2489 14

# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi

d2496 2
a2497 2
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d2531 2
a2532 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d2538 11
a2548 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a2556 1

d2559 1
a2559 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d2569 2
a2570 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d2576 11
a2586 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a2596 1

d2614 2
a2615 2
{ echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6; }
d2638 2
a2639 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d2645 11
a2655 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a2663 1

d2666 1
a2666 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d2676 2
a2677 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d2683 11
a2693 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a2703 1

d2727 451
d3183 3
a3185 3
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d3188 2
a3189 2
{ echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d3193 4
a3196 4
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
d3200 3
a3202 3
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d3206 2
a3207 8
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
echo "$as_me: error: invalid value of canonical build" >&2;}
   { (exit 1); exit 1; }; };;
esac
d3209 3
a3211 11
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
d3214 2
a3215 2
{ echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d3219 6
a3224 6
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
a3225 1
fi
d3228 2
a3229 8
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
echo "$as_me: error: invalid value of canonical host" >&2;}
   { (exit 1); exit 1; }; };;
esac
d3231 3
a3233 11
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
d3240 1
a3240 25



	{ echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
	{ echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
	hostname=`hostname`
	if test "$hostname"; then
	   { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
echo "$as_me: autobuild hostname... $hostname" >&6;}
	fi

	date=`date +%Y%m%d-%H%M%S`
	if test "$?" != 0; then
	   date=`date`
	fi
	if test "$date"; then
	   { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
echo "$as_me: autobuild timestamp... $date" >&6;}
	fi



# Check whether --enable-largefile was given.
d3242 1
a3242 2
  enableval=$enable_largefile;
fi
d3244 1
d3247 2
a3248 2
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
d3256 2
a3257 2
	 # IRIX 6.2 and later do not support large files by default,
	 # so use the C compiler's -n32 option if that helps.
d3281 3
a3283 8
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3289 14
a3302 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
a3307 1

d3309 5
a3313 11

rm -f core conftest.err conftest.$ac_objext
	 CC="$CC -n32"
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3319 14
a3332 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
a3337 1

d3339 1
a3339 2

rm -f core conftest.err conftest.$ac_objext
d3346 2
a3347 2
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
d3352 2
a3353 2
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
d3358 1
d3383 2
a3384 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3390 15
a3404 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_file_offset_bits=no; break
a3408 1

d3410 1
a3410 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d3436 2
a3437 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3443 14
a3456 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
a3461 1

d3463 1
a3463 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_file_offset_bits=unknown
d3467 4
a3470 5
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
case $ac_cv_sys_file_offset_bits in #(
  no | unknown) ;;
  *)
d3474 2
a3475 2
;;
esac
d3477 2
a3478 3
  if test $ac_cv_sys_file_offset_bits = unknown; then
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
d3483 1
d3508 2
a3509 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3515 15
a3529 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_large_files=no; break
a3533 1

d3535 1
a3535 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d3561 2
a3562 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d3568 14
a3581 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
a3586 1

d3588 1
a3588 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_large_files=unknown
d3592 4
a3595 5
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
case $ac_cv_sys_large_files in #(
  no | unknown) ;;
  *)
d3599 2
a3600 2
;;
esac
a3601 1
  fi
a3603 1

a3606 4
if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
	CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
fi

d3621 2
a3622 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d3635 1
a3635 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a3641 1
IFS=$as_save_IFS
d3647 2
a3648 2
  { echo "$as_me:$LINENO: result: $YACC" >&5
echo "${ECHO_T}$YACC" >&6; }
d3650 2
a3651 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a3653 1

d3662 2
a3663 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d3676 1
a3676 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a3682 1
IFS=$as_save_IFS
d3688 2
a3689 2
  { echo "$as_me:$LINENO: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6; }
d3691 2
a3692 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a3694 1

d3699 19
a3717 13
if test "x$LEX" != "x:"; then
  cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
c { yymore (); }
d { yyless (1); }
e { yyless (input () != 0); }
f { unput (yytext[0]); }
. { BEGIN INITIAL; }
%%
#ifdef YYTEXT_POINTER
extern char *yytext;
d3719 3
d3723 1
a3723 1
main (void)
d3725 3
a3727 1
  return ! yylex () + ! yywrap ();
d3730 19
a3748 7
{ (ac_try="$LEX conftest.l"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$LEX conftest.l") 2>&5
d3751 2
a3752 5
  (exit $ac_status); }
{ echo "$as_me:$LINENO: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3754 2
d3757 1
a3757 8
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
d3759 3
d3763 8
a3770 8
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

if test -z "${LEXLIB+set}"; then
  { echo "$as_me:$LINENO: checking lex library" >&5
echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
if test "${ac_cv_lib_lex+set}" = set; then
d3773 8
d3782 14
a3795 6
    ac_save_LIBS=$LIBS
    ac_cv_lib_lex='none needed'
    for ac_lib in '' -lfl -ll; do
      LIBS="$ac_lib $ac_save_LIBS"
      cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
d3798 2
a3799 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d3805 15
a3819 6
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_lex=$ac_lib
d3824 11
d3838 1
a3838 5
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
      test "$ac_cv_lib_lex" != 'none needed' && break
    done
    LIBS=$ac_save_LIBS
d3840 25
a3865 3
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d3867 4
d3872 2
a3873 3

{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
d3878 1
a3878 1
# default is implementation-dependent.  Figure out which it is, since
d3881 1
d3883 1
a3883 1
LIBS="$LEXLIB $ac_save_LIBS"
a3884 1
#define YYTEXT_POINTER 1
d3888 2
a3889 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d3895 14
a3908 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a3913 1

d3915 1
a3915 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d3918 1
d3921 2
a3922 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
a3929 1
rm -f conftest.l $LEX_OUTPUT_ROOT.c
d3939 2
a3940 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d3953 1
a3953 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a3959 1
IFS=$as_save_IFS
d3965 2
a3966 2
  { echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6; }
d3968 2
a3969 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a3971 1

d3975 2
a3976 2
{ echo "$as_me:$LINENO: checking for ln -s or something else" >&5
echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6; }
d3996 2
a3997 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
echo "${ECHO_T}$ac_cv_prog_LN_S" >&6; }
d4002 1
a4002 1
# Check whether --with-mips_abi was given.
d4004 1
a4004 2
  withval=$with_mips_abi;
fi
d4006 1
d4033 3
a4035 3
{ echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6; }
if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then
d4057 2
a4058 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d4064 14
a4077 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d4083 1
a4083 1
	eval $ac_foo=no
d4085 2
a4086 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"
d4091 2
a4092 2
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d4115 2
a4116 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d4122 14
a4135 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d4141 1
a4141 1
	ac_res=no
d4143 2
a4144 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext	CLAGS="$save_CFLAGS"
d4188 2
a4189 2
{ echo "$as_me:$LINENO: checking for __attribute__" >&5
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
d4200 1
d4202 5
d4215 3
d4220 2
a4221 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d4227 14
a4240 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d4246 1
a4246 1
	ac_cv___attribute__=no
d4248 1
a4248 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4258 2
a4259 2
{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
echo "${ECHO_T}$ac_cv___attribute__" >&6; }
d4262 1
a4262 1
# Check whether --enable-shared was given.
d4264 2
a4265 1
  enableval=$enable_shared; p=${PACKAGE-default}
d4283 2
a4284 2
  enable_shared=yes
fi
d4286 1
a4286 2

# Check whether --enable-static was given.
d4288 2
a4289 1
  enableval=$enable_static; p=${PACKAGE-default}
d4308 1
a4308 1
fi
d4310 1
a4310 2

# Check whether --enable-fast-install was given.
d4312 2
a4313 1
  enableval=$enable_fast_install; p=${PACKAGE-default}
d4332 1
a4332 1
fi
d4334 2
a4335 3

{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d4359 1
a4359 1
  test ! -f $lt_ac_sed && continue
a4383 3

fi

a4384 53
{ echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6; }

{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then
set dummy grep ggrep; ac_prog_name=$2
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    # Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

a4385 19
    $ac_path_GREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

GREP="$ac_cv_path_GREP"
if test -z "$GREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_GREP=$GREP
d4388 2
d4391 3
a4393 18
fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     # Extract the first word of "egrep" to use in msg output
if test -z "$EGREP"; then
set dummy egrep; ac_prog_name=$2
if test "${ac_cv_path_EGREP+set}" = set; then
d4396 3
a4398 32
  ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in egrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
a4399 30
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_EGREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

EGREP="$ac_cv_path_EGREP"
if test -z "$EGREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_EGREP=$EGREP
fi


   fi
d4401 3
a4403 3
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"
d4407 1
a4407 1
# Check whether --with-gnu-ld was given.
d4409 2
a4410 1
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d4413 1
a4413 2
fi

d4417 2
a4418 2
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d4447 2
a4448 2
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d4450 2
a4451 2
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d4464 1
a4464 1
      # but apparently some variants of GNU ld only accept -v.
d4484 2
a4485 2
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
d4487 2
a4488 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d4493 2
a4494 2
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d4498 1
a4498 1
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
d4508 2
a4509 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d4513 2
a4514 2
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d4520 2
a4521 2
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
a4527 9
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac
d4529 2
a4530 2
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d4538 19
a4556 18
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
d4560 2
a4561 10
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
d4564 2
a4565 3
      fi
    done
    IFS="$lt_save_ifs"
d4567 1
d4571 2
a4572 2
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d4575 2
a4576 2
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d4579 2
a4580 2
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d4582 2
a4583 2
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6; }
d4586 2
a4587 2
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d4614 1
a4614 1
bsdi[45]*)
d4621 1
a4621 1
  # func_win32_libid is a shell function defined in ltmain.sh
d4623 1
a4623 1
  lt_cv_file_magic_cmd='func_win32_libid'
d4628 1
a4628 1
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
d4637 1
a4637 1
freebsd* | kfreebsd*-gnu | dragonfly*)
d4643 1
a4643 1
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
d4659 1
a4659 1
  case $host_cpu in
a4674 5
interix3*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

d4687 9
d4718 2
d4721 1
a4721 1
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d4723 1
a4723 1
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d4731 4
d4739 1
a4739 1
sysv4 | sysv4.3*)
a4759 3
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
d4763 1
a4763 1
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d4769 2
a4770 2
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
a4778 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d4782 1
a4782 1
# Check whether --enable-libtool-lock was given.
d4784 1
a4784 2
  enableval=$enable_libtool_lock;
fi
d4786 1
d4813 1
a4813 1
  echo '#line 5679 "configure"' > conftest.$ac_ext
d4856 1
a4856 1
    case `/usr/bin/file conftest.o` in
d4898 2
a4899 2
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d4925 2
a4926 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d4932 14
a4945 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d4951 1
a4951 1
	lt_cv_cc_needs_belf=no
d4953 1
a4953 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d4962 2
a4963 2
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
a4968 20
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)    LD="${LD-ld} -64" ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

d4976 2
a4977 2
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d5001 2
a5002 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5008 14
a5021 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d5027 1
a5027 1
	ac_cv_header_stdc=no
d5029 1
a5029 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a5084 1
#include <stdlib.h>
d5104 2
a5105 2
      return 2;
  return 0;
d5109 2
a5110 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d5114 2
a5115 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d5128 1
a5128 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a5129 2


d5132 2
a5133 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d5156 3
a5158 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d5172 2
a5173 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5179 14
a5192 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d5198 1
a5198 1
	eval "$as_ac_Header=no"
d5200 1
a5200 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5202 2
a5203 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d5218 4
a5221 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d5224 2
a5225 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d5228 2
a5229 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d5240 2
a5241 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5247 14
a5260 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d5266 1
a5266 1
	ac_header_compiler=no
d5268 3
a5270 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d5273 2
a5274 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d5283 2
a5284 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d5290 11
a5300 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a5307 1

d5309 2
a5310 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d5334 5
a5338 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d5340 2
a5341 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d5344 3
a5346 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d5351 2
a5352 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d5364 1
a5364 1
ac_ext=cpp
d5369 2
a5370 6
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d5374 2
a5375 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d5388 1
a5388 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a5394 1
IFS=$as_save_IFS
d5400 2
a5401 2
  { echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6; }
d5403 2
a5404 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a5406 1

d5412 1
a5412 1
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d5416 2
a5417 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d5430 1
a5430 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a5436 1
IFS=$as_save_IFS
d5442 2
a5443 2
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6; }
d5445 2
a5446 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a5448 1

d5451 1
d5453 1
a5453 15
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
d5456 1
a5456 2
  fi
fi
d5458 2
a5459 1
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d5461 2
a5462 7
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
d5466 2
a5467 7
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
d5471 2
a5472 7
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
d5477 2
a5478 2
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d5501 2
a5502 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5508 14
a5521 4
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d5527 1
a5527 1
	ac_compiler_gnu=no
d5529 1
a5529 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5533 2
a5534 2
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d5538 3
a5540 2
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d5544 1
a5544 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
d5560 2
a5561 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5567 14
a5580 4
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d5586 30
a5615 2
	CXXFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
d5621 2
a5622 1

d5626 1
a5626 1

d5632 2
a5633 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5639 14
a5652 4
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d5658 4
a5661 3
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
d5667 1
a5667 1

d5671 1
a5671 1

d5677 2
a5678 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d5684 15
a5698 5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
a5702 1

d5704 7
a5710 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5713 1
a5713 24
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=cpp
d5719 1
a5719 6


if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
d5724 2
a5725 2
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d5755 2
a5756 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d5762 11
a5772 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
a5780 1

d5783 1
a5783 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d5793 2
a5794 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d5800 11
a5810 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
a5820 1

d5838 2
a5839 2
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6; }
d5862 2
a5863 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d5869 11
a5879 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
a5887 1

d5890 1
a5890 1
  # OK, works on sane cases.  Now check whether nonexistent headers
d5900 2
a5901 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d5907 11
a5917 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
a5927 1

d5943 1
a5943 1
ac_ext=cpp
a5948 2
fi

d5955 1
a5955 1
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d5959 2
a5960 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d5973 1
a5973 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a5979 1
IFS=$as_save_IFS
d5985 2
a5986 2
  { echo "$as_me:$LINENO: result: $F77" >&5
echo "${ECHO_T}$F77" >&6; }
d5988 2
a5989 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a5991 1

d5997 1
a5997 1
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
d6001 2
a6002 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6015 1
a6015 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6021 1
IFS=$as_save_IFS
d6027 2
a6028 2
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
echo "${ECHO_T}$ac_ct_F77" >&6; }
d6030 2
a6031 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a6033 1

d6037 1
a6037 15
  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
d6042 2
a6043 1
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d6045 2
a6046 7
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
d6050 2
a6051 7
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
d6055 2
a6056 7
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
d6066 2
a6067 2
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d6080 2
a6081 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d6087 14
a6100 4
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d6106 1
a6106 1
	ac_compiler_gnu=no
d6108 1
a6108 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6112 2
a6113 2
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d6118 2
a6119 2
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d6130 2
a6131 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d6137 14
a6150 4
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d6156 1
a6156 1
	ac_cv_prog_f77_g=no
d6158 1
a6158 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6161 2
a6162 2
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d6191 2
a6192 2
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d6197 1
a6197 1
  teststring="ABCD"
d6232 8
a6239 52
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    # If test is not a shell built-in, we'll probably end up computing a
    # maximum length that is only half of the actual maximum length, but
    # we can't tell.
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
	       = "XX$teststring") >/dev/null 2>&1 &&
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
	    lt_cv_sys_max_cmd_len=$new_result &&
d6243 1
a6243 1
      teststring=$teststring$teststring
d6245 1
a6245 1
    teststring=
d6256 2
a6257 2
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d6259 2
a6260 2
  { echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6; }
d6267 2
a6268 2
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d6282 3
a6305 7
linux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDGIRSTW]'
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  fi
  ;;
d6312 1
a6312 1
solaris*)
a6314 9
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
a6336 3
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

d6338 1
a6338 1
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
d6456 2
a6457 2
  { echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6; }
d6459 2
a6460 2
  { echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6; }
d6463 2
a6464 2
{ echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d6478 2
a6479 2
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
echo "${ECHO_T}$lt_cv_objdir" >&6; }
d6500 1
a6500 1
Xsed='sed -e 1s/^X//'
d6520 1
a6520 1
# All known linkers require a `.a' archive for static linking (except MSVC,
d6530 2
a6531 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6544 1
a6544 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6550 1
IFS=$as_save_IFS
d6556 2
a6557 2
  { echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6; }
d6559 2
a6560 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a6562 1

d6568 2
a6569 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6582 1
a6582 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6588 1
IFS=$as_save_IFS
d6590 1
d6595 2
a6596 2
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6; }
d6598 2
a6599 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d6602 1
a6602 15
  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
d6610 2
a6611 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6624 1
a6624 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6630 1
IFS=$as_save_IFS
d6636 2
a6637 2
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6; }
d6639 2
a6640 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a6642 1

d6648 2
a6649 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6662 1
a6662 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6668 1
IFS=$as_save_IFS
d6670 1
d6675 2
a6676 2
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d6678 2
a6679 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d6682 1
a6682 15
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
d6690 2
a6691 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6704 1
a6704 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6710 1
IFS=$as_save_IFS
d6716 2
a6717 2
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
d6719 2
a6720 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a6722 1

d6728 2
a6729 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d6742 1
a6742 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6748 1
IFS=$as_save_IFS
d6750 1
d6755 2
a6756 2
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d6758 2
a6759 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d6762 1
a6762 15
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
a6776 1
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
d6796 1
a6796 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d6799 1
a6799 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
a6804 11
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


d6809 2
a6810 2
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d6830 1
a6830 1
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d6862 2
a6863 2
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
d6865 2
a6866 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d6871 2
a6872 2
    { echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d6892 1
a6892 1
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d6924 2
a6925 2
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6; }
d6927 2
a6928 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d6943 1
a6943 1
# Check whether --enable-libtool-lock was given.
d6945 1
a6945 2
  enableval=$enable_libtool_lock;
fi
d6947 1
d6951 1
a6951 1
# Check whether --with-pic was given.
d6953 2
a6954 1
  withval=$with_pic; pic_mode="$withval"
d6957 1
a6957 2
fi

a6986 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d6991 58
a7048 12
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*
d7058 2
a7059 2
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d7073 1
a7073 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d7076 1
a7076 1
   (eval echo "\"\$as_me:8072: $lt_compile\"" >&5)
d7080 1
a7080 1
   echo "$as_me:8076: \$? = $ac_status" >&5
d7083 2
a7084 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d7091 2
a7092 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7106 2
a7107 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a7144 5
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

d7161 1
a7161 1
      case $host_cpu in
a7186 10
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic='-qnocommon'
         lt_prog_compiler_wl='-Wl,'
         ;;
       esac
       ;;
d7198 1
a7198 1
      case $host_cpu in
d7222 1
a7222 1
      case $cc_basename in
a7227 7
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
d7242 5
d7248 1
a7250 6
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
d7259 1
a7259 1
    sysv4 | sysv4.2uw2* | sysv4.3*)
a7271 11
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

d7283 2
a7284 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d7291 2
a7292 2
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d7306 1
a7306 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d7309 1
a7309 1
   (eval echo "\"\$as_me:8340: $lt_compile\"" >&5)
d7313 1
a7313 1
   echo "$as_me:8344: \$? = $ac_status" >&5
d7316 2
a7317 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d7324 2
a7325 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d7338 1
a7338 1
case $host_os in
d7348 2
a7349 44
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d7366 1
a7366 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d7369 1
a7369 1
   (eval echo "\"\$as_me:8444: $lt_compile\"" >&5)
d7373 1
a7373 1
   echo "$as_me:8448: \$? = $ac_status" >&5
d7378 1
a7378 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d7382 1
a7382 1
   chmod u+w . 2>&5
d7393 2
a7394 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d7400 2
a7401 2
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d7408 2
a7409 2
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
d7419 2
a7420 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a7457 10
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a7467 4
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
a7477 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

d7528 1
a7528 1
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d7531 1
a7531 1
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d7540 1
a7540 47
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    interix3*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
d7556 1
a7556 1
    solaris*)
a7576 27
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

d7584 25
d7619 10
a7628 5
    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
d7640 1
a7640 1
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a7673 1
	  ;;
d7692 1
a7692 1
	case $host_os in aix4.[012]|aix4.[012].*)
a7710 1
	  ;;
a7712 3
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
d7720 1
a7720 1
	  if test "$aix_use_runtimelinking" = yes; then
d7724 1
a7724 1
	  fi
d7752 2
a7753 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d7759 14
a7772 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a7782 1

d7784 1
a7784 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7789 1
a7789 1
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d7794 1
a7794 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d7813 2
a7814 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d7820 14
a7833 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a7843 1

d7845 1
a7845 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7854 2
d7857 1
a7857 1
	  whole_archive_flag_spec='$convenience'
d7859 2
a7860 2
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d7873 1
a7873 1
    bsdi[45]*)
d7887 1
a7887 1
      shrext_cmds=".dll"
d7899 20
a7918 18
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
d7920 18
a7937 1
      archive_cmds_need_lc=no
d7941 1
a7941 1
      whole_archive_flag_spec=''
a7942 7
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d7944 1
a7944 13
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs=no
          ;;
      esac
d7978 1
a7978 1
    freebsd* | kfreebsd*-gnu | dragonfly*)
d8001 1
a8001 1
    hpux10*)
d8003 2
a8004 21
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	hardcode_direct=yes
	export_dynamic_flag_spec='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
a8006 3
	ia64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
d8012 3
a8014 6
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d8017 1
a8017 1
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d8022 3
a8024 5
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
d8026 1
d8030 9
d8040 2
a8088 1
	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d8134 1
a8134 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
d8142 8
a8152 1
	wlarc='${wl}'
a8156 1
	wlarc=''
d8165 2
a8166 12
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
d8223 4
a8226 3
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
d8228 3
a8230 1
      runpath_var='LD_RUN_PATH'
d8232 2
d8235 1
a8235 2
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d8237 1
a8237 2
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d8239 2
d8243 8
a8250 10
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
a8251 4
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
a8252 8

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d8267 2
a8268 2
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6; }
d8271 5
d8293 2
a8294 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a8307 1
	pic_flag=$lt_prog_compiler_pic
d8330 2
a8331 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d8338 2
a8339 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d8343 1
a8343 1
shrext_cmds=".so"
d8440 1
a8440 1
bsdi[45]*)
d8456 1
a8456 1
  shrext_cmds=".dll"
d8468 1
a8468 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d8498 1
a8498 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d8517 1
a8517 1
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
d8521 1
a8521 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d8556 2
a8557 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d8575 1
a8575 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d8579 1
a8579 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a8582 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
d8602 1
a8602 1
  case $host_cpu in
d8604 1
a8604 1
    shrext_cmds='.so'
d8619 1
a8619 1
     shrext_cmds='.sl'
d8630 1
a8630 1
    shrext_cmds='.sl'
a8641 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

d8701 2
a8702 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a8762 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d8764 1
a8764 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
d8784 1
a8784 1
  shrext_cmds=".dll"
d8802 7
d8834 1
a8834 1
sysv4 | sysv4.3*)
a8866 23
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

d8878 2
a8879 2
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
d8882 2
a8883 7
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d8886 2
a8887 2
   test -n "$runpath_var" || \
   test "X$hardcode_automatic" = "Xyes" ; then
d8907 2
a8908 2
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6; }
d8921 2
a8922 2
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d8926 2
a8927 2
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d8934 2
a8935 2
         { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d8937 2
a8938 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d8942 2
a8943 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d8975 2
a8976 2
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d8989 1
a8989 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d8993 2
d8999 1
a8999 1
return dlopen ();
d9005 2
a9006 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9012 14
a9025 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d9031 1
a9031 1
	ac_cv_lib_dl_dlopen=no
d9033 1
a9033 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9037 2
a9038 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9052 2
a9053 2
    { echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9080 1
a9080 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d9083 1
d9085 2
d9091 1
a9091 1
#if defined __stub_shl_load || defined __stub___shl_load
d9093 5
d9103 1
a9103 1
return shl_load ();
d9109 2
a9110 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9116 14
a9129 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d9135 1
a9135 1
	ac_cv_func_shl_load=no
d9137 1
a9137 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9140 2
a9141 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9145 2
a9146 2
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9159 1
a9159 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d9163 2
d9169 1
a9169 1
return shl_load ();
d9175 2
a9176 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9182 14
a9195 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d9201 1
a9201 1
	ac_cv_lib_dld_shl_load=no
d9203 1
a9203 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9207 2
a9208 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9212 2
a9213 2
  { echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9240 1
a9240 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d9243 1
d9245 2
d9251 1
a9251 1
#if defined __stub_dlopen || defined __stub___dlopen
d9253 5
d9263 1
a9263 1
return dlopen ();
d9269 2
a9270 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9276 14
a9289 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d9295 1
a9295 1
	ac_cv_func_dlopen=no
d9297 1
a9297 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9300 2
a9301 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9305 2
a9306 2
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9319 1
a9319 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d9323 2
d9329 1
a9329 1
return dlopen ();
d9335 2
a9336 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9342 14
a9355 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d9361 1
a9361 1
	ac_cv_lib_dl_dlopen=no
d9363 1
a9363 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9367 2
a9368 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9372 2
a9373 2
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9386 1
a9386 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d9390 2
d9396 1
a9396 1
return dlopen ();
d9402 2
a9403 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9409 14
a9422 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d9428 1
a9428 1
	ac_cv_lib_svld_dlopen=no
d9430 1
a9430 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9434 2
a9435 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9439 2
a9440 2
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9453 1
a9453 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d9457 2
d9463 1
a9463 1
return dld_link ();
d9469 2
a9470 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d9476 14
a9489 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d9495 1
a9495 1
	ac_cv_lib_dld_dld_link=no
d9497 1
a9497 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9501 2
a9502 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9537 1
a9537 1
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9542 2
a9543 2
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9553 1
a9553 1
#line 10752 "configure"
a9609 2
  else
    puts (dlerror ());
d9619 1
a9619 1
    (./conftest; exit; ) >&5 2>/dev/null
d9624 1
a9624 1
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
d9635 2
a9636 2
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9639 3
a9641 3
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9651 1
a9651 1
#line 10852 "configure"
a9707 2
  else
    puts (dlerror ());
d9717 1
a9717 1
    (./conftest; exit; ) >&5 2>/dev/null
d9722 1
a9722 1
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
d9733 2
a9734 2
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9755 5
a9759 5
# Report which library types will actually be built
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }
d9761 2
a9762 2
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9767 1
a9767 1
case $host_os in
d9776 1
a9776 1
aix4* | aix5*)
d9780 37
d9819 2
a9820 2
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }
d9822 2
a9823 2
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9826 2
a9827 2
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }
d9842 1
a9842 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
d9946 1
a9946 1
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9957 1
a9957 1
Xsed="$SED -e 1s/^X//"
d9961 1
a9961 1
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a9990 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
a10001 3
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

d10052 1
a10052 1
shrext_cmds='$shrext_cmds'
d10067 1
a10067 1
# Must we lock files when doing compilation?
d10310 1
a10310 1
# Check whether --with-tags was given.
d10312 3
a10314 3
  withval=$with_tags; tagnames="$withval"
fi

a10331 3
  if test -z "$LTCFLAGS"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  fi
d10362 2
a10363 4
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
	    (test "X$CXX" != "Xg++"))) ; then
	  ac_ext=cpp
a10381 1
hardcode_shlibpath_var_CXX=unsupported
d10399 1
a10399 1
ac_ext=cpp
d10409 1
a10409 1
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a10415 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

a10419 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


d10430 1
a10430 1
  $as_unset lt_cv_prog_gnu_ld
d10435 1
a10435 1
  $as_unset lt_cv_path_LD
d10441 1
a10441 10
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

d10455 1
a10455 1
# Check whether --with-gnu-ld was given.
d10457 2
a10458 1
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d10461 1
a10461 2
fi

d10465 2
a10466 2
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d10495 2
a10496 2
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d10498 2
a10499 2
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d10512 1
a10512 1
      # but apparently some variants of GNU ld only accept -v.
d10532 2
a10533 2
  { echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6; }
d10535 2
a10536 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d10541 2
a10542 2
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d10546 1
a10546 1
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
d10556 2
a10557 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d10607 2
a10608 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a10636 1
	;;
d10655 1
a10655 1
      case $host_os in aix4.[012]|aix4.[012].*)
a10673 1
	;;
a10675 3
      if test "$aix_use_runtimelinking" = yes; then
	shared_flag="$shared_flag "'${wl}-G'
      fi
d10715 2
a10716 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10722 14
a10735 5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a10745 1

d10747 1
a10747 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d10753 1
a10753 1
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d10758 1
a10758 1
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d10777 2
a10778 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d10784 14
a10797 5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a10807 1

d10809 1
a10809 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d10818 2
d10821 1
a10821 1
	whole_archive_flag_spec_CXX='$convenience'
d10823 2
a10824 2
	# This is similar to how AIX traditionally builds its shared libraries.
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a10827 12

  beos*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag_CXX=unsupported
      # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs_CXX=no
    fi
    ;;

d10846 1
a10846 1
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d10855 1
a10855 1
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d10860 19
a10878 19
      darwin* | rhapsody*)
        case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
d10880 14
a10893 6
      archive_cmds_need_lc_CXX=no
      hardcode_direct_CXX=no
      hardcode_automatic_CXX=yes
      hardcode_shlibpath_var_CXX=unsupported
      whole_archive_flag_spec_CXX=''
      link_all_deplibs_CXX=yes
d10895 16
a10910 35
    if test "$GXX" = yes ; then
      lt_int_apple_cc_single_mod=no
      output_verbose_link_cmd='echo'
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
       lt_int_apple_cc_single_mod=yes
      fi
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      else
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
        fi
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          else
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          fi
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_CXX=no
          ;;
      esac
      fi
        ;;
d10914 1
a10914 1
      ec++*)
d10918 1
a10918 1
      ghcx*)
d10929 1
a10929 1
  freebsd[12]*)
d10936 1
a10936 1
  freebsd* | kfreebsd*-gnu | dragonfly*)
d10953 1
a10953 1
    CC*)
d10957 1
a10957 1
    aCC*)
d10967 1
a10967 1
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
d10981 3
a10983 5
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_CXX=:

      case $host_cpu in
      hppa*64*|ia64*)
d10985 4
d10991 2
d10997 6
a11002 2
    case $host_cpu in
    hppa*64*|ia64*)
d11005 3
d11018 1
a11018 1
      CC*)
d11022 4
a11025 7
      aCC*)
	case $host_cpu in
	hppa*64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d11044 3
a11046 6
	    case $host_cpu in
	    hppa*64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    ia64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a11059 14
  interix3*)
    hardcode_direct_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    export_dynamic_flag_spec_CXX='${wl}-E'
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    # Instead, shared libraries are loaded at an image base (0x10000000 by
    # default) and relocated if they conflict, which is a slow very memory
    # consuming and fragmenting process.  To avoid this, we pick a random,
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    ;;
d11062 1
a11062 1
      CC*)
d11064 1
a11064 1
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
d11075 1
a11075 1
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d11088 1
a11088 1
      KCC*)
d11113 1
a11113 1
      icpc*)
a11115 17
	# version 8.0 and above of icpc choke on multiply defined symbols
	# if we add $predep_objects and $postdep_objects, however 7.1 and
	# earlier do not add the objects themselves.
	case `$CC -V 2>&1` in
	*"Version 7."*)
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	*)  # Version 8.0 or newer
	  tmp_idyn=
	  case $host_cpu in
	    ia64*) tmp_idyn=' -i_dynamic';;
	  esac
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	esac
d11117 2
d11123 1
a11123 10
      pgCC*)
        # Portland Group C++ compiler
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
        ;;
      cxx*)
d11154 1
a11154 1
      cxx*)
a11174 16
  openbsd2*)
    # C++ shared libraries are fairly broken
    ld_shlibs_CXX=no
    ;;
  openbsd*)
    hardcode_direct_CXX=yes
    hardcode_shlibpath_var_CXX=no
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
      export_dynamic_flag_spec_CXX='${wl}-E'
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    fi
    output_verbose_link_cmd='echo'
    ;;
d11177 1
a11177 1
      KCC*)
d11193 1
a11193 1
      RCC*)
d11198 1
a11198 1
      cxx*)
d11200 1
a11200 1
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
d11218 1
a11218 1
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d11237 1
a11237 1
      KCC*)
d11252 1
a11252 1
      RCC*)
d11257 1
a11257 1
      cxx*)
d11259 1
a11259 1
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
d11262 1
a11262 1
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
d11281 1
a11281 1
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d11302 13
d11317 1
a11317 1
      CC*)
d11322 1
a11322 1
      lcc*)
d11335 1
a11335 1
      CC*)
a11336 1
        archive_cmds_need_lc_CXX=yes
d11338 1
a11338 1
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d11340 1
a11340 1
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
d11345 1
a11345 1
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
d11349 1
a11349 5
	    # linker. We must also pass each convience library through
	    # to the system linker between allextract/defaultextract.
	    # The C++ compiler will combine linker options so we
	    # cannot just pass the convience library names through
	    # without $wl.
d11351 1
a11351 1
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
d11356 9
a11364 1
	output_verbose_link_cmd='echo'
d11372 1
a11372 1
      gcx*)
d11410 1
a11410 35
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    no_undefined_flag_CXX='${wl}-z,text'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  sysv5* | sco3.2v5* | sco5v6*)
    # Note: We can NOT use -z defs as we might desire, because we do not
    # link with -lc, and that would cause any symbols used from libc to
    # always be unresolved, which means just about no library would
    # ever link correctly.  If we're not using GNU ld we use -z text
    # though, which does catch some bad symbols but isn't as heavy-handed
    # as -z defs.
    # For security reasons, it is highly recommended that you always
    # use absolute paths for naming shared libraries, and exclude the
    # DT_RUNPATH tag from executables and libraries.  But doing so
    # requires that you compile everything twice, which is a pain.
    # So that behaviour is only enabled if SCOABSPATH is set to a
    # non-empty value in the environment.  Most likely only useful for
    # creating official distributions of packages.
    # This is a hack until libtool officially supports absolute path
    # names for shared libraries.
    no_undefined_flag_CXX='${wl}-z,text'
    allow_undefined_flag_CXX='${wl}-z,nodefs'
a11411 17
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
d11415 1
a11415 1
      NCC*)
d11435 2
a11436 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d11468 1
a11468 1
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a11543 23
# PORTME: override above test on systems where it is broken
case $host_os in
interix3*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

solaris*)
  case $cc_basename in
  CC*)
    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    postdeps_CXX='-lCstd -lCrun'
    ;;
  esac
  ;;
esac


d11552 2
a11553 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a11590 4
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
d11599 1
a11599 1
      case $host_cpu in
d11624 1
a11624 1
	cxch68*)
a11629 10
       darwin*)
         # PIC is the default on this platform
         # Common symbols not allowed in MH_DYLIB files
         case $cc_basename in
           xlc*)
           lt_prog_compiler_pic_CXX='-qnocommon'
           lt_prog_compiler_wl_CXX='-Wl,'
           ;;
         esac
       ;;
d11632 1
a11632 1
	  ec++*)
d11635 1
a11635 1
	  ghcx*)
d11643 1
a11643 1
      freebsd* | kfreebsd*-gnu | dragonfly*)
d11648 1
a11648 1
	  CC*)
d11650 1
a11650 1
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
d11655 1
a11655 1
	  aCC*)
d11657 2
a11658 2
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
a11670 4
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
d11673 1
a11673 1
	  CC*)
d11684 1
a11684 1
	  KCC*)
d11689 1
a11689 1
	  icpc* | ecpc*)
d11695 1
a11695 7
	  pgCC*)
	    # Portland Group C++ compiler.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
d11712 1
a11712 1
	  cxx*)
d11723 1
a11723 1
	  KCC*)
d11726 1
a11726 1
	  RCC*)
d11730 1
a11730 1
	  cxx*)
d11744 9
d11755 1
a11755 1
	  CC*)
d11761 1
a11761 1
	  gcx*)
d11771 1
a11771 1
	  CC*)
d11776 1
a11776 1
	  lcc*)
d11786 1
a11786 1
	  NCC*)
d11794 1
a11794 8
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
d11804 2
a11805 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d11812 2
a11813 2
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d11827 1
a11827 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d11830 1
a11830 1
   (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
d11834 1
a11834 1
   echo "$as_me:13192: \$? = $ac_status" >&5
d11837 2
a11838 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d11845 2
a11846 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d11859 1
a11859 1
case $host_os in
d11869 2
a11870 44
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_prog_compiler_static_works_CXX=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d11887 1
a11887 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d11890 1
a11890 1
   (eval echo "\"\$as_me:13292: $lt_compile\"" >&5)
d11894 1
a11894 1
   echo "$as_me:13296: \$? = $ac_status" >&5
d11899 1
a11899 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d11903 1
a11903 1
   chmod u+w . 2>&5
d11914 2
a11915 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d11921 2
a11922 2
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d11929 2
a11930 2
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
d11940 2
a11941 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d11958 1
a11958 1
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d11965 2
a11966 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d11969 5
d11991 2
a11992 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a12005 1
	pic_flag=$lt_prog_compiler_pic_CXX
d12028 2
a12029 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d12036 2
a12037 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d12041 1
a12041 1
shrext_cmds=".so"
d12138 1
a12138 1
bsdi[45]*)
d12154 1
a12154 1
  shrext_cmds=".dll"
d12166 1
a12166 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d12196 1
a12196 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d12215 1
a12215 1
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
d12219 1
a12219 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d12254 2
a12255 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d12273 1
a12273 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d12277 1
a12277 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a12280 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
d12300 1
a12300 1
  case $host_cpu in
d12302 1
a12302 1
    shrext_cmds='.so'
d12317 1
a12317 1
     shrext_cmds='.sl'
d12328 1
a12328 1
    shrext_cmds='.sl'
a12339 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

d12399 2
a12400 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a12460 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d12462 1
a12462 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
d12482 1
a12482 1
  shrext_cmds=".dll"
d12500 7
d12532 1
a12532 1
sysv4 | sysv4.3*)
a12564 23
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

d12576 2
a12577 2
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
d12580 2
a12581 7
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d12584 2
a12585 2
   test -n "$runpath_var_CXX" || \
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
d12605 2
a12606 2
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d12617 25
a12641 84

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_CXX \
    CC_CXX \
    LD_CXX \
    lt_prog_compiler_wl_CXX \
    lt_prog_compiler_pic_CXX \
    lt_prog_compiler_static_CXX \
    lt_prog_compiler_no_builtin_flag_CXX \
    export_dynamic_flag_spec_CXX \
    thread_safe_flag_spec_CXX \
    whole_archive_flag_spec_CXX \
    enable_shared_with_static_runtimes_CXX \
    old_archive_cmds_CXX \
    old_archive_from_new_cmds_CXX \
    predep_objects_CXX \
    postdep_objects_CXX \
    predeps_CXX \
    postdeps_CXX \
    compiler_lib_search_path_CXX \
    archive_cmds_CXX \
    archive_expsym_cmds_CXX \
    postinstall_cmds_CXX \
    postuninstall_cmds_CXX \
    old_archive_from_expsyms_cmds_CXX \
    allow_undefined_flag_CXX \
    no_undefined_flag_CXX \
    export_symbols_cmds_CXX \
    hardcode_libdir_flag_spec_CXX \
    hardcode_libdir_flag_spec_ld_CXX \
    hardcode_libdir_separator_CXX \
    hardcode_automatic_CXX \
    module_cmds_CXX \
    module_expsym_cmds_CXX \
    lt_cv_prog_compiler_c_o_CXX \
    exclude_expsyms_CXX \
    include_expsyms_CXX; do

    case $var in
    old_archive_cmds_CXX | \
    old_archive_from_new_cmds_CXX | \
    archive_cmds_CXX | \
    archive_expsym_cmds_CXX | \
    module_cmds_CXX | \
    module_expsym_cmds_CXX | \
    old_archive_from_expsyms_cmds_CXX | \
    export_symbols_cmds_CXX | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
d12644 1
d12646 7
a12652 1
cfgfile="$ofile"
d12654 6
a12659 2
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
d12661 4
a12664 1
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d12666 4
a12669 2
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
d12671 15
a12685 2
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
d12687 41
a12727 2
# Whether or not to build static libraries.
build_old_libs=$enable_static
d12729 11
a12739 2
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX
d12741 3
a12743 2
# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d12745 1
a12745 2
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
d12747 1
a12747 4
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
d12749 15
a12763 4
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d12765 4
a12768 2
# An echo program that does not interpret backslashes.
echo=$lt_echo
d12770 5
a12774 3
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
d12776 1
a12776 2
# A C compiler.
LTCC=$lt_LTCC
d12778 19
a12796 2
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS
d12798 34
a12831 2
# A language-specific compiler.
CC=$lt_compiler_CXX
d12833 23
a12855 2
# Is the compiler the GNU C compiler?
with_gcc=$GCC_CXX
d12857 67
a12923 2
# An ERE matcher.
EGREP=$lt_EGREP
d12925 4
a12928 2
# The linker used to build libraries.
LD=$lt_LD_CXX
d12930 5
a12934 2
# Whether we need hard or soft links.
LN_S=$lt_LN_S
d12936 1
a12936 2
# A BSD-compatible nm program.
NM=$lt_NM
d12938 19
a12956 2
# A symbol stripping program
STRIP=$lt_STRIP
d12958 34
a12991 2
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
d12993 23
a13015 2
# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"
d13017 41
a13057 2
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
d13059 24
a13082 2
# Used on cygwin: assembler.
AS="$AS"
d13084 41
a13124 2
# The name of the directory that contains temporary libtool files.
objdir=$objdir
d13126 24
a13149 3
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
d13151 41
a13191 2
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX
d13193 11
a13203 2
# Object file suffix (normally "o").
objext="$ac_objext"
a13204 2
# Old archive suffix (normally "a").
libext="$libext"
d13206 1
a13206 2
# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'
a13207 2
# Executable file suffix (normally "").
exeext="$exeext"
d13209 1
a13209 3
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX
pic_mode=$pic_mode
a13210 2
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
d13212 1
a13212 2
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
a13213 2
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
d13215 1
a13215 2
# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix
a13216 2
# Do we need a version for libraries?
need_version=$need_version
d13218 1
a13218 2
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
d13220 2
a13221 2
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
d13223 5
a13227 2
# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
d13229 4
a13232 2
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX
d13234 2
a13235 2
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
d13237 2
a13238 2
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
d13240 13
a13252 2
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
d13254 3
a13256 2
# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
d13258 1
a13258 2
# Library versioning type.
version_type=$version_type
d13260 9
a13268 2
# Format of library name prefix.
libname_spec=$lt_libname_spec
d13270 21
a13290 3
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
d13292 3
a13294 2
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
d13296 5
a13300 5
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_CXX
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
d13302 6
a13307 2
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
d13309 21
a13329 2
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
a13330 5
# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
d13332 3
a13334 3
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX
d13336 15
a13350 3
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
d13352 3
a13354 3
# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_CXX
d13356 1
a13356 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_CXX
d13358 9
a13366 3
# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_CXX
d13368 21
a13388 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_CXX
d13390 3
a13392 3
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d13394 343
a13736 2
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
a13919 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

a13923 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


d13929 1
a13929 9
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d13931 4
d13936 2
a13937 7
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6; }

{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d13942 1
a13942 1
case $host_os in
d13950 2
a13951 4
aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
d13954 2
a13955 2
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6; }
d13957 2
a13958 2
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d13961 4
a13964 2
{ echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6; }
d13973 2
a13974 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a14011 5
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

d14028 1
a14028 1
      case $host_cpu in
a14053 10
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_F77='-qnocommon'
         lt_prog_compiler_wl_F77='-Wl,'
         ;;
       esac
       ;;
d14065 1
a14065 1
      case $host_cpu in
d14089 1
a14089 1
      case $cc_basename in
a14094 7
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
d14109 5
d14115 1
a14117 6
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_F77='-Wl,';;
      esac
d14126 1
a14126 1
    sysv4 | sysv4.2uw2* | sysv4.3*)
a14138 11
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
      ;;

d14150 2
a14151 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d14158 2
a14159 2
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d14173 1
a14173 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d14176 1
a14176 1
   (eval echo "\"\$as_me:14862: $lt_compile\"" >&5)
d14180 1
a14180 1
   echo "$as_me:14866: \$? = $ac_status" >&5
d14183 2
a14184 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d14191 2
a14192 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d14205 1
a14205 1
case $host_os in
d14215 2
a14216 44
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_F77=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_F77=yes
       fi
     else
       lt_prog_compiler_static_works_F77=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }

if test x"$lt_prog_compiler_static_works_F77" = xyes; then
    :
else
    lt_prog_compiler_static_F77=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d14233 1
a14233 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d14236 1
a14236 1
   (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
d14240 1
a14240 1
   echo "$as_me:14970: \$? = $ac_status" >&5
d14245 1
a14245 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d14249 1
a14249 1
   chmod u+w . 2>&5
d14260 2
a14261 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d14267 2
a14268 2
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d14275 2
a14276 2
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
d14286 2
a14287 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a14324 10
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a14334 4
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
a14344 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

d14395 1
a14395 1
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d14398 1
a14398 1
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d14407 1
a14407 1
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d14409 1
a14409 47
	ld_shlibs_F77=no
      fi
      ;;

    interix3*)
      hardcode_direct_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_F77='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_F77=no
d14423 1
a14423 1
    solaris*)
a14443 27
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_F77=no
	  fi
	;;
      esac
      ;;

d14451 25
d14486 10
a14495 5
    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
d14507 1
a14507 1
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a14540 1
	  ;;
d14559 1
a14559 1
	case $host_os in aix4.[012]|aix4.[012].*)
a14577 1
	  ;;
a14579 3
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
d14587 1
a14587 1
	  if test "$aix_use_runtimelinking" = yes; then
d14591 1
a14591 1
	  fi
d14609 2
a14610 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d14616 14
a14629 5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a14639 1

d14641 1
a14641 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d14646 1
a14646 1
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d14651 1
a14651 1
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d14660 2
a14661 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d14667 14
a14680 5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a14690 1

d14692 1
a14692 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d14701 2
d14704 1
a14704 1
	  whole_archive_flag_spec_F77='$convenience'
d14706 2
a14707 2
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d14720 1
a14720 1
    bsdi[45]*)
d14734 1
a14734 1
      shrext_cmds=".dll"
d14741 1
a14741 1
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
d14746 20
a14765 18
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
d14767 18
a14784 1
      archive_cmds_need_lc_F77=no
d14788 1
a14788 1
      whole_archive_flag_spec_F77=''
a14789 7
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d14791 1
a14791 13
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_F77=no
          ;;
      esac
d14825 1
a14825 1
    freebsd* | kfreebsd*-gnu | dragonfly*)
d14848 1
a14848 1
    hpux10*)
d14850 8
a14857 1
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d14859 8
a14866 1
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
d14869 1
a14869 15
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	hardcode_direct_F77=yes
	export_dynamic_flag_spec_F77='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_F77=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
d14871 5
a14875 13
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d14878 1
a14878 14
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
d14881 4
d14887 2
a14935 1
	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d14981 1
a14981 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
d14989 8
a14999 1
	wlarc='${wl}'
a15003 1
	wlarc=''
d15012 2
a15013 12
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
d15070 4
a15073 3
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_F77='${wl}-z,text'
      archive_cmds_need_lc_F77=no
d15075 3
a15077 1
      runpath_var='LD_RUN_PATH'
d15079 2
d15082 1
a15082 2
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d15084 1
a15084 2
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d15086 2
d15090 8
a15097 10
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_F77='${wl}-z,text'
      allow_undefined_flag_F77='${wl}-z,nodefs'
      archive_cmds_need_lc_F77=no
a15098 4
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      export_dynamic_flag_spec_F77='${wl}-Bexport'
a15099 8

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d15114 2
a15115 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d15118 5
d15140 2
a15141 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a15154 1
	pic_flag=$lt_prog_compiler_pic_F77
d15177 2
a15178 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d15185 2
a15186 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d15190 1
a15190 1
shrext_cmds=".so"
d15287 1
a15287 1
bsdi[45]*)
d15303 1
a15303 1
  shrext_cmds=".dll"
d15315 1
a15315 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d15345 1
a15345 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d15364 1
a15364 1
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
d15368 1
a15368 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d15403 2
a15404 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d15422 1
a15422 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d15426 1
a15426 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a15429 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
d15449 1
a15449 1
  case $host_cpu in
d15451 1
a15451 1
    shrext_cmds='.so'
d15466 1
a15466 1
     shrext_cmds='.sl'
d15477 1
a15477 1
    shrext_cmds='.sl'
a15488 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

d15548 2
a15549 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a15609 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d15611 1
a15611 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
d15631 1
a15631 1
  shrext_cmds=".dll"
d15649 7
d15681 1
a15681 1
sysv4 | sysv4.3*)
a15713 23
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

d15725 2
a15726 2
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
d15729 2
a15730 7
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d15733 2
a15734 2
   test -n "$runpath_var_F77" || \
   test "X$hardcode_automatic_F77" = "Xyes" ; then
d15754 2
a15755 2
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6; }
d15766 30
d15810 1
a15810 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a15910 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
a15921 3
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

d15972 1
a15972 1
shrext_cmds='$shrext_cmds'
d15987 1
a15987 1
# Must we lock files when doing compilation?
d16213 1
d16225 1
a16225 1
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a16231 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

a16235 14
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


a16240 10
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

a16244 2
old_archive_cmds_GCJ=$old_archive_cmds

d16252 2
a16253 2
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d16267 1
a16267 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d16270 1
a16270 1
   (eval echo "\"\$as_me:17164: $lt_compile\"" >&5)
d16274 1
a16274 1
   echo "$as_me:17168: \$? = $ac_status" >&5
d16277 2
a16278 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d16285 2
a16286 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d16300 2
a16301 2
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a16338 5
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

d16355 1
a16355 1
      case $host_cpu in
a16380 10
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_GCJ='-qnocommon'
         lt_prog_compiler_wl_GCJ='-Wl,'
         ;;
       esac
       ;;
d16392 1
a16392 1
      case $host_cpu in
d16416 1
a16416 1
      case $cc_basename in
a16421 7
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
d16436 5
d16442 1
a16444 6
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
d16453 1
a16453 1
    sysv4 | sysv4.2uw2* | sysv4.3*)
a16465 11
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;

d16477 2
a16478 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d16485 2
a16486 2
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d16500 1
a16500 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d16503 1
a16503 1
   (eval echo "\"\$as_me:17432: $lt_compile\"" >&5)
d16507 1
a16507 1
   echo "$as_me:17436: \$? = $ac_status" >&5
d16510 2
a16511 4
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d16518 2
a16519 2
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d16532 1
a16532 1
case $host_os in
d16542 2
a16543 44
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_GCJ=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_GCJ=yes
       fi
     else
       lt_prog_compiler_static_works_GCJ=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }

if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
    :
else
    lt_prog_compiler_static_GCJ=
fi


{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d16560 1
a16560 1
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
d16563 1
a16563 1
   (eval echo "\"\$as_me:17536: $lt_compile\"" >&5)
d16567 1
a16567 1
   echo "$as_me:17540: \$? = $ac_status" >&5
d16572 1
a16572 3
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
d16576 1
a16576 1
   chmod u+w . 2>&5
d16587 2
a16588 2
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d16594 2
a16595 2
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d16602 2
a16603 2
  { echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6; }
d16613 2
a16614 2
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a16651 10
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a16661 4
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
a16671 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

d16722 1
a16722 1
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
d16725 1
a16725 1
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d16734 1
a16734 1
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d16736 1
a16736 47
	ld_shlibs_GCJ=no
      fi
      ;;

    interix3*)
      hardcode_direct_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_GCJ='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_GCJ=no
d16750 1
a16750 1
    solaris*)
a16770 27
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_GCJ=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_GCJ=no
	  fi
	;;
      esac
      ;;

d16778 25
d16813 10
a16822 5
    if test "$ld_shlibs_GCJ" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_GCJ=
      export_dynamic_flag_spec_GCJ=
      whole_archive_flag_spec_GCJ=
d16834 1
a16834 1
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a16867 1
	  ;;
d16886 1
a16886 1
	case $host_os in aix4.[012]|aix4.[012].*)
a16904 1
	  ;;
a16906 3
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
d16914 1
a16914 1
	  if test "$aix_use_runtimelinking" = yes; then
d16918 1
a16918 1
	  fi
d16946 2
a16947 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d16953 14
a16966 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a16976 1

d16978 1
a16978 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d16983 1
a16983 1
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d16988 1
a16988 1
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d17007 2
a17008 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d17014 14
a17027 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a17037 1

d17039 1
a17039 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d17048 2
d17051 1
a17051 1
	  whole_archive_flag_spec_GCJ='$convenience'
d17053 2
a17054 2
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d17067 1
a17067 1
    bsdi[45]*)
d17081 1
a17081 1
      shrext_cmds=".dll"
d17088 1
a17088 1
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
d17093 20
a17112 18
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
d17114 18
a17131 1
      archive_cmds_need_lc_GCJ=no
d17135 1
a17135 1
      whole_archive_flag_spec_GCJ=''
a17136 7
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d17138 1
a17138 13
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_GCJ=no
          ;;
      esac
d17172 1
a17172 1
    freebsd* | kfreebsd*-gnu | dragonfly*)
d17195 1
a17195 1
    hpux10*)
d17197 2
a17198 21
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	hardcode_direct_GCJ=yes
	export_dynamic_flag_spec_GCJ='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_GCJ=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
a17200 3
	ia64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
d17206 3
a17208 6
	case $host_cpu in
	hppa*64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d17211 1
a17211 1
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d17216 3
a17218 5
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	case $host_cpu in
	hppa*64*|ia64*)
d17220 6
d17228 4
d17234 2
a17282 1
	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d17328 1
a17328 1
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
d17336 8
a17346 1
	wlarc='${wl}'
a17350 1
	wlarc=''
d17359 2
a17360 12
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
d17417 4
a17420 3
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z,text'
      archive_cmds_need_lc_GCJ=no
d17422 3
a17424 1
      runpath_var='LD_RUN_PATH'
d17426 2
d17429 1
a17429 2
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d17431 1
a17431 2
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d17433 2
d17437 8
a17444 10
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_GCJ='${wl}-z,text'
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
      archive_cmds_need_lc_GCJ=no
a17445 4
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a17446 8

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d17461 2
a17462 2
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d17465 5
d17487 2
a17488 2
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a17501 1
	pic_flag=$lt_prog_compiler_pic_GCJ
d17524 2
a17525 2
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d17532 2
a17533 2
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d17537 1
a17537 1
shrext_cmds=".so"
d17634 1
a17634 1
bsdi[45]*)
d17650 1
a17650 1
  shrext_cmds=".dll"
d17662 1
a17662 2
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
d17692 1
a17692 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d17711 1
a17711 1
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
d17715 1
a17715 1
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d17750 2
a17751 11
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
d17769 1
a17769 1
  freebsd3.[01]* | freebsdelf3.[01]*)
d17773 1
a17773 2
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a17776 4
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
d17796 1
a17796 1
  case $host_cpu in
d17798 1
a17798 1
    shrext_cmds='.so'
d17813 1
a17813 1
     shrext_cmds='.sl'
d17824 1
a17824 1
    shrext_cmds='.sl'
a17835 12
interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

d17895 2
a17896 2
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a17956 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d17958 1
a17958 5
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
d17978 1
a17978 1
  shrext_cmds=".dll"
d17996 7
d18028 1
a18028 1
sysv4 | sysv4.3*)
d18061 3
a18063 5
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
d18066 851
a18916 11
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
d18918 3
d18922 2
a18923 9
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
a18924 7
*)
  dynamic_linker=no
  ;;
esac
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no
a18925 3
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d18927 3
d18931 5
a18935 6
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var_GCJ" || \
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
d18937 4
a18940 20
  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d18942 4
a18945 7
if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
d18962 1
a18962 1
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a19062 6
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
a19073 3
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

d19124 1
a19124 1
shrext_cmds='$shrext_cmds'
d19139 446
a19584 1
# Must we lock files when doing compilation?
d19603 1
a19603 1
link_static_flag=$lt_lt_prog_compiler_static_GCJ
d19606 1
a19606 1
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
d19609 1
a19609 1
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
d19612 1
a19612 1
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
d19615 1
a19615 1
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
d19632 1
a19632 1
old_archive_cmds=$lt_old_archive_cmds_GCJ
d19637 1
a19637 1
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
d19640 1
a19640 1
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
d19643 2
a19644 2
archive_cmds=$lt_archive_cmds_GCJ
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
d19649 2
a19650 2
module_cmds=$lt_module_cmds_GCJ
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
d19658 1
a19658 1
predep_objects=$lt_predep_objects_GCJ
d19662 1
a19662 1
postdep_objects=$lt_postdep_objects_GCJ
d19666 1
a19666 1
predeps=$lt_predeps_GCJ
d19670 1
a19670 1
postdeps=$lt_postdeps_GCJ
d19674 1
a19674 1
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d19683 1
a19683 1
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
d19686 1
a19686 1
no_undefined_flag=$lt_no_undefined_flag_GCJ
d19713 1
a19713 1
hardcode_action=$hardcode_action_GCJ
d19720 1
a19720 1
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
d19725 1
a19725 1
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
d19728 1
a19728 1
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
d19732 1
a19732 1
hardcode_direct=$hardcode_direct_GCJ
d19736 1
a19736 1
hardcode_minus_L=$hardcode_minus_L_GCJ
d19740 1
a19740 1
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
d19744 1
a19744 1
hardcode_automatic=$hardcode_automatic_GCJ
d19751 1
a19751 1
link_all_deplibs=$link_all_deplibs_GCJ
d19760 1
a19760 1
fix_srcfile_path="$fix_srcfile_path_GCJ"
d19763 1
a19763 1
always_export_symbols=$always_export_symbols_GCJ
d19766 1
a19766 1
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
d19772 1
a19772 1
exclude_expsyms=$lt_exclude_expsyms_GCJ
d19775 1
a19775 1
include_expsyms=$lt_include_expsyms_GCJ
d19801 138
a19938 2
	else
	  tagname=""
d19940 22
d19963 189
a20152 1
      RC)
a20154 2
# Source file extension for RC test sources.
ac_ext=rc
d20156 3
a20158 3
# Object file extension for compiled RC test sources.
objext=o
objext_RC=$objext
d20160 1
a20160 2
# Code to be used in simple compile tests
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
d20162 11
a20172 2
# Code to be used in simple link tests
lt_simple_link_test_code="$lt_simple_compile_test_code"
d20174 11
a20184 1
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
d20186 3
a20188 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
d20190 1
a20190 2
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
a20191 2
# Allow CC to be a program name with arguments.
compiler=$CC
d20194 2
a20195 12
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*
d20197 5
d20203 16
a20218 12
# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${RC-"windres"}
compiler=$CC
compiler_RC=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
a20219 1
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d20221 67
a20287 1
lt_cv_prog_compiler_c_o_RC=yes
d20289 8
a20296 57
# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_RC \
    CC_RC \
    LD_RC \
    lt_prog_compiler_wl_RC \
    lt_prog_compiler_pic_RC \
    lt_prog_compiler_static_RC \
    lt_prog_compiler_no_builtin_flag_RC \
    export_dynamic_flag_spec_RC \
    thread_safe_flag_spec_RC \
    whole_archive_flag_spec_RC \
    enable_shared_with_static_runtimes_RC \
    old_archive_cmds_RC \
    old_archive_from_new_cmds_RC \
    predep_objects_RC \
    postdep_objects_RC \
    predeps_RC \
    postdeps_RC \
    compiler_lib_search_path_RC \
    archive_cmds_RC \
    archive_expsym_cmds_RC \
    postinstall_cmds_RC \
    postuninstall_cmds_RC \
    old_archive_from_expsyms_cmds_RC \
    allow_undefined_flag_RC \
    no_undefined_flag_RC \
    export_symbols_cmds_RC \
    hardcode_libdir_flag_spec_RC \
    hardcode_libdir_flag_spec_ld_RC \
    hardcode_libdir_separator_RC \
    hardcode_automatic_RC \
    module_cmds_RC \
    module_expsym_cmds_RC \
    lt_cv_prog_compiler_c_o_RC \
    exclude_expsyms_RC \
    include_expsyms_RC; do
d20298 18
a20315 21
    case $var in
    old_archive_cmds_RC | \
    old_archive_from_new_cmds_RC | \
    archive_cmds_RC | \
    archive_expsym_cmds_RC | \
    module_cmds_RC | \
    module_expsym_cmds_RC | \
    old_archive_from_expsyms_cmds_RC | \
    export_symbols_cmds_RC | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done
d20317 30
a20346 5
  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac
d20348 15
a20362 1
cfgfile="$ofile"
d20364 30
a20393 2
  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
d20395 15
a20409 1
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d20411 1
a20411 2
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
d20413 3
a20415 2
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
d20417 8
a20424 2
# Whether or not to build static libraries.
build_old_libs=$enable_static
a20425 2
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_RC
a20426 2
# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
a20427 2
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
a20428 4
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
d20430 7
a20436 4
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
d20438 15
a20452 2
# An echo program that does not interpret backslashes.
echo=$lt_echo
d20454 32
a20485 3
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
d20487 3
a20489 2
# A C compiler.
LTCC=$lt_LTCC
d20491 4
a20494 2
# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS
d20496 3
a20498 2
# A language-specific compiler.
CC=$lt_compiler_RC
d20500 1
a20500 2
# Is the compiler the GNU C compiler?
with_gcc=$GCC_RC
a20501 2
# An ERE matcher.
EGREP=$lt_EGREP
d20503 15
a20517 2
# The linker used to build libraries.
LD=$lt_LD_RC
d20519 31
a20549 2
# Whether we need hard or soft links.
LN_S=$lt_LN_S
d20551 3
a20553 2
# A BSD-compatible nm program.
NM=$lt_NM
d20555 4
a20558 2
# A symbol stripping program
STRIP=$lt_STRIP
d20560 3
a20562 2
# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD
a20563 2
# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"
d20565 3
a20567 2
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
d20569 16
a20584 2
# Used on cygwin: assembler.
AS="$AS"
d20586 31
a20616 2
# The name of the directory that contains temporary libtool files.
objdir=$objdir
d20618 3
a20620 3
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
d20622 4
a20625 2
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_RC
d20627 3
a20629 2
# Object file suffix (normally "o").
objext="$ac_objext"
d20631 1
a20631 2
# Old archive suffix (normally "a").
libext="$libext"
a20632 2
# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'
a20633 2
# Executable file suffix (normally "").
exeext="$exeext"
a20634 3
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_RC
pic_mode=$pic_mode
d20636 5
a20640 2
# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len
d20642 17
a20658 2
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
d20660 34
a20693 2
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
d20695 7
a20701 2
# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix
d20703 1
a20703 2
# Do we need a version for libraries?
need_version=$need_version
a20704 2
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
d20706 1
a20706 2
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
d20708 1
a20708 2
# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
d20710 17
a20726 2
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_RC
d20728 4
a20731 2
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
d20733 5
a20737 2
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
d20739 1
a20739 2
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
d20741 19
a20759 2
# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
d20761 34
a20794 2
# Library versioning type.
version_type=$version_type
d20796 11
a20806 2
# Format of library name prefix.
libname_spec=$lt_libname_spec
d20808 2
a20809 3
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
d20811 5
a20815 2
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
d20817 7
a20823 5
# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_RC
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
d20825 15
a20839 2
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
d20841 3
a20843 2
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
d20845 4
a20848 5
# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_RC
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds
a20849 3
# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_RC
module_expsym_cmds=$lt_module_expsym_cmds_RC
d20851 3
a20853 3
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
a20854 3
# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_RC
a20855 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_RC
a20856 3
# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_RC
a20857 3
# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_RC
d20859 5
a20863 3
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d20865 17
a20881 2
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
d20883 34
a20916 2
# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd
d20918 7
a20924 2
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_RC
d20926 1
a20926 2
# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_RC
a20927 2
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
d20929 1
a20929 2
# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval
d20931 1
a20931 2
# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d20933 17
a20949 2
# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d20951 4
a20954 2
# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d20956 5
a20960 2
# This is the shared library runtime path variable.
runpath_var=$runpath_var
d20962 1
a20962 2
# This is the shared library path variable.
shlibpath_var=$shlibpath_var
d20964 19
a20982 2
# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d20984 34
a21017 2
# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_RC
d21019 11
a21029 2
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs
d21031 2
a21032 3
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
d21034 5
a21038 4
# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
d21040 7
a21046 2
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
d21048 15
a21062 3
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_RC
d21064 3
a21066 3
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_RC
d21068 4
a21071 3
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
a21072 3
# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_RC
d21074 3
a21076 3
# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"
a21077 2
# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_RC
a21078 2
# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
a21079 2
# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
a21080 2
# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_RC"
d21082 5
a21086 2
# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_RC
d21088 17
a21104 2
# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_RC
d21106 34
a21139 2
# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds
d21141 7
a21147 2
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_RC
d21149 1
a21149 2
# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_RC
a21150 1
# ### END LIBTOOL TAG CONFIG: $tagname
d21152 1
a21152 1
__EOF__
d21154 1
d21156 7
d21164 9
a21172 8
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi
d21174 4
d21179 5
a21183 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d21185 1
a21185 1
CC="$lt_save_CC"
d21187 19
a21205 1
	;;
d21207 34
a21240 6
      *)
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
      esac
d21242 11
a21252 7
      # Append the new tag name to the list of available tags.
      if test -n "$tagname" ; then
      available_tags="$available_tags $tagname"
    fi
    fi
  done
  IFS="$lt_save_ifs"
a21253 10
  # Now substitute the updated list of available tags.
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    mv "${ofile}T" "$ofile"
    chmod +x "$ofile"
  else
    rm -f "${ofile}T"
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
   { (exit 1); exit 1; }; }
  fi
d21255 1
d21257 5
d21263 7
d21271 15
a21285 2
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
d21287 3
a21289 2
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d21291 4
a21294 1
# Prevent multiple expansion
d21297 3
d21305 5
d21311 17
d21329 34
d21364 7
d21372 1
d21375 1
d21377 1
d21379 17
d21397 4
d21402 5
d21408 1
d21410 19
d21430 25
a21454 33

 if test "$enable_shared" = "yes"; then
  ENABLE_SHARED_TRUE=
  ENABLE_SHARED_FALSE='#'
else
  ENABLE_SHARED_TRUE='#'
  ENABLE_SHARED_FALSE=
fi


{ echo "$as_me:$LINENO: checking for ld --version-script" >&5
echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
if test "${rk_cv_version_script+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  rk_cv_version_script=no

  cat > conftest.map <<EOF
HEIM_GSS_V1 {
        global: gss*;
};
HEIM_GSS_V1_1 {
        global: gss_init_creds;
} HEIM_GSS_V1;
EOF
cat > conftest.c <<EOF
int gss_init_creds(int foo) { return 0; }
EOF

  if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
                               -o conftest.so conftest.c
                               -Wl,--version-script,conftest.map'
d21459 5
a21463 5
  (exit $ac_status); }; };
  then
    rk_cv_version_script=yes
  fi
rm -f conftest*
d21465 4
d21470 6
a21475 2
{ echo "$as_me:$LINENO: result: $rk_cv_version_script" >&5
echo "${ECHO_T}$rk_cv_version_script" >&6; }
a21476 6
if test $rk_cv_version_script = yes ; then
  doversioning=yes
  LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
else
  doversioning=no
  LDFLAGS_VERSION_SCRIPT=
d21478 1
a21479 7

 if test $doversioning = yes; then
  versionscript_TRUE=
  versionscript_FALSE='#'
else
  versionscript_TRUE='#'
  versionscript_FALSE=
d21481 4
d21486 7
d21494 15
d21510 3
d21514 4
d21520 2
a21521 4

# Check whether --with-openldap was given.
if test "${with_openldap+set}" = set; then
  withval=$with_openldap;
a21524 10
# Check whether --with-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
  withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi
a21526 10
# Check whether --with-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
  withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
echo "$as_me: error: No argument for --with-openldap-include" >&2;}
   { (exit 1); exit 1; }; }
elif test "X$with_openldap" = "X"; then
  with_openldap=yes
fi
fi
a21528 4
# Check whether --with-openldap-config was given.
if test "${with_openldap_config+set}" = set; then
  withval=$with_openldap_config;
fi
d21530 5
d21536 17
d21554 34
a21588 29
{ echo "$as_me:$LINENO: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6; }

case "$with_openldap" in
yes|"") d='' ;;
no)	d= ;;
*)	d="$with_openldap" ;;
esac

header_dirs=
lib_dirs=
for i in $d; do
	if test "$with_openldap_include" = ""; then
		if test -d "$i/include/openldap"; then
			header_dirs="$header_dirs $i/include/openldap"
		fi
		if test -d "$i/include"; then
			header_dirs="$header_dirs $i/include"
		fi
	fi
	if test "$with_openldap_lib" = ""; then
		if test -d "$i/lib$abilibdirext"; then
			lib_dirs="$lib_dirs $i/lib$abilibdirext"
		fi
	fi
done

if test "$with_openldap_include"; then
	header_dirs="$with_openldap_include $header_dirs"
d21590 5
a21594 2
if test "$with_openldap_lib"; then
	lib_dirs="$with_openldap_lib $lib_dirs"
a21596 2
if test "$with_openldap_config" = ""; then
	with_openldap_config=''
a21598 2
openldap_cflags=
openldap_libs=
d21600 1
a21600 7
case "$with_openldap_config" in
yes|no|""|"")
	if test -f $with_openldap/bin/ ; then
		with_openldap_config=$with_openldap/bin/
	fi
	;;
esac
d21602 1
a21602 8
case "$with_openldap_config" in
yes|no|"")
	;;
*)
	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
	openldap_libs="`$with_openldap_config --libs 2>&1`"
	;;
esac
d21604 9
a21612 8
found=no
if test "$with_openldap" != no; then
	save_CFLAGS="$CFLAGS"
	save_LIBS="$LIBS"
	if test "$openldap_cflags" -a "$openldap_libs"; then
		CFLAGS="$openldap_cflags $save_CFLAGS"
		LIBS="$openldap_libs $save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
d21618 37
a21654 2
#include <lber.h>
#include <ldap.h>
d21658 1
a21658 1

d21664 2
a21665 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d21671 15
a21685 11
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

			INCLUDE_openldap="$openldap_cflags"
			LIB_openldap="$openldap_libs"
			{ echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
echo "${ECHO_T}from $with_openldap_config" >&6; }
			found=yes
d21690 54
d21745 2
d21749 8
a21756 8
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	fi
	if test "$found" = no; then
		ires= lres=
		for i in $header_dirs; do
			CFLAGS="-I$i $save_CFLAGS"
			cat >conftest.$ac_ext <<_ACEOF
d21762 2
a21763 2
#include <lber.h>
#include <ldap.h>
d21768 1
d21774 2
a21775 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d21781 15
a21795 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ires=$i;break
d21800 3
d21805 7
d21813 7
a21819 5
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
		done
		for i in $lib_dirs; do
			LIBS="-L$i -lldap -llber  $save_LIBS"
			cat >conftest.$ac_ext <<_ACEOF
d21825 4
a21828 2
#include <lber.h>
#include <ldap.h>
d21837 3
a21839 8
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d21845 15
a21859 6
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  lres=$i;break
d21864 1
a21864 31

fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
		done
		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
			INCLUDE_openldap="-I$ires"
			LIB_openldap="-L$lres -lldap -llber "
			found=yes
			{ echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
		fi
	fi
	CFLAGS="$save_CFLAGS"
	LIBS="$save_LIBS"
fi

if test "$found" = yes; then

cat >>confdefs.h <<_ACEOF
#define OPENLDAP 1
_ACEOF

	with_openldap=yes
else
	with_openldap=no
	INCLUDE_openldap=
	LIB_openldap=
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d21866 1
a21867 7




# Check whether --enable-hdb-openldap-module was given.
if test "${enable_hdb_openldap_module+set}" = set; then
  enableval=$enable_hdb_openldap_module;
d21869 3
a21871 2

if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
d21874 1
a21874 1
#define OPENLDAP_MODULE 1
d21877 1
a21877 8
fi
 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
  OPENLDAP_MODULE_TRUE=
  OPENLDAP_MODULE_FALSE='#'
else
  OPENLDAP_MODULE_TRUE='#'
  OPENLDAP_MODULE_FALSE=
fi
d21879 3
a21881 29

# Check whether --enable-pk-init was given.
if test "${enable_pk_init+set}" = set; then
  enableval=$enable_pk_init;
fi

if test "$enable_pk_init" != no ;then

cat >>confdefs.h <<\_ACEOF
#define PKINIT 1
_ACEOF

fi
 if test "$enable_pk_init" != no; then
  PKINIT_TRUE=
  PKINIT_FALSE='#'
else
  PKINIT_TRUE='#'
  PKINIT_FALSE=
fi




# Check whether --with-hdbdir was given.
if test "${with_hdbdir+set}" = set; then
  withval=$with_hdbdir;
else
  with_hdbdir=/var/heimdal
a21883 3
DIR_hdbdir="$with_hdbdir"


d21885 1
a21885 4
with_krb4=no


 if false; then
d21894 2
a21895 1
 if true; then
d21903 3
a21905 1
 if true; then
d21923 1
a21923 1
# Check whether --with-openssl was given.
d21925 1
a21925 2
  withval=$with_openssl;
fi
d21927 1
d21930 1
a21930 1
# Check whether --with-openssl-lib was given.
d21932 2
a21933 1
  withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
d21940 1
a21940 2
fi

d21943 1
a21943 1
# Check whether --with-openssl-include was given.
d21945 2
a21946 1
  withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
d21953 1
a21953 2
fi

d21969 1
a21969 1
DIR_hcrypto=
d21971 2
a21972 2
{ echo "$as_me:$LINENO: checking for crypto library" >&5
echo $ECHO_N "checking for crypto library... $ECHO_C" >&6; }
d21975 1
a22003 4
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
d22007 1
a22009 3
		#include <openssl/aes.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
a22010 2
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
d22012 19
a22030 10
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
a22040 1
		SHA256_CTX sha256;
a22044 2
		SHA256_Init(&sha256);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
a22046 1
		UI_UTIL_read_pw_string(0,0,0,0);
d22049 1
a22049 3
		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
d22056 2
a22057 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d22063 14
a22076 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a22081 1

d22083 1
a22083 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d22100 43
a22142 2
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
d22144 52
a22195 1
		#include <openssl/evp.h>
d22199 1
a22201 3
		#include <openssl/aes.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
a22202 2
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
d22204 19
a22222 10
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
a22232 1
		SHA256_CTX sha256;
a22236 2
		SHA256_Init(&sha256);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
a22238 1
		UI_UTIL_read_pw_string(0,0,0,0);
d22241 1
a22241 3
		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
d22248 2
a22249 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d22255 14
a22268 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a22273 1

d22275 1
a22275 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d22284 2
a22285 2
		INCLUDE_hcrypto="$ires"
		LIB_hcrypto="$lres"
d22287 5
a22291 5
		{ echo "$as_me:$LINENO: result: same as krb4" >&5
echo "${ECHO_T}same as krb4" >&6; }
		LIB_hcrypto_a='$(LIB_hcrypto)'
		LIB_hcrypto_so='$(LIB_hcrypto)'
		LIB_hcrypto_appl='$(LIB_hcrypto)'
d22298 2
a22299 2
	INCLUDE_hcrypto=
	LIB_hcrypto=
d22301 1
a22301 1
		INCLUDE_hcrypto="-I${with_openssl_include}"
d22304 1
a22304 1
		LIB_hcrypto="-L${with_openssl_lib}"
d22306 8
a22313 8
	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
	saved_LIB_hcrypto="$LIB_hcrypto"
	for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
		LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
		LIB_hcrypto_a="$LIB_hcrypto"
		LIB_hcrypto_so="$LIB_hcrypto"
		LIB_hcrypto_appl="$LIB_hcrypto"
		LIBS="${LIBS} ${LIB_hcrypto}"
a22322 4
		#ifdef HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#include <openssl/evp.h>
d22326 1
a22328 3
		#include <openssl/aes.h>
		#include <openssl/engine.h>
		#include <openssl/ui.h>
a22329 2
		#include <openssl/hmac.h>
		#include <openssl/pkcs12.h>
d22331 19
a22349 10
		#include <hcrypto/evp.h>
		#include <hcrypto/md4.h>
		#include <hcrypto/md5.h>
		#include <hcrypto/sha.h>
		#include <hcrypto/des.h>
		#include <hcrypto/rc4.h>
		#include <hcrypto/aes.h>
		#include <hcrypto/engine.h>
		#include <hcrypto/hmac.h>
		#include <hcrypto/pkcs12.h>
a22359 1
		SHA256_CTX sha256;
a22363 2
		SHA256_Init(&sha256);
		EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
a22365 1
		UI_UTIL_read_pw_string(0,0,0,0);
d22368 1
a22368 3
		OpenSSL_add_all_algorithms();
		AES_encrypt(0,0,0);
		DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
d22371 22
a22392 11
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
a22393 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d22395 1
a22395 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d22398 2
a22399 2
			{ echo "$as_me:$LINENO: result: libcrypto" >&5
echo "${ECHO_T}libcrypto" >&6; }
a22404 1

d22406 1
a22406 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d22418 5
a22422 5
  DIR_hcrypto='hcrypto'
  LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
  LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
  LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
  LIB_hcrypto_appl="-lhcrypto"
d22424 2
a22425 2
  { echo "$as_me:$LINENO: result: included libhcrypto" >&5
echo "${ECHO_T}included libhcrypto" >&6; }
d22446 10
a22455 1
 if test "$openssl" = yes; then
d22471 3
d22475 2
a22476 58
{ echo "$as_me:$LINENO: checking if compiling threadsafe libraries" >&5
echo $ECHO_N "checking if compiling threadsafe libraries... $ECHO_C" >&6; }

# Check whether --enable-pthread-support was given.
if test "${enable_pthread_support+set}" = set; then
  enableval=$enable_pthread_support;
else
  enable_pthread_support=maybe
fi


case "$host" in
*-*-solaris2*)
	native_pthread_support=yes
	if test "$GCC" = yes; then
		PTHREADS_CFLAGS=-pthreads
		PTHREADS_LIBS=-pthreads
	else
		PTHREADS_CFLAGS=-mt
		PTHREADS_LIBS=-mt
	fi
	;;
*-*-netbsd*)
	native_pthread_support="if running netbsd 1.6T or newer"
		PTHREADS_LIBS=""
	;;
*-*-freebsd5*)
	native_pthread_support=yes
	;;
*-*-linux* | *-*-linux-gnu)
	case `uname -r` in
	2.*)
		native_pthread_support=yes
		PTHREADS_CFLAGS=-pthread
		PTHREADS_LIBS=-pthread
		;;
	esac
	;;
*-*-aix*)
	        	native_pthread_support=no
	;;
mips-sgi-irix6.[5-9])  # maybe works for earlier versions too
	native_pthread_support=yes
	PTHREADS_LIBS="-lpthread"
	;;
*-*-darwin*)
	native_pthread_support=yes
	;;
*)
	native_pthread_support=no
	;;
esac

if test "$enable_pthread_support" = maybe ; then
	enable_pthread_support="$native_pthread_support"
fi

if test "$enable_pthread_support" != no; then
d22479 1
a22479 1
#define ENABLE_PTHREAD_SUPPORT 1
a22481 4
            LIBS="$PTHREADS_LIBS $LIBS"
else
  PTHREADS_CFLAGS=""
  PTHREADS_LIBS=""
a22484 11


{ echo "$as_me:$LINENO: result: $enable_pthread_support" >&5
echo "${ECHO_T}$enable_pthread_support" >&6; }


# Check whether --enable-dce was given.
if test "${enable_dce+set}" = set; then
  enableval=$enable_dce;
fi

a22485 7

cat >>confdefs.h <<\_ACEOF
#define DCE 1
_ACEOF

fi
 if test "$enable_dce" = yes; then
a22507 13
# Check whether --enable-afs-support was given.
if test "${enable_afs_support+set}" = set; then
  enableval=$enable_afs_support;
fi

if test "$enable_afs_support" = no; then

cat >>confdefs.h <<\_ACEOF
#define NO_AFS 1
_ACEOF

fi

d22509 1
a22509 1
# Check whether --enable-berkeley-db was given.
d22511 1
a22511 4
  enableval=$enable_berkeley_db;

fi

a22512 5
# Check whether --enable-ndbm-db was given.
if test "${enable_ndbm_db+set}" = set; then
  enableval=$enable_ndbm_db;

fi
d22514 1
d22533 4
a22536 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d22539 2
a22540 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d22543 2
a22544 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d22555 2
a22556 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d22562 14
a22575 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d22581 1
a22581 1
	ac_header_compiler=no
d22583 3
a22585 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d22588 2
a22589 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d22598 2
a22599 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d22605 11
a22615 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a22622 1

d22624 2
a22625 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d22649 5
a22653 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d22655 2
a22656 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d22659 3
a22661 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d22666 2
a22667 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d22684 2
a22685 2
{ echo "$as_me:$LINENO: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6; }
d22726 2
a22727 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d22733 14
a22746 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a22751 1

d22753 1
a22753 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d22770 3
a22772 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d22798 1
a22798 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d22801 1
d22803 2
d22809 1
a22809 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d22811 5
d22821 1
a22821 1
return $ac_func ();
d22827 2
a22828 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d22834 14
a22847 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d22853 1
a22853 1
	eval "$as_ac_var=no"
d22855 1
a22855 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d22858 2
a22859 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d22882 2
a22883 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d22888 2
a22889 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d22902 2
a22903 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d22927 2
a22928 2
{ echo "$as_me:$LINENO: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
d22971 2
a22972 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d22978 14
a22991 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a22996 1

d22998 1
a22998 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d23015 3
a23017 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d23043 1
a23043 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d23046 1
d23048 2
d23054 1
a23054 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d23056 5
d23066 1
a23066 1
return $ac_func ();
d23072 2
a23073 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d23079 14
a23092 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d23098 1
a23098 1
	eval "$as_ac_var=no"
d23100 1
a23100 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d23103 2
a23104 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23127 2
a23128 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d23133 2
a23134 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d23147 2
a23148 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d23173 2
a23174 2
{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
d23211 2
a23212 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d23218 14
a23231 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a23236 1

d23238 1
a23238 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d23255 3
a23257 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d23283 1
a23283 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d23286 1
d23288 2
d23294 1
a23294 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d23296 5
d23306 1
a23306 1
return $ac_func ();
d23312 2
a23313 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d23319 14
a23332 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d23338 1
a23338 1
	eval "$as_ac_var=no"
d23340 1
a23340 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d23343 2
a23344 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23367 2
a23368 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d23373 2
a23374 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d23387 2
a23388 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d23418 1
a23418 3
if test "$enable_ndbm_db" != "no"; then

  if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
d23423 2
a23424 2
  	dbm.h					\
  	ndbm.h					\
d23428 4
a23431 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d23434 2
a23435 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23438 2
a23439 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d23450 2
a23451 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23457 14
a23470 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d23476 1
a23476 1
	ac_header_compiler=no
d23478 3
a23480 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d23483 2
a23484 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d23493 2
a23494 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d23500 11
a23510 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a23517 1

d23519 2
a23520 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d23544 5
a23548 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d23550 2
a23551 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d23554 3
a23556 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d23561 2
a23562 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23578 2
a23579 2
{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
d23602 7
a23608 7
    #include <stdio.h>
    #if defined(HAVE_NDBM_H)
    #include <ndbm.h>
    #elif defined(HAVE_DBM_H)
    #include <dbm.h>
    #endif
    DBM *dbm;
d23619 2
a23620 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d23626 14
a23639 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a23644 1

d23646 1
a23646 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d23663 3
a23665 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d23691 1
a23691 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d23694 1
d23696 2
d23702 1
a23702 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d23704 5
d23714 1
a23714 1
return $ac_func ();
d23720 2
a23721 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d23727 14
a23740 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d23746 1
a23746 1
	eval "$as_ac_var=no"
d23748 1
a23748 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d23751 2
a23752 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23775 2
a23776 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d23781 2
a23782 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d23795 2
a23796 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d23802 6
a23807 6
    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
      else
        LIB_NDBM=""
      fi
d23812 6
a23817 6
      have_ndbm=yes
      if test "$db_type" = "unknown"; then
        db_type=ndbm
        DBLIB="$LIB_NDBM"
      fi
    else
d23819 2
a23820 2
      $as_unset ac_cv_func_dbm_firstkey
      $as_unset ac_cv_funclib_dbm_firstkey
d23824 1
a23824 1
  	  gdbm/ndbm.h				\
d23828 4
a23831 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d23834 2
a23835 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23838 2
a23839 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d23850 2
a23851 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d23857 14
a23870 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d23876 1
a23876 1
	ac_header_compiler=no
d23878 3
a23880 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d23883 2
a23884 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d23893 2
a23894 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d23900 11
a23910 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a23917 1

d23919 2
a23920 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d23944 5
a23948 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d23950 2
a23951 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d23954 3
a23956 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d23961 2
a23962 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d23978 2
a23979 2
{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
d24002 3
a24004 3
      #include <stdio.h>
      #include <gdbm/ndbm.h>
      DBM *dbm;
d24015 2
a24016 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d24022 14
a24035 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a24040 1

d24042 1
a24042 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d24059 3
a24061 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d24087 1
a24087 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d24090 1
d24092 2
d24098 1
a24098 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d24100 5
d24110 1
a24110 1
return $ac_func ();
d24116 2
a24117 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d24123 14
a24136 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d24142 1
a24142 1
	eval "$as_ac_var=no"
d24144 1
a24144 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d24147 2
a24148 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d24171 2
a24172 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d24177 2
a24178 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d24191 2
a24192 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d24198 6
a24203 6
      if test "$ac_cv_func_dbm_firstkey" = "yes"; then
        if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
  	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
        else
  	LIB_NDBM=""
        fi
d24208 4
a24211 5
        have_ndbm=yes
        if test "$db_type" = "unknown"; then
  	db_type=ndbm
  	DBLIB="$LIB_NDBM"
        fi
d24214 2
a24215 1
  fi #enable_ndbm_db
d24219 2
a24220 2
  { echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6; }
d24244 1
a24244 1
int main(int argc, char **argv)
d24256 2
a24257 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d24261 2
a24262 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d24268 2
a24269 2
      { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d24276 2
a24277 2
      { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d24285 4
a24288 2
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a24289 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a24292 1
fi
d24294 1
a24294 1
 if test "$db_type" = db1; then
d24301 3
a24303 1
 if test "$db_type" = db3; then
d24310 3
a24312 1
 if test "$db_type" = ndbm; then
d24334 2
a24335 2
{ echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
d24355 2
a24356 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24362 15
a24376 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_inline=$ac_kw
a24380 1

d24382 1
a24382 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
d24386 2
a24387 2
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
d24405 2
a24406 2
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d24424 1
a24424 1
  const charset cs;
d24426 2
a24427 2
  char const *const *pcpcc;
  char **ppc;
d24436 1
a24436 1
  pcpcc = &g + (g ? g-g : 0);
d24438 3
a24440 3
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
a24445 1
    if (s) return 0;
a24463 1
    if (!foo) return 0;
a24464 1
  return !cs[0] && !zero.x;
d24472 2
a24473 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24479 14
a24492 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d24498 1
a24498 1
	ac_cv_c_const=no
d24500 1
a24500 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24502 2
a24503 2
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6; }
d24512 2
a24513 2
{ echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
a24523 1
typedef size_t ac__type_new_;
d24527 1
a24527 1
if ((ac__type_new_ *) 0)
d24529 1
a24529 1
if (sizeof (ac__type_new_))
d24536 2
a24537 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24543 14
a24556 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d24562 1
a24562 1
	ac_cv_type_size_t=no
d24564 1
a24564 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24566 2
a24567 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d24573 1
a24573 1
#define size_t unsigned int
d24578 2
a24579 2
{ echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
a24589 1
typedef pid_t ac__type_new_;
d24593 1
a24593 1
if ((ac__type_new_ *) 0)
d24595 1
a24595 1
if (sizeof (ac__type_new_))
d24602 2
a24603 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24609 14
a24622 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d24628 1
a24628 1
	ac_cv_type_pid_t=no
d24630 1
a24630 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24632 2
a24633 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d24644 2
a24645 2
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
d24667 2
a24668 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
d24683 2
a24684 2
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d24696 8
d24708 1
a24708 1
return *(signal (0, 0)) (0) == 1;
d24714 2
a24715 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24721 15
a24735 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_signal=int
d24740 1
a24740 1
	ac_cv_type_signal=void
d24742 1
a24742 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24744 2
a24745 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d24763 2
a24764 2
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
d24788 2
a24789 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24795 14
a24808 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d24814 1
a24814 1
	ac_cv_header_time=no
d24816 1
a24816 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24818 2
a24819 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6; }
d24833 4
a24836 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d24839 2
a24840 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d24843 2
a24844 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d24855 2
a24856 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d24862 14
a24875 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d24881 1
a24881 1
	ac_header_compiler=no
d24883 3
a24885 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d24888 2
a24889 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d24898 2
a24899 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d24905 11
a24915 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a24922 1

d24924 2
a24925 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d24949 5
a24953 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d24955 2
a24956 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d24959 3
a24961 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d24966 2
a24967 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d24983 3
a24985 3
{ echo "$as_me:$LINENO: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6; }
if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
d24994 1
a24994 1

d25001 2
a25002 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d25008 11
a25018 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a25025 1

d25028 2
a25029 3
ac_res=`eval echo '${'ac_cv_header_$cv'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d25045 4
a25048 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d25051 2
a25052 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d25055 2
a25056 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d25067 2
a25068 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25074 14
a25087 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d25093 1
a25093 1
	ac_header_compiler=no
d25095 3
a25097 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d25100 2
a25101 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d25110 2
a25111 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d25117 11
a25127 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a25134 1

d25136 2
a25137 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d25161 5
a25165 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d25167 2
a25168 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d25171 3
a25173 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d25178 2
a25179 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d25199 3
a25201 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d25227 1
a25227 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d25230 1
d25232 2
d25238 1
a25238 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d25240 5
d25250 1
a25250 1
return $ac_func ();
d25256 2
a25257 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d25263 14
a25276 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d25282 1
a25282 1
	eval "$as_ac_var=no"
d25284 1
a25284 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d25287 2
a25288 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d25298 2
a25299 2
{ echo "$as_me:$LINENO: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6; }
d25311 2
a25312 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6; }
d25327 4
a25330 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d25333 2
a25334 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d25337 2
a25338 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d25349 2
a25350 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25356 14
a25369 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d25375 1
a25375 1
	ac_header_compiler=no
d25377 3
a25379 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d25382 2
a25383 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d25392 2
a25393 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d25399 11
a25409 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a25416 1

d25418 2
a25419 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d25443 5
a25447 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d25449 2
a25450 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d25453 3
a25455 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d25460 2
a25461 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d25477 3
a25479 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d25505 1
a25505 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d25508 1
d25510 2
d25516 1
a25516 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d25518 5
d25528 1
a25528 1
return $ac_func ();
d25534 2
a25535 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d25541 14
a25554 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d25560 1
a25560 1
	eval "$as_ac_var=no"
d25562 1
a25562 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d25565 2
a25566 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d25575 2
a25576 2
{ echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
d25618 1
a25618 1
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
d25623 1
a25623 1
#ifndef HAVE_GETPAGESIZE
d25625 1
a25625 1
# ifndef HAVE_SYS_PARAM_H
d25632 1
a25632 1
#  ifdef HAVE_SYS_PARAM_H
d25671 1
a25671 1
    return 1;
d25677 1
a25677 1
    return 1;
d25679 1
a25679 1
    return 1;
d25687 1
a25687 1
    return 1;
d25690 2
a25691 2
    return 1;
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
d25694 1
a25694 1
    return 1;
d25697 1
a25697 1
      return 1;
d25706 1
a25706 1
    return 1;
d25708 1
a25708 1
    return 1;
d25711 1
a25711 1
      return 1;
d25713 1
a25713 1
  return 0;
d25717 2
a25718 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d25722 2
a25723 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25736 1
a25736 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a25737 2


d25739 2
a25740 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
d25751 2
a25752 2
{ echo "$as_me:$LINENO: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6; }
d25771 1
a25771 1
int main(int argc, char **argv)
d25778 2
a25779 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d25783 2
a25784 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d25797 1
a25797 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a25799 2


d25801 2
a25802 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6; }
a25833 10

# Check whether --enable-developer was given.
if test "${enable_developer+set}" = set; then
  enableval=$enable_developer;
fi

if test "X$enable_developer" = Xyes; then
    dwflags="-Werror"
fi

d25842 1
a25842 1
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
d25855 3
a25857 3
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a25865 1

d25881 2
a25882 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25888 14
a25901 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d25907 1
a25907 1
	eval "ac_cv_type_$cv=no"
d25909 1
a25909 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25912 2
a25913 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d25917 2
a25918 2
	{ echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
a25928 1
typedef ssize_t ac__type_new_;
d25932 1
a25932 1
if ((ac__type_new_ *) 0)
d25934 1
a25934 1
if (sizeof (ac__type_new_))
d25941 2
a25942 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d25948 14
a25961 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d25967 1
a25967 1
	ac_cv_type_ssize_t=no
d25969 1
a25969 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25971 2
a25972 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
d25995 3
a25997 3
{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a26005 1

d26021 2
a26022 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26028 14
a26041 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d26047 1
a26047 1
	eval "ac_cv_type_$cv=no"
d26049 1
a26049 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26052 2
a26053 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d26057 2
a26058 2
	{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
a26068 1
typedef long long ac__type_new_;
d26072 1
a26072 1
if ((ac__type_new_ *) 0)
d26074 1
a26074 1
if (sizeof (ac__type_new_))
d26081 2
a26082 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26088 14
a26101 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d26107 1
a26107 1
	ac_cv_type_long_long=no
d26109 1
a26109 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d26111 2
a26112 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
d26175 6
d26183 1
a26189 1
	fnmatch.h				\
d26192 2
d26198 1
a26199 1
	poll.h					\
d26201 1
a26203 1
	stdint.h				\
d26208 1
d26210 1
d26213 1
d26226 1
d26230 4
a26233 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d26236 2
a26237 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d26240 2
a26241 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d26252 2
a26253 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d26259 14
a26272 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d26278 1
a26278 1
	ac_header_compiler=no
d26280 3
a26282 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d26285 2
a26286 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d26295 2
a26296 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d26302 11
a26312 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a26319 1

d26321 2
a26322 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d26346 5
a26350 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d26352 2
a26353 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d26356 3
a26358 550
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'`
{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
int
main ()
{
uintptr_t foo;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_type_$cv=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_type_$cv=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
if test "$ac_foo" = yes; then
  ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
	{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
if test "${ac_cv_type_uintptr_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef uintptr_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_uintptr_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uintptr_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
if test $ac_cv_type_uintptr_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi

fi

cat >>confdefs.h <<_ACEOF
#define $ac_tr_hdr 1
_ACEOF

fi



for ac_header in vis.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <vis.h>
#ifndef VIS_SP
#error invis
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in netdb.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/socket.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in net/if.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in netinet6/in6_var.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET6_IN6_H
#include <netinet6/in6.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/sysctl.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/proc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d26361 1
a26361 37
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
d26363 2
a26365 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a26366 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d26379 3
a26381 1
 if test "$ac_cv_header_err_h" = yes; then
d26389 13
a26401 1
 if test "$ac_cv_header_ifaddrs_h" = yes; then
d26409 3
a26411 1
 if test "$ac_cv_header_vis_h" = yes; then
d26425 2
a26426 2
{ echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
d26458 2
a26459 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d26465 14
a26478 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a26483 1

d26485 1
a26485 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d26502 3
a26504 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d26530 1
a26530 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d26533 1
d26535 2
d26541 1
a26541 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d26543 5
d26553 1
a26553 1
return $ac_func ();
d26559 2
a26560 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d26566 14
a26579 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d26585 1
a26585 1
	eval "$as_ac_var=no"
d26587 1
a26587 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d26590 2
a26591 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d26614 2
a26615 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d26620 2
a26621 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d26634 2
a26635 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d26648 2
a26649 2
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
d26681 2
a26682 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d26688 14
a26701 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a26706 1

d26708 1
a26708 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d26725 3
a26727 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d26753 1
a26753 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d26756 1
d26758 2
d26764 1
a26764 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d26766 5
d26776 1
a26776 1
return $ac_func ();
d26782 2
a26783 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d26789 14
a26802 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d26808 1
a26808 1
	eval "$as_ac_var=no"
d26810 1
a26810 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d26813 2
a26814 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d26837 2
a26838 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d26843 2
a26844 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d26857 2
a26858 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d26871 2
a26872 2
{ echo "$as_me:$LINENO: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
d26904 2
a26905 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d26911 14
a26924 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a26929 1

d26931 1
a26931 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d26948 3
a26950 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d26976 1
a26976 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d26979 1
d26981 2
d26987 1
a26987 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d26989 5
d26999 1
a26999 1
return $ac_func ();
d27005 2
a27006 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27012 14
a27025 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d27031 1
a27031 1
	eval "$as_ac_var=no"
d27033 1
a27033 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27036 2
a27037 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d27060 2
a27061 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d27066 2
a27067 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d27080 2
a27081 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d27093 1
a27093 1
# Check whether --with-ipv6 was given.
d27095 2
a27096 1
  withval=$with_ipv6;
d27100 1
a27100 2
fi

d27102 2
a27103 2
{ echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6; }
d27244 2
a27245 2
{ echo "$as_me:$LINENO: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6; }
d27247 2
a27248 2
{ echo "$as_me:$LINENO: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6; }
d27292 2
a27293 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27299 14
a27312 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d27318 1
a27318 1
	ac_cv_lib_ipv6=no
d27320 1
a27320 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27323 2
a27324 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6; }
d27337 2
a27338 2
	{ echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6; }
d27374 2
a27375 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27381 14
a27394 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d27400 1
a27400 1
	ac_cv_var_in6addr_loopback=no
d27402 1
a27402 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27405 2
a27406 2
{ echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6; }
d27421 2
a27422 2
{ echo "$as_me:$LINENO: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6; }
d27454 2
a27455 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27461 14
a27474 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a27479 1

d27481 1
a27481 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27498 3
a27500 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d27526 1
a27526 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d27529 1
d27531 2
d27537 1
a27537 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d27539 5
d27549 1
a27549 1
return $ac_func ();
d27555 2
a27556 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27562 14
a27575 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d27581 1
a27581 1
	eval "$as_ac_var=no"
d27583 1
a27583 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27586 2
a27587 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d27610 2
a27611 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d27616 2
a27617 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d27630 2
a27631 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
a27643 445
for ac_header in arpa/nameser.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in resolv.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done






{ echo "$as_me:$LINENO: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
if test "${ac_cv_funclib_res_search+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int
main ()
{
res_search(0,0,0,0,0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_search"

if false; then

for ac_func in res_search
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi





d27645 3
a27647 3
{ echo "$as_me:$LINENO: checking for res_nsearch" >&5
echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6; }
if test "${ac_cv_funclib_res_nsearch+set}" = set; then
d27651 1
a27651 1
if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
d27686 1
a27686 1
res_nsearch(0,0,0,0,0,0)
d27692 2
a27693 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27699 15
a27713 6
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
a27717 1

d27719 1
a27719 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27722 1
a27722 1
	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
d27729 1
a27729 1
eval "ac_res=\$ac_cv_funclib_res_nsearch"
d27733 1
a27733 1
for ac_func in res_nsearch
d27736 3
a27738 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d27764 1
a27764 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d27767 1
d27769 2
d27775 1
a27775 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d27777 5
d27787 1
a27787 1
return $ac_func ();
d27793 2
a27794 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27800 14
a27813 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d27819 1
a27819 1
	eval "$as_ac_var=no"
d27821 1
a27821 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27824 2
a27825 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d27835 2
a27836 2
# res_nsearch
eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d27838 1
a27838 1
eval "LIB_res_nsearch=$ac_res"
d27842 2
a27843 2
	eval "ac_cv_func_res_nsearch=yes"
	eval "LIB_res_nsearch="
d27848 2
a27849 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d27852 4
a27855 4
	eval "ac_cv_func_res_nsearch=no"
	eval "LIB_res_nsearch="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d27858 1
a27858 1
	eval "ac_cv_func_res_nsearch=yes"
d27868 2
a27869 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d27874 2
a27875 2
if test -n "$LIB_res_nsearch"; then
	LIBS="$LIB_res_nsearch $LIBS"
d27883 3
a27885 3
{ echo "$as_me:$LINENO: checking for res_ndestroy" >&5
echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
if test "${ac_cv_funclib_res_ndestroy+set}" = set; then
d27889 1
a27889 1
if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
d27924 1
a27924 1
res_ndestroy(0)
d27930 2
a27931 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d27937 15
a27951 6
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
a27955 1

d27957 1
a27957 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d27960 1
a27960 1
	eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
d27967 1
a27967 1
eval "ac_res=\$ac_cv_funclib_res_ndestroy"
d27971 1
a27971 1
for ac_func in res_ndestroy
d27974 3
a27976 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d28002 1
a28002 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d28005 1
d28007 2
d28013 1
a28013 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d28015 5
d28025 1
a28025 1
return $ac_func ();
d28031 2
a28032 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d28038 14
a28051 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d28057 1
a28057 1
	eval "$as_ac_var=no"
d28059 1
a28059 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d28062 2
a28063 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d28073 2
a28074 2
# res_ndestroy
eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d28076 1
a28076 1
eval "LIB_res_ndestroy=$ac_res"
d28080 2
a28081 2
	eval "ac_cv_func_res_ndestroy=yes"
	eval "LIB_res_ndestroy="
d28086 2
a28087 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d28090 4
a28093 4
	eval "ac_cv_func_res_ndestroy=no"
	eval "LIB_res_ndestroy="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d28096 1
a28096 1
	eval "ac_cv_func_res_ndestroy=yes"
d28106 2
a28107 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d28112 2
a28113 2
if test -n "$LIB_res_ndestroy"; then
	LIBS="$LIB_res_ndestroy $LIBS"
d28121 2
a28122 2
{ echo "$as_me:$LINENO: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6; }
d28168 2
a28169 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d28175 14
a28188 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a28193 1

d28195 1
a28195 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d28212 3
a28214 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d28240 1
a28240 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d28243 1
d28245 2
d28251 1
a28251 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d28253 5
d28263 1
a28263 1
return $ac_func ();
d28269 2
a28270 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d28276 14
a28289 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d28295 1
a28295 1
	eval "$as_ac_var=no"
d28297 1
a28297 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d28300 2
a28301 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d28324 2
a28325 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d28330 2
a28331 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d28344 2
a28345 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d28356 2
a28357 2
{ echo "$as_me:$LINENO: checking for _res" >&5
echo $ECHO_N "checking for _res... $ECHO_C" >&6; }
d28382 1
a28382 1
	void * foo(void) { return &_res; }
d28392 2
a28393 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d28399 14
a28412 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d28418 1
a28418 1
	ac_cv_var__res=no
d28420 1
a28420 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d28430 1
a28430 1
int foo(void) { return _res; }
d28440 2
a28441 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d28447 14
a28460 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d28466 1
a28466 1
	ac_cv_var__res=no
d28468 1
a28468 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d28475 2
a28476 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d28483 4
a28486 3
	{ echo "$as_me:$LINENO: checking whether _res is declared" >&5
echo $ECHO_N "checking whether _res is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl__res+set}" = set; then
d28489 2
a28490 1
  cat >conftest.$ac_ext <<_ACEOF
d28509 1
a28509 1

d28513 1
a28513 4
#ifndef _res
  (void) _res;
#endif

d28519 2
a28520 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28526 15
a28540 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl__res=yes
d28545 1
a28545 1
	ac_cv_have_decl__res=no
d28547 1
a28548 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a28549 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__res" >&5
echo "${ECHO_T}$ac_cv_have_decl__res" >&6; }
if test $ac_cv_have_decl__res = yes; then
a28550 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__RES 1
_ACEOF
d28553 7
a28559 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__RES 0
a28561 1

d28570 2
a28571 3

{ echo "$as_me:$LINENO: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
d28588 1
a28588 1
int main(int argc, char **argv)
d28592 1
a28592 1
	return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
d28596 2
a28597 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d28601 2
a28602 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28615 1
a28615 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a28616 2


d28618 2
a28619 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6; }
d28631 2
a28632 2
{ echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6; }
a28642 2
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
d28646 4
a28649 1
snprintf(&xx)
d28655 2
a28656 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28662 14
a28675 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d28681 1
a28681 1
	eval "ac_cv_func_snprintf_noproto=no"
d28683 1
a28683 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28685 2
a28686 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6; }
d28699 2
a28700 2
{ echo "$as_me:$LINENO: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
a28728 9
int bar(int num, int len, ...)
{
	int r;
	va_list arg;
	va_start(arg, len);
	r = vsnprintf(NULL, 0, "%s", arg);
	va_end(arg);
	return r != len;
}
d28730 1
a28730 1
int main(int argc, char **argv)
d28732 1
a28732 1
	return foo(0, "12") || bar(0, 2, "12");
d28736 2
a28737 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d28741 2
a28742 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d28755 1
a28755 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a28756 2


d28758 2
a28759 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6; }
d28771 2
a28772 2
{ echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6; }
a28782 2
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
d28786 4
a28789 1
vsnprintf(&xx)
d28795 2
a28796 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28802 14
a28815 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d28821 1
a28821 1
	eval "ac_cv_func_vsnprintf_noproto=no"
d28823 1
a28823 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28825 2
a28826 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6; }
d28840 2
a28841 2
{ echo "$as_me:$LINENO: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6; }
d28873 2
a28874 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d28880 14
a28893 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d28899 1
a28899 1
	ac_cv_func_glob_working=no
d28901 1
a28901 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d28904 2
a28905 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6; }
d28917 2
a28918 2
{ echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6; }
a28929 2
struct foo { int foo; } xx;
extern int glob (struct foo*);
d28933 4
a28936 1
glob(&xx)
d28942 2
a28943 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d28949 14
a28962 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d28968 1
a28968 1
	eval "ac_cv_func_glob_noproto=no"
d28970 1
a28970 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d28972 2
a28973 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6; }
d28986 4
a28989 1
	case " $LIBOBJS " in
d28991 1
a28991 2
  *) LIBOBJS="$LIBOBJS glob.$ac_objext"
 ;;
d28995 3
a28997 1
 if test "$ac_cv_func_glob_working" = yes; then
a29032 1

a29044 1
	poll					\
d29063 3
a29065 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d29091 1
a29091 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d29094 1
d29096 2
d29102 1
a29102 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d29104 5
d29114 1
a29114 1
return $ac_func ();
d29120 2
a29121 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d29127 14
a29140 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d29146 1
a29146 1
	eval "$as_ac_var=no"
d29148 1
a29148 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d29151 2
a29152 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d29163 4
a29166 1
	case " $LIBOBJS " in
d29168 1
a29168 2
  *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
 ;;
a29171 8
 if test "$ac_cv_func_cgetent" = yes; then
  have_cgetent_TRUE=
  have_cgetent_FALSE='#'
else
  have_cgetent_TRUE='#'
  have_cgetent_FALSE=
fi

d29180 2
a29181 2
{ echo "$as_me:$LINENO: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6; }
d29218 2
a29219 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d29225 14
a29238 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a29243 1

d29245 1
a29245 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d29262 3
a29264 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d29290 1
a29290 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d29293 1
d29295 2
d29301 1
a29301 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d29303 5
d29313 1
a29313 1
return $ac_func ();
d29319 2
a29320 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d29326 14
a29339 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d29345 1
a29345 1
	eval "$as_ac_var=no"
d29347 1
a29347 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d29350 2
a29351 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d29374 2
a29375 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d29380 2
a29381 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d29394 2
a29395 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d29403 2
a29404 2
{ echo "$as_me:$LINENO: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
d29441 2
a29442 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d29448 14
a29461 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a29466 1

d29468 1
a29468 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d29485 3
a29487 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d29513 1
a29513 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d29516 1
d29518 2
d29524 1
a29524 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d29526 5
d29536 1
a29536 1
return $ac_func ();
d29542 2
a29543 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d29549 14
a29562 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d29568 1
a29568 1
	eval "$as_ac_var=no"
d29570 1
a29570 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d29573 2
a29574 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d29597 2
a29598 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d29603 2
a29604 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d29617 2
a29618 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d29628 2
a29629 2
{ echo "$as_me:$LINENO: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
d29663 2
a29664 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d29670 14
a29683 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a29688 1

d29690 1
a29690 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d29707 3
a29709 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d29735 1
a29735 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d29738 1
d29740 2
d29746 1
a29746 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d29748 5
d29758 1
a29758 1
return $ac_func ();
d29764 2
a29765 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d29771 14
a29784 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d29790 1
a29790 1
	eval "$as_ac_var=no"
d29792 1
a29792 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d29795 2
a29796 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d29819 2
a29820 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d29825 2
a29826 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d29839 2
a29840 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d29850 4
a29853 1
	case " $LIBOBJS " in
d29855 1
a29855 2
  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
 ;;
d29862 2
a29863 2
{ echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6; }
a29876 2
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
d29880 4
a29883 1
hstrerror(&xx)
d29889 2
a29890 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29896 14
a29909 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d29915 1
a29915 1
	eval "ac_cv_func_hstrerror_noproto=no"
d29917 1
a29917 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29919 2
a29920 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6; }
d29933 2
a29934 2
{ echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6; }
a29946 2
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
d29950 4
a29953 1
asprintf(&xx)
d29959 2
a29960 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d29966 14
a29979 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d29985 1
a29985 1
	eval "ac_cv_func_asprintf_noproto=no"
d29987 1
a29987 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d29989 2
a29990 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6; }
d30001 2
a30002 2
{ echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6; }
a30014 2
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
d30018 4
a30021 1
vasprintf(&xx)
d30027 2
a30028 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d30034 14
a30047 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d30053 1
a30053 1
	eval "ac_cv_func_vasprintf_noproto=no"
d30055 1
a30055 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d30057 2
a30058 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6; }
d30069 2
a30070 2
{ echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6; }
a30082 2
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
d30086 4
a30089 1
asnprintf(&xx)
d30095 2
a30096 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d30102 14
a30115 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d30121 1
a30121 1
	eval "ac_cv_func_asnprintf_noproto=no"
d30123 1
a30123 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d30125 2
a30126 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6; }
d30137 2
a30138 2
{ echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6; }
a30150 2
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
d30154 4
a30157 1
vasnprintf(&xx)
d30163 2
a30164 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d30170 14
a30183 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d30189 1
a30189 1
	eval "ac_cv_func_vasnprintf_noproto=no"
d30191 1
a30191 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d30193 2
a30194 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6; }
d30208 2
a30209 2
{ echo "$as_me:$LINENO: checking for bswap16" >&5
echo $ECHO_N "checking for bswap16... $ECHO_C" >&6; }
d30241 20
a30260 9
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
a30261 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d30263 1
a30263 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a30268 1

d30270 1
a30270 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d30287 3
a30289 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d30315 1
a30315 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d30318 1
d30320 2
d30326 1
a30326 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d30328 5
d30338 1
a30338 1
return $ac_func ();
d30344 2
a30345 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30351 14
a30364 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d30370 1
a30370 1
	eval "$as_ac_var=no"
d30372 1
a30372 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d30375 2
a30376 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d30399 2
a30400 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d30405 2
a30406 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d30419 2
a30420 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d30429 2
a30430 2
{ echo "$as_me:$LINENO: checking for bswap32" >&5
echo $ECHO_N "checking for bswap32... $ECHO_C" >&6; }
d30464 2
a30465 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30471 14
a30484 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a30489 1

d30491 1
a30491 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d30508 3
a30510 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d30536 1
a30536 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d30539 1
d30541 2
d30547 1
a30547 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d30549 5
d30559 1
a30559 1
return $ac_func ();
d30565 2
a30566 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30572 14
a30585 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d30591 1
a30591 1
	eval "$as_ac_var=no"
d30593 1
a30593 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d30596 2
a30597 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d30620 2
a30621 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d30626 2
a30627 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d30640 2
a30641 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d30650 2
a30651 2
{ echo "$as_me:$LINENO: checking for pidfile" >&5
echo $ECHO_N "checking for pidfile... $ECHO_C" >&6; }
d30685 2
a30686 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30692 14
a30705 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a30710 1

d30712 1
a30712 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d30729 3
a30731 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d30757 1
a30757 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d30760 1
d30762 2
d30768 1
a30768 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d30770 5
d30780 1
a30780 1
return $ac_func ();
d30786 2
a30787 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30793 14
a30806 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d30812 1
a30812 1
	eval "$as_ac_var=no"
d30814 1
a30814 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d30817 2
a30818 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d30841 2
a30842 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d30847 2
a30848 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d30861 2
a30862 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d30872 2
a30873 2
{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
d30907 2
a30908 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d30914 14
a30927 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a30932 1

d30934 1
a30934 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d30951 3
a30953 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d30979 1
a30979 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d30982 1
d30984 2
d30990 1
a30990 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d30992 5
d31002 1
a31002 1
return $ac_func ();
d31008 2
a31009 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31015 14
a31028 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d31034 1
a31034 1
	eval "$as_ac_var=no"
d31036 1
a31036 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31039 2
a31040 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d31063 2
a31064 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d31069 2
a31070 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d31083 2
a31084 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d31094 4
a31097 1
	case " $LIBOBJS " in
d31099 1
a31099 2
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
 ;;
d31109 2
a31110 2
{ echo "$as_me:$LINENO: checking for getnameinfo" >&5
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
d31144 2
a31145 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31151 14
a31164 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a31169 1

d31171 1
a31171 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31188 3
a31190 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d31216 1
a31216 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d31219 1
d31221 2
d31227 1
a31227 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d31229 5
d31239 1
a31239 1
return $ac_func ();
d31245 2
a31246 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31252 14
a31265 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d31271 1
a31271 1
	eval "$as_ac_var=no"
d31273 1
a31273 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31276 2
a31277 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d31300 2
a31301 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d31306 2
a31307 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d31320 2
a31321 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d31331 4
a31334 1
	case " $LIBOBJS " in
d31336 1
a31336 2
  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
 ;;
d31346 2
a31347 2
{ echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6; }
d31381 2
a31382 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31388 14
a31401 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a31406 1

d31408 1
a31408 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31425 3
a31427 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d31453 1
a31453 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d31456 1
d31458 2
d31464 1
a31464 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d31466 5
d31476 1
a31476 1
return $ac_func ();
d31482 2
a31483 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31489 14
a31502 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d31508 1
a31508 1
	eval "$as_ac_var=no"
d31510 1
a31510 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31513 2
a31514 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d31537 2
a31538 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d31543 2
a31544 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d31557 2
a31558 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d31568 4
a31571 1
	case " $LIBOBJS " in
d31573 1
a31573 2
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
 ;;
d31583 2
a31584 2
{ echo "$as_me:$LINENO: checking for gai_strerror" >&5
echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
d31618 2
a31619 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31625 14
a31638 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a31643 1

d31645 1
a31645 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31662 3
a31664 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d31690 1
a31690 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d31693 1
d31695 2
d31701 1
a31701 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d31703 5
d31713 1
a31713 1
return $ac_func ();
d31719 2
a31720 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31726 14
a31739 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d31745 1
a31745 1
	eval "$as_ac_var=no"
d31747 1
a31747 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31750 2
a31751 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d31774 2
a31775 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d31780 2
a31781 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d31794 2
a31795 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d31805 4
a31808 1
	case " $LIBOBJS " in
d31810 1
a31810 2
  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
 ;;
d31816 2
a31817 2
{ echo "$as_me:$LINENO: checking for chown" >&5
echo $ECHO_N "checking for chown... $ECHO_C" >&6; }
d31844 1
a31844 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d31847 1
d31849 2
d31855 1
a31855 1
#if defined __stub_chown || defined __stub___chown
d31857 5
d31867 1
a31867 1
return chown ();
d31873 2
a31874 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31880 14
a31893 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d31899 1
a31899 1
	ac_cv_func_chown=no
d31901 1
a31901 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d31904 2
a31905 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
echo "${ECHO_T}$ac_cv_func_chown" >&6; }
d31913 4
a31916 1
  case " $LIBOBJS " in
d31918 1
a31918 2
  *) LIBOBJS="$LIBOBJS chown.$ac_objext"
 ;;
d31922 2
a31923 2
{ echo "$as_me:$LINENO: checking for copyhostent" >&5
echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6; }
d31950 1
a31950 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d31953 1
d31955 2
d31961 1
a31961 1
#if defined __stub_copyhostent || defined __stub___copyhostent
d31963 5
d31973 1
a31973 1
return copyhostent ();
d31979 2
a31980 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d31986 14
a31999 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32005 1
a32005 1
	ac_cv_func_copyhostent=no
d32007 1
a32007 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32010 2
a32011 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
echo "${ECHO_T}$ac_cv_func_copyhostent" >&6; }
d32019 4
a32022 1
  case " $LIBOBJS " in
d32024 1
a32024 97
  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for closefrom" >&5
echo $ECHO_N "checking for closefrom... $ECHO_C" >&6; }
if test "${ac_cv_func_closefrom+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define closefrom to an innocuous variant, in case <limits.h> declares closefrom.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define closefrom innocuous_closefrom

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char closefrom (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef closefrom

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char closefrom ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_closefrom || defined __stub___closefrom
choke me
#endif

int
main ()
{
return closefrom ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_closefrom=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_closefrom=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_closefrom" >&5
echo "${ECHO_T}$ac_cv_func_closefrom" >&6; }
if test $ac_cv_func_closefrom = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_CLOSEFROM 1
_ACEOF

else
  case " $LIBOBJS " in
  *" closefrom.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
 ;;
d32028 2
a32029 2
{ echo "$as_me:$LINENO: checking for daemon" >&5
echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
d32056 1
a32056 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32059 1
d32061 2
d32067 1
a32067 1
#if defined __stub_daemon || defined __stub___daemon
d32069 5
d32079 1
a32079 1
return daemon ();
d32085 2
a32086 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32092 14
a32105 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32111 1
a32111 1
	ac_cv_func_daemon=no
d32113 1
a32113 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32116 2
a32117 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
d32125 4
a32128 1
  case " $LIBOBJS " in
d32130 1
a32130 2
  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
 ;;
d32134 2
a32135 2
{ echo "$as_me:$LINENO: checking for ecalloc" >&5
echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6; }
d32162 1
a32162 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32165 1
d32167 2
d32173 1
a32173 1
#if defined __stub_ecalloc || defined __stub___ecalloc
d32175 5
d32185 1
a32185 1
return ecalloc ();
d32191 2
a32192 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32198 14
a32211 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32217 1
a32217 1
	ac_cv_func_ecalloc=no
d32219 1
a32219 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32222 2
a32223 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
echo "${ECHO_T}$ac_cv_func_ecalloc" >&6; }
d32231 4
a32234 1
  case " $LIBOBJS " in
d32236 1
a32236 2
  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
 ;;
d32240 2
a32241 2
{ echo "$as_me:$LINENO: checking for emalloc" >&5
echo $ECHO_N "checking for emalloc... $ECHO_C" >&6; }
d32268 1
a32268 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32271 1
d32273 2
d32279 1
a32279 1
#if defined __stub_emalloc || defined __stub___emalloc
d32281 5
d32291 1
a32291 1
return emalloc ();
d32297 2
a32298 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32304 14
a32317 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32323 1
a32323 1
	ac_cv_func_emalloc=no
d32325 1
a32325 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32328 2
a32329 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
echo "${ECHO_T}$ac_cv_func_emalloc" >&6; }
d32337 4
a32340 1
  case " $LIBOBJS " in
d32342 1
a32342 2
  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
 ;;
d32346 2
a32347 2
{ echo "$as_me:$LINENO: checking for erealloc" >&5
echo $ECHO_N "checking for erealloc... $ECHO_C" >&6; }
d32374 1
a32374 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32377 1
d32379 2
d32385 1
a32385 1
#if defined __stub_erealloc || defined __stub___erealloc
d32387 5
d32397 1
a32397 1
return erealloc ();
d32403 2
a32404 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32410 14
a32423 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32429 1
a32429 1
	ac_cv_func_erealloc=no
d32431 1
a32431 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32434 2
a32435 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
echo "${ECHO_T}$ac_cv_func_erealloc" >&6; }
d32443 4
a32446 1
  case " $LIBOBJS " in
d32448 1
a32448 2
  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
 ;;
d32452 2
a32453 2
{ echo "$as_me:$LINENO: checking for estrdup" >&5
echo $ECHO_N "checking for estrdup... $ECHO_C" >&6; }
d32480 1
a32480 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32483 1
d32485 2
d32491 1
a32491 1
#if defined __stub_estrdup || defined __stub___estrdup
d32493 5
d32503 1
a32503 1
return estrdup ();
d32509 2
a32510 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32516 14
a32529 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32535 1
a32535 1
	ac_cv_func_estrdup=no
d32537 1
a32537 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32540 2
a32541 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
echo "${ECHO_T}$ac_cv_func_estrdup" >&6; }
d32549 4
a32552 1
  case " $LIBOBJS " in
d32554 1
a32554 2
  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
 ;;
d32558 2
a32559 2
{ echo "$as_me:$LINENO: checking for err" >&5
echo $ECHO_N "checking for err... $ECHO_C" >&6; }
d32586 1
a32586 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32589 1
d32591 2
d32597 1
a32597 1
#if defined __stub_err || defined __stub___err
d32599 5
d32609 1
a32609 1
return err ();
d32615 2
a32616 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32622 14
a32635 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32641 1
a32641 1
	ac_cv_func_err=no
d32643 1
a32643 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32646 2
a32647 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
echo "${ECHO_T}$ac_cv_func_err" >&6; }
d32655 4
a32658 1
  case " $LIBOBJS " in
d32660 1
a32660 2
  *) LIBOBJS="$LIBOBJS err.$ac_objext"
 ;;
d32664 2
a32665 2
{ echo "$as_me:$LINENO: checking for errx" >&5
echo $ECHO_N "checking for errx... $ECHO_C" >&6; }
d32692 1
a32692 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32695 1
d32697 2
d32703 1
a32703 1
#if defined __stub_errx || defined __stub___errx
d32705 5
d32715 1
a32715 1
return errx ();
d32721 2
a32722 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32728 14
a32741 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32747 1
a32747 1
	ac_cv_func_errx=no
d32749 1
a32749 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32752 2
a32753 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
echo "${ECHO_T}$ac_cv_func_errx" >&6; }
d32761 4
a32764 1
  case " $LIBOBJS " in
d32766 1
a32766 2
  *) LIBOBJS="$LIBOBJS errx.$ac_objext"
 ;;
d32770 2
a32771 2
{ echo "$as_me:$LINENO: checking for fchown" >&5
echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
d32798 1
a32798 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32801 1
d32803 2
d32809 1
a32809 1
#if defined __stub_fchown || defined __stub___fchown
d32811 5
d32821 1
a32821 1
return fchown ();
d32827 2
a32828 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32834 14
a32847 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32853 1
a32853 1
	ac_cv_func_fchown=no
d32855 1
a32855 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32858 2
a32859 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
d32867 4
a32870 1
  case " $LIBOBJS " in
d32872 1
a32872 2
  *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
 ;;
d32876 2
a32877 2
{ echo "$as_me:$LINENO: checking for flock" >&5
echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
d32904 1
a32904 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d32907 1
d32909 2
d32915 1
a32915 1
#if defined __stub_flock || defined __stub___flock
d32917 5
d32927 1
a32927 1
return flock ();
d32933 2
a32934 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d32940 14
a32953 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d32959 1
a32959 1
	ac_cv_func_flock=no
d32961 1
a32961 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d32964 2
a32965 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
echo "${ECHO_T}$ac_cv_func_flock" >&6; }
d32973 4
a32976 1
  case " $LIBOBJS " in
d32978 1
a32978 2
  *) LIBOBJS="$LIBOBJS flock.$ac_objext"
 ;;
d32982 2
a32983 2
{ echo "$as_me:$LINENO: checking for fnmatch" >&5
echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6; }
d33010 1
a33010 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33013 1
d33015 2
d33021 1
a33021 1
#if defined __stub_fnmatch || defined __stub___fnmatch
d33023 5
d33033 1
a33033 1
return fnmatch ();
d33036 21
a33056 10
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
a33057 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d33059 1
a33059 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33065 1
a33065 1
	ac_cv_func_fnmatch=no
d33067 1
a33067 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33070 2
a33071 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
echo "${ECHO_T}$ac_cv_func_fnmatch" >&6; }
d33079 4
a33082 1
  case " $LIBOBJS " in
d33084 1
a33084 2
  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
 ;;
d33088 2
a33089 2
{ echo "$as_me:$LINENO: checking for freehostent" >&5
echo $ECHO_N "checking for freehostent... $ECHO_C" >&6; }
d33116 1
a33116 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33119 1
d33121 2
d33127 1
a33127 1
#if defined __stub_freehostent || defined __stub___freehostent
d33129 5
d33139 1
a33139 1
return freehostent ();
d33145 2
a33146 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33152 14
a33165 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33171 1
a33171 1
	ac_cv_func_freehostent=no
d33173 1
a33173 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33176 2
a33177 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
echo "${ECHO_T}$ac_cv_func_freehostent" >&6; }
d33185 4
a33188 1
  case " $LIBOBJS " in
d33190 1
a33190 2
  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
 ;;
d33194 2
a33195 2
{ echo "$as_me:$LINENO: checking for getcwd" >&5
echo $ECHO_N "checking for getcwd... $ECHO_C" >&6; }
d33222 1
a33222 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33225 1
d33227 2
d33233 1
a33233 1
#if defined __stub_getcwd || defined __stub___getcwd
d33235 5
d33245 1
a33245 1
return getcwd ();
d33251 2
a33252 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33258 14
a33271 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33277 1
a33277 1
	ac_cv_func_getcwd=no
d33279 1
a33279 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33282 2
a33283 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
echo "${ECHO_T}$ac_cv_func_getcwd" >&6; }
d33291 4
a33294 1
  case " $LIBOBJS " in
d33296 1
a33296 2
  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
 ;;
d33300 2
a33301 2
{ echo "$as_me:$LINENO: checking for getdtablesize" >&5
echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; }
d33328 1
a33328 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33331 1
d33333 2
d33339 1
a33339 1
#if defined __stub_getdtablesize || defined __stub___getdtablesize
d33341 5
d33351 1
a33351 1
return getdtablesize ();
d33357 2
a33358 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33364 14
a33377 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33383 1
a33383 1
	ac_cv_func_getdtablesize=no
d33385 1
a33385 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33388 2
a33389 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; }
d33397 4
a33400 1
  case " $LIBOBJS " in
d33402 1
a33402 2
  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
 ;;
d33406 2
a33407 2
{ echo "$as_me:$LINENO: checking for getegid" >&5
echo $ECHO_N "checking for getegid... $ECHO_C" >&6; }
d33434 1
a33434 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33437 1
d33439 2
d33445 1
a33445 1
#if defined __stub_getegid || defined __stub___getegid
d33447 5
d33457 1
a33457 1
return getegid ();
d33463 2
a33464 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33470 14
a33483 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33489 1
a33489 1
	ac_cv_func_getegid=no
d33491 1
a33491 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33494 2
a33495 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
echo "${ECHO_T}$ac_cv_func_getegid" >&6; }
d33503 4
a33506 1
  case " $LIBOBJS " in
d33508 1
a33508 2
  *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
 ;;
d33512 2
a33513 2
{ echo "$as_me:$LINENO: checking for geteuid" >&5
echo $ECHO_N "checking for geteuid... $ECHO_C" >&6; }
d33540 1
a33540 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33543 1
d33545 2
d33551 1
a33551 1
#if defined __stub_geteuid || defined __stub___geteuid
d33553 5
d33563 1
a33563 1
return geteuid ();
d33569 2
a33570 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33576 14
a33589 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33595 1
a33595 1
	ac_cv_func_geteuid=no
d33597 1
a33597 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33600 2
a33601 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
echo "${ECHO_T}$ac_cv_func_geteuid" >&6; }
d33609 4
a33612 1
  case " $LIBOBJS " in
d33614 1
a33614 2
  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
 ;;
d33618 2
a33619 2
{ echo "$as_me:$LINENO: checking for getgid" >&5
echo $ECHO_N "checking for getgid... $ECHO_C" >&6; }
d33646 1
a33646 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33649 1
d33651 2
d33657 1
a33657 1
#if defined __stub_getgid || defined __stub___getgid
d33659 5
d33669 1
a33669 1
return getgid ();
d33675 2
a33676 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33682 14
a33695 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33701 1
a33701 1
	ac_cv_func_getgid=no
d33703 1
a33703 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33706 2
a33707 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
echo "${ECHO_T}$ac_cv_func_getgid" >&6; }
d33715 4
a33718 1
  case " $LIBOBJS " in
d33720 1
a33720 2
  *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
 ;;
d33724 2
a33725 2
{ echo "$as_me:$LINENO: checking for gethostname" >&5
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; }
d33752 1
a33752 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33755 1
d33757 2
d33763 1
a33763 1
#if defined __stub_gethostname || defined __stub___gethostname
d33765 5
d33775 1
a33775 1
return gethostname ();
d33781 2
a33782 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33788 14
a33801 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33807 1
a33807 1
	ac_cv_func_gethostname=no
d33809 1
a33809 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33812 2
a33813 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
echo "${ECHO_T}$ac_cv_func_gethostname" >&6; }
d33821 4
a33824 1
  case " $LIBOBJS " in
d33826 1
a33826 2
  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
 ;;
d33830 2
a33831 2
{ echo "$as_me:$LINENO: checking for getifaddrs" >&5
echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
d33858 1
a33858 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33861 1
d33863 2
d33869 1
a33869 1
#if defined __stub_getifaddrs || defined __stub___getifaddrs
d33871 5
d33881 1
a33881 1
return getifaddrs ();
d33887 2
a33888 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d33894 14
a33907 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d33913 1
a33913 1
	ac_cv_func_getifaddrs=no
d33915 1
a33915 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d33918 2
a33919 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
d33927 4
a33930 1
  case " $LIBOBJS " in
d33932 1
a33932 2
  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
 ;;
d33936 2
a33937 2
{ echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6; }
d33964 1
a33964 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d33967 1
d33969 2
d33975 1
a33975 1
#if defined __stub_getipnodebyaddr || defined __stub___getipnodebyaddr
d33977 5
d33987 1
a33987 1
return getipnodebyaddr ();
d33993 2
a33994 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34000 14
a34013 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34019 1
a34019 1
	ac_cv_func_getipnodebyaddr=no
d34021 1
a34021 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34024 2
a34025 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6; }
d34033 4
a34036 1
  case " $LIBOBJS " in
d34038 1
a34038 2
  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
 ;;
d34042 2
a34043 2
{ echo "$as_me:$LINENO: checking for getipnodebyname" >&5
echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; }
d34070 1
a34070 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34073 1
d34075 2
d34081 1
a34081 1
#if defined __stub_getipnodebyname || defined __stub___getipnodebyname
d34083 5
d34093 1
a34093 1
return getipnodebyname ();
d34099 2
a34100 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34106 14
a34119 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34125 1
a34125 1
	ac_cv_func_getipnodebyname=no
d34127 1
a34127 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34130 2
a34131 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; }
d34139 4
a34142 1
  case " $LIBOBJS " in
d34144 1
a34144 2
  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
 ;;
d34148 2
a34149 2
{ echo "$as_me:$LINENO: checking for getopt" >&5
echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
d34176 1
a34176 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34179 1
d34181 2
d34187 1
a34187 1
#if defined __stub_getopt || defined __stub___getopt
d34189 5
d34199 1
a34199 1
return getopt ();
d34205 2
a34206 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34212 14
a34225 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34231 1
a34231 1
	ac_cv_func_getopt=no
d34233 1
a34233 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34236 2
a34237 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
d34245 4
a34248 1
  case " $LIBOBJS " in
d34250 1
a34250 2
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
 ;;
d34254 2
a34255 2
{ echo "$as_me:$LINENO: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
d34282 1
a34282 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34285 1
d34287 2
d34293 1
a34293 1
#if defined __stub_gettimeofday || defined __stub___gettimeofday
d34295 5
d34305 1
a34305 1
return gettimeofday ();
d34311 2
a34312 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34318 14
a34331 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34337 1
a34337 1
	ac_cv_func_gettimeofday=no
d34339 1
a34339 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34342 2
a34343 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
d34351 4
a34354 1
  case " $LIBOBJS " in
d34356 1
a34356 2
  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
 ;;
d34360 2
a34361 2
{ echo "$as_me:$LINENO: checking for getuid" >&5
echo $ECHO_N "checking for getuid... $ECHO_C" >&6; }
d34388 1
a34388 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34391 1
d34393 2
d34399 1
a34399 1
#if defined __stub_getuid || defined __stub___getuid
d34401 5
d34411 1
a34411 1
return getuid ();
d34417 2
a34418 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34424 14
a34437 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34443 1
a34443 1
	ac_cv_func_getuid=no
d34445 1
a34445 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34448 2
a34449 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
echo "${ECHO_T}$ac_cv_func_getuid" >&6; }
d34457 4
a34460 1
  case " $LIBOBJS " in
d34462 1
a34462 2
  *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
 ;;
d34466 2
a34467 2
{ echo "$as_me:$LINENO: checking for getusershell" >&5
echo $ECHO_N "checking for getusershell... $ECHO_C" >&6; }
d34494 1
a34494 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34497 1
d34499 2
d34505 1
a34505 1
#if defined __stub_getusershell || defined __stub___getusershell
d34507 5
d34517 1
a34517 1
return getusershell ();
d34523 2
a34524 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34530 14
a34543 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34549 1
a34549 1
	ac_cv_func_getusershell=no
d34551 1
a34551 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34554 2
a34555 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
echo "${ECHO_T}$ac_cv_func_getusershell" >&6; }
d34563 4
a34566 1
  case " $LIBOBJS " in
d34568 1
a34568 2
  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
 ;;
d34572 2
a34573 2
{ echo "$as_me:$LINENO: checking for initgroups" >&5
echo $ECHO_N "checking for initgroups... $ECHO_C" >&6; }
d34600 1
a34600 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34603 1
d34605 2
d34611 1
a34611 1
#if defined __stub_initgroups || defined __stub___initgroups
d34613 5
d34623 1
a34623 1
return initgroups ();
d34629 2
a34630 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34636 14
a34649 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34655 1
a34655 1
	ac_cv_func_initgroups=no
d34657 1
a34657 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34660 2
a34661 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
echo "${ECHO_T}$ac_cv_func_initgroups" >&6; }
d34669 4
a34672 1
  case " $LIBOBJS " in
d34674 1
a34674 2
  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
 ;;
d34678 2
a34679 2
{ echo "$as_me:$LINENO: checking for innetgr" >&5
echo $ECHO_N "checking for innetgr... $ECHO_C" >&6; }
d34706 1
a34706 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34709 1
d34711 2
d34717 1
a34717 1
#if defined __stub_innetgr || defined __stub___innetgr
d34719 5
d34729 1
a34729 1
return innetgr ();
d34735 2
a34736 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34742 14
a34755 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34761 1
a34761 1
	ac_cv_func_innetgr=no
d34763 1
a34763 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34766 2
a34767 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
echo "${ECHO_T}$ac_cv_func_innetgr" >&6; }
d34775 4
a34778 1
  case " $LIBOBJS " in
d34780 1
a34780 2
  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
 ;;
d34784 2
a34785 2
{ echo "$as_me:$LINENO: checking for iruserok" >&5
echo $ECHO_N "checking for iruserok... $ECHO_C" >&6; }
d34812 1
a34812 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34815 1
d34817 2
d34823 1
a34823 1
#if defined __stub_iruserok || defined __stub___iruserok
d34825 5
d34835 1
a34835 1
return iruserok ();
d34841 2
a34842 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34848 14
a34861 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34867 1
a34867 1
	ac_cv_func_iruserok=no
d34869 1
a34869 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34872 2
a34873 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
echo "${ECHO_T}$ac_cv_func_iruserok" >&6; }
d34881 4
a34884 1
  case " $LIBOBJS " in
d34886 1
a34886 2
  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
 ;;
d34890 2
a34891 2
{ echo "$as_me:$LINENO: checking for localtime_r" >&5
echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
d34918 1
a34918 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d34921 1
d34923 2
d34929 1
a34929 1
#if defined __stub_localtime_r || defined __stub___localtime_r
d34931 5
d34941 1
a34941 1
return localtime_r ();
d34947 2
a34948 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d34954 14
a34967 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d34973 1
a34973 1
	ac_cv_func_localtime_r=no
d34975 1
a34975 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d34978 2
a34979 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
d34987 4
a34990 1
  case " $LIBOBJS " in
d34992 1
a34992 2
  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
 ;;
d34996 2
a34997 2
{ echo "$as_me:$LINENO: checking for lstat" >&5
echo $ECHO_N "checking for lstat... $ECHO_C" >&6; }
d35024 1
a35024 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35027 1
d35029 2
d35035 1
a35035 1
#if defined __stub_lstat || defined __stub___lstat
d35037 5
d35047 1
a35047 1
return lstat ();
d35053 2
a35054 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35060 14
a35073 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35079 1
a35079 1
	ac_cv_func_lstat=no
d35081 1
a35081 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35084 2
a35085 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
echo "${ECHO_T}$ac_cv_func_lstat" >&6; }
d35093 4
a35096 1
  case " $LIBOBJS " in
d35098 1
a35098 2
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 ;;
d35102 2
a35103 2
{ echo "$as_me:$LINENO: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
d35130 1
a35130 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35133 1
d35135 2
d35141 1
a35141 1
#if defined __stub_memmove || defined __stub___memmove
d35143 5
d35153 1
a35153 1
return memmove ();
d35159 2
a35160 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35166 14
a35179 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35185 1
a35185 1
	ac_cv_func_memmove=no
d35187 1
a35187 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35190 2
a35191 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
d35199 4
a35202 1
  case " $LIBOBJS " in
d35204 1
a35204 2
  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
 ;;
d35208 2
a35209 2
{ echo "$as_me:$LINENO: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; }
d35236 1
a35236 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35239 1
d35241 2
d35247 1
a35247 1
#if defined __stub_mkstemp || defined __stub___mkstemp
d35249 5
d35259 1
a35259 1
return mkstemp ();
d35265 2
a35266 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35272 14
a35285 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35291 1
a35291 1
	ac_cv_func_mkstemp=no
d35293 1
a35293 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35296 2
a35297 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6; }
d35305 4
a35308 1
  case " $LIBOBJS " in
d35310 1
a35310 2
  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
 ;;
d35314 2
a35315 2
{ echo "$as_me:$LINENO: checking for putenv" >&5
echo $ECHO_N "checking for putenv... $ECHO_C" >&6; }
d35342 1
a35342 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35345 1
d35347 2
d35353 1
a35353 1
#if defined __stub_putenv || defined __stub___putenv
d35355 5
d35365 1
a35365 1
return putenv ();
d35371 2
a35372 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35378 14
a35391 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35397 1
a35397 1
	ac_cv_func_putenv=no
d35399 1
a35399 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35402 2
a35403 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
echo "${ECHO_T}$ac_cv_func_putenv" >&6; }
d35411 4
a35414 1
  case " $LIBOBJS " in
d35416 1
a35416 2
  *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
 ;;
d35420 2
a35421 2
{ echo "$as_me:$LINENO: checking for rcmd" >&5
echo $ECHO_N "checking for rcmd... $ECHO_C" >&6; }
d35448 1
a35448 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35451 1
d35453 2
d35459 1
a35459 1
#if defined __stub_rcmd || defined __stub___rcmd
d35461 5
d35471 1
a35471 1
return rcmd ();
d35477 2
a35478 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35484 14
a35497 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35503 1
a35503 1
	ac_cv_func_rcmd=no
d35505 1
a35505 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35508 2
a35509 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
echo "${ECHO_T}$ac_cv_func_rcmd" >&6; }
d35517 4
a35520 1
  case " $LIBOBJS " in
d35522 1
a35522 2
  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
 ;;
d35526 2
a35527 2
{ echo "$as_me:$LINENO: checking for readv" >&5
echo $ECHO_N "checking for readv... $ECHO_C" >&6; }
d35554 1
a35554 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35557 1
d35559 2
d35565 1
a35565 1
#if defined __stub_readv || defined __stub___readv
d35567 5
d35577 1
a35577 1
return readv ();
d35583 2
a35584 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35590 14
a35603 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35609 1
a35609 1
	ac_cv_func_readv=no
d35611 1
a35611 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35614 2
a35615 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
echo "${ECHO_T}$ac_cv_func_readv" >&6; }
d35623 4
a35626 1
  case " $LIBOBJS " in
d35628 1
a35628 2
  *) LIBOBJS="$LIBOBJS readv.$ac_objext"
 ;;
d35632 2
a35633 2
{ echo "$as_me:$LINENO: checking for recvmsg" >&5
echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6; }
d35660 1
a35660 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35663 1
d35665 2
d35671 1
a35671 1
#if defined __stub_recvmsg || defined __stub___recvmsg
d35673 5
d35683 1
a35683 1
return recvmsg ();
d35689 2
a35690 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35696 14
a35709 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35715 1
a35715 1
	ac_cv_func_recvmsg=no
d35717 1
a35717 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35720 2
a35721 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
echo "${ECHO_T}$ac_cv_func_recvmsg" >&6; }
d35729 4
a35732 1
  case " $LIBOBJS " in
d35734 1
a35734 2
  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
 ;;
d35738 2
a35739 2
{ echo "$as_me:$LINENO: checking for sendmsg" >&5
echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6; }
d35766 1
a35766 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35769 1
d35771 2
d35777 1
a35777 1
#if defined __stub_sendmsg || defined __stub___sendmsg
d35779 5
d35789 1
a35789 1
return sendmsg ();
d35795 2
a35796 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35802 14
a35815 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35821 1
a35821 1
	ac_cv_func_sendmsg=no
d35823 1
a35823 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35826 2
a35827 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
echo "${ECHO_T}$ac_cv_func_sendmsg" >&6; }
d35835 4
a35838 1
  case " $LIBOBJS " in
d35840 1
a35840 2
  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
 ;;
d35844 2
a35845 2
{ echo "$as_me:$LINENO: checking for setegid" >&5
echo $ECHO_N "checking for setegid... $ECHO_C" >&6; }
d35872 1
a35872 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35875 1
d35877 2
d35882 8
a35889 3
    something starting with __ and the normal name is an alias.  */
#if defined __stub_setegid || defined __stub___setegid
choke me
d35895 1
a35895 1
return setegid ();
d35901 2
a35902 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d35908 14
a35921 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d35927 1
a35927 1
	ac_cv_func_setegid=no
d35929 1
a35929 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d35932 2
a35933 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
echo "${ECHO_T}$ac_cv_func_setegid" >&6; }
d35941 4
a35944 1
  case " $LIBOBJS " in
d35946 1
a35946 2
  *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
 ;;
d35950 2
a35951 2
{ echo "$as_me:$LINENO: checking for setenv" >&5
echo $ECHO_N "checking for setenv... $ECHO_C" >&6; }
d35978 1
a35978 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d35981 1
d35983 2
d35989 1
a35989 1
#if defined __stub_setenv || defined __stub___setenv
d35991 5
d36001 1
a36001 1
return setenv ();
d36007 2
a36008 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36014 14
a36027 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36033 1
a36033 1
	ac_cv_func_setenv=no
d36035 1
a36035 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36038 2
a36039 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
echo "${ECHO_T}$ac_cv_func_setenv" >&6; }
d36047 4
a36050 1
  case " $LIBOBJS " in
d36052 1
a36052 2
  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
 ;;
d36056 2
a36057 2
{ echo "$as_me:$LINENO: checking for seteuid" >&5
echo $ECHO_N "checking for seteuid... $ECHO_C" >&6; }
d36084 1
a36084 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36087 1
d36089 2
d36095 1
a36095 1
#if defined __stub_seteuid || defined __stub___seteuid
d36097 5
d36107 1
a36107 1
return seteuid ();
d36113 2
a36114 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36120 14
a36133 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36139 1
a36139 1
	ac_cv_func_seteuid=no
d36141 1
a36141 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36144 2
a36145 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
echo "${ECHO_T}$ac_cv_func_seteuid" >&6; }
d36153 4
a36156 1
  case " $LIBOBJS " in
d36158 1
a36158 2
  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
 ;;
d36162 2
a36163 2
{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
d36190 1
a36190 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36193 1
d36195 2
d36201 1
a36201 1
#if defined __stub_strcasecmp || defined __stub___strcasecmp
d36203 5
d36213 1
a36213 1
return strcasecmp ();
d36219 2
a36220 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36226 14
a36239 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36245 1
a36245 1
	ac_cv_func_strcasecmp=no
d36247 1
a36247 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36250 2
a36251 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
d36259 4
a36262 1
  case " $LIBOBJS " in
d36264 1
a36264 2
  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
 ;;
d36268 2
a36269 2
{ echo "$as_me:$LINENO: checking for strdup" >&5
echo $ECHO_N "checking for strdup... $ECHO_C" >&6; }
d36296 1
a36296 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36299 1
d36301 2
d36307 1
a36307 1
#if defined __stub_strdup || defined __stub___strdup
d36309 5
d36319 1
a36319 1
return strdup ();
d36325 2
a36326 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36332 14
a36345 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36351 1
a36351 1
	ac_cv_func_strdup=no
d36353 1
a36353 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36356 2
a36357 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
echo "${ECHO_T}$ac_cv_func_strdup" >&6; }
d36365 4
a36368 1
  case " $LIBOBJS " in
d36370 1
a36370 2
  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
 ;;
d36374 2
a36375 2
{ echo "$as_me:$LINENO: checking for strerror" >&5
echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
d36402 1
a36402 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36405 1
d36407 2
d36413 1
a36413 1
#if defined __stub_strerror || defined __stub___strerror
d36415 5
d36425 1
a36425 1
return strerror ();
d36431 2
a36432 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36438 14
a36451 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36457 1
a36457 1
	ac_cv_func_strerror=no
d36459 1
a36459 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36462 2
a36463 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
d36471 4
a36474 1
  case " $LIBOBJS " in
d36476 1
a36476 2
  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
 ;;
d36480 2
a36481 2
{ echo "$as_me:$LINENO: checking for strftime" >&5
echo $ECHO_N "checking for strftime... $ECHO_C" >&6; }
d36508 1
a36508 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36511 1
d36513 2
d36519 1
a36519 1
#if defined __stub_strftime || defined __stub___strftime
d36521 5
d36531 1
a36531 1
return strftime ();
d36537 2
a36538 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36544 14
a36557 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36563 1
a36563 1
	ac_cv_func_strftime=no
d36565 1
a36565 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36568 2
a36569 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
echo "${ECHO_T}$ac_cv_func_strftime" >&6; }
d36577 4
a36580 1
  case " $LIBOBJS " in
d36582 1
a36582 2
  *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
 ;;
d36586 2
a36587 2
{ echo "$as_me:$LINENO: checking for strlcat" >&5
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
d36614 1
a36614 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36617 1
d36619 2
d36625 1
a36625 1
#if defined __stub_strlcat || defined __stub___strlcat
d36627 5
d36637 1
a36637 1
return strlcat ();
d36643 2
a36644 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36650 14
a36663 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36669 1
a36669 1
	ac_cv_func_strlcat=no
d36671 1
a36671 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36674 2
a36675 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
d36683 4
a36686 1
  case " $LIBOBJS " in
d36688 1
a36688 2
  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
 ;;
d36692 2
a36693 2
{ echo "$as_me:$LINENO: checking for strlcpy" >&5
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
d36720 1
a36720 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36723 1
d36725 2
d36731 1
a36731 1
#if defined __stub_strlcpy || defined __stub___strlcpy
d36733 5
d36743 1
a36743 1
return strlcpy ();
d36749 2
a36750 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36756 14
a36769 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36775 1
a36775 1
	ac_cv_func_strlcpy=no
d36777 1
a36777 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36780 2
a36781 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
d36789 4
a36792 1
  case " $LIBOBJS " in
d36794 1
a36794 2
  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
 ;;
d36798 2
a36799 2
{ echo "$as_me:$LINENO: checking for strlwr" >&5
echo $ECHO_N "checking for strlwr... $ECHO_C" >&6; }
d36826 1
a36826 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36829 1
d36831 2
d36837 1
a36837 1
#if defined __stub_strlwr || defined __stub___strlwr
d36839 5
d36849 1
a36849 1
return strlwr ();
d36855 2
a36856 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36862 14
a36875 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36881 1
a36881 1
	ac_cv_func_strlwr=no
d36883 1
a36883 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36886 2
a36887 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
echo "${ECHO_T}$ac_cv_func_strlwr" >&6; }
d36895 4
a36898 1
  case " $LIBOBJS " in
d36900 1
a36900 2
  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
 ;;
d36904 2
a36905 2
{ echo "$as_me:$LINENO: checking for strncasecmp" >&5
echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; }
d36932 1
a36932 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d36935 1
d36937 2
d36943 1
a36943 1
#if defined __stub_strncasecmp || defined __stub___strncasecmp
d36945 5
d36955 1
a36955 1
return strncasecmp ();
d36961 2
a36962 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d36968 14
a36981 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d36987 1
a36987 1
	ac_cv_func_strncasecmp=no
d36989 1
a36989 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d36992 2
a36993 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; }
d37001 4
a37004 1
  case " $LIBOBJS " in
d37006 1
a37006 2
  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
 ;;
d37010 2
a37011 2
{ echo "$as_me:$LINENO: checking for strndup" >&5
echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
d37038 1
a37038 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37041 1
d37043 2
d37049 1
a37049 1
#if defined __stub_strndup || defined __stub___strndup
d37051 5
d37061 1
a37061 1
return strndup ();
d37067 2
a37068 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37074 14
a37087 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37093 1
a37093 1
	ac_cv_func_strndup=no
d37095 1
a37095 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37098 2
a37099 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
d37107 4
a37110 1
  case " $LIBOBJS " in
d37112 1
a37112 2
  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
 ;;
d37116 2
a37117 2
{ echo "$as_me:$LINENO: checking for strnlen" >&5
echo $ECHO_N "checking for strnlen... $ECHO_C" >&6; }
d37144 1
a37144 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37147 1
d37149 2
d37155 1
a37155 1
#if defined __stub_strnlen || defined __stub___strnlen
d37157 5
d37167 1
a37167 1
return strnlen ();
d37173 2
a37174 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37180 14
a37193 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37199 1
a37199 1
	ac_cv_func_strnlen=no
d37201 1
a37201 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37204 2
a37205 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
echo "${ECHO_T}$ac_cv_func_strnlen" >&6; }
d37213 4
a37216 1
  case " $LIBOBJS " in
d37218 1
a37218 2
  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
 ;;
d37222 2
a37223 2
{ echo "$as_me:$LINENO: checking for strptime" >&5
echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
d37250 1
a37250 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37253 1
d37255 2
d37261 1
a37261 1
#if defined __stub_strptime || defined __stub___strptime
d37263 5
d37273 1
a37273 1
return strptime ();
d37279 2
a37280 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37286 14
a37299 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37305 1
a37305 1
	ac_cv_func_strptime=no
d37307 1
a37307 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37310 2
a37311 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
d37319 4
a37322 1
  case " $LIBOBJS " in
d37324 1
a37324 2
  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
 ;;
d37328 2
a37329 2
{ echo "$as_me:$LINENO: checking for strsep" >&5
echo $ECHO_N "checking for strsep... $ECHO_C" >&6; }
d37356 1
a37356 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37359 1
d37361 2
d37367 1
a37367 1
#if defined __stub_strsep || defined __stub___strsep
d37369 5
d37379 1
a37379 1
return strsep ();
d37385 2
a37386 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37392 14
a37405 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37411 1
a37411 1
	ac_cv_func_strsep=no
d37413 1
a37413 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37416 2
a37417 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
echo "${ECHO_T}$ac_cv_func_strsep" >&6; }
d37425 4
a37428 1
  case " $LIBOBJS " in
d37430 1
a37430 2
  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
 ;;
d37434 2
a37435 2
{ echo "$as_me:$LINENO: checking for strsep_copy" >&5
echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6; }
d37462 1
a37462 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37465 1
d37467 2
d37473 1
a37473 1
#if defined __stub_strsep_copy || defined __stub___strsep_copy
d37475 5
d37485 1
a37485 1
return strsep_copy ();
d37491 2
a37492 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37498 14
a37511 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37517 1
a37517 1
	ac_cv_func_strsep_copy=no
d37519 1
a37519 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37522 2
a37523 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6; }
d37531 4
a37534 1
  case " $LIBOBJS " in
d37536 1
a37536 2
  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
 ;;
d37540 2
a37541 2
{ echo "$as_me:$LINENO: checking for strtok_r" >&5
echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6; }
d37568 1
a37568 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37571 1
d37573 2
d37579 1
a37579 1
#if defined __stub_strtok_r || defined __stub___strtok_r
d37581 5
d37591 1
a37591 1
return strtok_r ();
d37597 2
a37598 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37604 14
a37617 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37623 1
a37623 1
	ac_cv_func_strtok_r=no
d37625 1
a37625 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37628 2
a37629 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r" >&6; }
d37637 4
a37640 1
  case " $LIBOBJS " in
d37642 1
a37642 2
  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
 ;;
d37646 2
a37647 2
{ echo "$as_me:$LINENO: checking for strupr" >&5
echo $ECHO_N "checking for strupr... $ECHO_C" >&6; }
d37674 1
a37674 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37677 1
d37679 2
d37685 1
a37685 1
#if defined __stub_strupr || defined __stub___strupr
d37687 5
d37697 1
a37697 1
return strupr ();
d37703 2
a37704 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37710 14
a37723 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37729 1
a37729 1
	ac_cv_func_strupr=no
d37731 1
a37731 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37734 2
a37735 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
echo "${ECHO_T}$ac_cv_func_strupr" >&6; }
d37743 4
a37746 1
  case " $LIBOBJS " in
d37748 1
a37748 2
  *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
 ;;
d37752 2
a37753 2
{ echo "$as_me:$LINENO: checking for swab" >&5
echo $ECHO_N "checking for swab... $ECHO_C" >&6; }
d37780 1
a37780 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37783 1
d37785 2
d37791 1
a37791 1
#if defined __stub_swab || defined __stub___swab
d37793 5
d37803 1
a37803 1
return swab ();
d37809 2
a37810 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37816 14
a37829 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37835 1
a37835 1
	ac_cv_func_swab=no
d37837 1
a37837 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37840 2
a37841 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
echo "${ECHO_T}$ac_cv_func_swab" >&6; }
d37849 4
a37852 1
  case " $LIBOBJS " in
d37854 1
a37854 97
  *) LIBOBJS="$LIBOBJS swab.$ac_objext"
 ;;
esac

fi
{ echo "$as_me:$LINENO: checking for timegm" >&5
echo $ECHO_N "checking for timegm... $ECHO_C" >&6; }
if test "${ac_cv_func_timegm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define timegm innocuous_timegm

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char timegm (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef timegm

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char timegm ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_timegm || defined __stub___timegm
choke me
#endif

int
main ()
{
return timegm ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_timegm=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_timegm=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
echo "${ECHO_T}$ac_cv_func_timegm" >&6; }
if test $ac_cv_func_timegm = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEGM 1
_ACEOF

else
  case " $LIBOBJS " in
  *" timegm.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
 ;;
d37858 2
a37859 2
{ echo "$as_me:$LINENO: checking for unsetenv" >&5
echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6; }
d37886 1
a37886 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37889 1
d37891 2
d37897 1
a37897 1
#if defined __stub_unsetenv || defined __stub___unsetenv
d37899 5
d37909 1
a37909 1
return unsetenv ();
d37915 2
a37916 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d37922 14
a37935 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d37941 1
a37941 1
	ac_cv_func_unsetenv=no
d37943 1
a37943 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d37946 2
a37947 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv" >&6; }
d37955 4
a37958 1
  case " $LIBOBJS " in
d37960 1
a37960 2
  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
 ;;
d37964 2
a37965 2
{ echo "$as_me:$LINENO: checking for verr" >&5
echo $ECHO_N "checking for verr... $ECHO_C" >&6; }
d37992 1
a37992 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d37995 1
d37997 2
d38003 1
a38003 1
#if defined __stub_verr || defined __stub___verr
d38005 5
d38015 1
a38015 1
return verr ();
d38021 2
a38022 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38028 14
a38041 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38047 1
a38047 1
	ac_cv_func_verr=no
d38049 1
a38049 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38052 2
a38053 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
echo "${ECHO_T}$ac_cv_func_verr" >&6; }
d38061 4
a38064 1
  case " $LIBOBJS " in
d38066 1
a38066 2
  *) LIBOBJS="$LIBOBJS verr.$ac_objext"
 ;;
d38070 2
a38071 2
{ echo "$as_me:$LINENO: checking for verrx" >&5
echo $ECHO_N "checking for verrx... $ECHO_C" >&6; }
d38098 1
a38098 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d38101 1
d38103 2
d38109 1
a38109 1
#if defined __stub_verrx || defined __stub___verrx
d38111 5
d38121 1
a38121 1
return verrx ();
d38127 2
a38128 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38134 14
a38147 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38153 1
a38153 1
	ac_cv_func_verrx=no
d38155 1
a38155 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38158 2
a38159 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
echo "${ECHO_T}$ac_cv_func_verrx" >&6; }
d38167 4
a38170 1
  case " $LIBOBJS " in
d38172 1
a38172 2
  *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
 ;;
d38176 2
a38177 2
{ echo "$as_me:$LINENO: checking for vsyslog" >&5
echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6; }
d38204 1
a38204 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d38207 1
d38209 2
d38215 1
a38215 1
#if defined __stub_vsyslog || defined __stub___vsyslog
d38217 5
d38227 1
a38227 1
return vsyslog ();
d38233 2
a38234 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38240 14
a38253 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38259 1
a38259 1
	ac_cv_func_vsyslog=no
d38261 1
a38261 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38264 2
a38265 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
echo "${ECHO_T}$ac_cv_func_vsyslog" >&6; }
d38273 4
a38276 1
  case " $LIBOBJS " in
d38278 1
a38278 2
  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
 ;;
d38282 2
a38283 2
{ echo "$as_me:$LINENO: checking for vwarn" >&5
echo $ECHO_N "checking for vwarn... $ECHO_C" >&6; }
d38310 1
a38310 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d38313 1
d38315 2
d38321 1
a38321 1
#if defined __stub_vwarn || defined __stub___vwarn
d38323 5
d38333 1
a38333 1
return vwarn ();
d38339 2
a38340 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38343 15
a38357 2
  rm -f conftest.er1
  cat conftest.err >&5
d38359 1
a38359 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38365 1
a38365 1
	ac_cv_func_vwarn=no
d38367 1
a38367 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38370 2
a38371 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
echo "${ECHO_T}$ac_cv_func_vwarn" >&6; }
d38379 4
a38382 1
  case " $LIBOBJS " in
d38384 1
a38384 2
  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
 ;;
d38388 2
a38389 2
{ echo "$as_me:$LINENO: checking for vwarnx" >&5
echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6; }
d38416 1
a38416 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d38419 1
d38421 2
d38427 1
a38427 1
#if defined __stub_vwarnx || defined __stub___vwarnx
d38429 5
d38439 1
a38439 1
return vwarnx ();
d38445 2
a38446 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38452 14
a38465 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38471 1
a38471 1
	ac_cv_func_vwarnx=no
d38473 1
a38473 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38476 2
a38477 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
echo "${ECHO_T}$ac_cv_func_vwarnx" >&6; }
d38485 4
a38488 1
  case " $LIBOBJS " in
d38490 1
a38490 2
  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
 ;;
d38494 2
a38495 2
{ echo "$as_me:$LINENO: checking for warn" >&5
echo $ECHO_N "checking for warn... $ECHO_C" >&6; }
d38522 1
a38522 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d38525 1
d38527 2
d38533 1
a38533 1
#if defined __stub_warn || defined __stub___warn
d38535 5
d38545 1
a38545 1
return warn ();
d38551 2
a38552 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38558 14
a38571 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38577 1
a38577 1
	ac_cv_func_warn=no
d38579 1
a38579 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38582 2
a38583 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
echo "${ECHO_T}$ac_cv_func_warn" >&6; }
d38591 4
a38594 1
  case " $LIBOBJS " in
d38596 1
a38596 2
  *) LIBOBJS="$LIBOBJS warn.$ac_objext"
 ;;
d38600 2
a38601 2
{ echo "$as_me:$LINENO: checking for warnx" >&5
echo $ECHO_N "checking for warnx... $ECHO_C" >&6; }
d38628 1
a38628 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d38631 1
d38633 2
d38639 1
a38639 1
#if defined __stub_warnx || defined __stub___warnx
d38641 5
d38651 1
a38651 1
return warnx ();
d38657 2
a38658 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38664 14
a38677 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38683 1
a38683 1
	ac_cv_func_warnx=no
d38685 1
a38685 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38688 2
a38689 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
echo "${ECHO_T}$ac_cv_func_warnx" >&6; }
d38697 4
a38700 1
  case " $LIBOBJS " in
d38702 1
a38702 2
  *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
 ;;
d38706 2
a38707 2
{ echo "$as_me:$LINENO: checking for writev" >&5
echo $ECHO_N "checking for writev... $ECHO_C" >&6; }
d38734 1
a38734 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d38737 1
d38739 2
d38745 1
a38745 1
#if defined __stub_writev || defined __stub___writev
d38747 5
d38757 1
a38757 1
return writev ();
d38763 2
a38764 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d38770 14
a38783 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d38789 1
a38789 1
	ac_cv_func_writev=no
d38791 1
a38791 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d38794 2
a38795 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
echo "${ECHO_T}$ac_cv_func_writev" >&6; }
d38803 4
a38806 1
  case " $LIBOBJS " in
d38808 1
a38808 2
  *) LIBOBJS="$LIBOBJS writev.$ac_objext"
 ;;
a38813 9
 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
  have_fnmatch_h_TRUE=
  have_fnmatch_h_FALSE='#'
else
  have_fnmatch_h_TRUE='#'
  have_fnmatch_h_FALSE=
fi


d38816 2
a38817 2
{ echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6; }
a38827 2
struct foo { int foo; } xx;
extern int strndup (struct foo*);
d38831 4
a38834 1
strndup(&xx)
d38840 2
a38841 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d38847 14
a38860 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d38866 1
a38866 1
	eval "ac_cv_func_strndup_noproto=no"
d38868 1
a38868 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d38870 2
a38871 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6; }
d38882 2
a38883 2
{ echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6; }
a38893 2
struct foo { int foo; } xx;
extern int strsep (struct foo*);
d38897 4
a38900 1
strsep(&xx)
d38906 2
a38907 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d38913 14
a38926 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d38932 1
a38932 1
	eval "ac_cv_func_strsep_noproto=no"
d38934 1
a38934 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d38936 2
a38937 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6; }
d38948 2
a38949 2
{ echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6; }
a38959 2
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
d38963 4
a38966 1
strtok_r(&xx)
d38972 2
a38973 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d38979 14
a38992 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d38998 1
a38998 1
	eval "ac_cv_func_strtok_r_noproto=no"
d39000 1
a39000 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39002 2
a39003 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6; }
d39016 2
a39017 2
{ echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6; }
a39029 2
struct foo { int foo; } xx;
extern int strsvis (struct foo*);
d39033 4
a39036 1
strsvis(&xx)
d39042 2
a39043 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39049 14
a39062 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39068 1
a39068 1
	eval "ac_cv_func_strsvis_noproto=no"
d39070 1
a39070 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39072 2
a39073 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6; }
d39084 2
a39085 2
{ echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6; }
a39097 2
struct foo { int foo; } xx;
extern int strunvis (struct foo*);
d39101 4
a39104 1
strunvis(&xx)
d39110 2
a39111 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39117 14
a39130 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39136 1
a39136 1
	eval "ac_cv_func_strunvis_noproto=no"
d39138 1
a39138 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39140 2
a39141 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6; }
d39152 2
a39153 2
{ echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6; }
a39165 2
struct foo { int foo; } xx;
extern int strvis (struct foo*);
d39169 4
a39172 1
strvis(&xx)
d39178 2
a39179 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39185 14
a39198 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39204 1
a39204 1
	eval "ac_cv_func_strvis_noproto=no"
d39206 1
a39206 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39208 2
a39209 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6; }
d39220 2
a39221 2
{ echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6; }
a39233 2
struct foo { int foo; } xx;
extern int strvisx (struct foo*);
d39237 4
a39240 1
strvisx(&xx)
d39246 2
a39247 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39253 14
a39266 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39272 1
a39272 1
	eval "ac_cv_func_strvisx_noproto=no"
d39274 1
a39274 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39276 2
a39277 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6; }
d39288 2
a39289 2
{ echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6; }
a39301 2
struct foo { int foo; } xx;
extern int svis (struct foo*);
d39305 4
a39308 1
svis(&xx)
d39314 2
a39315 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39321 14
a39334 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39340 1
a39340 1
	eval "ac_cv_func_svis_noproto=no"
d39342 1
a39342 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39344 2
a39345 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6; }
d39356 2
a39357 2
{ echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6; }
a39369 2
struct foo { int foo; } xx;
extern int unvis (struct foo*);
d39373 4
a39376 1
unvis(&xx)
d39382 2
a39383 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39389 14
a39402 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39408 1
a39408 1
	eval "ac_cv_func_unvis_noproto=no"
d39410 1
a39410 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39412 2
a39413 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6; }
d39424 2
a39425 2
{ echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6; }
a39437 2
struct foo { int foo; } xx;
extern int vis (struct foo*);
d39441 4
a39444 1
vis(&xx)
d39450 2
a39451 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39457 14
a39470 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39476 1
a39476 1
	eval "ac_cv_func_vis_noproto=no"
d39478 1
a39478 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d39480 2
a39481 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6; }
d39492 2
a39493 2
{ echo "$as_me:$LINENO: checking for inet_aton" >&5
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
d39525 1
a39525 1
inet_aton(0,0);
d39533 2
a39534 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d39540 14
a39553 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d39559 1
a39559 1
	eval "ac_cv_func_inet_aton=no"
d39561 1
a39561 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d39571 2
a39572 2
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d39574 6
a39579 3
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  case " $LIBOBJS " in
d39581 1
a39581 2
  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
 ;;
d39586 2
a39587 2
{ echo "$as_me:$LINENO: checking for inet_ntop" >&5
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
d39619 1
a39619 1
inet_ntop(0, 0, 0, 0);
d39627 2
a39628 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d39634 14
a39647 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d39653 1
a39653 1
	eval "ac_cv_func_inet_ntop=no"
d39655 1
a39655 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d39665 2
a39666 2
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d39668 6
a39673 3
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  case " $LIBOBJS " in
d39675 1
a39675 2
  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
 ;;
d39680 2
a39681 2
{ echo "$as_me:$LINENO: checking for inet_pton" >&5
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
d39713 1
a39713 1
inet_pton(0,0,0);
d39721 2
a39722 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d39728 14
a39741 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d39747 1
a39747 1
	eval "ac_cv_func_inet_pton=no"
d39749 1
a39749 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d39759 2
a39760 2
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d39762 6
a39767 3
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  case " $LIBOBJS " in
d39769 1
a39769 2
  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
 ;;
d39776 2
a39777 2
{ echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
d39793 1
a39793 1
struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
d39799 2
a39800 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d39806 14
a39819 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d39825 1
a39825 1
	ac_cv_type_struct_sockaddr_sa_len=no
d39827 1
a39827 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d39829 2
a39830 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6; }
d39843 80
d39925 2
a39926 2
{ echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6; }
a39957 2
	if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
		return 1;
d39963 2
a39964 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d39968 2
a39969 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d39982 1
a39982 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a39983 2


d39985 2
a39986 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6; }
d39988 4
a39991 1
	case " $LIBOBJS " in
d39993 1
a39993 2
  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
 ;;
d39996 4
a39999 1
	case " $LIBOBJS " in
d40001 1
a40001 2
  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
 ;;
d40009 2
a40010 2
{ echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6; }
a40020 2
struct foo { int foo; } xx;
extern int setenv (struct foo*);
d40024 4
a40027 1
setenv(&xx)
d40033 2
a40034 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40040 14
a40053 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d40059 1
a40059 1
	eval "ac_cv_func_setenv_noproto=no"
d40061 1
a40061 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40063 2
a40064 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6; }
d40076 2
a40077 2
{ echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6; }
a40087 2
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
d40091 4
a40094 1
unsetenv(&xx)
d40100 2
a40101 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40107 14
a40120 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d40126 1
a40126 1
	eval "ac_cv_func_unsetenv_noproto=no"
d40128 1
a40128 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40130 2
a40131 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6; }
d40143 2
a40144 2
{ echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6; }
a40154 2
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
d40158 4
a40161 1
gethostname(&xx)
d40167 2
a40168 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40174 5
a40178 57
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_gethostname_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_gethostname_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6; }
if test "$ac_cv_func_gethostname_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_GETHOSTNAME_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
{ echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
int
main ()
{
mkstemp(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
a40179 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d40181 4
a40184 57
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_mkstemp_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_mkstemp_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6; }
if test "$ac_cv_func_mkstemp_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_MKSTEMP_PROTO 1
_ACEOF

fi
fi


if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
{ echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
int
main ()
{
getusershell(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
a40185 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d40187 2
a40188 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_getusershell_noproto=yes"
d40193 1
a40193 1
	eval "ac_cv_func_getusershell_noproto=no"
d40195 1
a40195 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40197 3
a40199 3
{ echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6; }
if test "$ac_cv_func_getusershell_noproto" = yes; then
d40202 1
a40202 1
#define NEED_GETUSERSHELL_PROTO 1
d40209 4
a40212 4
if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
{ echo "$as_me:$LINENO: checking if daemon needs a prototype" >&5
echo $ECHO_N "checking if daemon needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_daemon_noproto+set}" = set; then
a40221 2
struct foo { int foo; } xx;
extern int daemon (struct foo*);
d40225 4
a40228 1
daemon(&xx)
d40234 2
a40235 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40241 15
a40255 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_daemon_noproto=yes"
d40260 1
a40260 1
	eval "ac_cv_func_daemon_noproto=no"
d40262 1
a40262 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40264 3
a40266 3
{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon_noproto" >&5
echo "${ECHO_T}$ac_cv_func_daemon_noproto" >&6; }
if test "$ac_cv_func_daemon_noproto" = yes; then
d40269 1
a40269 1
#define NEED_DAEMON_PROTO 1
d40276 4
a40279 4
if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
{ echo "$as_me:$LINENO: checking if iruserok needs a prototype" >&5
echo $ECHO_N "checking if iruserok needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_iruserok_noproto+set}" = set; then
a40287 17

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_UNISTD_H
a40288 3
#endif
struct foo { int foo; } xx;
extern int iruserok (struct foo*);
d40292 4
a40295 1
iruserok(&xx)
d40301 2
a40302 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40308 15
a40322 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_iruserok_noproto=yes"
d40327 1
a40327 1
	eval "ac_cv_func_iruserok_noproto=no"
d40329 1
a40329 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40331 3
a40333 3
{ echo "$as_me:$LINENO: result: $ac_cv_func_iruserok_noproto" >&5
echo "${ECHO_T}$ac_cv_func_iruserok_noproto" >&6; }
if test "$ac_cv_func_iruserok_noproto" = yes; then
d40336 1
a40336 1
#define NEED_IRUSEROK_PROTO 1
d40345 2
a40346 2
{ echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6; }
a40368 2
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
d40372 4
a40375 1
inet_aton(&xx)
d40381 2
a40382 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40388 14
a40401 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d40407 1
a40407 1
	eval "ac_cv_func_inet_aton_noproto=no"
d40409 1
a40409 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40411 2
a40412 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6; }
d40426 2
a40427 2
{ echo "$as_me:$LINENO: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
d40459 2
a40460 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d40466 14
a40479 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a40484 1

d40486 1
a40486 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d40503 3
a40505 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d40531 1
a40531 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d40534 1
d40536 2
d40542 1
a40542 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d40544 5
d40554 1
a40554 1
return $ac_func ();
d40560 2
a40561 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d40567 14
a40580 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d40586 1
a40586 1
	eval "$as_ac_var=no"
d40588 1
a40588 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d40591 2
a40592 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d40615 2
a40616 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d40621 2
a40622 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d40635 2
a40636 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d40645 2
a40646 2
{ echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6; }
d40676 1
a40676 1
struct hostent *gethostbyname(const char *)
d40682 2
a40683 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40689 14
a40702 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d40708 1
a40708 1
	eval "ac_cv_func_gethostbyname_proto_compat=no"
d40710 1
a40710 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40712 2
a40713 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6; }
d40726 2
a40727 2
{ echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6; }
d40757 1
a40757 1
struct hostent *gethostbyaddr(const void *, size_t, int)
d40763 2
a40764 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40770 14
a40783 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d40789 1
a40789 1
	eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d40791 1
a40791 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40793 2
a40794 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6; }
d40807 2
a40808 2
{ echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6; }
d40838 1
a40838 1
struct servent *getservbyname(const char *, const char *)
d40844 2
a40845 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40851 14
a40864 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d40870 1
a40870 1
	eval "ac_cv_func_getservbyname_proto_compat=no"
d40872 1
a40872 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40874 2
a40875 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6; }
d40888 2
a40889 2
{ echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6; }
d40910 1
a40910 1
int getsockname(int, struct sockaddr*, socklen_t*)
d40916 2
a40917 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40923 14
a40936 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d40942 1
a40942 1
	eval "ac_cv_func_getsockname_proto_compat=no"
d40944 1
a40944 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d40946 2
a40947 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6; }
d40960 2
a40961 2
{ echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6; }
d40979 1
a40979 1
void openlog(const char *, int, int)
d40985 2
a40986 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d40992 14
a41005 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d41011 1
a41011 1
	eval "ac_cv_func_openlog_proto_compat=no"
d41013 1
a41013 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d41015 2
a41016 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6; }
d41030 2
a41031 2
{ echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6; }
a41048 2
struct foo { int foo; } xx;
extern int crypt (struct foo*);
d41052 4
a41055 1
crypt(&xx)
d41061 2
a41062 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d41068 14
a41081 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d41087 1
a41087 1
	eval "ac_cv_func_crypt_noproto=no"
d41089 1
a41089 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d41091 2
a41092 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6; }
d41105 2
a41106 2
{ echo "$as_me:$LINENO: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
d41124 1
a41124 1
	void * foo(void) { return &h_errno; }
d41134 2
a41135 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41141 14
a41154 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41160 1
a41160 1
	ac_cv_var_h_errno=no
d41162 1
a41162 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41172 1
a41172 1
int foo(void) { return h_errno; }
d41182 2
a41183 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41189 14
a41202 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41208 1
a41208 1
	ac_cv_var_h_errno=no
d41210 1
a41210 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41217 2
a41218 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d41225 4
a41228 3
	{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_h_errno+set}" = set; then
d41231 2
a41232 1
  cat >conftest.$ac_ext <<_ACEOF
d41244 1
a41244 1

d41248 1
a41248 4
#ifndef h_errno
  (void) h_errno;
#endif

d41254 2
a41255 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d41261 15
a41275 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_h_errno=yes
d41280 1
a41280 1
	ac_cv_have_decl_h_errno=no
d41282 1
a41283 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a41284 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
if test $ac_cv_have_decl_h_errno = yes; then
a41285 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRNO 1
_ACEOF
d41288 7
a41294 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRNO 0
a41296 1

d41304 2
a41305 2
{ echo "$as_me:$LINENO: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6; }
d41320 1
a41320 1
	void * foo(void) { return &h_errlist; }
d41330 2
a41331 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41337 14
a41350 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41356 1
a41356 1
	ac_cv_var_h_errlist=no
d41358 1
a41358 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41368 1
a41368 1
int foo(void) { return h_errlist; }
d41378 2
a41379 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41385 14
a41398 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41404 1
a41404 1
	ac_cv_var_h_errlist=no
d41406 1
a41406 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41413 2
a41414 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d41421 4
a41424 3
	{ echo "$as_me:$LINENO: checking whether h_errlist is declared" >&5
echo $ECHO_N "checking whether h_errlist is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_h_errlist+set}" = set; then
d41427 2
a41428 1
  cat >conftest.$ac_ext <<_ACEOF
d41437 1
a41437 1

d41441 1
a41441 4
#ifndef h_errlist
  (void) h_errlist;
#endif

d41447 2
a41448 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d41454 15
a41468 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_h_errlist=yes
d41473 1
a41473 1
	ac_cv_have_decl_h_errlist=no
d41475 1
a41476 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a41477 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errlist" >&5
echo "${ECHO_T}$ac_cv_have_decl_h_errlist" >&6; }
if test $ac_cv_have_decl_h_errlist = yes; then
a41478 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRLIST 1
_ACEOF
d41481 7
a41487 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_ERRLIST 0
a41489 1

d41497 2
a41498 2
{ echo "$as_me:$LINENO: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6; }
d41513 1
a41513 1
	void * foo(void) { return &h_nerr; }
d41523 2
a41524 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41530 14
a41543 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41549 1
a41549 1
	ac_cv_var_h_nerr=no
d41551 1
a41551 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41561 1
a41561 1
int foo(void) { return h_nerr; }
d41571 2
a41572 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41578 14
a41591 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41597 1
a41597 1
	ac_cv_var_h_nerr=no
d41599 1
a41599 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41606 2
a41607 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d41614 4
a41617 3
	{ echo "$as_me:$LINENO: checking whether h_nerr is declared" >&5
echo $ECHO_N "checking whether h_nerr is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_h_nerr+set}" = set; then
d41620 2
a41621 1
  cat >conftest.$ac_ext <<_ACEOF
d41630 1
a41630 1

d41634 1
a41634 4
#ifndef h_nerr
  (void) h_nerr;
#endif

d41640 2
a41641 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d41647 15
a41661 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_h_nerr=yes
d41666 1
a41666 1
	ac_cv_have_decl_h_nerr=no
d41668 1
a41669 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a41670 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_nerr" >&5
echo "${ECHO_T}$ac_cv_have_decl_h_nerr" >&6; }
if test $ac_cv_have_decl_h_nerr = yes; then
a41671 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_NERR 1
_ACEOF
d41674 7
a41680 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_H_NERR 0
a41682 1

d41690 2
a41691 2
{ echo "$as_me:$LINENO: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
d41706 1
a41706 1
	void * foo(void) { return &__progname; }
d41716 2
a41717 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41723 14
a41736 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41742 1
a41742 1
	ac_cv_var___progname=no
d41744 1
a41744 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41754 1
a41754 1
int foo(void) { return __progname; }
d41764 2
a41765 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d41771 14
a41784 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d41790 1
a41790 1
	ac_cv_var___progname=no
d41792 1
a41792 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d41799 2
a41800 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d41807 4
a41810 3
	{ echo "$as_me:$LINENO: checking whether __progname is declared" >&5
echo $ECHO_N "checking whether __progname is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl___progname+set}" = set; then
d41813 2
a41814 1
  cat >conftest.$ac_ext <<_ACEOF
d41823 1
a41823 1

d41827 1
a41827 4
#ifndef __progname
  (void) __progname;
#endif

d41833 2
a41834 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d41840 15
a41854 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl___progname=yes
d41859 1
a41859 1
	ac_cv_have_decl___progname=no
d41861 1
a41862 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a41863 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___progname" >&5
echo "${ECHO_T}$ac_cv_have_decl___progname" >&6; }
if test $ac_cv_have_decl___progname = yes; then
a41864 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___PROGNAME 1
_ACEOF
d41867 7
a41873 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___PROGNAME 0
a41875 1

d41882 4
a41885 3
{ echo "$as_me:$LINENO: checking whether optarg is declared" >&5
echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_optarg+set}" = set; then
d41888 2
a41889 1
  cat >conftest.$ac_ext <<_ACEOF
d41895 5
a41899 1
$ac_includes_default
d41903 1
a41903 4
#ifndef optarg
  (void) optarg;
#endif

d41909 2
a41910 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d41916 15
a41930 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_optarg=yes
d41935 1
a41935 1
	ac_cv_have_decl_optarg=no
d41937 1
a41938 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a41939 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6; }
if test $ac_cv_have_decl_optarg = yes; then
d41941 9
a41949 2
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTARG 1
d41952 1
a41953 4
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTARG 0
_ACEOF
d41956 3
a41958 8
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether optind is declared" >&5
echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_optind+set}" = set; then
d41961 2
a41962 1
  cat >conftest.$ac_ext <<_ACEOF
d41968 5
a41972 1
$ac_includes_default
d41976 1
a41976 4
#ifndef optind
  (void) optind;
#endif

d41982 2
a41983 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d41989 15
a42003 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_optind=yes
d42008 1
a42008 1
	ac_cv_have_decl_optind=no
d42010 1
a42011 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a42012 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; }
if test $ac_cv_have_decl_optind = yes; then
d42014 9
a42022 2
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTIND 1
d42025 1
a42026 4
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTIND 0
_ACEOF
d42029 3
a42031 8
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether opterr is declared" >&5
echo $ECHO_N "checking whether opterr is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_opterr+set}" = set; then
d42034 2
a42035 1
  cat >conftest.$ac_ext <<_ACEOF
d42041 5
a42045 1
$ac_includes_default
d42049 1
a42049 4
#ifndef opterr
  (void) opterr;
#endif

d42055 2
a42056 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42062 15
a42076 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_opterr=yes
d42081 1
a42081 1
	ac_cv_have_decl_opterr=no
d42083 1
a42084 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a42085 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_opterr" >&5
echo "${ECHO_T}$ac_cv_have_decl_opterr" >&6; }
if test $ac_cv_have_decl_opterr = yes; then
d42087 9
a42095 2
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTERR 1
d42098 1
a42099 4
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTERR 0
_ACEOF
d42102 3
a42104 8
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether optopt is declared" >&5
echo $ECHO_N "checking whether optopt is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_optopt+set}" = set; then
d42107 2
a42108 1
  cat >conftest.$ac_ext <<_ACEOF
d42114 5
a42118 1
$ac_includes_default
d42122 1
a42122 4
#ifndef optopt
  (void) optopt;
#endif

d42128 2
a42129 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42135 15
a42149 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_optopt=yes
d42154 1
a42154 1
	ac_cv_have_decl_optopt=no
d42156 1
a42157 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a42158 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optopt" >&5
echo "${ECHO_T}$ac_cv_have_decl_optopt" >&6; }
if test $ac_cv_have_decl_optopt = yes; then
d42160 9
a42168 2
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTOPT 1
d42171 2
a42173 4
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTOPT 0
_ACEOF
d42176 3
a42178 8
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
fi
{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_environ+set}" = set; then
d42181 2
a42182 1
  cat >conftest.$ac_ext <<_ACEOF
d42188 2
a42189 1
$ac_includes_default
d42193 1
a42193 4
#ifndef environ
  (void) environ;
#endif

d42199 2
a42200 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42206 15
a42220 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_environ=yes
d42225 1
a42225 1
	ac_cv_have_decl_environ=no
d42227 1
a42228 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a42229 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
if test $ac_cv_have_decl_environ = yes; then
a42230 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ENVIRON 1
_ACEOF
d42233 7
a42239 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ENVIRON 0
a42241 5

#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
d42249 2
a42250 2
{ echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
d42265 1
a42265 1
struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
d42271 2
a42272 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42278 14
a42291 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d42297 1
a42297 1
	ac_cv_type_struct_tm_tm_gmtoff=no
d42299 1
a42299 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d42301 2
a42302 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
d42316 2
a42317 2
{ echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
d42332 1
a42332 1
struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
d42338 2
a42339 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42345 14
a42358 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d42364 1
a42364 1
	ac_cv_type_struct_tm_tm_zone=no
d42366 1
a42366 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d42368 2
a42369 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6; }
d42384 2
a42385 2
{ echo "$as_me:$LINENO: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6; }
d42398 1
a42398 1
	void * foo(void) { return &timezone; }
d42408 2
a42409 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d42415 14
a42428 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d42434 1
a42434 1
	ac_cv_var_timezone=no
d42436 1
a42436 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d42446 1
a42446 1
int foo(void) { return timezone; }
d42456 2
a42457 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d42463 14
a42476 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d42482 1
a42482 1
	ac_cv_var_timezone=no
d42484 1
a42484 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d42491 2
a42492 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d42499 4
a42502 3
	{ echo "$as_me:$LINENO: checking whether timezone is declared" >&5
echo $ECHO_N "checking whether timezone is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_timezone+set}" = set; then
d42505 2
a42506 1
  cat >conftest.$ac_ext <<_ACEOF
d42513 1
a42513 1

d42517 1
a42517 4
#ifndef timezone
  (void) timezone;
#endif

d42523 2
a42524 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42530 15
a42544 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_timezone=yes
d42549 1
a42549 1
	ac_cv_have_decl_timezone=no
d42551 1
a42552 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a42553 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_timezone" >&5
echo "${ECHO_T}$ac_cv_have_decl_timezone" >&6; }
if test $ac_cv_have_decl_timezone = yes; then
a42554 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TIMEZONE 1
_ACEOF
d42557 7
a42563 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TIMEZONE 0
a42565 1

d42572 2
a42573 2
{ echo "$as_me:$LINENO: checking for altzone" >&5
echo $ECHO_N "checking for altzone... $ECHO_C" >&6; }
d42586 1
a42586 1
	void * foo(void) { return &altzone; }
d42596 2
a42597 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d42603 14
a42616 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d42622 1
a42622 1
	ac_cv_var_altzone=no
d42624 1
a42624 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d42634 1
a42634 1
int foo(void) { return altzone; }
d42644 2
a42645 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d42651 14
a42664 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d42670 1
a42670 1
	ac_cv_var_altzone=no
d42672 1
a42672 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d42679 2
a42680 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d42687 4
a42690 3
	{ echo "$as_me:$LINENO: checking whether altzone is declared" >&5
echo $ECHO_N "checking whether altzone is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_altzone+set}" = set; then
d42693 2
a42694 1
  cat >conftest.$ac_ext <<_ACEOF
d42701 1
a42701 1

d42705 1
a42705 4
#ifndef altzone
  (void) altzone;
#endif

d42711 2
a42712 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42718 15
a42732 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_have_decl_altzone=yes
d42737 1
a42737 1
	ac_cv_have_decl_altzone=no
d42739 1
a42740 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a42741 3
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_altzone" >&5
echo "${ECHO_T}$ac_cv_have_decl_altzone" >&6; }
if test $ac_cv_have_decl_altzone = yes; then
a42742 3
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ALTZONE 1
_ACEOF
d42745 7
a42751 3
else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ALTZONE 0
a42753 1

d42763 3
a42765 3
{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a42773 1

a42778 2

#include <sys/types.h>
d42789 2
a42790 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42796 14
a42809 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d42815 1
a42815 1
	eval "ac_cv_type_$cv=no"
d42817 1
a42817 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d42820 2
a42821 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d42825 2
a42826 2
	{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
a42836 1
typedef sa_family_t ac__type_new_;
d42840 1
a42840 1
if ((ac__type_new_ *) 0)
d42842 1
a42842 1
if (sizeof (ac__type_new_))
d42849 2
a42850 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42856 14
a42869 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d42875 1
a42875 1
	ac_cv_type_sa_family_t=no
d42877 1
a42877 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d42879 2
a42880 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
d42901 3
a42903 3
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a42911 1

a42916 2

#include <sys/types.h>
d42927 2
a42928 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42934 14
a42947 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d42953 1
a42953 1
	eval "ac_cv_type_$cv=no"
d42955 1
a42955 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d42958 2
a42959 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d42963 2
a42964 2
	{ echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
a42974 1
typedef socklen_t ac__type_new_;
d42978 1
a42978 1
if ((ac__type_new_ *) 0)
d42980 1
a42980 1
if (sizeof (ac__type_new_))
d42987 2
a42988 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d42994 14
a43007 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43013 1
a43013 1
	ac_cv_type_socklen_t=no
d43015 1
a43015 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43017 2
a43018 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
d43039 3
a43041 3
{ echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a43049 1

a43054 2

#include <sys/types.h>
d43065 2
a43066 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43072 14
a43085 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43091 1
a43091 1
	eval "ac_cv_type_$cv=no"
d43093 1
a43093 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43096 2
a43097 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d43101 2
a43102 2
	{ echo "$as_me:$LINENO: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
a43112 1
typedef struct sockaddr ac__type_new_;
d43116 1
a43116 1
if ((ac__type_new_ *) 0)
d43118 1
a43118 1
if (sizeof (ac__type_new_))
d43125 2
a43126 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43132 14
a43145 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43151 1
a43151 1
	ac_cv_type_struct_sockaddr=no
d43153 1
a43153 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43155 2
a43156 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6; }
d43177 3
a43179 3
{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a43187 1

a43192 2

#include <sys/types.h>
d43203 2
a43204 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43210 14
a43223 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43229 1
a43229 1
	eval "ac_cv_type_$cv=no"
d43231 1
a43231 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43234 2
a43235 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d43239 2
a43240 2
	{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
a43250 1
typedef struct sockaddr_storage ac__type_new_;
d43254 1
a43254 1
if ((ac__type_new_ *) 0)
d43256 1
a43256 1
if (sizeof (ac__type_new_))
d43263 2
a43264 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43270 14
a43283 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43289 1
a43289 1
	ac_cv_type_struct_sockaddr_storage=no
d43291 1
a43291 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43293 2
a43294 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
d43315 3
a43317 3
{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a43325 1

a43330 2

#include <sys/types.h>
d43341 2
a43342 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43348 14
a43361 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43367 1
a43367 1
	eval "ac_cv_type_$cv=no"
d43369 1
a43369 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43372 2
a43373 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d43377 2
a43378 2
	{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
a43388 1
typedef struct addrinfo ac__type_new_;
d43392 1
a43392 1
if ((ac__type_new_ *) 0)
d43394 1
a43394 1
if (sizeof (ac__type_new_))
d43401 2
a43402 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43408 14
a43421 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43427 1
a43427 1
	ac_cv_type_struct_addrinfo=no
d43429 1
a43429 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43431 2
a43432 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
d43453 3
a43455 3
{ echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a43463 1

d43479 2
a43480 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43486 14
a43499 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43505 1
a43505 1
	eval "ac_cv_type_$cv=no"
d43507 1
a43507 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43510 2
a43511 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d43515 2
a43516 2
	{ echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
a43526 1
typedef struct ifaddrs ac__type_new_;
d43530 1
a43530 1
if ((ac__type_new_ *) 0)
d43532 1
a43532 1
if (sizeof (ac__type_new_))
d43539 2
a43540 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43546 14
a43559 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43565 1
a43565 1
	ac_cv_type_struct_ifaddrs=no
d43567 1
a43567 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43569 2
a43570 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6; }
d43591 3
a43593 3
{ echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a43601 1

d43620 2
a43621 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43627 14
a43640 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43646 1
a43646 1
	eval "ac_cv_type_$cv=no"
d43648 1
a43648 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43651 2
a43652 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d43656 2
a43657 2
	{ echo "$as_me:$LINENO: checking for struct iovec" >&5
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
a43667 1
typedef struct iovec ac__type_new_;
d43671 1
a43671 1
if ((ac__type_new_ *) 0)
d43673 1
a43673 1
if (sizeof (ac__type_new_))
d43680 2
a43681 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43687 14
a43700 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43706 1
a43706 1
	ac_cv_type_struct_iovec=no
d43708 1
a43708 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43710 2
a43711 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; }
d43732 3
a43734 3
{ echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a43742 1

d43761 2
a43762 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43768 14
a43781 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43787 1
a43787 1
	eval "ac_cv_type_$cv=no"
d43789 1
a43789 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43792 2
a43793 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d43797 2
a43798 2
	{ echo "$as_me:$LINENO: checking for struct msghdr" >&5
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
a43808 1
typedef struct msghdr ac__type_new_;
d43812 1
a43812 1
if ((ac__type_new_ *) 0)
d43814 1
a43814 1
if (sizeof (ac__type_new_))
d43821 2
a43822 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43828 14
a43841 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d43847 1
a43847 1
	ac_cv_type_struct_msghdr=no
d43849 1
a43849 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d43851 2
a43852 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; }
d43873 2
a43874 2
{ echo "$as_me:$LINENO: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6; }
d43906 2
a43907 2
{ echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6; }
d43950 2
a43951 2
{ echo "$as_me:$LINENO: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6; }
a43961 1

d43975 2
a43976 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d43982 14
a43995 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d44001 1
a44001 1
	ac_cv_struct_spwd=no
d44003 1
a44003 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d44007 2
a44008 2
{ echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6; }
a44018 30
#
# Check if we want samba's socket wrapper
#



# Check whether --enable-socket-wrapper was given.
if test "${enable_socket_wrapper+set}" = set; then
  enableval=$enable_socket_wrapper;
fi


 if test "x$enable_socket_wrapper" = xyes; then
  have_socket_wrapper_TRUE=
  have_socket_wrapper_FALSE='#'
else
  have_socket_wrapper_TRUE='#'
  have_socket_wrapper_FALSE=
fi

if test "x$enable_socket_wrapper" = xyes ; then

cat >>confdefs.h <<\_ACEOF
#define SOCKET_WRAPPER_REPLACE 1
_ACEOF

fi



a44022 1
LIBADD_roken="$LIB_roken"
d44026 1
a44026 1
# Check whether --enable-otp was given.
d44028 1
a44028 2
  enableval=$enable_otp;
fi
d44030 1
d44052 7
a44058 5
{ echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $enable_otp" >&5
echo "${ECHO_T}$enable_otp" >&6; }
 if test "$enable_otp" = yes; then
d44068 1
a44068 1
# Check whether --enable-osfc2 was given.
d44070 1
a44070 2
  enableval=$enable_osfc2;
fi
d44072 1
d44085 1
a44085 1
# Check whether --enable-mmap was given.
d44087 1
a44087 2
  enableval=$enable_mmap;
fi
d44089 1
a44097 17
# Check whether --enable-afs-string-to-key was given.
if test "${enable_afs_string_to_key+set}" = set; then
  enableval=$enable_afs_string_to_key;
else
  enable_afs_string_to_key=yes
fi


if test "$enable_afs_string_to_key" = "yes"; then

cat >>confdefs.h <<\_ACEOF
#define ENABLE_AFS_STRING_TO_KEY 1
_ACEOF

fi


d44100 2
a44101 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d44116 1
a44116 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a44122 1
IFS=$as_save_IFS
d44128 1
d44130 2
a44131 2
  { echo "$as_me:$LINENO: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6; }
d44133 2
a44134 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a44136 1

d44139 2
a44140 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d44155 1
a44155 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a44161 1
IFS=$as_save_IFS
d44167 1
d44169 2
a44170 2
  { echo "$as_me:$LINENO: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6; }
d44172 2
a44173 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d44176 2
a44177 3

{ echo "$as_me:$LINENO: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6; }
d44213 2
a44214 2
{ echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6; }
d44219 3
a44221 1
 if test "$CATMAN"; then
d44229 2
a44230 2
{ echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6; }
d44241 2
a44242 2
{ echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6; }
d44253 1
a44253 1
# Check whether --with-readline was given.
d44255 1
a44255 2
  withval=$with_readline;
fi
d44257 1
d44259 1
a44259 1
# Check whether --with-readline-lib was given.
d44261 2
a44262 1
  withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
d44269 1
a44269 2
fi

d44271 1
a44271 1
# Check whether --with-readline-include was given.
d44273 2
a44274 1
  withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
d44281 1
a44281 2
fi

d44283 1
a44283 1
# Check whether --with-readline-config was given.
d44285 1
a44285 2
  withval=$with_readline_config;
fi
d44287 1
d44291 2
a44292 2
{ echo "$as_me:$LINENO: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6; }
a44332 8
yes|no|""|"")
	if test -f $with_readline/bin/ ; then
		with_readline_config=$with_readline/bin/
	fi
	;;
esac

case "$with_readline_config" in
d44365 2
a44366 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d44369 15
a44383 2
  rm -f conftest.er1
  cat conftest.err >&5
d44385 1
a44385 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d44389 2
a44390 2
			{ echo "$as_me:$LINENO: result: from $with_readline_config" >&5
echo "${ECHO_T}from $with_readline_config" >&6; }
a44395 1

d44397 1
a44397 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d44421 2
a44422 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d44428 14
a44441 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
a44446 1

d44448 1
a44448 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d44469 2
a44470 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d44476 14
a44489 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a44494 1

d44496 1
a44496 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d44503 2
a44504 2
			{ echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
d44522 2
a44523 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d44532 1
a44532 1
# Check whether --with-hesiod was given.
d44534 1
a44534 2
  withval=$with_hesiod;
fi
d44536 1
d44538 1
a44538 1
# Check whether --with-hesiod-lib was given.
d44540 2
a44541 1
  withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
d44548 1
a44548 1
fi
d44550 1
a44550 2

# Check whether --with-hesiod-include was given.
d44552 2
a44553 1
  withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
d44560 1
a44560 1
fi
d44562 1
a44562 2

# Check whether --with-hesiod-config was given.
d44564 1
a44564 2
  withval=$with_hesiod_config;
fi
d44566 1
d44570 2
a44571 2
{ echo "$as_me:$LINENO: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6; }
a44611 8
yes|no|""|"")
	if test -f $with_hesiod/bin/ ; then
		with_hesiod_config=$with_hesiod/bin/
	fi
	;;
esac

case "$with_hesiod_config" in
d44643 2
a44644 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d44650 14
a44663 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d44667 2
a44668 2
			{ echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
echo "${ECHO_T}from $with_hesiod_config" >&6; }
a44673 1

d44675 1
a44675 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d44698 2
a44699 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d44705 14
a44718 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
a44723 1

d44725 1
a44725 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d44745 2
a44746 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d44752 14
a44765 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a44770 1

d44772 1
a44772 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d44779 2
a44780 2
			{ echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
d44798 2
a44799 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d44807 1
a44807 1
# Check whether --enable-bigendian was given.
d44809 4
a44812 4
  enableval=$enable_bigendian; krb_cv_c_bigendian=yes
fi

# Check whether --enable-littleendian was given.
d44814 5
a44818 5
  enableval=$enable_littleendian; krb_cv_c_bigendian=no
fi

{ echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6; }
d44831 4
d44838 3
d44843 2
a44844 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d44850 14
a44863 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d44869 1
a44869 1
	krb_cv_c_bigendian_compile=no
d44871 1
a44871 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d44873 4
a44876 4
{ echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6; }
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
d44891 4
d44898 3
d44903 2
a44904 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d44910 14
a44923 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d44929 1
a44929 1
	krb_cv_c_bigendian=no
d44931 1
a44931 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d44944 1
a44944 1
main (int argc, char **argv) {
d44956 2
a44957 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d44961 2
a44962 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d44975 1
a44975 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a44976 2


d44980 2
a44981 2
{ echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6; }
d44997 2
a44998 2
{ echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
d45018 2
a45019 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d45025 15
a45039 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_inline=$ac_kw
a45043 1

d45045 1
a45045 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
d45049 2
a45050 2
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
d45073 2
a45074 2
{ echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
a45096 3
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d45100 1
a45100 1
dlopen(0,0)
d45106 2
a45107 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d45113 14
a45126 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a45131 1

d45133 1
a45133 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d45150 3
a45152 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d45178 1
a45178 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d45181 1
d45183 2
d45189 1
a45189 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d45191 5
d45201 1
a45201 1
return $ac_func ();
d45207 2
a45208 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d45214 14
a45227 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d45233 1
a45233 1
	eval "$as_ac_var=no"
d45235 1
a45235 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d45238 2
a45239 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d45262 2
a45263 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d45268 2
a45269 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d45282 2
a45283 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d45288 3
a45290 1
	 if test "$ac_cv_funclib_dlopen" != no; then
d45311 3
a45313 1
 if test "$aix" != no; then
d45320 3
a45322 1
 if test "$aix" = 4; then
d45332 1
a45332 1
# Check whether --enable-dynamic-afs was given.
d45334 1
a45334 2
  enableval=$enable_dynamic_afs;
fi
d45336 1
d45345 2
a45346 2
{ echo "$as_me:$LINENO: checking for loadquery" >&5
echo $ECHO_N "checking for loadquery... $ECHO_C" >&6; }
d45378 2
a45379 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d45385 14
a45398 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a45403 1

d45405 1
a45405 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d45422 3
a45424 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d45450 1
a45450 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d45453 1
d45455 2
d45461 1
a45461 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d45463 5
d45473 1
a45473 1
return $ac_func ();
d45479 2
a45480 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d45486 14
a45499 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d45505 1
a45505 1
	eval "$as_ac_var=no"
d45507 1
a45507 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d45510 2
a45511 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d45534 2
a45535 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d45540 2
a45541 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d45554 2
a45555 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d45576 3
a45578 1
 if test "$enable_dynamic_afs" != no; then
d45605 3
a45607 1
 if test "$irix" != no; then
d45627 1
a45627 1
*-*-solaris2.[89] | *-*-solaris2.10)
d45643 2
a45644 2
{ echo "$as_me:$LINENO: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
d45647 1
a45647 1
# Check whether --with-x was given.
d45649 1
a45649 2
  withval=$with_x;
fi
d45651 1
d45657 5
a45661 5
  case $x_includes,$x_libraries in #(
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
   { (exit 1); exit 1; }; };; #(
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
d45666 1
a45666 1
rm -f -r conftest.dir
d45669 1
d45671 2
a45672 6
incroot:
	@@echo incroot='${INCROOT}'
usrlibdir:
	@@echo usrlibdir='${USRLIBDIR}'
libdir:
	@@echo libdir='${LIBDIR}'
d45674 1
a45674 1
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
d45676 1
a45676 3
    for ac_var in incroot usrlibdir libdir; do
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
    done
d45679 2
a45680 2
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
d45688 1
a45688 1
	/usr/include) ac_x_includes= ;;
d45697 1
a45697 1
  rm -f -r conftest.dir
d45738 1
a45738 1
  # Guess where to find include files, by looking for Xlib.h.
d45746 1
a45746 1
#include <X11/Xlib.h>
d45748 2
a45749 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d45755 11
a45765 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
d45773 1
a45773 1
  if test -r "$ac_dir/X11/Xlib.h"; then
a45778 1

d45787 1
a45787 1
  LIBS="-lX11 $LIBS"
d45794 1
a45794 1
#include <X11/Xlib.h>
d45798 1
a45798 1
XrmInitialize ()
d45804 2
a45805 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d45811 14
a45824 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d45832 1
a45832 1
	LIBS=$ac_save_LIBS
d45837 1
a45837 1
    if test -r "$ac_dir/libX11.$ac_extension"; then
d45844 1
a45844 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d45848 8
a45855 10
case $ac_x_includes,$ac_x_libraries in #(
  no,* | *,no | *\'*)
    # Didn't find X, or a directory has "'" in its name.
    ac_cv_have_x="have_x=no";; #(
  *)
    # Record where we found X for the cache.
    ac_cv_have_x="have_x=yes\
	ac_x_includes='$ac_x_includes'\
	ac_x_libraries='$ac_x_libraries'"
esac
d45857 2
a45858 3
;; #(
    *) have_x=yes;;
  esac
d45863 2
a45864 2
  { echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6; }
d45871 4
a45874 5
  ac_cv_have_x="have_x=yes\
	ac_x_includes='$x_includes'\
	ac_x_libraries='$x_libraries'"
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
d45896 6
a45901 6
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
    ac_xsave_c_werror_flag=$ac_c_werror_flag
    ac_c_werror_flag=yes
    cat >conftest.$ac_ext <<_ACEOF
d45917 2
a45918 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d45924 15
a45938 8
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
       X_LIBS="$X_LIBS -R$x_libraries"
d45943 9
d45953 1
a45953 1
       cat >conftest.$ac_ext <<_ACEOF
d45969 2
a45970 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d45976 15
a45990 8
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	  X_LIBS="$X_LIBS -R $x_libraries"
d45995 1
a45995 2
	{ echo "$as_me:$LINENO: result: neither works" >&5
echo "${ECHO_T}neither works" >&6; }
d45997 1
a45997 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d45999 11
a46009 6
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    ac_c_werror_flag=$ac_xsave_c_werror_flag
    LIBS=$ac_xsave_LIBS
d46030 1
a46030 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46034 2
d46040 1
a46040 1
return XOpenDisplay ();
d46046 2
a46047 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46053 14
a46066 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46072 2
a46073 2
	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
d46086 1
a46086 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46090 2
d46096 1
a46096 1
return dnet_ntoa ();
d46102 2
a46103 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46109 14
a46122 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46128 1
a46128 1
	ac_cv_lib_dnet_dnet_ntoa=no
d46130 1
a46130 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46134 2
a46135 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
d46141 2
a46142 2
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
d46155 1
a46155 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46159 2
d46165 1
a46165 1
return dnet_ntoa ();
d46171 2
a46172 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46178 14
a46191 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46197 1
a46197 1
	ac_cv_lib_dnet_stub_dnet_ntoa=no
d46199 1
a46199 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46203 2
a46204 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
d46211 1
a46211 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46223 2
a46224 2
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
d46251 1
a46251 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46254 1
d46256 2
d46262 1
a46262 1
#if defined __stub_gethostbyname || defined __stub___gethostbyname
d46264 5
d46274 1
a46274 1
return gethostbyname ();
d46280 2
a46281 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46287 14
a46300 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46306 1
a46306 1
	ac_cv_func_gethostbyname=no
d46308 1
a46308 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46311 2
a46312 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
d46315 2
a46316 2
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
d46329 1
a46329 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46333 2
d46339 1
a46339 1
return gethostbyname ();
d46345 2
a46346 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46352 14
a46365 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46371 1
a46371 1
	ac_cv_lib_nsl_gethostbyname=no
d46373 1
a46373 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46377 2
a46378 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
d46384 2
a46385 2
	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
d46398 1
a46398 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46402 2
d46408 1
a46408 1
return gethostbyname ();
d46414 2
a46415 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46421 14
a46434 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46440 1
a46440 1
	ac_cv_lib_bsd_gethostbyname=no
d46442 1
a46442 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46446 2
a46447 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
d46462 2
a46463 2
    { echo "$as_me:$LINENO: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
d46490 1
a46490 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46493 1
d46495 2
d46501 1
a46501 1
#if defined __stub_connect || defined __stub___connect
d46503 5
d46513 1
a46513 1
return connect ();
d46519 2
a46520 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46526 14
a46539 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46545 1
a46545 1
	ac_cv_func_connect=no
d46547 1
a46547 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46550 2
a46551 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
d46554 2
a46555 2
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
d46568 1
a46568 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46572 2
d46578 1
a46578 1
return connect ();
d46584 2
a46585 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46591 14
a46604 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46610 1
a46610 1
	ac_cv_lib_socket_connect=no
d46612 1
a46612 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46616 2
a46617 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
d46625 2
a46626 2
    { echo "$as_me:$LINENO: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
d46653 1
a46653 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46656 1
d46658 2
d46664 1
a46664 1
#if defined __stub_remove || defined __stub___remove
d46666 5
d46676 1
a46676 1
return remove ();
d46682 2
a46683 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46689 14
a46702 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46708 1
a46708 1
	ac_cv_func_remove=no
d46710 1
a46710 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46713 2
a46714 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
d46717 2
a46718 2
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
d46731 1
a46731 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46735 2
d46741 1
a46741 1
return remove ();
d46747 2
a46748 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46754 14
a46767 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46773 1
a46773 1
	ac_cv_lib_posix_remove=no
d46775 1
a46775 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46779 2
a46780 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
d46788 2
a46789 2
    { echo "$as_me:$LINENO: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
d46816 1
a46816 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46819 1
d46821 2
d46827 1
a46827 1
#if defined __stub_shmat || defined __stub___shmat
d46829 5
d46839 1
a46839 1
return shmat ();
d46845 2
a46846 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46852 14
a46865 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46871 1
a46871 1
	ac_cv_func_shmat=no
d46873 1
a46873 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46876 2
a46877 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
d46880 2
a46881 2
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
d46894 1
a46894 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46898 2
d46904 1
a46904 1
return shmat ();
d46910 2
a46911 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46917 14
a46930 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d46936 1
a46936 1
	ac_cv_lib_ipc_shmat=no
d46938 1
a46938 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d46942 2
a46943 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
d46960 2
a46961 2
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
d46974 1
a46974 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d46978 2
d46984 1
a46984 1
return IceConnectionNumber ();
d46990 2
a46991 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d46997 14
a47010 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d47016 1
a47016 1
	ac_cv_lib_ICE_IceConnectionNumber=no
d47018 1
a47018 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d47022 2
a47023 2
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
d47036 2
a47037 2
	{ echo "$as_me:$LINENO: checking for special X linker flags" >&5
echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6; }
d47065 5
a47069 1
  krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
d47072 5
d47079 1
a47079 1
		foo(void)
d47083 1
a47083 1
		main(int argc, char **argv)
d47090 2
a47091 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d47095 2
a47096 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d47109 1
a47109 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a47110 2


d47116 2
a47117 2
{ echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6; }
d47122 3
a47124 1
 if test "$no_x" != yes; then
d47149 2
a47150 2
{ echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6; }
d47172 1
a47172 1
#include <X11/Xauth.h>
d47176 1
a47176 1
XauWriteAuth(0,0)
d47182 2
a47183 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d47189 14
a47202 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a47207 1

d47209 1
a47209 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d47226 3
a47228 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d47254 1
a47254 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d47257 1
d47259 2
d47265 1
a47265 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d47267 5
d47277 1
a47277 1
return $ac_func ();
d47283 2
a47284 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d47290 14
a47303 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d47309 1
a47309 1
	eval "$as_ac_var=no"
d47311 1
a47311 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d47314 2
a47315 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d47338 2
a47339 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d47344 2
a47345 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d47358 2
a47359 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d47369 2
a47370 2
{ echo "$as_me:$LINENO: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6; }
d47392 1
a47392 1
#include <X11/Xauth.h>
d47396 1
a47396 1
XauReadAuth(0)
d47402 2
a47403 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d47409 14
a47422 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a47427 1

d47429 1
a47429 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d47446 3
a47448 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d47474 1
a47474 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d47477 1
d47479 2
d47485 1
a47485 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d47487 5
d47497 1
a47497 1
return $ac_func ();
d47503 2
a47504 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d47510 14
a47523 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d47529 1
a47529 1
	eval "$as_ac_var=no"
d47531 1
a47531 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d47534 2
a47535 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d47558 2
a47559 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d47564 2
a47565 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d47578 2
a47579 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d47588 2
a47589 2
{ echo "$as_me:$LINENO: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6; }
d47611 1
a47611 1
#include <X11/Xauth.h>
d47621 2
a47622 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d47628 14
a47641 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a47646 1

d47648 1
a47648 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d47665 3
a47667 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d47693 1
a47693 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d47696 1
d47698 2
d47704 1
a47704 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d47706 5
d47716 1
a47716 1
return $ac_func ();
d47722 2
a47723 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d47729 14
a47742 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d47748 1
a47748 1
	eval "$as_ac_var=no"
d47750 1
a47750 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d47753 2
a47754 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d47777 2
a47778 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d47783 2
a47784 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d47797 2
a47798 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d47827 3
a47829 1
	 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
d47854 2
a47855 2
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d47873 1
a47873 1
  const charset cs;
d47875 2
a47876 2
  char const *const *pcpcc;
  char **ppc;
d47885 1
a47885 1
  pcpcc = &g + (g ? g-g : 0);
d47887 3
a47889 3
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
a47894 1
    if (s) return 0;
a47912 1
    if (!foo) return 0;
a47913 1
  return !cs[0] && !zero.x;
d47921 2
a47922 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d47928 14
a47941 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d47947 1
a47947 1
	ac_cv_c_const=no
d47949 1
a47949 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d47951 2
a47952 2
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6; }
d47961 2
a47962 2
{ echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
a47972 1
typedef off_t ac__type_new_;
d47976 1
a47976 1
if ((ac__type_new_ *) 0)
d47978 1
a47978 1
if (sizeof (ac__type_new_))
d47985 2
a47986 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d47992 14
a48005 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d48011 1
a48011 1
	ac_cv_type_off_t=no
d48013 1
a48013 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d48015 2
a48016 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
d48022 1
a48022 1
#define off_t long int
d48027 2
a48028 2
{ echo "$as_me:$LINENO: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
d48054 2
a48055 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
d48064 2
a48065 2
{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
d48091 2
a48092 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
d48104 3
a48106 3
{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
a48114 1

d48130 2
a48131 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d48137 14
a48150 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d48156 1
a48156 1
	eval "ac_cv_type_$cv=no"
d48158 1
a48158 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d48161 2
a48162 2
{ echo "$as_me:$LINENO: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6; }
d48166 2
a48167 2
	{ echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
a48177 1
typedef long long ac__type_new_;
d48181 1
a48181 1
if ((ac__type_new_ *) 0)
d48183 1
a48183 1
if (sizeof (ac__type_new_))
d48190 2
a48191 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d48197 14
a48210 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d48216 1
a48216 1
	ac_cv_type_long_long=no
d48218 1
a48218 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d48220 2
a48221 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
d48239 2
a48240 2
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
d48264 2
a48265 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d48271 14
a48284 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d48290 1
a48290 1
	ac_cv_header_time=no
d48292 1
a48292 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d48294 2
a48295 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6; }
d48304 2
a48305 2
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
d48321 1
a48321 3
struct tm tm;
				     int *p = &tm.tm_sec;
 				     return !p;
d48327 2
a48328 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d48334 14
a48347 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d48353 1
a48353 1
	ac_cv_struct_tm=sys/time.h
d48355 1
a48355 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d48357 2
a48358 2
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
d48368 2
a48369 2
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d48393 2
a48394 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d48400 14
a48413 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d48419 1
a48419 1
	ac_cv_header_stdc=no
d48421 1
a48421 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a48476 1
#include <stdlib.h>
d48496 2
a48497 2
      return 2;
  return 0;
d48501 2
a48502 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d48506 2
a48507 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d48520 1
a48520 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a48521 2


d48524 2
a48525 2
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
a48584 2


d48604 1
a48607 1
	strings.h				\
a48614 1
	sys/param.h				\
d48617 1
a48618 1
	sys/socket.h				\
d48622 1
a48626 1
	sys/types.h				\
d48628 1
a48630 1
	termios.h				\
a48633 1
	util.h					\
d48639 4
a48642 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d48645 2
a48646 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d48649 2
a48650 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d48661 2
a48662 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d48668 5
a48672 34
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a48673 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d48675 4
a48678 92
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in term.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a48679 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d48681 2
a48682 5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  eval "$as_ac_Header=yes"
d48687 1
a48687 1
  eval "$as_ac_Header=no"
d48689 3
d48693 4
a48696 25
rm -f conftest.err conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in net/if.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
a48701 5
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

d48704 2
a48705 8
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d48711 7
a48717 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
d48719 1
a48719 4
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
d48721 2
a48722 247

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/ptyvar.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#if HAVE_SYS_TTY_H
#include <sys/tty.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/strtty.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#if HAVE_TERMIOS_H
#include <termios.h>
#endif
#if HAVE_SYS_STREAM_H
#include <sys/stream.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in sys/ucred.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



for ac_header in security/pam_modules.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <security/pam_appl.h>


#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
d48727 44
a48770 1
	eval "$as_ac_Header=no"
d48772 2
a48774 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a48775 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d48786 1
a48786 1
# Check whether --enable-netinfo was given.
d48788 1
a48788 2
  enableval=$enable_netinfo;
fi
d48790 1
d48804 2
a48805 7





{ echo "$as_me:$LINENO: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6; }
a48827 4
#ifdef HAVE_UTIL_H
#include <util.h>
#endif

d48831 1
a48831 1
logwtmp(0,0,0)
d48837 2
a48838 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d48844 14
a48857 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a48862 1

d48864 1
a48864 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d48881 3
a48883 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d48909 1
a48909 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d48912 1
d48914 2
d48920 1
a48920 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d48922 5
d48932 1
a48932 1
return $ac_func ();
d48938 2
a48939 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d48945 14
a48958 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d48964 1
a48964 1
	eval "$as_ac_var=no"
d48966 1
a48966 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d48969 2
a48970 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d48993 2
a48994 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d48999 2
a49000 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d49013 2
a49014 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d49022 2
a49023 2
{ echo "$as_me:$LINENO: checking for logout" >&5
echo $ECHO_N "checking for logout... $ECHO_C" >&6; }
a49045 4
#ifdef HAVE_UTIL_H
#include <util.h>
#endif

d49049 1
a49049 1
logout(0)
d49055 2
a49056 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d49062 14
a49075 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a49080 1

d49082 1
a49082 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d49099 3
a49101 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d49127 1
a49127 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d49130 1
d49132 2
d49138 1
a49138 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d49140 5
d49150 1
a49150 1
return $ac_func ();
d49156 2
a49157 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d49163 14
a49176 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d49182 1
a49182 1
	eval "$as_ac_var=no"
d49184 1
a49184 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d49187 2
a49188 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d49211 2
a49212 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d49217 2
a49218 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d49231 2
a49232 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d49240 2
a49241 2
{ echo "$as_me:$LINENO: checking for openpty" >&5
echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
a49263 4
#ifdef HAVE_UTIL_H
#include <util.h>
#endif

d49267 1
a49267 1
openpty(0,0,0,0,0)
d49273 2
a49274 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d49280 14
a49293 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a49298 1

d49300 1
a49300 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d49317 3
a49319 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d49345 1
a49345 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d49348 1
d49350 2
d49356 1
a49356 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d49358 5
d49368 1
a49368 1
return $ac_func ();
d49374 2
a49375 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d49381 14
a49394 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d49400 1
a49400 1
	eval "$as_ac_var=no"
d49402 1
a49402 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d49405 2
a49406 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d49429 2
a49430 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d49435 2
a49436 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d49449 2
a49450 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d49458 2
a49459 3

{ echo "$as_me:$LINENO: checking for tgetent" >&5
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
a49481 7
#ifdef HAVE_TERMCAP_H
#include <termcap.h>
#endif
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif

d49485 1
a49485 1
tgetent(0,0)
d49491 2
a49492 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d49498 14
a49511 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a49516 1

d49518 1
a49518 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d49535 3
a49537 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d49563 1
a49563 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d49566 1
d49568 2
d49574 1
a49574 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d49576 5
d49586 1
a49586 1
return $ac_func ();
d49592 2
a49593 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d49599 14
a49612 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d49618 1
a49618 1
	eval "$as_ac_var=no"
d49620 1
a49620 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d49623 2
a49624 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d49647 2
a49648 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d49653 2
a49654 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d49667 2
a49668 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
a49702 2


a49705 1
	arc4random				\
a49706 2
	getpeereid				\
	getpeerucred				\
d49725 1
d49735 3
a49737 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d49763 1
a49763 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d49766 1
d49768 2
d49774 1
a49774 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d49776 5
d49786 1
a49786 1
return $ac_func ();
d49792 2
a49793 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d49799 14
a49812 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d49818 1
a49818 1
	eval "$as_ac_var=no"
d49820 1
a49820 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d49823 2
a49824 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d49839 4
a49842 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d49845 2
a49846 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d49849 2
a49850 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d49861 2
a49862 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d49868 14
a49881 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d49887 1
a49887 1
	ac_header_compiler=no
d49889 3
a49891 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d49894 2
a49895 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d49904 2
a49905 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d49911 11
a49921 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a49928 1

d49930 2
a49931 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d49955 5
a49959 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d49961 2
a49962 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d49965 3
a49967 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d49972 2
a49973 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d49989 3
a49991 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d50017 1
a50017 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d50020 1
d50022 2
d50028 1
a50028 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d50030 5
d50040 1
a50040 1
return $ac_func ();
d50046 2
a50047 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d50053 14
a50066 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d50072 1
a50072 1
	eval "$as_ac_var=no"
d50074 1
a50074 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d50077 2
a50078 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d50087 2
a50088 2
{ echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
d50130 1
a50130 1
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
d50135 1
a50135 1
#ifndef HAVE_GETPAGESIZE
d50137 1
a50137 1
# ifndef HAVE_SYS_PARAM_H
d50144 1
a50144 1
#  ifdef HAVE_SYS_PARAM_H
d50183 1
a50183 1
    return 1;
d50189 1
a50189 1
    return 1;
d50191 1
a50191 1
    return 1;
d50199 1
a50199 1
    return 1;
d50202 2
a50203 2
    return 1;
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
d50206 1
a50206 1
    return 1;
d50209 1
a50209 1
      return 1;
d50218 1
a50218 1
    return 1;
d50220 1
a50220 1
    return 1;
d50223 1
a50223 1
      return 1;
d50225 1
a50225 1
  return 0;
d50229 2
a50230 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d50234 2
a50235 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d50248 1
a50248 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a50249 2


d50251 2
a50252 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
d50270 4
a50273 4
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d50276 2
a50277 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d50280 2
a50281 2
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d50292 2
a50293 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d50299 14
a50312 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d50318 1
a50318 1
	ac_header_compiler=no
d50320 3
a50322 4

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
d50325 2
a50326 2
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d50335 2
a50336 7
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d50342 11
a50352 4
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
a50359 1

d50361 2
a50362 2
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
d50386 5
a50390 4
    ( cat <<\_ASBOX
## ----------------------------------- ##
## Report this to heimdal-bugs@@h5l.org ##
## ----------------------------------- ##
d50392 2
a50393 1
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d50396 3
a50398 3
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d50403 2
a50404 3
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d50422 3
a50424 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d50450 1
a50450 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d50453 1
d50455 2
d50461 1
a50461 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d50463 5
d50473 1
a50473 1
return $ac_func ();
d50479 2
a50480 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d50486 5
a50490 73
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done







{ echo "$as_me:$LINENO: checking for getpwnam_r" >&5
echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; }
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" c_r; do
		case "$ac_lib" in
		"") ;;
		yes) ac_lib="" ;;
		no) continue ;;
		-l*) ;;
		*) ac_lib="-l$ac_lib" ;;
		esac
		LIBS=" $ac_lib  $ac_save_LIBS"
		cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
getpwnam_r()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
a50491 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d50493 4
a50496 88
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getpwnam_r"

if false; then

for ac_func in getpwnam_r
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
a50497 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d50499 1
a50499 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d50505 1
a50505 1
	eval "$as_ac_var=no"
d50507 1
a50507 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d50510 2
a50511 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
a50519 109
fi
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF

	cat >>confdefs.h <<_ACEOF
#define $ac_tr_lib 1
_ACEOF

	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
	;;
esac


if test "$ac_cv_func_getpwnam_r" = yes; then
	{ echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6; }
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#define _POSIX_PTHREAD_SEMANTICS
#include <pwd.h>
int main(int argc, char **argv)
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getpwnam_r_posix=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_func_getpwnam_r_posix=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


LIBS="$ac_libs"
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6; }
if test "$ac_cv_func_getpwnam_r_posix" = yes; then

cat >>confdefs.h <<\_ACEOF
#define POSIX_GETPWNAM_R 1
_ACEOF
a50520 2
fi
fi
a50522 3
if test "$enable_pthread_support" != no; then
   saved_LIBS="$LIBS"
   LIBS="$LIBS $PTHREADS_LIBS"
d50526 3
a50528 3
{ echo "$as_me:$LINENO: checking for door_create" >&5
echo $ECHO_N "checking for door_create... $ECHO_C" >&6; }
if test "${ac_cv_funclib_door_create+set}" = set; then
d50532 1
a50532 1
if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
d50534 1
a50534 1
	for ac_lib in "" door; do
d50553 1
a50553 1
door_create()
d50559 2
a50560 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d50566 15
a50580 6
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
a50584 1

d50586 1
a50586 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d50589 1
a50589 1
	eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
d50596 1
a50596 1
eval "ac_res=\$ac_cv_funclib_door_create"
d50600 1
a50600 1
for ac_func in door_create
d50603 3
a50605 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d50631 1
a50631 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d50634 1
d50636 2
d50642 1
a50642 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d50644 5
d50654 1
a50654 1
return $ac_func ();
d50660 2
a50661 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d50667 14
a50680 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d50686 1
a50686 1
	eval "$as_ac_var=no"
d50688 1
a50688 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d50691 2
a50692 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d50702 2
a50703 2
# door_create
eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d50705 1
a50705 1
eval "LIB_door_create=$ac_res"
d50709 2
a50710 2
	eval "ac_cv_func_door_create=yes"
	eval "LIB_door_create="
d50715 2
a50716 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d50719 4
a50722 4
	eval "ac_cv_func_door_create=no"
	eval "LIB_door_create="
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d50725 1
a50725 1
	eval "ac_cv_func_door_create=yes"
d50735 2
a50736 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d50741 24
a50764 2
   LIBS="$saved_LIBS"
fi
d50766 13
a50778 3
# Check whether --enable-kcm was given.
if test "${enable_kcm+set}" = set; then
  enableval=$enable_kcm;
d50780 8
a50787 1
  enable_kcm=yes
d50789 1
a50789 6


if test "$enable_kcm" = yes ; then
   if test  "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
  	enable_kcm=no
   fi
d50791 3
a50793 1
if test "$enable_kcm" = yes; then
d50796 1
a50796 1
#define HAVE_KCM 1
a50799 6
 if test "$enable_kcm" = yes; then
  KCM_TRUE=
  KCM_FALSE='#'
else
  KCM_TRUE='#'
  KCM_FALSE=
a50804 2


d50808 3
a50810 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d50836 1
a50836 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d50839 1
d50841 2
d50847 1
a50847 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d50849 5
d50859 1
a50859 1
return $ac_func ();
d50865 2
a50866 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d50872 14
a50885 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d50891 1
a50891 1
	eval "$as_ac_var=no"
d50893 1
a50893 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d50896 2
a50897 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d50911 2
a50912 2
{ echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6; }
d50927 1
a50927 1
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
d50933 2
a50934 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d50940 14
a50953 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d50959 1
a50959 1
	ac_cv_type_struct_utmp_ut_addr=no
d50961 1
a50961 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d50963 2
a50964 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6; }
d50978 2
a50979 2
{ echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6; }
d50994 1
a50994 1
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
d51000 2
a51001 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51007 14
a51020 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51026 1
a51026 1
	ac_cv_type_struct_utmp_ut_host=no
d51028 1
a51028 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d51030 2
a51031 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6; }
d51045 2
a51046 2
{ echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6; }
d51061 1
a51061 1
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
d51067 2
a51068 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51074 14
a51087 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51093 1
a51093 1
	ac_cv_type_struct_utmp_ut_id=no
d51095 1
a51095 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d51097 2
a51098 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6; }
d51112 2
a51113 2
{ echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6; }
d51128 1
a51128 1
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
d51134 2
a51135 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51141 14
a51154 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51160 1
a51160 1
	ac_cv_type_struct_utmp_ut_pid=no
d51162 1
a51162 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d51164 2
a51165 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6; }
d51179 2
a51180 2
{ echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6; }
d51195 1
a51195 1
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
d51201 2
a51202 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51208 14
a51221 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51227 1
a51227 1
	ac_cv_type_struct_utmp_ut_type=no
d51229 1
a51229 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d51231 2
a51232 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6; }
d51246 2
a51247 2
{ echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6; }
d51262 1
a51262 1
struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
d51268 2
a51269 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51275 14
a51288 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51294 1
a51294 1
	ac_cv_type_struct_utmp_ut_user=no
d51296 1
a51296 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d51298 2
a51299 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6; }
d51313 2
a51314 2
{ echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6; }
d51329 1
a51329 1
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
d51335 2
a51336 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51342 14
a51355 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51361 1
a51361 1
	ac_cv_type_struct_utmpx_ut_exit=no
d51363 1
a51363 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d51365 2
a51366 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6; }
d51380 2
a51381 2
{ echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6; }
d51396 1
a51396 1
struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
d51402 2
a51403 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51409 14
a51422 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51428 1
a51428 1
	ac_cv_type_struct_utmpx_ut_syslen=no
d51430 1
a51430 3

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d51432 2
a51433 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
d51446 2
a51447 2
{ echo "$as_me:$LINENO: checking for int8_t" >&5
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
a51474 1
typedef int8_t ac__type_new_;
d51478 1
a51478 1
if ((ac__type_new_ *) 0)
d51480 1
a51480 1
if (sizeof (ac__type_new_))
d51487 2
a51488 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51494 14
a51507 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51513 1
a51513 1
	ac_cv_type_int8_t=no
d51515 1
a51515 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51517 2
a51518 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
d51527 2
a51528 2
{ echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
a51555 1
typedef int16_t ac__type_new_;
d51559 1
a51559 1
if ((ac__type_new_ *) 0)
d51561 1
a51561 1
if (sizeof (ac__type_new_))
d51568 2
a51569 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51575 14
a51588 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51594 1
a51594 1
	ac_cv_type_int16_t=no
d51596 1
a51596 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51598 2
a51599 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
d51608 2
a51609 2
{ echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
a51636 1
typedef int32_t ac__type_new_;
d51640 1
a51640 1
if ((ac__type_new_ *) 0)
d51642 1
a51642 1
if (sizeof (ac__type_new_))
d51649 2
a51650 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51656 14
a51669 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51675 1
a51675 1
	ac_cv_type_int32_t=no
d51677 1
a51677 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51679 2
a51680 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
d51689 2
a51690 2
{ echo "$as_me:$LINENO: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
a51717 1
typedef int64_t ac__type_new_;
d51721 1
a51721 1
if ((ac__type_new_ *) 0)
d51723 1
a51723 1
if (sizeof (ac__type_new_))
d51730 2
a51731 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51737 14
a51750 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51756 1
a51756 1
	ac_cv_type_int64_t=no
d51758 1
a51758 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51760 2
a51761 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
d51770 2
a51771 2
{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
a51798 1
typedef u_int8_t ac__type_new_;
d51802 1
a51802 1
if ((ac__type_new_ *) 0)
d51804 1
a51804 1
if (sizeof (ac__type_new_))
d51811 2
a51812 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51818 14
a51831 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51837 1
a51837 1
	ac_cv_type_u_int8_t=no
d51839 1
a51839 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51841 2
a51842 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
d51851 2
a51852 2
{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
a51879 1
typedef u_int16_t ac__type_new_;
d51883 1
a51883 1
if ((ac__type_new_ *) 0)
d51885 1
a51885 1
if (sizeof (ac__type_new_))
d51892 2
a51893 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51899 14
a51912 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51918 1
a51918 1
	ac_cv_type_u_int16_t=no
d51920 1
a51920 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d51922 2
a51923 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
d51932 2
a51933 2
{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
a51960 1
typedef u_int32_t ac__type_new_;
d51964 1
a51964 1
if ((ac__type_new_ *) 0)
d51966 1
a51966 1
if (sizeof (ac__type_new_))
d51973 2
a51974 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d51980 14
a51993 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d51999 1
a51999 1
	ac_cv_type_u_int32_t=no
d52001 1
a52001 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d52003 2
a52004 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
d52013 2
a52014 2
{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
a52041 1
typedef u_int64_t ac__type_new_;
d52045 1
a52045 1
if ((ac__type_new_ *) 0)
d52047 1
a52047 1
if (sizeof (ac__type_new_))
d52054 2
a52055 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d52061 14
a52074 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d52080 1
a52080 1
	ac_cv_type_u_int64_t=no
d52082 1
a52082 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d52084 2
a52085 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
d52094 2
a52095 2
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
a52122 1
typedef uint8_t ac__type_new_;
d52126 1
a52126 1
if ((ac__type_new_ *) 0)
d52128 1
a52128 1
if (sizeof (ac__type_new_))
d52135 2
a52136 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d52142 14
a52155 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d52161 1
a52161 1
	ac_cv_type_uint8_t=no
d52163 1
a52163 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d52165 2
a52166 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
d52175 2
a52176 2
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
a52203 1
typedef uint16_t ac__type_new_;
d52207 1
a52207 1
if ((ac__type_new_ *) 0)
d52209 1
a52209 1
if (sizeof (ac__type_new_))
d52216 2
a52217 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d52223 14
a52236 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d52242 1
a52242 1
	ac_cv_type_uint16_t=no
d52244 1
a52244 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d52246 2
a52247 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
d52256 2
a52257 2
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
a52284 1
typedef uint32_t ac__type_new_;
d52288 1
a52288 1
if ((ac__type_new_ *) 0)
d52290 1
a52290 1
if (sizeof (ac__type_new_))
d52297 2
a52298 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d52304 14
a52317 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d52323 1
a52323 1
	ac_cv_type_uint32_t=no
d52325 1
a52325 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d52327 2
a52328 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
d52337 2
a52338 2
{ echo "$as_me:$LINENO: checking for uint64_t" >&5
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
a52365 1
typedef uint64_t ac__type_new_;
d52369 1
a52369 1
if ((ac__type_new_ *) 0)
d52371 1
a52371 1
if (sizeof (ac__type_new_))
d52378 2
a52379 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d52385 14
a52398 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d52404 1
a52404 1
	ac_cv_type_uint64_t=no
d52406 1
a52406 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d52408 2
a52409 2
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
a52421 150
{ echo "$as_me:$LINENO: checking for framework security" >&5
echo $ECHO_N "checking for framework security... $ECHO_C" >&6; }
if test "${rk_cv_framework_security+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$rk_cv_framework_security" != yes; then
	ac_save_LIBS="$LIBS"
	LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <Security/Security.h>

int
main ()
{
SecKeychainSearchRef searchRef;
SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
CFRelease(&searchRef);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  rk_cv_framework_security=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	LIBS="$ac_save_LIBS"
fi

fi


if test "$rk_cv_framework_security" = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_FRAMEWORK_SECURITY 1
_ACEOF

   { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
   { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
 if test "$rk_cv_framework_security" = yes; then
  FRAMEWORK_SECURITY_TRUE=
  FRAMEWORK_SECURITY_FALSE='#'
else
  FRAMEWORK_SECURITY_TRUE='#'
  FRAMEWORK_SECURITY_FALSE=
fi


if test "$rk_cv_framework_security" = yes; then

if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
{ echo "$as_me:$LINENO: checking if SecKeyGetCSPHandle needs a prototype" >&5
echo $ECHO_N "checking if SecKeyGetCSPHandle needs a prototype... $ECHO_C" >&6; }
if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <Security/Security.h>
struct foo { int foo; } xx;
extern int SecKeyGetCSPHandle (struct foo*);
int
main ()
{
SecKeyGetCSPHandle(&xx)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
echo "${ECHO_T}$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then

cat >>confdefs.h <<\_ACEOF
#define NEED_SECKEYGETCSPHANDLE_PROTO 1
_ACEOF

fi
fi

fi



d52424 2
a52425 4


{ echo "$as_me:$LINENO: checking for el_init" >&5
echo $ECHO_N "checking for el_init... $ECHO_C" >&6; }
d52457 2
a52458 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d52464 14
a52477 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
a52482 1

d52484 1
a52484 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d52501 3
a52503 3
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d52529 1
a52529 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d52532 1
d52534 2
d52540 1
a52540 1
#if defined __stub_$ac_func || defined __stub___$ac_func
d52542 5
d52552 1
a52552 1
return $ac_func ();
d52556 20
a52575 9
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
a52576 3
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
d52578 1
a52578 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d52584 1
a52584 1
	eval "$as_ac_var=no"
d52586 1
a52586 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d52589 2
a52590 3
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
d52613 2
a52614 2
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d52619 2
a52620 2
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
d52633 2
a52634 2
	{ echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6; }
d52640 2
a52641 2
	{ echo "$as_me:$LINENO: checking for four argument el_init" >&5
echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6; }
d52663 2
a52664 7
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
d52670 14
a52683 4
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
d52689 1
a52689 1
	ac_cv_func_el_init_four=no
d52691 1
a52691 2

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d52693 2
a52694 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
echo "${ECHO_T}$ac_cv_func_el_init_four" >&6; }
d52716 3
a52718 1
 if test "$ac_foo" = yes; then
d52771 2
a52772 2
	{ echo "$as_me:$LINENO: checking for getmsg" >&5
echo $ECHO_N "checking for getmsg... $ECHO_C" >&6; }
d52799 1
a52799 3
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
d52802 1
d52804 2
d52810 1
a52810 1
#if defined __stub_getmsg || defined __stub___getmsg
d52812 5
d52822 1
a52822 1
return getmsg ();
d52828 2
a52829 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d52835 14
a52848 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d52854 1
a52854 1
	ac_cv_func_getmsg=no
d52856 1
a52856 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d52859 2
a52860 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
echo "${ECHO_T}$ac_cv_func_getmsg" >&6; }
d52863 2
a52864 2
		{ echo "$as_me:$LINENO: checking if getmsg works" >&5
echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6; }
d52881 1
a52881 1
			int main(int argc, char **argv)
d52892 2
a52893 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d52897 2
a52898 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d52911 1
a52911 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a52912 2


d52914 2
a52915 2
{ echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6; }
d52940 2
a52941 2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d52954 1
a52954 1
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a52960 1
IFS=$as_save_IFS
d52966 2
a52967 2
  { echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
echo "${ECHO_T}$COMPILE_ET" >&6; }
d52969 2
a52970 2
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
a52973 1

a52975 1
krb_cv_compile_et_cross=no
d52978 2
a52979 2
{ echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6; }
d52995 5
a52999 1
  krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
d53002 5
d53011 1
a53011 1
int main(int argc, char **argv){
d53019 2
a53020 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
d53024 2
a53025 6
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
d53038 1
a53038 1
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a53039 2


d53041 5
a53045 5
{ echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
echo "${ECHO_T}${krb_cv_compile_et}" >&6; }
if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
  { echo "$as_me:$LINENO: checking for if com_err generates a initialize_conf_error_table_r" >&5
echo $ECHO_N "checking for if com_err generates a initialize_conf_error_table_r... $ECHO_C" >&6; }
d53052 1
a53052 1
#include "conftest_et.h"
d53055 2
a53056 2
  $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then
  krb_cv_com_err_need_r="ok"
d53061 2
a53062 3
    { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    krb_cv_compile_et=no
d53064 2
a53065 2
    { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
d53071 1
a53071 3
if test "${krb_cv_compile_et_cross}" = yes ; then
  krb_cv_com_err="cross"
elif test "${krb_cv_compile_et}" = "yes"; then
d53074 2
a53075 2
  { echo "$as_me:$LINENO: checking for com_err" >&5
echo $ECHO_N "checking for com_err... $ECHO_C" >&6; }
d53089 1
a53089 1
    initialize_error_table_r(0,0,0,0);
d53096 2
a53097 7
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
d53103 14
a53116 5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
d53122 1
a53122 1
	krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
d53124 1
a53124 2

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d53126 2
a53127 2
  { echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
echo "${ECHO_T}${krb_cv_com_err}" >&6; }
a53139 9
    localcomerr=no
elif test "${krb_cv_com_err}" = "cross"; then
    DIR_com_err="com_err"
    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
    { echo "$as_me:$LINENO: Using our own com_err with toolchain compile_et" >&5
echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
    localcomerr=yes
a53147 8
    localcomerr=yes
fi
 if test "$localcomerr" = yes; then
  COM_ERR_TRUE=
  COM_ERR_FALSE='#'
else
  COM_ERR_TRUE='#'
  COM_ERR_FALSE=
d53157 2
a53158 2
{ echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6; }
d53189 2
a53190 2
	{ echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6; }
d53192 2
a53193 2
	{ echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6; }
d53272 2
a53273 24


# Check whether --enable-developer was given.
if test "${enable_developer+set}" = set; then
  enableval=$enable_developer;
fi

if test "X$enable_developer" = Xyes; then
    dwflags="-Werror"
fi

WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
  # -Wno-implicit-int for broken X11 headers
  # leave these out for now:
  #   -Wcast-align doesn't work well on alpha osf/1
  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
  #   -Wmissing-declarations -Wnested-externs
  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
  WFLAGS_NOUNUSED="-Wno-unused"
  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi

d53279 1
a53279 1
ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/editline/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile packages/debian/Makefile doc/Makefile tools/Makefile"
d53300 1
a53300 1
# So, we kill variables containing newlines.
d53303 1
a53303 16
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

d53305 2
a53306 2
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
d53312 1
a53312 1
      ;; #(
d53315 2
a53316 1
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d53318 2
a53319 3
    esac |
    sort
) |
a53320 1
     /^ac_cv_env_/b end
d53322 1
a53322 1
     :clear
d53325 5
a53329 7
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
d53332 1
a53332 2
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d53341 15
d53362 5
a53366 6
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a53379 28
if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"versionscript\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"versionscript\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP_MODULE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OPENLDAP_MODULE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PKINIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PKINIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
d53443 7
a53470 21
if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_cgetent\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_cgetent\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"have_socket_wrapper\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"have_socket_wrapper\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
a53533 14
if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"KCM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"KCM\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
a53540 7
if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"COM_ERR\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"COM_ERR\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
d53565 1
a53565 2
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
d53572 2
a53573 30
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
d53575 1
a53584 33
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

d53586 1
a53586 3
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
d53600 1
a53600 1
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d53605 1
a53605 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
d53611 1
a53611 1
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d53619 1
a53619 1
as_me=`$as_basename -- "$0" ||
d53622 2
a53623 1
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d53625 5
a53629 13
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
d53631 20
a53650 2
# CDPATH.
$as_unset CDPATH
d53653 16
d53670 23
d53695 1
d53697 12
a53708 1
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d53712 4
a53715 5
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
d53717 2
a53718 6
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
a53719 4
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
d53721 3
a53723 2
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d53725 2
a53726 1
      s/-\n.*//
d53728 3
a53730 2
  chmod +x "$as_me.lineno" ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d53735 2
a53736 2
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
d53742 5
a53746 15
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
d53749 1
a53749 2
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
a53755 6
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
d53758 4
a53761 6
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d53763 3
d53771 1
a53771 2
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
d53780 1
a53780 22
if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
        test -d "$1/.";
      else
	case $1 in
        -*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x
d53789 9
d53800 1
a53800 1
# Save the log message, to keep $[0] and so on meaningful, and to
d53802 12
a53813 4
# values after options handling.
ac_log="
This file was extended by Heimdal $as_me 1.1, which was
generated by GNU Autoconf 2.61.  Invocation command line was
d53821 3
a53823 3
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

a53825 1
cat >>$CONFIG_STATUS <<_ACEOF
d53827 7
a53833 2
config_files="$ac_config_files"
config_headers="$ac_config_headers"
d53835 7
a53841 1
_ACEOF
d53844 1
d53852 1
a53852 1
  -V, --version    print version number and configuration settings, then exit
d53868 1
a53869 1
_ACEOF
d53872 3
a53874 3
Heimdal config.status 1.1
configured by $0, generated by GNU Autoconf 2.61,
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d53876 1
a53876 1
Copyright (C) 2006 Free Software Foundation, Inc.
d53879 2
a53880 5

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
d53891 2
a53892 2
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d53895 1
a53895 1
  *)
d53900 4
d53908 2
d53912 12
a53923 3
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
a53932 7
  --he | --h)
    # Conflict between --help and --header
    { echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit ;;
d53938 4
a53941 2
  -*) { echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
d53944 1
a53944 2
  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;
d53960 2
a53961 4
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  CONFIG_SHELL=$SHELL
  export CONFIG_SHELL
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a53964 9
cat >>$CONFIG_STATUS <<\_ACEOF
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  echo "$ac_log"
} >&5
d53966 3
a53968 3
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
_ACEOF
a53970 2

# Handling of arguments.
d53973 55
a54027 73
  case $ac_config_target in
    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;;
    "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;;
    "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    "lib/45/Makefile") CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
    "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
    "lib/auth/afskauthlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
    "lib/auth/pam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
    "lib/auth/sia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
    "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
    "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
    "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;;
    "lib/editline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
    "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;;
    "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
    "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;;
    "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
    "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
    "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
    "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
    "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
    "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
    "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
    "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
    "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
    "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
    "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
    "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
    "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;;
    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
    "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
    "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
    "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
    "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
    "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
    "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;;
    "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
    "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
    "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
    "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
    "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
    "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
    "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
    "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
    "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
    "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
    "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
    "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
    "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
    "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
    "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
    "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;;
    "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
    "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;;
    "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;;
    "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;;
    "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;;
    "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;;
    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;;
    "packages/debian/Makefile") CONFIG_FILES="$CONFIG_FILES packages/debian/Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;

a54033 1

d54044 1
a54044 1
# simply because there is no reason against having it here, and in addition,
d54046 1
a54046 3
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
d54049 1
a54049 4
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
d54052 1
d54056 1
a54056 1
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d54060 2
a54061 2
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
d54068 4
d54073 1
a54073 1
# Set up the sed scripts for CONFIG_FILES section.
d54078 263
a54340 116
if test -n "$CONFIG_FILES"; then

_ACEOF



ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
SHELL!$SHELL$ac_delim
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
exec_prefix!$exec_prefix$ac_delim
prefix!$prefix$ac_delim
program_transform_name!$program_transform_name$ac_delim
bindir!$bindir$ac_delim
sbindir!$sbindir$ac_delim
libexecdir!$libexecdir$ac_delim
datarootdir!$datarootdir$ac_delim
datadir!$datadir$ac_delim
sysconfdir!$sysconfdir$ac_delim
sharedstatedir!$sharedstatedir$ac_delim
localstatedir!$localstatedir$ac_delim
includedir!$includedir$ac_delim
oldincludedir!$oldincludedir$ac_delim
docdir!$docdir$ac_delim
infodir!$infodir$ac_delim
htmldir!$htmldir$ac_delim
dvidir!$dvidir$ac_delim
pdfdir!$pdfdir$ac_delim
psdir!$psdir$ac_delim
libdir!$libdir$ac_delim
localedir!$localedir$ac_delim
mandir!$mandir$ac_delim
DEFS!$DEFS$ac_delim
ECHO_C!$ECHO_C$ac_delim
ECHO_N!$ECHO_N$ac_delim
ECHO_T!$ECHO_T$ac_delim
LIBS!$LIBS$ac_delim
build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
INSTALL_DATA!$INSTALL_DATA$ac_delim
am__isrc!$am__isrc$ac_delim
CYGPATH_W!$CYGPATH_W$ac_delim
PACKAGE!$PACKAGE$ac_delim
VERSION!$VERSION$ac_delim
ACLOCAL!$ACLOCAL$ac_delim
AUTOCONF!$AUTOCONF$ac_delim
AUTOMAKE!$AUTOMAKE$ac_delim
AUTOHEADER!$AUTOHEADER$ac_delim
MAKEINFO!$MAKEINFO$ac_delim
install_sh!$install_sh$ac_delim
STRIP!$STRIP$ac_delim
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
mkdir_p!$mkdir_p$ac_delim
AWK!$AWK$ac_delim
SET_MAKE!$SET_MAKE$ac_delim
am__leading_dot!$am__leading_dot$ac_delim
AMTAR!$AMTAR$ac_delim
am__tar!$am__tar$ac_delim
am__untar!$am__untar$ac_delim
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
MAINT!$MAINT$ac_delim
CC!$CC$ac_delim
CFLAGS!$CFLAGS$ac_delim
LDFLAGS!$LDFLAGS$ac_delim
CPPFLAGS!$CPPFLAGS$ac_delim
ac_ct_CC!$ac_ct_CC$ac_delim
EXEEXT!$EXEEXT$ac_delim
OBJEXT!$OBJEXT$ac_delim
CPP!$CPP$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
build_os!$build_os$ac_delim
host!$host$ac_delim
host_cpu!$host_cpu$ac_delim
host_vendor!$host_vendor$ac_delim
host_os!$host_os$ac_delim
CANONICAL_HOST!$CANONICAL_HOST$ac_delim
YACC!$YACC$ac_delim
YFLAGS!$YFLAGS$ac_delim
LEX!$LEX$ac_delim
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
LEXLIB!$LEXLIB$ac_delim
LN_S!$LN_S$ac_delim
GREP!$GREP$ac_delim
EGREP!$EGREP$ac_delim
ECHO!$ECHO$ac_delim
AR!$AR$ac_delim
RANLIB!$RANLIB$ac_delim
CXX!$CXX$ac_delim
CXXFLAGS!$CXXFLAGS$ac_delim
ac_ct_CXX!$ac_ct_CXX$ac_delim
CXXCPP!$CXXCPP$ac_delim
F77!$F77$ac_delim
FFLAGS!$FFLAGS$ac_delim
ac_ct_F77!$ac_ct_F77$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d54342 1
a54342 224
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
LIBTOOL!$LIBTOOL$ac_delim
ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
VERSIONING!$VERSIONING$ac_delim
versionscript_TRUE!$versionscript_TRUE$ac_delim
versionscript_FALSE!$versionscript_FALSE$ac_delim
LDFLAGS_VERSION_SCRIPT!$LDFLAGS_VERSION_SCRIPT$ac_delim
INCLUDE_openldap!$INCLUDE_openldap$ac_delim
LIB_openldap!$LIB_openldap$ac_delim
OPENLDAP_MODULE_TRUE!$OPENLDAP_MODULE_TRUE$ac_delim
OPENLDAP_MODULE_FALSE!$OPENLDAP_MODULE_FALSE$ac_delim
PKINIT_TRUE!$PKINIT_TRUE$ac_delim
PKINIT_FALSE!$PKINIT_FALSE$ac_delim
DIR_hdbdir!$DIR_hdbdir$ac_delim
INCLUDE_krb4!$INCLUDE_krb4$ac_delim
LIB_krb4!$LIB_krb4$ac_delim
KRB4_TRUE!$KRB4_TRUE$ac_delim
KRB4_FALSE!$KRB4_FALSE$ac_delim
KRB5_TRUE!$KRB5_TRUE$ac_delim
KRB5_FALSE!$KRB5_FALSE$ac_delim
do_roken_rename_TRUE!$do_roken_rename_TRUE$ac_delim
do_roken_rename_FALSE!$do_roken_rename_FALSE$ac_delim
LIB_kdb!$LIB_kdb$ac_delim
HAVE_OPENSSL_TRUE!$HAVE_OPENSSL_TRUE$ac_delim
HAVE_OPENSSL_FALSE!$HAVE_OPENSSL_FALSE$ac_delim
DIR_hcrypto!$DIR_hcrypto$ac_delim
INCLUDE_hcrypto!$INCLUDE_hcrypto$ac_delim
LIB_hcrypto!$LIB_hcrypto$ac_delim
LIB_hcrypto_a!$LIB_hcrypto_a$ac_delim
LIB_hcrypto_so!$LIB_hcrypto_so$ac_delim
LIB_hcrypto_appl!$LIB_hcrypto_appl$ac_delim
PTHREADS_CFLAGS!$PTHREADS_CFLAGS$ac_delim
PTHREADS_LIBS!$PTHREADS_LIBS$ac_delim
DCE_TRUE!$DCE_TRUE$ac_delim
DCE_FALSE!$DCE_FALSE$ac_delim
dpagaix_cflags!$dpagaix_cflags$ac_delim
dpagaix_ldadd!$dpagaix_ldadd$ac_delim
dpagaix_ldflags!$dpagaix_ldflags$ac_delim
LIB_db_create!$LIB_db_create$ac_delim
LIB_dbopen!$LIB_dbopen$ac_delim
LIB_dbm_firstkey!$LIB_dbm_firstkey$ac_delim
HAVE_DB1_TRUE!$HAVE_DB1_TRUE$ac_delim
HAVE_DB1_FALSE!$HAVE_DB1_FALSE$ac_delim
HAVE_DB3_TRUE!$HAVE_DB3_TRUE$ac_delim
HAVE_DB3_FALSE!$HAVE_DB3_FALSE$ac_delim
HAVE_NDBM_TRUE!$HAVE_NDBM_TRUE$ac_delim
HAVE_NDBM_FALSE!$HAVE_NDBM_FALSE$ac_delim
DBLIB!$DBLIB$ac_delim
LIB_NDBM!$LIB_NDBM$ac_delim
WFLAGS!$WFLAGS$ac_delim
WFLAGS_NOUNUSED!$WFLAGS_NOUNUSED$ac_delim
WFLAGS_NOIMPLICITINT!$WFLAGS_NOIMPLICITINT$ac_delim
VOID_RETSIGTYPE!$VOID_RETSIGTYPE$ac_delim
have_err_h_TRUE!$have_err_h_TRUE$ac_delim
have_err_h_FALSE!$have_err_h_FALSE$ac_delim
have_ifaddrs_h_TRUE!$have_ifaddrs_h_TRUE$ac_delim
have_ifaddrs_h_FALSE!$have_ifaddrs_h_FALSE$ac_delim
have_vis_h_TRUE!$have_vis_h_TRUE$ac_delim
have_vis_h_FALSE!$have_vis_h_FALSE$ac_delim
LIB_socket!$LIB_socket$ac_delim
LIB_gethostbyname!$LIB_gethostbyname$ac_delim
LIB_syslog!$LIB_syslog$ac_delim
LIB_gethostbyname2!$LIB_gethostbyname2$ac_delim
LIB_res_search!$LIB_res_search$ac_delim
LIB_res_nsearch!$LIB_res_nsearch$ac_delim
LIB_res_ndestroy!$LIB_res_ndestroy$ac_delim
LIB_dn_expand!$LIB_dn_expand$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
have_glob_h_TRUE!$have_glob_h_TRUE$ac_delim
have_glob_h_FALSE!$have_glob_h_FALSE$ac_delim
have_cgetent_TRUE!$have_cgetent_TRUE$ac_delim
have_cgetent_FALSE!$have_cgetent_FALSE$ac_delim
LIB_getsockopt!$LIB_getsockopt$ac_delim
LIB_setsockopt!$LIB_setsockopt$ac_delim
LIB_hstrerror!$LIB_hstrerror$ac_delim
LIB_bswap16!$LIB_bswap16$ac_delim
LIB_bswap32!$LIB_bswap32$ac_delim
LIB_pidfile!$LIB_pidfile$ac_delim
LIB_getaddrinfo!$LIB_getaddrinfo$ac_delim
LIB_getnameinfo!$LIB_getnameinfo$ac_delim
LIB_freeaddrinfo!$LIB_freeaddrinfo$ac_delim
LIB_gai_strerror!$LIB_gai_strerror$ac_delim
have_fnmatch_h_TRUE!$have_fnmatch_h_TRUE$ac_delim
have_fnmatch_h_FALSE!$have_fnmatch_h_FALSE$ac_delim
LIB_crypt!$LIB_crypt$ac_delim
have_socket_wrapper_TRUE!$have_socket_wrapper_TRUE$ac_delim
have_socket_wrapper_FALSE!$have_socket_wrapper_FALSE$ac_delim
DIR_roken!$DIR_roken$ac_delim
LIB_roken!$LIB_roken$ac_delim
INCLUDES_roken!$INCLUDES_roken$ac_delim
LIBADD_roken!$LIBADD_roken$ac_delim
LIB_otp!$LIB_otp$ac_delim
OTP_TRUE!$OTP_TRUE$ac_delim
OTP_FALSE!$OTP_FALSE$ac_delim
LIB_security!$LIB_security$ac_delim
NROFF!$NROFF$ac_delim
GROFF!$GROFF$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
CATMAN!$CATMAN$ac_delim
CATMAN_TRUE!$CATMAN_TRUE$ac_delim
CATMAN_FALSE!$CATMAN_FALSE$ac_delim
CATMANEXT!$CATMANEXT$ac_delim
INCLUDE_readline!$INCLUDE_readline$ac_delim
LIB_readline!$LIB_readline$ac_delim
INCLUDE_hesiod!$INCLUDE_hesiod$ac_delim
LIB_hesiod!$LIB_hesiod$ac_delim
AIX_TRUE!$AIX_TRUE$ac_delim
AIX_FALSE!$AIX_FALSE$ac_delim
AIX4_TRUE!$AIX4_TRUE$ac_delim
AIX4_FALSE!$AIX4_FALSE$ac_delim
LIB_dlopen!$LIB_dlopen$ac_delim
HAVE_DLOPEN_TRUE!$HAVE_DLOPEN_TRUE$ac_delim
HAVE_DLOPEN_FALSE!$HAVE_DLOPEN_FALSE$ac_delim
LIB_loadquery!$LIB_loadquery$ac_delim
AIX_DYNAMIC_AFS_TRUE!$AIX_DYNAMIC_AFS_TRUE$ac_delim
AIX_DYNAMIC_AFS_FALSE!$AIX_DYNAMIC_AFS_FALSE$ac_delim
AIX_EXTRA_KAFS!$AIX_EXTRA_KAFS$ac_delim
IRIX_TRUE!$IRIX_TRUE$ac_delim
IRIX_FALSE!$IRIX_FALSE$ac_delim
XMKMF!$XMKMF$ac_delim
X_CFLAGS!$X_CFLAGS$ac_delim
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
X_LIBS!$X_LIBS$ac_delim
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
HAVE_X_TRUE!$HAVE_X_TRUE$ac_delim
HAVE_X_FALSE!$HAVE_X_FALSE$ac_delim
LIB_XauWriteAuth!$LIB_XauWriteAuth$ac_delim
LIB_XauReadAuth!$LIB_XauReadAuth$ac_delim
LIB_XauFileName!$LIB_XauFileName$ac_delim
NEED_WRITEAUTH_TRUE!$NEED_WRITEAUTH_TRUE$ac_delim
NEED_WRITEAUTH_FALSE!$NEED_WRITEAUTH_FALSE$ac_delim
LIB_logwtmp!$LIB_logwtmp$ac_delim
LIB_logout!$LIB_logout$ac_delim
LIB_openpty!$LIB_openpty$ac_delim
LIB_tgetent!$LIB_tgetent$ac_delim
LIB_getpwnam_r!$LIB_getpwnam_r$ac_delim
LIB_door_create!$LIB_door_create$ac_delim
KCM_TRUE!$KCM_TRUE$ac_delim
KCM_FALSE!$KCM_FALSE$ac_delim
FRAMEWORK_SECURITY_TRUE!$FRAMEWORK_SECURITY_TRUE$ac_delim
FRAMEWORK_SECURITY_FALSE!$FRAMEWORK_SECURITY_FALSE$ac_delim
LIB_el_init!$LIB_el_init$ac_delim
el_compat_TRUE!$el_compat_TRUE$ac_delim
el_compat_FALSE!$el_compat_FALSE$ac_delim
COMPILE_ET!$COMPILE_ET$ac_delim
COM_ERR_TRUE!$COM_ERR_TRUE$ac_delim
COM_ERR_FALSE!$COM_ERR_FALSE$ac_delim
DIR_com_err!$DIR_com_err$ac_delim
LIB_com_err!$LIB_com_err$ac_delim
LIB_com_err_a!$LIB_com_err_a$ac_delim
LIB_com_err_so!$LIB_com_err_so$ac_delim
LIB_AUTH_SUBDIRS!$LIB_AUTH_SUBDIRS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
a54343 35
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b end
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g
s/^/s,@@/; s/!/@@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@@/@@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
:end
s/|#_!!_#|//g
CEOF$ac_eof
a54344 17


# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@@srcdir@@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

d54346 10
a54355 62
fi # test -n "$CONFIG_FILES"


for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      ac_file_inputs="$ac_file_inputs $ac_f"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input="Generated from "`IFS=:
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    fi

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin";;
    esac
    ;;
d54358 2
a54359 1
  ac_dir=`$as_dirname -- "$ac_file" ||
d54363 2
a54364 1
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d54366 9
a54374 22
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d54376 3
a54378 7
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
d54382 2
a54383 1
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d54385 5
a54389 18
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
d54391 3
a54393 3
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
d54395 1
d54398 1
a54398 3
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
d54400 5
a54404 11
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
d54407 1
a54407 1
  .)  # We are building in place.
d54409 6
a54414 3
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
d54416 4
a54419 6
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a54420 1
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d54422 38
a54460 5
  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #
d54464 1
a54464 6
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
a54465 1
_ACEOF
d54467 43
a54509 29
cat >>$CONFIG_STATUS <<\_ACEOF
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

case `sed -n '/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
a54510 4

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
d54518 26
a54543 21
s&@@configure_input@@&$configure_input&;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}
d54545 16
a54560 1
  rm -f "$tmp/stdin"
d54562 7
a54568 2
  -) cat "$tmp/out"; rm -f "$tmp/out";;
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d54570 35
a54604 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
d54607 30
a54636 19
# Transform confdefs.h into a sed script `conftest.defines', that
# substitutes the proper values into config.h.in to produce config.h.
rm -f conftest.defines conftest.tail
# First, append a space to every undef/define line, to ease matching.
echo 's/$/ /' >conftest.defines
# Then, protect against being on the right side of a sed subst, or in
# an unquoted here document, in config.status.  If some macros were
# called several times there might be several #defines for the same
# symbol, which is useless.  But do not sort them, since the last
# AC_DEFINE must be honored.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
# NAME is the cpp macro being defined, VALUE is the value it is being given.
# PARAMS is the parameter list in the macro definition--in most cases, it's
# just an empty string.
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
ac_dB='\\)[	 (].*,\\1define\\2'
ac_dC=' '
ac_dD=' ,'
d54638 1
a54638 15
uniq confdefs.h |
  sed -n '
	t rset
	:rset
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
	t ok
	d
	:ok
	s/[\\&,]/\\&/g
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  ' >>conftest.defines

# Remove the space that was appended to ease matching.
# Then replace #undef with comments.  This is necessary, for
d54641 2
a54642 25
# (The regexp can be short, since the line contains either #define or #undef.)
echo 's/ $//
s,^[	 #]*u.*,/* & */,' >>conftest.defines

# Break up conftest.defines:
ac_max_sed_lines=50

# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
# et cetera.
ac_in='$ac_file_inputs'
ac_out='"$tmp/out1"'
ac_nxt='"$tmp/out2"'

while :
do
  # Write a here document:
    cat >>$CONFIG_STATUS <<_ACEOF
    # First, check the format of the line:
    cat >"\$tmp/defines.sed" <<\\CEOF
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
b
:def
d54644 18
a54661 1
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d54663 5
a54667 4
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  grep . conftest.tail >/dev/null || break
d54671 28
a54698 1
rm -f conftest.defines conftest.tail
a54699 1
echo "ac_result=$ac_in" >>$CONFIG_STATUS
d54701 10
d54712 1
a54712 3
    echo "/* $configure_input  */" >"$tmp/config.h"
    cat "$ac_result" >>"$tmp/config.h"
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d54716 37
d54754 1
a54754 1
      mv "$tmp/config.h" $ac_file
d54757 2
a54758 2
    echo "/* $configure_input  */"
    cat "$ac_result"
a54759 1
  rm -f "$tmp/out12"
d54770 1
a54770 1
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d54774 2
a54775 1
	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d54777 7
a54783 23
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;


  esac

done # for ac_tag
d54785 1
d54818 1
a54818 1
const char *heimdal_version = "Heimdal 1.1";
@


